class
GUIClickable
Base class for a clickable GUI button element.
Public
Methods
Fields
OnDoubleClick
Triggered when button is clicked twice in rapid succession.
Internal
Methods
SetOnInternal
Change the button "on" state.
This state determines whether the button uses normal or "on" fields specified in the GUI style.
IsOnInternal
Retrieves the button "on" state.
This state determines whether the button uses normal or "on" fields specified in the GUI style.
SetStateInternal
Change the internal button state, changing the button look depending on set style.
CalculateUnconstrainedOptimalSize
Calculates the optimal size for the GUI element, ignoring size constraints.
GetRenderElementDepthRange
Returns the range of depths that the child elements can be rendered it.
GetStyleSheetElement
Returns the name of the GUI element type to be used for style lookup in the style sheet.
Protected
Constructors
GUIClickable
Methods
~GUIClickable
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.
GetTooltip
Returns text to display when hovering over the element.
Returns empty string if no tooltip.
NotifyStyleChanged
Method that gets triggered whenever element style changes.