class TGUIConstructionMethods

template<class GUIElementType, class ContentType>

Provides all needed permutations of static Create methods used for creating a GUI element.

Note must have a constructor of signature(PrivatelyConstruct, const ContentType

&

, const String

&

, const GUISizeConstraints

&

).

Public

Methods

staticCreate

static GUIElementType *Create(const ContentType &contents, const String &styleClass, const TInlineArray<GUIOption, 4> &options)

Creates a new GUI element.

contents
Structure describing the contents of the GUI element to create.
styleClass
Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
options
Additional options that control GUI element size and position. This will override options set in the style sheet.

staticCreate

static GUIElementType *Create(const ContentType &contents, const String &styleClass)

Creates a new GUI element.

contents
Structure describing the contents of the GUI element to create.
styleClass
Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.

staticCreate

static GUIElementType *Create(const ContentType &contents, const TInlineArray<GUIOption, 4> &options)

Creates a new GUI element.

contents
Structure describing the contents of the GUI element to create.
options
Additional options that control GUI element size and position. This will override options set in the style sheet.

staticCreate

static GUIElementType *Create(const ContentType &contents)

Creates a new GUI element.

contents
Structure describing the contents of the GUI element to create.

staticCreate

static GUIElementType *Create(const String &styleClass, const TInlineArray<GUIOption, 4> &options)

Creates a new GUI element.

styleClass
Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
options
Additional options that control GUI element size and position. This will override options set in the style sheet.

staticCreate

static GUIElementType *Create(const String &styleClass)

Creates a new GUI element.

styleClass
Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.

staticCreate

static GUIElementType *Create(const TInlineArray<GUIOption, 4> &options)

Creates a new GUI element.

options
Additional options that control GUI element size and position. This will override options set in the style sheet.

staticCreate

static GUIElementType *Create()

Creates a new GUI element.