Meta_Slider
Module: Metanodes / Definitions
A Slider is a GUI control that can be moved with a cursor by clicking the handle and dragging it.
#include <meta_gui.hpp>
Public Types
| Type | Name |
|---|---|
| enum | IDX { Idx_Enabled, Idx_Position, Idx_Size, Idx_Style, Idx_HandleStyle, Idx_Type, Idx_Minimum, Idx_Maximum, Idx_Length, Idx_Step, Idx_Value, Idx_HandleOffset, Idx_ToolTip, Idx_ToolTipStyle } Property index. |
| enum | SliderType { SLIDERTYPE_HORIZONTAL, SLIDERTYPE_VERTICAL } Values for Idx_Type. |
Public Types Documentation
enum IDX
| Enumerator | Value | Description |
|---|---|---|
| Idx_Enabled | bool - When enabled, this panel and its children are drawn | |
| Idx_Position | vec3f - Position of the panel relative to its parent | |
| Idx_Size | ||
| Idx_Style | link - Style to apply to the bar (Meta_ColouredPanelStyle, Meta_TexturedPanelStyle, Meta_GradientPanelStyle) | |
| Idx_HandleStyle | link - Style to apply to the handle (Meta_ColouredPanelStyle, Meta_TexturedPanelStyle, Meta_GradientPanelStyle) | |
| Idx_Type | SliderType (int) - Horizontal or Vertical | |
| Idx_Minimum | float - Minimum value represented by the slider | |
| Idx_Maximum | float - Maximum value represented by the slider | |
| Idx_Length | float - Length of the slider bar | |
| Idx_Step | float - Step size, or zero for continuous values | |
| Idx_Value | float - Current value of the slider (location of the handle along the bar) | |
| Idx_HandleOffset | vec2f - Offset the handle visual | |
| Idx_ToolTip | string - Text to display on hover | |
| Idx_ToolTipStyle |
Property index.
enum SliderType
| Enumerator | Value | Description |
|---|---|---|
| SLIDERTYPE_HORIZONTAL | Symbols - C: "Horiztonal", Lua: __Slider_Horiztonal | |
| SLIDERTYPE_VERTICAL | Symbols - C: "Vertical", Lua: __Slider_Vertical |
Values for Idx_Type.