#include <WidgetSliderInput.h>


Public Member Functions | |
| WidgetSliderInput (ElementFormControl *parent) | |
| void | SetValue (float value) |
| float | GetValue () |
| void | SetMinValue (float min_value) |
| void | SetMaxValue (float max_value) |
| void | SetStep (float step) |
| void | FormatElements () |
| Formats the slider's elements. | |
Protected Member Functions | |
| virtual float | OnBarChange (float bar_position) |
| virtual float | OnLineIncrement () |
| virtual float | OnLineDecrement () |
| virtual float | OnPageIncrement (float click_position) |
| virtual float | OnPageDecrement (float click_position) |
| void Rocket::Controls::WidgetSliderInput::SetValue | ( | float | value | ) |
Sets a new value on the slider.
| [in] | value | The new value for the slider. This will be clamped between the min and max values, and set to the nearest increment. |
| float Rocket::Controls::WidgetSliderInput::GetValue | ( | ) |
Returns the current value of the slider.
| void Rocket::Controls::WidgetSliderInput::SetMinValue | ( | float | min_value | ) |
Sets the minimum value of the slider.
| [in] | min_value | The new minimum value of the slider. |
| void Rocket::Controls::WidgetSliderInput::SetMaxValue | ( | float | max_value | ) |
Sets the maximum value of the slider.
| [in] | max_value | The new minimum value of the slider. |
| void Rocket::Controls::WidgetSliderInput::SetStep | ( | float | step | ) |
Sets the slider's value increment.
| [in] | step | The new increment for the slider's value. |
| float Rocket::Controls::WidgetSliderInput::OnBarChange | ( | float | bar_position | ) | [protected, virtual] |
Called when the slider's bar position is set or dragged.
| bar_position[in] | The new position of the bar (0 representing the start of the track, 1 representing the end). |
Implements Rocket::Controls::WidgetSlider.
| float Rocket::Controls::WidgetSliderInput::OnLineIncrement | ( | ) | [protected, virtual] |
Called when the slider is incremented by one 'line', either by the down / right key or a mouse-click on the increment arrow.
Implements Rocket::Controls::WidgetSlider.
| float Rocket::Controls::WidgetSliderInput::OnLineDecrement | ( | ) | [protected, virtual] |
Called when the slider is decremented by one 'line', either by the up / left key or a mouse-click on the decrement arrow.
Implements Rocket::Controls::WidgetSlider.
| float Rocket::Controls::WidgetSliderInput::OnPageIncrement | ( | float | click_position | ) | [protected, virtual] |
Called when the slider is incremented by one 'page', either by the page-up key or a mouse-click on the track below / right of the bar.
Implements Rocket::Controls::WidgetSlider.
| float Rocket::Controls::WidgetSliderInput::OnPageDecrement | ( | float | click_position | ) | [protected, virtual] |
Called when the slider is incremented by one 'page', either by the page-down key or a mouse-click on the track above / left of the bar.
Implements Rocket::Controls::WidgetSlider.