class
GUIFixedSpace
Inherits:
GUIElement
GUI element that may be inserted into layouts in order to make a space of a fixed size.
Public
Constructors
GUIFixedSpace
GUIFixedSpace(GUILogicalUnit size)
Methods
~GUIFixedSpace
~GUIFixedSpace() noexcept override = default
GetSize
GUILogicalUnit GetSize() const
Returns the size of the space in pixels.
SetSize
void SetSize(GUILogicalUnit size)
Changes the size of the space to the specified value, in pixels.
staticCreate
static GUIFixedSpace *Create(GUILogicalUnit size)
Creates a new fixed space GUI element.
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Internal
Methods
CalculateUnconstrainedOptimalSize
GUILogicalSize CalculateUnconstrainedOptimalSize() const override
Calculates the optimal size for the GUI element, ignoring size constraints.
CalculateConstrainedSizeRange
Calculates element size based on its optimal size constrained by its size constraint options.
Protected
Fields
mSize
GUILogicalUnit mSize