120 void setToggle(
bool b,
bool invokeEvent =
true,
bool doAnimation =
false);
125 return m_toggleStatus;
This is the base object class from which other GUIs inherit. It's an empty GUI and can contain child ...
Definition CGUIElement.h:51
CUIBase(CUIContainer *container, CGUIElement *element)
Constructor.
Top-level UI container and event router.
Definition CUIContainer.h:59
virtual void onPressed()
Called when the element is considered "pressed" (high-level event). Subclasses may trigger OnPressed ...
CUISwitch(CUIContainer *container, CGUIElement *element, CGUIElement *bg, CGUIElement *handle, CGUIElement *on)
Construct a switch using explicit sub-elements.
CGUIElement * getBackground()
Get the background GUI element.
Definition CUISwitch.h:140
std::function< void(CUISwitch *, bool)> OnChanged
Callback invoked when the toggle state changes.
Definition CUISwitch.h:81
CGUIElement * getHandle()
Get the handle GUI element.
Definition CUISwitch.h:146
CUISwitch(CUIContainer *container, CGUIElement *element)
Construct a switch from a root CGUIElement.
void setToggle(bool b, bool invokeEvent=true, bool doAnimation=false)
Set the toggle state programmatically.
bool isToggle()
Returns current toggle state.
Definition CUISwitch.h:123
void setHandleColor(const SColor &on, const SColor &off)
Set colors used for the handle in on/off states.
Definition CUISwitch.h:133
Class representing a 32 bit ARGB color.
Definition SColor.h:285
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
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition vector3d.h:445