Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/gui/gl/glgui_style.h @ 8301

Last change on this file since 8301 was 8145, checked in by bensch, 18 years ago

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

File size: 2.2 KB
Line 
1/*!
2 * @file glgui_style.h
3 * @brief Definition of the OpenGL-GUI Style of a Class.
4*/
5
6#ifndef _GLGUI_STYLE_H
7#define _GLGUI_STYLE_H
8
9// FORWARD DECLARATION
10
11#include "font.h"
12#include "texture.h"
13#include "color.h"
14
15namespace OrxGui
16{
17  //! A class for Defining Styles to the opengl-gui.
18  class GLGuiStyle
19  {
20  public:
21
22    //! Where a Certain feature will be positioned at.
23    typedef enum {
24      FeatureLeft,          //!< On the Left side.
25      FeatureRight,         //!< On the Right side.
26      FeatureTop,           //!< On Top of the rest of the Widget.
27      FeatureBottom,        //!< At the Bottom of the rest of the Widget.
28    } FeaturePosition;
29
30
31
32  public:
33    GLGuiStyle();
34    virtual ~GLGuiStyle();
35
36
37  private:
38    float             _borderLeft;           //!< The Distance to the left Border of the widget, before any internal Element starts.
39    float             _borderRight;          //!< The Distance to the right Border of the widget, before any internal Element starts.
40    float             _borderTop;            //!< The Distance to the top Border of the widget, before any internal Element starts
41    float             _borderBottom;         //!< The Distance to the bottom Border of the widget, before any internal Element starts
42
43    Font*             _font;                 //!< The Font used in the current Widget.
44    float             _textSize;             //!< The TextSize of the Widget.
45    float             _textColor;            //!< The TextColor of the Widget.
46
47    float             _backgroundColor;      //!< The BackgroundColor of the Widget.
48    Texture           _backgorundTexture;    //!< The BackgroundTexture of the Widget.
49
50    float             _foregroundColor;      //!< The foregroundColor of the Widget.
51    Texture           _foregorundTexture;    //!< The ForegroundTexture of the Widget
52
53    FeaturePosition   _featurePosition;      //!< The Position a Feature will be layed at (checkbox(box), slider(text),...)
54
55    bool              _animated;             //!< If the Widget is animated (Texture might be an AnimatedTexture.)
56    bool              _animatedStateChanges; //!< If the Transitions between States are Animated automatically.
57  };
58}
59#endif /* _GLGUI_STYLE_H */
Note: See TracBrowser for help on using the repository browser.