#include <GLWSlider.h>

Public Member Functions | |
| GLWSlider (float x=0.0f, float y=0.0f, float w=0.0f, float min=0.0f, float max=100.0f, int marks=10) | |
| virtual | ~GLWSlider () |
| void | setHandler (GLWSliderI *handler) |
| float | getCurrent () |
| void | setCurrent (float current) |
| virtual void | draw () |
| virtual void | mouseDown (int button, float x, float y, bool &skipRest) |
| virtual void | mouseUp (int button, float x, float y, bool &skipRest) |
| virtual void | mouseDrag (int button, float mx, float my, float x, float y, bool &skipRest) |
| REGISTER_CLASS_HEADER (GLWSlider) | |
Protected Attributes | |
| GLWSliderI * | handler_ |
| float | current_ |
| float | min_ |
| float | max_ |
| int | marks_ |
Definition at line 32 of file GLWSlider.h.
| GLWSlider::GLWSlider | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| float | w = 0.0f, |
|||
| float | min = 0.0f, |
|||
| float | max = 100.0f, |
|||
| int | marks = 10 | |||
| ) |
| GLWSlider::~GLWSlider | ( | ) | [virtual] |
Definition at line 43 of file GLWSlider.cpp.
| void GLWSlider::setHandler | ( | GLWSliderI * | handler | ) | [inline] |
| float GLWSlider::getCurrent | ( | ) | [inline] |
Definition at line 41 of file GLWSlider.h.
References current_.
Referenced by SoundDialog::buttonDown().
| void GLWSlider::setCurrent | ( | float | current | ) |
Definition at line 80 of file GLWSlider.cpp.
References current_, GLWSliderI::currentChanged(), GLWidget::getId(), and handler_.
Referenced by SoundDialog::display(), GLWSlider(), and mouseDown().
| void GLWSlider::draw | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 48 of file GLWSlider.cpp.
References current_, GLWidget::drawBox(), GL_LINE_LOOP, GL_LINES, GL_QUADS, glBegin(), glColor3f(), glEnd(), glVertex2f(), marks_, max_, min_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWSlider::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 86 of file GLWSlider.cpp.
References GLWidget::h_, GLWidget::inBox(), max_, min_, setCurrent(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.
Referenced by mouseDrag().
| void GLWSlider::mouseUp | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
| void GLWSlider::mouseDrag | ( | int | button, | |
| float | mx, | |||
| float | my, | |||
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
| GLWSlider::REGISTER_CLASS_HEADER | ( | GLWSlider | ) |
GLWSliderI* GLWSlider::handler_ [protected] |
float GLWSlider::current_ [protected] |
float GLWSlider::min_ [protected] |
float GLWSlider::max_ [protected] |
int GLWSlider::marks_ [protected] |
1.5.3