#include <glwx.h>


Public Member Functions | |
| GUICheckBox (const std::string &callback="") | |
| virtual void | render (float clockTick) |
| virtual void | checkMouseEvents (MouseEvent &evt, int extraInfo, bool reservedBits=false) |
| virtual bool | loadXMLSettings (const TiXmlElement *node) |
| virtual void | setChecked (bool enabled) |
| void | setAlphaMark (float mark) |
| float | getAlphaMark () |
| void | setMinAlphaMark (float mark) |
| float | getMinAlphaMark () |
| bool | isChecked () |
| void | setBGColor (const Tuple3f &color) |
| void | setBGColor (float x, float y, float z) |
| const Tuple3f & | getBGColor () |
| virtual const Tuple4i & | getWindowBounds () |
Protected Attributes | |
| Tuple3f | bgColor |
| float | markRatio |
| float | alphaMark |
| float | minAlphaMark |
| bool | checked |
| int | extra |
| int | markOffset |
| int | primaryTexDesc |
| int | secondaryTexDesc |
Definition at line 757 of file glwx.h.
| GUICheckBox::GUICheckBox | ( | const std::string & | callback = "" |
) |
Definition at line 3 of file GUICheckBox.cpp.
References extra, markOffset, markRatio, primaryTexDesc, secondaryTexDesc, setAlphaMark(), setBGColor(), setChecked(), GUIRectangle::setDimensions(), setMinAlphaMark(), GUIRectangle::widgetType, WT_CHECK_BOX, and WT_CHECK_BOX_MARK.
| void GUICheckBox::render | ( | float | clockTick | ) | [virtual] |
Implements GUIAlphaElement.
Definition at line 97 of file GUICheckBox.cpp.
References GUIAlphaElement::alphaFadeScale, alphaMark, checked, GUIAlphaElement::color, GUIRectangle::disableGUITexture(), GUIRectangle::enableGUITexture(), extra, GUIRectangle::getCenter(), GUITexCoordDescriptor::getTexCoords(), GUIRectangle::getTexCoordsInfo(), GUIAlphaElement::label, markOffset, minAlphaMark, GUIAlphaElement::modifyCurrentAlpha(), GUIRectangle::parent, primaryTexDesc, GUIText::printCenteredY(), secondaryTexDesc, setAlphaMark(), GUIRectangle::visible, and GUIRectangle::windowBounds.
| void GUICheckBox::checkMouseEvents | ( | MouseEvent & | evt, | |
| int | extraInfo, | |||
| bool | reservedBits = false | |||
| ) | [virtual] |
Reimplemented from GUIRectangle.
Reimplemented in GUIRadioButton.
Definition at line 203 of file GUICheckBox.cpp.
References GUIEventListener::actionPerformed(), checked, GUIRectangle::checkMouseEvents(), GUIRectangle::clicked, GUIRectangle::getEventsListener(), GUIRectangle::released, and setChecked().
| bool GUICheckBox::loadXMLSettings | ( | const TiXmlElement * | node | ) | [virtual] |
Reimplemented from GUIAlphaElement.
Definition at line 19 of file GUICheckBox.cpp.
References bgColor, GUIAlphaElement::loadXMLSettings(), setBGColor(), setChecked(), GUIRectangle::widgetType, Logger::writeErrorLog(), WT_CHECK_BOX, and WT_RADIO_BUTTON.
Referenced by GUIPanel::loadXMLSettings().
| void GUICheckBox::setChecked | ( | bool | enabled | ) | [virtual] |
Definition at line 69 of file GUICheckBox.cpp.
References GUIRectangle::active, and checked.
Referenced by GUIRadioButton::checkMouseEvents(), checkMouseEvents(), GUICheckBox(), loadXMLSettings(), and GUIPanel::notify().
| void GUICheckBox::setAlphaMark | ( | float | mark | ) |
Definition at line 59 of file GUICheckBox.cpp.
References alphaMark, and minAlphaMark.
Referenced by GUICheckBox(), and render().
| float GUICheckBox::getAlphaMark | ( | ) |
| void GUICheckBox::setMinAlphaMark | ( | float | mark | ) |
Definition at line 49 of file GUICheckBox.cpp.
References minAlphaMark.
Referenced by GUICheckBox().
| float GUICheckBox::getMinAlphaMark | ( | ) |
| bool GUICheckBox::isChecked | ( | ) |
Definition at line 75 of file GUICheckBox.cpp.
References checked.
Referenced by DemoEventHandler::actionPerformed(), and GUIPanel::loadXMLSettings().
| void GUICheckBox::setBGColor | ( | const Tuple3f & | color | ) |
| void GUICheckBox::setBGColor | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
| const Tuple3f & GUICheckBox::getBGColor | ( | ) |
| const Tuple4i & GUICheckBox::getWindowBounds | ( | ) | [virtual] |
Reimplemented from GUIRectangle.
Definition at line 190 of file GUICheckBox.cpp.
References GUIText::computeDimensions(), GUIRectangle::computeWindowBounds(), GUIRectangle::dimensions, extra, GUIText::getHeight(), GUIText::getWidth(), GUIAlphaElement::label, markOffset, markRatio, GUIRectangle::parent, GUIRectangle::update, and GUIRectangle::windowBounds.
Tuple3f GUICheckBox::bgColor [protected] |
Definition at line 781 of file glwx.h.
Referenced by getBGColor(), loadXMLSettings(), and setBGColor().
float GUICheckBox::markRatio [protected] |
Definition at line 782 of file glwx.h.
Referenced by getWindowBounds(), GUICheckBox(), and GUIRadioButton::GUIRadioButton().
float GUICheckBox::alphaMark [protected] |
float GUICheckBox::minAlphaMark [protected] |
Definition at line 782 of file glwx.h.
Referenced by getMinAlphaMark(), render(), setAlphaMark(), and setMinAlphaMark().
bool GUICheckBox::checked [protected] |
Definition at line 785 of file glwx.h.
Referenced by GUIRadioButton::checkMouseEvents(), checkMouseEvents(), isChecked(), render(), and setChecked().
int GUICheckBox::extra [protected] |
Definition at line 786 of file glwx.h.
Referenced by getWindowBounds(), GUICheckBox(), and render().
int GUICheckBox::markOffset [protected] |
Definition at line 786 of file glwx.h.
Referenced by getWindowBounds(), GUICheckBox(), and render().
int GUICheckBox::primaryTexDesc [protected] |
Definition at line 786 of file glwx.h.
Referenced by GUICheckBox(), GUIRadioButton::GUIRadioButton(), and render().
int GUICheckBox::secondaryTexDesc [protected] |
Definition at line 786 of file glwx.h.
Referenced by GUICheckBox(), GUIRadioButton::GUIRadioButton(), and render().
1.5.3