GUICheckBox Class Reference

#include <glwx.h>

Inheritance diagram for GUICheckBox:

Inheritance graph
[legend]
Collaboration diagram for GUICheckBox:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 757 of file glwx.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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 (  ) 

Definition at line 64 of file GUICheckBox.cpp.

References alphaMark.

void GUICheckBox::setMinAlphaMark ( float  mark  ) 

Definition at line 49 of file GUICheckBox.cpp.

References minAlphaMark.

Referenced by GUICheckBox().

float GUICheckBox::getMinAlphaMark (  ) 

Definition at line 54 of file GUICheckBox.cpp.

References minAlphaMark.

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  ) 

Definition at line 80 of file GUICheckBox.cpp.

Referenced by GUICheckBox(), and loadXMLSettings().

void GUICheckBox::setBGColor ( float  x,
float  y,
float  z 
)

Definition at line 85 of file GUICheckBox.cpp.

References bgColor.

const Tuple3f & GUICheckBox::getBGColor (  ) 

Definition at line 92 of file GUICheckBox.cpp.

References bgColor.

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.


Member Data Documentation

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]

Definition at line 782 of file glwx.h.

Referenced by getAlphaMark(), render(), and setAlphaMark().

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().


The documentation for this class was generated from the following files:
Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3