#include <glwx.h>
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 |
Definition at line 735 of file glwx.h.
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.
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 | ) |
bool GUIButton::bounceEnabled | ( | ) |
bool GUIButton::bounce [private] |
Definition at line 748 of file glwx.h.
Referenced by bounceEnabled(), enableBounce(), GUIButton(), and render().