class
GUIToggleable
GUI element representing a toggleable button.
Public
Methods
SetIsToggled
Checks or unchecks the toggle.
IsToggled
Checks is the toggle currently on.
Fields
Internal
Methods
SetToggleGroupInternal
Sets a toggle group of the toggle button.
Toggling one button in a group will automatically untoggle others.
SetCheckmarkPathBuilder
Sets an interface that constructs the vector path used for drawing the GUI element checkmark.
SetIsToggled
Checks or unchecks the toggle, and optionally triggers the OnToggled event.
CalculateUnconstrainedOptimalSize
Calculates the optimal size for the GUI element, ignoring size constraints.
Protected
Constructors
GUIToggleable
Methods
~GUIToggleable
UpdateRenderElements
Recreates the internal render elements.
Must be called before GetRenderElementVertexAndIndexData/FillBuffer if element is dirty. Marks the element as non dirty.
DoOnMouseEvent
Called when a mouse event is received on any GUI element the mouse is interacting with.
Return true if you have processed the event and don't want other elements to process it.
DoOnCommandEvent
Called when a command event is triggered.
Return true if you have processed the event and don't want other elements to process it.
NotifyStyleChanged
Method that gets triggered whenever element style changes.
CalculateCheckmarkContentAreaSize
Calculates the bounds of the content are in which the checkmark will be placed.
- elementOptimalSize
- Unconstrained optimal size for the GUI element. Will be used to derive checkmark area size if explicit size is not provided in the style sheet.