Changeset 8575 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_style.h
- Timestamp:
- Jun 18, 2006, 11:01:40 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_style.h
r8559 r8575 11 11 #include "glgui_defs.h" 12 12 13 #include "material.h" 13 14 #include "font.h" 14 15 #include "texture.h" … … 34 35 /** @returns bottom borderWidth @param state the State to retrieve from */ 35 36 inline float borderBottom(OrxGui::State state = GLGUI_DEFAULT_STYLE) const { return _style[state]._borderBottom; } 37 36 38 /** @returns textSize @param state the State to retrieve from */ 37 39 inline float textSize(OrxGui::State state = GLGUI_DEFAULT_STYLE) const { return _style[state]._textSize; } 38 40 /** @returns the Background Color @param state the State to retrieve from */ 39 inline const Color& backgroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._background Color; }41 inline const Color& backgroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._background.diffuseColor(); } 40 42 /** @returns background Texture. @param state the State to retrieve from */ 41 inline const Texture& backgrorundTexture(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._background Texture; }43 inline const Texture& backgrorundTexture(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._background.diffuseTexture(); } 42 44 /** @returns the foreground Color @param state the State to retrieve from */ 43 inline const Color& foregroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._foreground Color; }45 inline const Color& foregroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) const { return _style[state]._foreground.diffuseColor(); } 44 46 45 47 /** @returns FeaturePosition */ … … 113 115 float _textSize; //!< The TextSize of the Widget. 114 116 115 Color _backgroundColor; //!< The BackgroundColor of the Widget. 116 Texture _backgroundTexture; //!< The BackgroundTexture of the Widget. 117 Material _background; //!< The Background Material of the Widget. 117 118 118 Color _foregroundColor; //!< The foregroundColorof the Widget.119 Material _foreground; //!< The foreground Material of the Widget. 119 120 } 120 121 StatedStyle;
Note: See TracChangeset
for help on using the changeset viewer.