#include <glwx.h>
Public Member Functions | |
GUIAlphaElement (const std::string &callback="") | |
virtual void | render (float clockTick)=0 |
virtual bool | loadXMLSettings (const TiXmlElement *node) |
void | setMinAlpha (float minAlpha) |
float | getMinAlpha () |
void | setAlphaFadeScale (float scale) |
float | getAlphaFadeScale () |
void | setAlpha (float alpha) |
float | getAlpha () |
void | setLabelString (const std::string &label) |
const std::string & | getLabelString () |
void | setColor (const Tuple3f &color) |
void | setColor (float x, float y, float z) |
const Tuple4f & | getColor () |
GUIText * | getLabel () |
Protected Member Functions | |
void | modifyCurrentAlpha (float tick) |
Protected Attributes | |
GUIText | label |
Tuple4f | color |
float | alphaFadeScale |
float | minAlpha |
Definition at line 632 of file glwx.h.
GUIAlphaElement::GUIAlphaElement | ( | const std::string & | callback = "" |
) |
Definition at line 3 of file GUIAlphaElement.cpp.
References alphaFadeScale, color, minAlpha, and setColor().
void GUIAlphaElement::modifyCurrentAlpha | ( | float | tick | ) | [protected] |
Definition at line 106 of file GUIAlphaElement.cpp.
References alphaFadeScale, color, GUIRectangle::mouseOver, GUIRectangle::pressed, and setAlpha().
Referenced by GUITextBox::render(), GUISlider::render(), GUICheckBox::render(), and GUIButton::render().
virtual void GUIAlphaElement::render | ( | float | clockTick | ) | [pure virtual] |
Implements GUIRectangle.
Implemented in GUILabel, GUITextBox, GUIButton, GUICheckBox, and GUISlider.
bool GUIAlphaElement::loadXMLSettings | ( | const TiXmlElement * | node | ) | [virtual] |
Reimplemented from GUIRectangle.
Reimplemented in GUILabel, GUITextBox, GUIButton, GUICheckBox, and GUISlider.
Definition at line 11 of file GUIAlphaElement.cpp.
References alphaFadeScale, color, label, GUIRectangle::loadXMLSettings(), GUIText::loadXMLSettings(), minAlpha, setAlphaFadeScale(), setColor(), and setMinAlpha().
Referenced by GUITextBox::loadXMLSettings(), GUISlider::loadXMLSettings(), GUILabel::loadXMLSettings(), GUICheckBox::loadXMLSettings(), and GUIButton::loadXMLSettings().
void GUIAlphaElement::setMinAlpha | ( | float | minAlpha | ) |
Definition at line 96 of file GUIAlphaElement.cpp.
References minAlpha.
Referenced by GUITabbedPanel::addPanel(), and loadXMLSettings().
float GUIAlphaElement::getMinAlpha | ( | ) |
void GUIAlphaElement::setAlphaFadeScale | ( | float | scale | ) |
Definition at line 86 of file GUIAlphaElement.cpp.
References alphaFadeScale.
Referenced by loadXMLSettings().
float GUIAlphaElement::getAlphaFadeScale | ( | ) |
void GUIAlphaElement::setAlpha | ( | float | alpha | ) |
Definition at line 76 of file GUIAlphaElement.cpp.
References color, and minAlpha.
Referenced by modifyCurrentAlpha().
float GUIAlphaElement::getAlpha | ( | ) |
void GUIAlphaElement::setLabelString | ( | const std::string & | label | ) |
Definition at line 61 of file GUIAlphaElement.cpp.
References label.
Referenced by GUIComboBox::actionPerformed(), DemoEventHandler::actionPerformed(), GUITabbedPanel::addPanel(), GUIComboBox::finalizeSize(), GUILabel::GUILabel(), GUIComboBox::loadXMLSettings(), and GuiWrapper::RenderScene().
const std::string & GUIAlphaElement::getLabelString | ( | ) |
Definition at line 71 of file GUIAlphaElement.cpp.
References GUIText::getString(), and label.
Referenced by GUIComboBox::actionPerformed().
void GUIAlphaElement::setColor | ( | const Tuple3f & | color | ) |
Definition at line 39 of file GUIAlphaElement.cpp.
Referenced by GUITabbedPanel::addPanel(), GUIAlphaElement(), GUIButton::GUIButton(), GUITextBox::GUITextBox(), and loadXMLSettings().
void GUIAlphaElement::setColor | ( | float | x, | |
float | y, | |||
float | z | |||
) |
const Tuple4f & GUIAlphaElement::getColor | ( | ) |
GUIText * GUIAlphaElement::getLabel | ( | ) |
Definition at line 66 of file GUIAlphaElement.cpp.
References label.
Referenced by GUITabbedPanel::addPanel(), and GUIComboBox::finalizeSize().
GUIText GUIAlphaElement::label [protected] |
Definition at line 636 of file glwx.h.
Referenced by GUITextBox::checkKeyboardEvents(), GUIButton::computeWindowBounds(), getLabel(), getLabelString(), GUITextBox::getWindowBounds(), GUISlider::getWindowBounds(), GUILabel::getWindowBounds(), GUICheckBox::getWindowBounds(), GUITextBox::GUITextBox(), loadXMLSettings(), GUITextBox::render(), GUISlider::render(), GUILabel::render(), GUICheckBox::render(), GUIButton::render(), setLabelString(), GUITextBox::setupBlinker(), and GUITextBox::setupText().
Tuple4f GUIAlphaElement::color [protected] |
Definition at line 637 of file glwx.h.
Referenced by getAlpha(), getColor(), GUIAlphaElement(), loadXMLSettings(), modifyCurrentAlpha(), GUITextBox::render(), GUISlider::render(), GUICheckBox::render(), GUIButton::render(), GUISlider::renderVertical(), setAlpha(), and setColor().
float GUIAlphaElement::alphaFadeScale [protected] |
Definition at line 638 of file glwx.h.
Referenced by getAlphaFadeScale(), GUIAlphaElement(), loadXMLSettings(), modifyCurrentAlpha(), GUICheckBox::render(), and setAlphaFadeScale().
float GUIAlphaElement::minAlpha [protected] |
Definition at line 638 of file glwx.h.
Referenced by getMinAlpha(), GUIAlphaElement(), loadXMLSettings(), setAlpha(), and setMinAlpha().