#include <GLWCheckBox.h>

Public Member Functions | |
| GLWCheckBox (float x=0.0f, float y=0.0f, bool startState=true) | |
| virtual | ~GLWCheckBox () |
| virtual void | draw () |
| virtual void | mouseDown (int button, float x, float y, bool &skipRest) |
| bool & | getState () |
| void | setState (bool state) |
| void | setHandler (GLWCheckBoxI *handler) |
| REGISTER_CLASS_HEADER (GLWCheckBox) | |
Protected Attributes | |
| bool | state_ |
| GLWCheckBoxI * | handler_ |
Definition at line 34 of file GLWCheckBox.h.
| GLWCheckBox::GLWCheckBox | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| bool | startState = true | |||
| ) |
Definition at line 31 of file GLWCheckBox.cpp.
| GLWCheckBox::~GLWCheckBox | ( | ) | [virtual] |
Definition at line 36 of file GLWCheckBox.cpp.
| void GLWCheckBox::draw | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 45 of file GLWCheckBox.cpp.
References GLWidget::draw(), GLWidget::drawCircle(), GLWidget::drawShadedRoundBox(), GL_LINE_LOOP, GL_TRIANGLE_FAN, glBegin(), glColor3f(), glEnd(), glLineWidth(), glVertex2f(), GLWidget::h_, state_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
Referenced by GLWCheckBoxText::draw(), and SettingsSubSelectDialogListItem::draw().
| void GLWCheckBox::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 65 of file GLWCheckBox.cpp.
References GLWidget::getId(), GLWidget::h_, handler_, GLWidget::mouseDown(), state_, GLWCheckBoxI::stateChange(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.
Referenced by GLWCheckBoxText::mouseDown().
| bool& GLWCheckBox::getState | ( | ) | [inline] |
Definition at line 44 of file GLWCheckBox.h.
References state_.
Referenced by TipDialog::buttonDown(), SoundDialog::buttonDown(), HUDDialog::buttonDown(), SettingsSubSelectDialogListItem::getSelected(), BuyAccessoryDialog::stateChange(), and GLWOptionEntry::updateEntries().
| void GLWCheckBox::setState | ( | bool | state | ) | [inline] |
Definition at line 45 of file GLWCheckBox.h.
References state_.
Referenced by BuyAccessoryDialog::addAccessory(), TipDialog::display(), SoundDialog::display(), HUDDialog::display(), SettingsSubSelectDialogListItem::setSelected(), BuyAccessoryDialog::tabDown(), and GLWOptionEntry::updateControls().
| void GLWCheckBox::setHandler | ( | GLWCheckBoxI * | handler | ) |
Definition at line 40 of file GLWCheckBox.cpp.
References handler_.
Referenced by BuyAccessoryDialog::addAccessory(), and BuyAccessoryDialog::BuyAccessoryDialog().
| GLWCheckBox::REGISTER_CLASS_HEADER | ( | GLWCheckBox | ) |
bool GLWCheckBox::state_ [protected] |
Definition at line 50 of file GLWCheckBox.h.
Referenced by draw(), getState(), mouseDown(), and setState().
GLWCheckBoxI* GLWCheckBox::handler_ [protected] |
1.5.3