#include <glwx.h>
Public Member Functions | |
GUILabel (const std::string &labelString="Unknown Label", const std::string &callbackString="") | |
virtual void | render (float clockTick) |
virtual bool | loadXMLSettings (const TiXmlElement *element) |
virtual const Tuple4i & | getWindowBounds () |
Definition at line 673 of file glwx.h.
GUILabel::GUILabel | ( | const std::string & | labelString = "Unknown Label" , |
|
const std::string & | callbackString = "" | |||
) |
Definition at line 3 of file GUILabel.cpp.
References GUIRectangle::setDimensions(), GUIAlphaElement::setLabelString(), GUIRectangle::widgetType, and WT_LABEL.
void GUILabel::render | ( | float | clockTick | ) | [virtual] |
Implements GUIAlphaElement.
Definition at line 19 of file GUILabel.cpp.
References GUIRectangle::anchor, AT_CORNERLD, AT_CORNERLU, AT_CORNERRD, AT_CORNERRU, GUIRectangle::forceUpdate(), GUIRectangle::getCenter(), GUIText::getHeight(), GUIAlphaElement::label, GUIText::needUpdating(), GUIRectangle::parent, GUIText::print(), GUIText::printCenteredXY(), GUIRectangle::visible, and GUIRectangle::windowBounds.
bool GUILabel::loadXMLSettings | ( | const TiXmlElement * | element | ) | [virtual] |
Reimplemented from GUIAlphaElement.
Definition at line 11 of file GUILabel.cpp.
References GUIAlphaElement::loadXMLSettings(), and Logger::writeErrorLog().
Referenced by GUIPanel::loadXMLSettings().
const Tuple4i & GUILabel::getWindowBounds | ( | ) | [virtual] |
Reimplemented from GUIRectangle.
Definition at line 39 of file GUILabel.cpp.
References GUIText::computeDimensions(), GUIRectangle::computeWindowBounds(), GUIRectangle::dimensions, GUIRectangle::getHeight(), GUIText::getHeight(), GUIRectangle::getWidth(), GUIText::getWidth(), GUIAlphaElement::label, GUIRectangle::parent, GUIRectangle::update, and GUIRectangle::windowBounds.
Referenced by GUIComboBox::actionPerformed().