Skip to main content

Meta_RolloutStack

Module: Metanodes / Definitions

A [Meta_RolloutStack is a [Meta_Stack with a button that rolls/unrolls the stack contents. More...

#include <meta_gui.hpp>

Public Types​

TypeName
enumIDX { Idx_Enabled, Idx_Position, Idx_SizingMode, Idx_Size, Idx_Direction, Idx_HAlign, Idx_VAlign, Idx_Gap, Idx_Style, Idx_Title, Idx_Image, Idx_ImageSize, Idx_HeaderButtonStyle, Idx_RolledOut }
Property index.

Detailed Description​

struct Meta_RolloutStack;

A Meta_RolloutStack is a Meta_Stack with a button that rolls/unrolls the stack contents.

Note: If a rollout stack contains a stack, the child stack must have its Popup property set to true, otherwise the stack will not respect the RolledOut property of the rollout stack at load time.

Public Types Documentation​

enum IDX​

EnumeratorValueDescription
Idx_Enabledbool - When enabled, draws itself and its children
Idx_Positionvec3f - Position of the panel relative to its parent
Idx_SizingModeSizingMode (int) - How the panel sizes itself in respect to its contents
Idx_Sizevec2f - Size of the panel, when SizingMode==Fixed
Idx_DirectionDirection (int) - The direction to stack the child objects
Idx_HAlignHAlign (int) - How to align the objects horizontally
Idx_VAlignVAlign (int) - How to align the objects vertically
Idx_Gapfloat - Specifies the gap size between objects (padding)
Idx_Stylelink - A Panel style (Meta_ColouredPanelStyle, Meta_GradientPanelStyle, Meta_TexturedPanelStyle)
Idx_Titlestring - The text to display on the rollout button
Idx_Imagelink - Link to an image (e.g. Meta_Texture) to display on the title bar
Idx_ImageSizefloat - Scalar applied to the image to size it
Idx_HeaderButtonStylelink - Style to apply to the button (Meta_ColouredButtonStyle, Meta_TexturedButtonStyle)
Idx_RolledOutbool - Whether the stack is initially rolled out

Property index.