class
GUISlider
A slider with a draggable handle that can be vertical or horizontal.
Public
Methods
SetHandlePositionInPercent
Current position of the slider handle, in percent ranging [0.0f, 1.0f].
GetHandlePositionInPercent
SetHandlePositionInRange
Current position of the slider handle, scaled within the current minimum and maximum range, rounded up to nearest step increment.
If no range is provided, the range is [0, 1].
GetHandlePositionInRange
SetRange
Sets a minimum and maximum allow values in the input field.
Set to large negative/positive values if you don't require clamping.
GetRangeMinimum
Returns the minimum value of the slider
GetRangeMaximum
Returns the maximum value of the slider
SetStep
Step that defines the minimal increment the value can be increased/decreased by.
Set to zero to have no step.
GetStep
Fields
Internal
Methods
GetStyleSheetElement
Returns the name of the GUI element type to be used for style lookup in the style sheet.
CalculateUnconstrainedOptimalSize
Calculates the optimal size for the GUI element, ignoring size constraints.
Protected
Constructors
GUISlider
Methods
~GUISlider
UpdateLayoutForChildren
Calculates sizes and relative positions for all child elements.
Should be preceded with a call to UpdateOptimalLayoutSizes().
OnHandleMoved
Triggered when the slider handles moves.
DoOnCommandEvent
Called when a command event is triggered.
Return true if you have processed the event and don't want other elements to process it.