126 void setValue(
float value,
bool invokeEvent =
true);
This is the base object class from which other GUIs inherit. It's an empty GUI and can contain child ...
Definition CGUIElement.h:51
This is the object class that represents a masked rectangle, and other GUIs will only display within ...
Definition CGUIMask.h:48
CUIBase(CUIContainer *container, CGUIElement *element)
Constructor.
Top-level UI container and event router.
Definition CUIContainer.h:59
void init()
Initialize internal state and locate child elements.
float getValue()
Get the current normalized slider value in range [0,1].
Definition CUISlider.h:129
virtual void updateDrag()
Update the slider value according to current pointer position.
virtual void onEndDrag()
Called when a drag ends (pointer up).
void setValue(float value, bool invokeEvent=true)
Set the slider value and optionally invoke the OnChanged event.
CUISlider(CUIContainer *container, CGUIElement *element)
Construct a slider that wraps an existing CGUIElement.
CUISlider(CUIContainer *container, CGUIElement *element, CGUIElement *bg, CGUIElement *fillbar, CGUIElement *handle)
Construct a slider with explicit sub-elements.
std::function< void(CUISlider *, float)> OnChanged
Event invoked when slider value changes.
Definition CUISlider.h:89
virtual void onBeginDrag()
Called when a drag begins (pointer down on handle).
Classes used to build the User Interface (UI).
Definition CAlphaMotion.h:32
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29
vector2d< f32 > vector2df
Typedef for f32 2d vector.
Definition vector2d.h:323