GUIButton Class Reference

#include <glwx.h>

Inheritance diagram for GUIButton:

Inheritance graph
[legend]
Collaboration diagram for GUIButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GUIButton (const std::string &callback="")
virtual void render (float clockTick)
virtual bool loadXMLSettings (const TiXmlElement *node)
virtual const void computeWindowBounds ()
void enableBounce (bool bounce)
bool bounceEnabled ()

Private Attributes

bool bounce


Detailed Description

Definition at line 735 of file glwx.h.


Constructor & Destructor Documentation

GUIButton::GUIButton ( const std::string &  callback = ""  ) 

Definition at line 3 of file GUIButton.cpp.

References bounce, GUIClippedRectangle::drawBackground, GUIClippedRectangle::drawBounds, GUIClippedRectangle::setBordersColor(), GUIAlphaElement::setColor(), GUIRectangle::setDimensions(), GUIRectangle::setPosition(), GUIRectangle::widgetType, and WT_BUTTON.


Member Function Documentation

void GUIButton::render ( float  clockTick  )  [virtual]

Implements GUIAlphaElement.

Definition at line 30 of file GUIButton.cpp.

References GUIClippedRectangle::bgColor, bounce, GUIRectangle::clicked, GUIAlphaElement::color, GUIText::getColor(), GUIAlphaElement::label, GUIAlphaElement::modifyCurrentAlpha(), GUIRectangle::parent, GUIRectangle::pressed, GUIText::printCenteredXY(), GUIClippedRectangle::renderClippedBounds(), GUIRectangle::visible, and GUIRectangle::windowBounds.

bool GUIButton::loadXMLSettings ( const TiXmlElement *  node  )  [virtual]

Reimplemented from GUIAlphaElement.

Definition at line 17 of file GUIButton.cpp.

References enableBounce(), GUIClippedRectangle::loadXMLClippedRectangleInfo(), GUIAlphaElement::loadXMLSettings(), and Logger::writeErrorLog().

Referenced by GUIPanel::loadXMLSettings(), and GUIComboBox::loadXMLSettings().

const void GUIButton::computeWindowBounds (  )  [virtual]

Reimplemented from GUIRectangle.

Definition at line 49 of file GUIButton.cpp.

References GUIRectangle::anchor, AT_CENTER, AT_CORNERLD, AT_CORNERLU, GUIClippedRectangle::clipSize, GUIClippedRectangle::computeClippedBounds(), GUIText::computeDimensions(), GUIRectangle::computeWindowBounds(), GUIText::getHeight(), GUIText::getWidth(), GUIAlphaElement::label, GUIRectangle::parent, GUIRectangle::update, and GUIRectangle::windowBounds.

void GUIButton::enableBounce ( bool  bounce  ) 

Definition at line 27 of file GUIButton.cpp.

References bounce.

Referenced by loadXMLSettings().

bool GUIButton::bounceEnabled (  ) 

Definition at line 28 of file GUIButton.cpp.

References bounce.


Member Data Documentation

bool GUIButton::bounce [private]

Definition at line 748 of file glwx.h.

Referenced by bounceEnabled(), enableBounce(), GUIButton(), 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