#include <GLWScrollPanel.h>

Public Member Functions | |
| GLWScrollPanel (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f) | |
| virtual | ~GLWScrollPanel () |
| virtual void | draw () |
| virtual void | simulate (float frameTime) |
| 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) |
| virtual void | mouseWheel (float x, float y, float z, bool &skipRest) |
| virtual void | positionChange (unsigned int id, int current, int movement) |
| virtual void | clear () |
| virtual void | setH (float h) |
| void | calculateVisible () |
| bool & | getDrawScrollBar () |
| GLWScrollW & | getScrollBar () |
| REGISTER_CLASS_HEADER (GLWScrollPanel) | |
Protected Attributes | |
| GLWScrollW | scrollW_ |
| bool | drawScrollBar_ |
| int | maxSee_ |
| float | widgetHeight_ |
Definition at line 27 of file GLWScrollPanel.h.
| GLWScrollPanel::GLWScrollPanel | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| float | w = 0.0f, |
|||
| float | h = 0.0f | |||
| ) |
Definition at line 28 of file GLWScrollPanel.cpp.
References scrollW_, and GLWScrollW::setHandler().
| GLWScrollPanel::~GLWScrollPanel | ( | ) | [virtual] |
Definition at line 35 of file GLWScrollPanel.cpp.
| void GLWScrollPanel::draw | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Reimplemented in GLWTab.
Definition at line 90 of file GLWScrollPanel.cpp.
References calculateVisible(), GLState::DEPTH_OFF, GLWScrollW::draw(), GLWidget::draw(), drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), glPopMatrix(), glPushMatrix(), glTranslatef(), GLWidget::h_, scrollW_, GLState::TEXTURE_OFF, GLWidget::x_, and GLWidget::y_.
Referenced by GLWTab::drawSurround().
| void GLWScrollPanel::simulate | ( | float | frameTime | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 47 of file GLWScrollPanel.cpp.
References scrollW_, and GLWScrollW::simulate().
| void GLWScrollPanel::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWPanel.
Reimplemented in GLWTab.
Definition at line 151 of file GLWScrollPanel.cpp.
References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, GLWidget::mouseDown(), GLWScrollW::mouseDown(), scrollW_, GLWidget::x_, and GLWidget::y_.
Referenced by GLWTab::mouseDown().
| void GLWScrollPanel::mouseUp | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 120 of file GLWScrollPanel.cpp.
References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, GLWidget::mouseUp(), GLWScrollW::mouseUp(), scrollW_, GLWidget::x_, and GLWidget::y_.
| void GLWScrollPanel::mouseDrag | ( | int | button, | |
| float | mx, | |||
| float | my, | |||
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 182 of file GLWScrollPanel.cpp.
References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, GLWidget::mouseDrag(), GLWScrollW::mouseDrag(), scrollW_, GLWidget::x_, and GLWidget::y_.
| void GLWScrollPanel::mouseWheel | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWPanel.
Reimplemented in GLWTab.
Definition at line 213 of file GLWScrollPanel.cpp.
References drawScrollBar_, GLWScrollW::getCurrent(), GLWidget::h_, GLWidget::inBox(), GLWPanel::mouseWheel(), scrollW_, GLWScrollW::setCurrent(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.
Referenced by GLWTab::mouseWheel().
| void GLWScrollPanel::positionChange | ( | unsigned int | id, | |
| int | current, | |||
| int | movement | |||
| ) | [virtual] |
Implements GLWScrollWI.
Definition at line 231 of file GLWScrollPanel.cpp.
References GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::setY(), and widgetHeight_.
| void GLWScrollPanel::clear | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 246 of file GLWScrollPanel.cpp.
References GLWPanel::clear(), scrollW_, and GLWScrollW::setCurrent().
Referenced by InventoryDialog::addPlayerWeapons(), and BuyAccessoryDialog::addPlayerWeapons().
| void GLWScrollPanel::setH | ( | float | h | ) | [virtual] |
Reimplemented from GLWidget.
Reimplemented in GLWTab.
Definition at line 40 of file GLWScrollPanel.cpp.
References GLWidget::h_, scrollW_, GLWScrollW::setH(), and GLWidget::setH().
Referenced by GLWTab::setH().
| void GLWScrollPanel::calculateVisible | ( | ) |
Definition at line 52 of file GLWScrollPanel.cpp.
References drawScrollBar_, GLWidget::getH(), GLWPanel::getWidgets(), GLWidget::getY(), GLWidget::h_, maxSee_, scrollW_, GLWScrollW::setMax(), GLWScrollW::setSee(), and widgetHeight_.
Referenced by draw(), and BuyAccessoryDialog::stateChange().
| bool& GLWScrollPanel::getDrawScrollBar | ( | ) | [inline] |
| GLWScrollW& GLWScrollPanel::getScrollBar | ( | ) | [inline] |
Definition at line 49 of file GLWScrollPanel.h.
References scrollW_.
Referenced by BuyAccessoryDialog::playerRefreshKeepPos().
| GLWScrollPanel::REGISTER_CLASS_HEADER | ( | GLWScrollPanel | ) |
GLWScrollW GLWScrollPanel::scrollW_ [protected] |
Definition at line 53 of file GLWScrollPanel.h.
Referenced by calculateVisible(), clear(), draw(), getScrollBar(), GLWScrollPanel(), mouseDown(), mouseDrag(), mouseUp(), mouseWheel(), setH(), and simulate().
bool GLWScrollPanel::drawScrollBar_ [protected] |
Definition at line 54 of file GLWScrollPanel.h.
Referenced by calculateVisible(), draw(), getDrawScrollBar(), mouseDown(), mouseDrag(), mouseUp(), and mouseWheel().
int GLWScrollPanel::maxSee_ [protected] |
float GLWScrollPanel::widgetHeight_ [protected] |
Definition at line 56 of file GLWScrollPanel.h.
Referenced by calculateVisible(), and positionChange().
1.5.3