Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8605 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_widget.h


Ignore:
Timestamp:
Jun 20, 2006, 9:59:53 AM (18 years ago)
Author:
bensch
Message:

orxonox/gui: fading works again

File:
1 edited

Legend:

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

    r8604 r8605  
    7979    void setWidgetSize(float x, float y);
    8080
    81 
     81    void animateBack();
    8282
    8383    /// STYLE
     
    114114    inline const Font* const font() const { return _font; }
    115115    /** @returns true if the Element is Animated */
    116     inline bool animated() const { return _animated; }
     116    inline bool animating() const { return _animating; }
    117117    /** @returns true if State-Changes are animated */
    118118    inline bool animatedStateChanges() const { return _animatedStateChanges; }
     
    182182    void setForegroundColorS(float r, float g, float b, float a, const std::string& stateName);
    183183
    184     inline Color& foregroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) { return _style[state]._foreground.diffuseColor(); }
    185     inline Color& backgroundColor(OrxGui::State state= GLGUI_DEFAULT_STYLE) { return _style[state]._background.diffuseColor(); }
    186     inline Material& background(OrxGui::State state = GLGUI_DEFAULT_STYLE) { return _style[state]._background; }
    187     inline Material& foreground(OrxGui::State state = GLGUI_DEFAULT_STYLE) { return _style[state]._foreground; }
    188 
    189184    void loadBackgroundMaterial(const Material& material);
    190185    void loadBackgroundMaterial(const Material& material, OrxGui::State state);
     
    204199    void setFont(const std::string& fontName);
    205200
    206     void setAnimated(bool animated);
    207201    void setAnimatedStateChanges(bool animated);
    208202    void switchState(OrxGui::State state);
     
    261255
    262256
    263 
     257    /// WIDGET
    264258    GLGuiWidget*                   _parent;           //!< The parent of this Widget.
    265259
    266260    /// LOOKS
    267261    Rect2D                         _backRect;
    268 
    269     Color*                         _toFrontColor;
    270 
    271262    Vector2D                       _minSize;
    272263
     
    306297
    307298    /// ANIMATION STUFF:
    308     bool                _animated;             //!< If the Widget is animated (Texture might be an AnimatedTexture.)
    309299    bool                _animatedStateChanges; //!< If the Transitions between States are Animated automatically.
    310300
     301    bool                _animating;            //!< If the Widget is animated at the moment (Texture might be an AnimatedTexture.)
    311302    float               _animationCycle;
    312303    float               _animationDuration;
Note: See TracChangeset for help on using the changeset viewer.