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()

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.

Protected

Fields

mSize

GUILogicalUnit mSize