Meta_Button

A Button is a clickable GUI object which can trigger actions via Meta_EventHandler children, or a Meta_GUIPropertyLink.

Public Types


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_Text

string - Text to display on the button

Idx_Image

link - Texture to use as an image to display on the button

Idx_Toggle

bool - Specifies whether the button is togglable (in which case Idx_Toggled stores the state)

Idx_ToggledImage

link - Texture to use as an image to display on the button when toggled

Idx_Draggable

bool - Specifies whether the button is dragable

Idx_RadioGroup

link - Meta_ButtonGroup that this button belongs to. Only one button in a group can be in the Toggled state

Idx_Style

link - Style to apply to the button (Meta_ColouredButtonStyle, Meta_TexturedButtonStyle)

Idx_Toggled

bool - Toggled state of the button (if Idx_Toggle is true)

Idx_ToolTip

string - Text that should appear when hovering

Idx_ToolTipStyle

string - Text that should appear when hovering

Idx_Permission

string - Permission that is required for the button to be visible

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API