#include <glwx.h>


Public Member Functions | |
| GUIClippedRectangle (int clipSize=5) | |
| void | enableBGColor (bool enable) |
| bool | isBGColorOn () |
| void | computeClippedBounds (const Tuple4i &windowBounds) |
| void | setClipSize (int clipSize) |
| int | getClipSize () |
| void | setVisibleBounds (bool visible) |
| bool | boundsVisible () |
| void | setBGColor (float x, float y, float z, float alpha) |
| void | setBGColor (const Tuple4f &color) |
| const Tuple4f & | getBGColor () |
| const Tuple2i * | getVertices () const |
| void | setBordersColor (const Tuple3f &color) |
| void | setBordersColor (float x, float y, float z) |
| const Tuple3f & | getBordersColor () |
| const Tuple2f * | getTexCoords () const |
| void | setTextureRectangle (float x, float y, float z, float w) |
| void | setTextureRectangle (const Tuple4f &textureRectangle) |
| const Tuple4f & | getTextureRectangle () |
| Texture & | getTexture () |
| void | setTexture (const Texture &texture) |
| virtual void | renderClippedBounds () |
| virtual bool | loadXMLClippedRectangleInfo (const TiXmlElement *element) |
Protected Attributes | |
| Texture | texture |
| Tuple2f | texCoords [7] |
| Tuple4f | textureRectangle |
| Tuple4f | bgColor |
| Tuple3f | bordersColor |
| Tuple2i | vertices [7] |
| bool | drawBackground |
| bool | drawBounds |
| int | clipSize |
Definition at line 549 of file glwx.h.
| GUIClippedRectangle::GUIClippedRectangle | ( | int | clipSize = 5 |
) |
Definition at line 3 of file GUIClippedRectangle.cpp.
References drawBackground, drawBounds, setBGColor(), setBordersColor(), setClipSize(), and setTextureRectangle().
| void GUIClippedRectangle::enableBGColor | ( | bool | enable | ) |
Definition at line 172 of file GUIClippedRectangle.cpp.
References drawBackground.
Referenced by GUIComboBox::GUIComboBox(), GUITabbedPanel::GUITabbedPanel(), loadXMLClippedRectangleInfo(), and GUIComboBox::render().
| bool GUIClippedRectangle::isBGColorOn | ( | ) |
| void GUIClippedRectangle::computeClippedBounds | ( | const Tuple4i & | windowBounds | ) |
Definition at line 147 of file GUIClippedRectangle.cpp.
References clipSize, texCoords, textureRectangle, and vertices.
Referenced by GUIButton::computeWindowBounds(), GUIPanel::packFreeLayout(), GUIPanel::packXAxisLayout(), and GUIPanel::packYAxisLayout().
| void GUIClippedRectangle::setClipSize | ( | int | clipSize | ) |
Definition at line 14 of file GUIClippedRectangle.cpp.
References clipSize.
Referenced by GUIClippedRectangle(), GUIComboBox::GUIComboBox(), GUITabbedPanel::GUITabbedPanel(), and loadXMLClippedRectangleInfo().
| int GUIClippedRectangle::getClipSize | ( | ) |
| void GUIClippedRectangle::setVisibleBounds | ( | bool | visible | ) |
Definition at line 24 of file GUIClippedRectangle.cpp.
References drawBounds.
Referenced by GUIComboBox::GUIComboBox(), GUITabbedPanel::GUITabbedPanel(), loadXMLClippedRectangleInfo(), and GUIComboBox::render().
| bool GUIClippedRectangle::boundsVisible | ( | ) |
| void GUIClippedRectangle::setBGColor | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| float | alpha | |||
| ) |
Definition at line 74 of file GUIClippedRectangle.cpp.
References bgColor.
Referenced by GUIClippedRectangle(), loadXMLClippedRectangleInfo(), GUITabbedPanel::loadXMLSettings(), GUIComboBox::loadXMLSettings(), and setBGColor().
| void GUIClippedRectangle::setBGColor | ( | const Tuple4f & | color | ) |
| const Tuple4f & GUIClippedRectangle::getBGColor | ( | ) |
Definition at line 226 of file GUIClippedRectangle.cpp.
References bgColor.
Referenced by GUITabbedPanel::loadXMLSettings(), and GUIComboBox::loadXMLSettings().
| const Tuple2i * GUIClippedRectangle::getVertices | ( | ) | const |
| void GUIClippedRectangle::setBordersColor | ( | const Tuple3f & | color | ) |
Definition at line 87 of file GUIClippedRectangle.cpp.
Referenced by GUITabbedPanel::addPanel(), GUIButton::GUIButton(), GUIClippedRectangle(), loadXMLClippedRectangleInfo(), GUITabbedPanel::loadXMLSettings(), and GUIComboBox::loadXMLSettings().
| void GUIClippedRectangle::setBordersColor | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
| const Tuple3f & GUIClippedRectangle::getBordersColor | ( | ) |
Definition at line 92 of file GUIClippedRectangle.cpp.
References bordersColor.
Referenced by GUITabbedPanel::loadXMLSettings(), and GUIComboBox::loadXMLSettings().
| const Tuple2f * GUIClippedRectangle::getTexCoords | ( | ) | const |
| void GUIClippedRectangle::setTextureRectangle | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| float | w | |||
| ) |
Definition at line 182 of file GUIClippedRectangle.cpp.
References Texture::getHeight(), Texture::getID(), Texture::getWidth(), texture, and textureRectangle.
Referenced by GUIClippedRectangle(), loadXMLClippedRectangleInfo(), and setTextureRectangle().
| void GUIClippedRectangle::setTextureRectangle | ( | const Tuple4f & | textureRectangle | ) |
| const Tuple4f & GUIClippedRectangle::getTextureRectangle | ( | ) |
| Texture & GUIClippedRectangle::getTexture | ( | ) |
| void GUIClippedRectangle::setTexture | ( | const Texture & | texture | ) |
| void GUIClippedRectangle::renderClippedBounds | ( | ) | [virtual] |
Definition at line 107 of file GUIClippedRectangle.cpp.
References Texture::activate(), bgColor, bordersColor, Texture::deactivate(), drawBackground, drawBounds, Texture::getID(), texCoords, texture, and vertices.
Referenced by GUIPanel::render(), GUIComboBox::render(), and GUIButton::render().
| bool GUIClippedRectangle::loadXMLClippedRectangleInfo | ( | const TiXmlElement * | element | ) | [virtual] |
Definition at line 34 of file GUIClippedRectangle.cpp.
References bgColor, bordersColor, clipSize, drawBackground, drawBounds, enableBGColor(), Texture::loadXMLSettings(), setBGColor(), setBordersColor(), setClipSize(), setTextureRectangle(), setVisibleBounds(), texture, and textureRectangle.
Referenced by GUIPanel::loadXMLSettings(), GUIComboBox::loadXMLSettings(), and GUIButton::loadXMLSettings().
Texture GUIClippedRectangle::texture [protected] |
Definition at line 552 of file glwx.h.
Referenced by getTexture(), loadXMLClippedRectangleInfo(), renderClippedBounds(), setTexture(), and setTextureRectangle().
Tuple2f GUIClippedRectangle::texCoords[7] [protected] |
Reimplemented in GUIFrame.
Definition at line 553 of file glwx.h.
Referenced by computeClippedBounds(), getTexCoords(), and renderClippedBounds().
Tuple4f GUIClippedRectangle::textureRectangle [protected] |
Definition at line 555 of file glwx.h.
Referenced by computeClippedBounds(), getTextureRectangle(), loadXMLClippedRectangleInfo(), and setTextureRectangle().
Tuple4f GUIClippedRectangle::bgColor [protected] |
Definition at line 555 of file glwx.h.
Referenced by getBGColor(), loadXMLClippedRectangleInfo(), GUIButton::render(), renderClippedBounds(), and setBGColor().
Tuple3f GUIClippedRectangle::bordersColor [protected] |
Definition at line 558 of file glwx.h.
Referenced by getBordersColor(), loadXMLClippedRectangleInfo(), renderClippedBounds(), and setBordersColor().
Tuple2i GUIClippedRectangle::vertices[7] [protected] |
Definition at line 559 of file glwx.h.
Referenced by computeClippedBounds(), getVertices(), and renderClippedBounds().
bool GUIClippedRectangle::drawBackground [protected] |
Definition at line 560 of file glwx.h.
Referenced by enableBGColor(), GUIButton::GUIButton(), GUIClippedRectangle(), isBGColorOn(), loadXMLClippedRectangleInfo(), and renderClippedBounds().
bool GUIClippedRectangle::drawBounds [protected] |
Definition at line 560 of file glwx.h.
Referenced by boundsVisible(), GUIButton::GUIButton(), GUIClippedRectangle(), loadXMLClippedRectangleInfo(), renderClippedBounds(), and setVisibleBounds().
int GUIClippedRectangle::clipSize [protected] |
Definition at line 562 of file glwx.h.
Referenced by computeClippedBounds(), GUIButton::computeWindowBounds(), getClipSize(), loadXMLClippedRectangleInfo(), GUIPanel::packFreeLayout(), and setClipSize().
1.5.3