#include <GLWTab.h>

Public Member Functions | |
| GLWTab (const std::string &tabName="", const LangString &tabLabel=LangString(), float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f) | |
| virtual | ~GLWTab () |
| virtual void | setParent (GLWPanel *parent) |
| virtual void | mouseDown (int button, float x, float y, bool &skipRest) |
| virtual void | mouseWheel (float x, float y, float z, bool &skipRest) |
| virtual void | draw () |
| virtual void | setH (float h) |
| float | getTw () |
| const char * | getName () |
| void | setDepressed () |
| bool | getDepressed () |
| void | setHandler (GLWTabI *handler) |
| REGISTER_CLASS_HEADER (GLWTab) | |
Protected Member Functions | |
| void | drawSurround () |
| void | drawNonSurround () |
Protected Attributes | |
| std::string | name_ |
| bool | depressed_ |
| GLWLabel | label_ |
| GLWTabI * | handler_ |
| float | index_ |
Definition at line 36 of file GLWTab.h.
| GLWTab::GLWTab | ( | const std::string & | tabName = "", |
|
| const LangString & | tabLabel = LangString(), |
|||
| float | x = 0.0f, |
|||
| float | y = 0.0f, |
|||
| float | w = 0.0f, |
|||
| float | h = 0.0f | |||
| ) |
| GLWTab::~GLWTab | ( | ) | [virtual] |
Definition at line 46 of file GLWTab.cpp.
| void GLWTab::setParent | ( | GLWPanel * | parent | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 106 of file GLWTab.cpp.
References setDepressed(), and GLWidget::setParent().
| void GLWTab::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWScrollPanel.
Definition at line 61 of file GLWTab.cpp.
References depressed_, getTw(), GLWidget::h_, index_, GLWScrollPanel::mouseDown(), setDepressed(), tabHeight, GLWidget::x_, and GLWidget::y_.
| void GLWTab::mouseWheel | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWScrollPanel.
Definition at line 79 of file GLWTab.cpp.
References depressed_, and GLWScrollPanel::mouseWheel().
| void GLWTab::draw | ( | ) | [virtual] |
Reimplemented from GLWScrollPanel.
Definition at line 113 of file GLWTab.cpp.
References depressed_, GLState::DEPTH_OFF, drawNonSurround(), drawSurround(), MetaClass::getMetaClassId(), getTw(), GLWPanel::getWidgets(), index_, label_, GLWidget::parent_, GLWidget::setX(), GLState::TEXTURE_OFF, GLWPanel::GLWPanelEntry::widget, and GLWidget::x_.
| void GLWTab::setH | ( | float | h | ) | [virtual] |
Reimplemented from GLWScrollPanel.
Definition at line 50 of file GLWTab.cpp.
References GLWidget::h_, label_, GLWScrollPanel::setH(), GLWidget::setY(), and GLWidget::y_.
Referenced by BuyAccessoryDialog::draw(), and InventoryDialog::setupWindow().
| float GLWTab::getTw | ( | ) |
Definition at line 56 of file GLWTab.cpp.
References GLWLabel::getW(), label_, and tabSpacing.
Referenced by draw(), drawNonSurround(), drawSurround(), and mouseDown().
| const char* GLWTab::getName | ( | ) | [inline, virtual] |
Reimplemented from GLWidget.
Definition at line 52 of file GLWTab.h.
References name_.
Referenced by BuyAccessoryDialog::display(), BuyAccessoryDialog::playerRefreshKeepPos(), BuyAccessoryDialog::stateChange(), and BuyAccessoryDialog::tabDown().
| void GLWTab::setDepressed | ( | ) |
Definition at line 87 of file GLWTab.cpp.
References depressed_, GLWidget::getId(), MetaClass::getMetaClassId(), GLWPanel::getWidgets(), handler_, GLWidget::parent_, GLWTabI::tabDown(), and GLWPanel::GLWPanelEntry::widget.
Referenced by RulesDialog::addMOTD(), AdminDialog::AdminDialog(), SettingsSubSelectDialog::display(), BuyAccessoryDialog::display(), mouseDown(), and setParent().
| bool GLWTab::getDepressed | ( | ) | [inline] |
Definition at line 55 of file GLWTab.h.
References depressed_.
Referenced by RulesDialog::draw(), BuyAccessoryDialog::stateChange(), and BuyAccessoryDialog::tabDown().
| void GLWTab::setHandler | ( | GLWTabI * | handler | ) | [inline] |
Definition at line 56 of file GLWTab.h.
References handler_.
Referenced by BuyAccessoryDialog::addTabs().
| GLWTab::REGISTER_CLASS_HEADER | ( | GLWTab | ) |
| void GLWTab::drawSurround | ( | ) | [protected] |
Definition at line 160 of file GLWTab.cpp.
References GLWLabel::draw(), GLWScrollPanel::draw(), GLWidget::drawCircle(), getTw(), GL_LINE_STRIP, glBegin(), glColor3f(), glEnd(), glVertex2f(), GLWidget::h_, index_, label_, tabHeight, tabRoundSize, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
Referenced by draw().
| void GLWTab::drawNonSurround | ( | ) | [protected] |
Definition at line 140 of file GLWTab.cpp.
References GLWLabel::draw(), GLWidget::drawCircle(), getTw(), GL_LINE_STRIP, glBegin(), glColor3f(), glEnd(), glVertex2f(), GLWidget::h_, index_, label_, tabHeight, tabRoundSize, GLWidget::x_, and GLWidget::y_.
Referenced by draw().
std::string GLWTab::name_ [protected] |
bool GLWTab::depressed_ [protected] |
Reimplemented from GLWPanel.
Definition at line 62 of file GLWTab.h.
Referenced by draw(), getDepressed(), mouseDown(), mouseWheel(), and setDepressed().
GLWLabel GLWTab::label_ [protected] |
Definition at line 63 of file GLWTab.h.
Referenced by draw(), drawNonSurround(), drawSurround(), getTw(), GLWTab(), and setH().
GLWTabI* GLWTab::handler_ [protected] |
float GLWTab::index_ [protected] |
Definition at line 65 of file GLWTab.h.
Referenced by draw(), drawNonSurround(), drawSurround(), and mouseDown().
1.5.3