| 34 | #include "Push2Control.h" |
| 35 | |
| 36 | FloatSlider::FloatSlider(IFloatSliderListener* owner, const char* label, int x, int y, int w, int h, float* var, float min, float max, int digits /* = -1 */) |
| 37 | : mVar(var) |
| 38 | , mWidth(w) |
| 39 | , mHeight(h) |
| 40 | , mMin(min) |
| 41 | , mMax(max) |
| 42 | , mModulatorMin(min) |
| 43 | , mModulatorMax(max) |
| 44 | , mShowDigits(digits) |
| 45 | , mOwner(owner) |
| 46 | { |
| 47 | assert(owner); |
| 48 | SetName(label); |
| 49 | SetPosition(x, y); |
| 50 | (dynamic_cast<IDrawableModule*>(owner))->AddUIControl(this); |
| 51 | SetParent(dynamic_cast<IClickable*>(owner)); |
| 52 | mLastComputeCacheTime = new double[gBufferSize]; |
| 53 | mLastComputeCacheValue = new float[gBufferSize]; |
| 54 | } |
| 55 | |
| 56 | FloatSlider::FloatSlider(IFloatSliderListener* owner, const char* label, IUIControl* anchor, AnchorDirection anchorDir, int w, int h, float* var, float min, float max, int digits /* = -1 */) |
| 57 | : FloatSlider(owner, label, -1, -1, w, h, var, min, max, digits) |
nothing calls this directly
no test coverage detected