Meta_ScrollingStack
Module: Metanodes / Definitions
A ScrollingStack is a stack that adds scrollbars if its contents are larger than its size. It renders its contents to a texture like Meta_BufferedStack.
#include <meta_gui.hpp>
Public Types
Type | Name |
---|---|
enum | IDX { Idx_Enabled, Idx_Position, Idx_SizingMode, Idx_MinimumSize, Idx_MaximumSize, Idx_Direction, Idx_HAlign, Idx_VAlign, Idx_Gap, Idx_Style, Idx_Resolution, Idx_MipmapEnabled, Idx_ScrollDirection, Idx_Resizable } Property index. |
enum | ScrollDirection { NONE = 0, SCROLLDIRECTION_HORIZONTAL = 1, SCROLLDIRECTION_VERTICAL = 2, SCROLLDIRECTION_BOTH = 3 } Values for Idx_ScrollDirection. |
Public Types Documentation
enum IDX
Enumerator | Value | Description |
---|---|---|
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_MinimumSize | vec2f - Size of the panel, when SizingMode==Fixed | |
Idx_MaximumSize | vec2f - Maximum size when not in 'fixed' sizing mode; zero indicates no limit | |
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_Style | link - Style to apply to the stack (Meta_ScrollingStackStyle) | |
Idx_Resolution | float Specifies the resolution of the frame buffer object used to render this stack | |
Idx_MipmapEnabled | bool When enabled, generates mipmaps to improve quality when rendering at smaller sizes | |
Idx_ScrollDirection | ScrollDirection (int) - Which direction(s) to scroll in | |
Idx_Resizable | bool Whether the stack is resizable using the cursor |
Property index.
enum ScrollDirection
Enumerator | Value | Description |
---|---|---|
NONE | 0 | No scroll bars (Symbols - C: "ScrollNone" , Lua: __ScrollingStack_ScrollNone ) |
SCROLLDIRECTION_HORIZONTAL | 1 | Horizontal scroll bar (Symbols - C: "ScrollHorizontal" , Lua: __ScrollingStack_ScrollHorizontal ) |
SCROLLDIRECTION_VERTICAL | 2 | Vertical scroll bar (Symbols - C: "ScrollVertical" , Lua: __ScrollingStack_ScrollVertical ) |
SCROLLDIRECTION_BOTH | 3 | Horizontal and Vertical scroll bars (Symbols - C: "ScrollBoth" , Lua: __ScrollingStack_ScrollBoth ) |
Values for Idx_ScrollDirection.