Changeset 8583 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_style.h
- Timestamp:
- Jun 19, 2006, 1:20:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_style.h
r8582 r8583 26 26 27 27 28 /// Retrieve 28 /// Retrieve (ALL THESE FUNCTIONS ARE AGAIN IN THE GLGUI-WIDGET FOR EASY RETRIEVAL) 29 29 /** @returns left borderWidth @param state the State to retrieve from */ 30 30 inline float borderLeft(OrxGui::State state = GLGUI_DEFAULT_STYLE) const { return _style[state]._borderLeft; } … … 40 40 /** @returns the Background Color @param state the State to retrieve from */ 41 41 inline const Color& backgroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._background.diffuseColor(); } 42 /** @returns the Background Material. @param state the state to retrieve from */ 43 inline const Material& background(OrxGui::State state = GLGUI_DEFAULT_STYLE) const { return _style[state]._background; } 42 44 /** @returns background Texture. @param state the State to retrieve from */ 43 inline const Texture& backgro rundTexture(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._background.diffuseTexture(); }45 inline const Texture& backgroundTexture(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._background.diffuseTexture(); } 44 46 /** @returns the foreground Color @param state the State to retrieve from */ 45 47 inline const Color& foregroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._foreground.diffuseColor(); } 48 /** @returns the ForeGroung Material. @param state the state to retrieve from */ 49 inline const Material& foreground(OrxGui::State state = GLGUI_DEFAULT_STYLE) const { return _style[state]._foreground; } 46 50 47 51 /** @returns FeaturePosition */ … … 91 95 void setForegroundColor(const Color& color, OrxGui::State state); 92 96 void setForegroundColorS(float r, float g, float b, float a, const std::string& stateName); 97 98 inline Color& foregroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) { return _style[state]._foreground.diffuseColor(); } 99 inline Color& backgroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) { return _style[state]._background.diffuseColor(); } 100 inline Material& background(OrxGui::State state = GLGUI_DEFAULT_STYLE) { return _style[state]._background; } 101 inline Material& foreground(OrxGui::State state = GLGUI_DEFAULT_STYLE) { return _style[state]._foreground; } 93 102 94 103 void loadBackgroundMaterial(const Material& material);
Note: See TracChangeset
for help on using the changeset viewer.