class GUIOption

Controls GUI element layout options, possibly by overriding the default options specified in GUI element style.

These options control GUI element placement and size in a GUI layout.

Public

Constructors

GUIOption

GUIOption() = default

Methods

staticPosition

static GUIOption Position(GUILogicalUnit x, GUILogicalUnit y)

Constructs a GUI option notifying the GUI layout that this element should be positioned at this offset from the parent GUI panel.

This option is ignored if element is part of a layout since it controls its placement.

staticFixedWidth

static GUIOption FixedWidth(GUILogicalUnit value)

Constructs a GUI option notifying the GUI layout that this element has a fixed width.

This will override the width property set in element style.

staticFlexibleWidth

static GUIOption FlexibleWidth(GUILogicalUnit minimum = 0, GUILogicalUnit maximum = 0)

Constructs a GUI option notifying the GUI layout that this element has a flexible width with optional min/max constraints (value of 0 means no constraint).

This will override the width property set in element style.

staticExpandingWidth

static GUIOption ExpandingWidth(GUILogicalUnit minimum = 0, GUILogicalUnit maximum = 0)

Same as FlexibleWidth, but the width will attempt to expand to the maximum available space, rather than using the optimal width.

staticFixedHeight

static GUIOption FixedHeight(GUILogicalUnit value)

Constructs a GUI option notifying the GUI layout that this element has a fixed height.

This will override the height property set in element style.

staticFlexibleHeight

static GUIOption FlexibleHeight(GUILogicalUnit minimum = 0, GUILogicalUnit maximum = 0)

Constructs a GUI option notifying the GUI layout that this element has a flexible height with optional min/max constraints (value of 0 means no constraint).

This will override the height property set in element style.

staticExpandingHeight

static GUIOption ExpandingHeight(GUILogicalUnit minimum = 0, GUILogicalUnit maximum = 0)

Same as FlexibleHeight, but the height will attempt to expand to the maximum available space, rather than using the optimal height.

Private

Fields

mMinimum

GUILogicalUnit mMinimum

mMaximum

GUILogicalUnit mMaximum

mType