public |
Inheritance Graph
graph BT
Slider
Slider --> Container
click Slider "classGUI_1_1Slider"
click Container "classGUI_1_1Container"
Description
Public Static Attributes
const flag_t | SHOW_VALUE |
const flag_t | SLIDER_BUTTONS |
Protected Attributes
float | rangeLeft |
float | rangeRight |
int | numSteps |
float | stepWidth |
int | markerSize |
float | value |
float * | floatValueRef |
Util::WeakPointer < Component > | sliderMarker |
Util::WeakPointer < Button > | button1 |
Util::WeakPointer < Button > | button2 |
KeyListener | keyListener |
MouseButtonListener | mouseButtonListener |
Public Functions
Slider( GUI_Manager & gui, const Geometry::Rect & r, float left, float right, int steps, flag_t flags) | |
~Slider() | |
void | setRange(float left, float right, int steps) |
void | setValue(float f) |
float | getValue() const |
void | setValueRef(float * valueRef) |
void | updateDataFromPos(const Geometry::Vec2 & p) |
void | updateData(float f) |
float | getStepWidth() const |
void | setMarkerSize(const int newMarkerSize) |
int | getMarkerSize() const |
void | setRelMarkerSize(const float relMarkerSize) |
void | dataUpdated() |
void | doLayout() |
Protected Functions
float | getPosFromValue(float value) const |
float | getValueFromPos(float pos) const |
Documentation
variable
GUI::Slider::SHOW_VALUE
public | static |
const flag_t SHOW_VALUE |
Defined in GUI/Components/Slider.h:27
variable
GUI::Slider::SLIDER_BUTTONS
public | static |
const flag_t SLIDER_BUTTONS |
Defined in GUI/Components/Slider.h:28
variable
GUI::Slider::rangeLeft
protected |
float rangeLeft |
Defined in GUI/Components/Slider.h:66
variable
GUI::Slider::rangeRight
protected |
float rangeRight |
Defined in GUI/Components/Slider.h:67
variable
GUI::Slider::numSteps
protected |
int numSteps |
Defined in GUI/Components/Slider.h:68
variable
GUI::Slider::stepWidth
protected |
float stepWidth |
Defined in GUI/Components/Slider.h:69
variable
GUI::Slider::markerSize
protected |
int markerSize |
Defined in GUI/Components/Slider.h:70
variable
GUI::Slider::value
protected |
float value |
Defined in GUI/Components/Slider.h:72
variable
GUI::Slider::floatValueRef
protected |
float * floatValueRef |
Defined in GUI/Components/Slider.h:73
variable
GUI::Slider::sliderMarker
protected |
Util::WeakPointer < Component > sliderMarker |
Defined in GUI/Components/Slider.h:75
variable
GUI::Slider::button1
protected |
Util::WeakPointer < Button > button1 |
Defined in GUI/Components/Slider.h:76
variable
GUI::Slider::button2
protected |
Util::WeakPointer < Button > button2 |
Defined in GUI/Components/Slider.h:77
variable
GUI::Slider::keyListener
protected |
KeyListener keyListener |
Defined in GUI/Components/Slider.h:79
variable
GUI::Slider::mouseButtonListener
protected |
MouseButtonListener mouseButtonListener |
Defined in GUI/Components/Slider.h:80
function
GUI::Slider::Slider
public |
Slider( | GUI_Manager & | gui, |
const Geometry::Rect & | r, | |
float | left, | |
float | right, | |
int | steps, | |
flag_t | flags | |
) |
Defined in GUI/Components/Slider.h:30
function
GUI::Slider::~Slider
public | virtual |
~Slider( | ) |
Defined in GUI/Components/Slider.h:31
function
GUI::Slider::setRange
public |
void setRange( | float | left, |
float | right, | |
int | steps | |
) |
Defined in GUI/Components/Slider.h:33
function
GUI::Slider::setValue
public |
void setValue( | float | f ) |
Defined in GUI/Components/Slider.h:35
function
GUI::Slider::getValue
public | const |
float getValue( | ) const |
Defined in GUI/Components/Slider.h:36
function
GUI::Slider::setValueRef
public |
void setValueRef( | float * | valueRef ) |
Defined in GUI/Components/Slider.h:38
function
GUI::Slider::updateDataFromPos
public |
void updateDataFromPos( | const Geometry::Vec2 & | p ) |
Defined in GUI/Components/Slider.h:40
function
GUI::Slider::updateData
public |
void updateData( | float | f ) |
Defined in GUI/Components/Slider.h:41
function
GUI::Slider::getStepWidth
public | const | inline |
float getStepWidth( | ) const |
Defined in GUI/Components/Slider.h:42
function
GUI::Slider::setMarkerSize
public | inline |
void setMarkerSize( | const int | newMarkerSize ) |
Defined in GUI/Components/Slider.h:44
function
GUI::Slider::getMarkerSize
public | const | inline |
int getMarkerSize( | ) const |
Defined in GUI/Components/Slider.h:45
function
GUI::Slider::setRelMarkerSize
public |
void setRelMarkerSize( | const float | relMarkerSize ) |
Defined in GUI/Components/Slider.h:46
function
GUI::Slider::dataUpdated
public | virtual |
void dataUpdated( | ) |
Defined in GUI/Components/Slider.h:49
function
GUI::Slider::doLayout
public | virtual |
void doLayout( | ) |
Defined in GUI/Components/Slider.h:52
function
GUI::Slider::getPosFromValue
protected | const | virtual |
float getPosFromValue( | float | value ) const |
Defined in GUI/Components/Slider.h:63
function
GUI::Slider::getValueFromPos
protected | const | virtual |
float getValueFromPos( | float | pos ) const |
Defined in GUI/Components/Slider.h:64