Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8583 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_style.h


Ignore:
Timestamp:
Jun 19, 2006, 1:20:42 PM (19 years ago)
Author:
bensch
Message:

gui: using style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl/glgui_style.h

    r8582 r8583  
    2626
    2727
    28     /// Retrieve
     28    /// Retrieve (ALL THESE FUNCTIONS ARE AGAIN IN THE GLGUI-WIDGET FOR EASY RETRIEVAL)
    2929    /** @returns left borderWidth @param state the State to retrieve from */
    3030    inline float borderLeft(OrxGui::State state = GLGUI_DEFAULT_STYLE) const { return _style[state]._borderLeft; }
     
    4040    /** @returns the Background Color @param state the State to retrieve from */
    4141    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; }
    4244    /** @returns background Texture. @param state the State to retrieve from */
    43     inline const Texture& backgrorundTexture(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(); }
    4446    /** @returns the foreground Color @param state the State to retrieve from */
    4547    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; }
    4650
    4751    /** @returns FeaturePosition */
     
    9195    void setForegroundColor(const Color& color, OrxGui::State state);
    9296    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; }
    93102
    94103    void loadBackgroundMaterial(const Material& material);
Note: See TracChangeset for help on using the changeset viewer.