class
GUIElementContainer
Inherits:
GUIInteractable
Base for GUI elements that combine multiple GUI elements into one more complex element.
Public
Methods
~GUIElementContainer
virtual ~GUIElementContainer() noexcept = default
SetFocus
void SetFocus(bool enabled, bool clear = false)
GetStyleSheetElement
const char *GetStyleSheetElement() const override
Returns the name of the GUI element type to be used for style lookup in the style sheet.
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Protected
Constructors
GUIElementContainer
GUIElementContainer(const GUISizeConstraints &dimensions, const char *style, GUIElementOptions options = GUIElementOptions(0))
GUIElementContainer
GUIElementContainer(const GUISizeConstraints &dimensions, const String &style = StringUtility::kBlank, GUIElementOptions options = GUIElementOptions(0))
Methods
CalculateUnconstrainedOptimalSize
GUILogicalSize CalculateUnconstrainedOptimalSize() const override
Calculates the optimal size for the GUI element, ignoring size constraints.
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.
Fields
mFocusElement
GUIInteractable * mFocusElement