MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / IntSlider

Method IntSlider

Source/Slider.cpp:852–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852IntSlider::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
876IntSlider::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)

Callers

nothing calls this directly

Calls 1

AddUIControlMethod · 0.80

Tested by

no test coverage detected