| 850 | } |
| 851 | |
| 852 | IntSlider::IntSlider(IIntSliderListener* owner, const char* label, int x, int y, int w, int h, int* var, int min, int max) |
| 853 | : mVar(var) |
| 854 | , mWidth(w) |
| 855 | , mHeight(h) |
| 856 | , mMin(min) |
| 857 | , mMax(max) |
| 858 | , mMouseDown(false) |
| 859 | , mOwner(owner) |
| 860 | , mOriginalValue(0) |
| 861 | , mSliderVal(0) |
| 862 | , mShowName(true) |
| 863 | , mIntEntry(nullptr) |
| 864 | , mAllowMinMaxAdjustment(true) |
| 865 | , mMinEntry(nullptr) |
| 866 | , mMaxEntry(nullptr) |
| 867 | { |
| 868 | assert(owner); |
| 869 | SetName(label); |
| 870 | SetPosition(x, y); |
| 871 | (dynamic_cast<IDrawableModule*>(owner))->AddUIControl(this); |
| 872 | SetParent(dynamic_cast<IClickable*>(owner)); |
| 873 | CalcSliderVal(); |
| 874 | } |
| 875 | |
| 876 | IntSlider::IntSlider(IIntSliderListener* owner, const char* label, IUIControl* anchor, AnchorDirection anchorDir, int w, int h, int* var, int min, int max) |
| 877 | : IntSlider(owner, label, -1, -1, w, h, var, min, max) |
nothing calls this directly
no test coverage detected