Meta_Stack

A Stack is a container that provides layout controls for its child objects.

Public Types


Values for Idx_Direction.

DIRECTION_LEFTTORIGHT

Lay out children from left to right (Symbols - C: "LeftToRight", Lua: __Stack_LeftToRight)

DIRECTION_RIGHTTOLEFT

Lay out children from right to left (Symbols - C: "RightToLeft", Lua: __Stack_RightToLeft)

DIRECTION_TOPTOBOTTOM

Lay out children from top to bottom (Symbols - C: "TopToBottom", Lua: __Stack_TopToBottom)

DIRECTION_BOTTOMTOTOP

Lay out children from bottom to top (Symbols - C: "BottomToTop", Lua: __Stack_BottomToTop)


enum HAlign

Values for Idx_HAlign.

HALIGN_LEFT

Align left (Symbols - C: "AlignLeft", Lua: __Stack_AlignLeft)

HALIGN_CENTRE

Align centred (Symbols - C: "AlignCentre", Lua: __Stack_AlignCentre)

HALIGN_RIGHT

Align right (Symbols - C: "AlignRight", Lua: __Stack_AlignRight)

HALIGN_FULLWIDTH

Align / stretch children to fit the fill width (Symbols - C: "AlignFullWidth", Lua: __Stack_AlignFullWidth)


enum IDX

Property index.

Idx_Enabled

bool - When enabled, draws itself and its children

Idx_Position

vec3f - Position of the panel relative to its parent

Idx_SizingMode

SizingMode (int) - How the panel sizes itself in respect to its contents

Idx_Size

vec2f - Size of the panel, when SizingMode==Fixed

Idx_Direction

Direction (int) - The direction to stack the child objects

Idx_HAlign

HAlign (int) - How to align the objects horizontally

Idx_VAlign

VAlign (int) - How to align the objects vertically

Idx_Gap

float - Specifies the gap size between objects (padding)

Idx_ContentZPosition

float - Specifies the Z position (depth) of the contents relative to the stack background

Idx_Style

link - A Panel style (Meta_ColouredPanelStyle, Meta_GradientPanelStyle, Meta_TexturedPanelStyle)

Idx_Popup

bool - Specifies that this stack is a popup

Idx_PopupOwner

link - Internal - Specifies the user that owns this stack (if it is a popup)

Idx_DisableAnimation

bool - When enabled, layout changes are applied instantly instead of animating to their new position


enum VAlign

Values for Idx_VAlign.

VALIGN_TOP

Align top (Symbols - C: "AlignTop", Lua: __Stack_AlignTop)

VALIGN_MIDDLE

Align middle (Symbols - C: "AlignMiddle", Lua: __Stack_AlignMiddle)

VALIGN_BOTTOM

Align bottom (Symbols - C: "AlignBottom", Lua: __Stack_AlignBottom)

VALIGN_FULLHEIGHT

Align / stretch children to fit the full height (Symbols - C: "AlignFullHeight", Lua: __Stack_AlignFullHeight)

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API