Changeset 8605 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_widget.h
- Timestamp:
- Jun 20, 2006, 9:59:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_widget.h
r8604 r8605 79 79 void setWidgetSize(float x, float y); 80 80 81 81 void animateBack(); 82 82 83 83 /// STYLE … … 114 114 inline const Font* const font() const { return _font; } 115 115 /** @returns true if the Element is Animated */ 116 inline bool animat ed() const { return _animated; }116 inline bool animating() const { return _animating; } 117 117 /** @returns true if State-Changes are animated */ 118 118 inline bool animatedStateChanges() const { return _animatedStateChanges; } … … 182 182 void setForegroundColorS(float r, float g, float b, float a, const std::string& stateName); 183 183 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 189 184 void loadBackgroundMaterial(const Material& material); 190 185 void loadBackgroundMaterial(const Material& material, OrxGui::State state); … … 204 199 void setFont(const std::string& fontName); 205 200 206 void setAnimated(bool animated);207 201 void setAnimatedStateChanges(bool animated); 208 202 void switchState(OrxGui::State state); … … 261 255 262 256 263 257 /// WIDGET 264 258 GLGuiWidget* _parent; //!< The parent of this Widget. 265 259 266 260 /// LOOKS 267 261 Rect2D _backRect; 268 269 Color* _toFrontColor;270 271 262 Vector2D _minSize; 272 263 … … 306 297 307 298 /// ANIMATION STUFF: 308 bool _animated; //!< If the Widget is animated (Texture might be an AnimatedTexture.)309 299 bool _animatedStateChanges; //!< If the Transitions between States are Animated automatically. 310 300 301 bool _animating; //!< If the Widget is animated at the moment (Texture might be an AnimatedTexture.) 311 302 float _animationCycle; 312 303 float _animationDuration;
Note: See TracChangeset
for help on using the changeset viewer.