class GUIFlexibleSpace

Inherits: GUIElement

GUI element that may be inserted into layouts to make a space of a flexible size.

The space will expand only if there is room and other elements are not squished because of it. If multiple flexible spaces are in a layout, their sizes will be shared equally.

Public

Constructors

GUIFlexibleSpace

GUIFlexibleSpace()

Methods

~GUIFlexibleSpace

~GUIFlexibleSpace() noexcept override = default

staticCreate

static GUIFlexibleSpace *Create()

Creates a new flexible space GUI element.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Internal

Methods

CalculateUnconstrainedOptimalSize

GUILogicalSize CalculateUnconstrainedOptimalSize() const override

Calculates the optimal size for the GUI element, ignoring size constraints.

CalculateConstrainedSizeRange

GUIConstrainedSizeRange CalculateConstrainedSizeRange() const override

Calculates element size based on its optimal size constrained by its size constraint options.