| [4838] | 1 | /*! | 
|---|
| [8141] | 2 |  * @file glgui_style.h | 
|---|
| [8144] | 3 |  * @brief Definition of the OpenGL-GUI Style of a Class. | 
|---|
| [3245] | 4 | */ | 
|---|
| [1853] | 5 |  | 
|---|
| [8141] | 6 | #ifndef _GLGUI_STYLE_H | 
|---|
 | 7 | #define _GLGUI_STYLE_H | 
|---|
| [1853] | 8 |  | 
|---|
| [4838] | 9 | // FORWARD DECLARATION | 
|---|
| [3543] | 10 |  | 
|---|
| [8141] | 11 | #include "font.h" | 
|---|
 | 12 | #include "texture.h" | 
|---|
 | 13 | #include "color.h" | 
|---|
| [3543] | 14 |  | 
|---|
| [8141] | 15 | namespace OrxGui | 
|---|
 | 16 | { | 
|---|
 | 17 |   //! A class for Defining Styles to the opengl-gui. | 
|---|
 | 18 |   class GLGuiStyle | 
|---|
 | 19 |   { | 
|---|
| [8143] | 20 |   public: | 
|---|
| [1853] | 21 |  | 
|---|
| [8143] | 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 |  | 
|---|
| [8144] | 30 |  | 
|---|
 | 31 |  | 
|---|
| [8141] | 32 |   public: | 
|---|
 | 33 |     GLGuiStyle(); | 
|---|
 | 34 |     virtual ~GLGuiStyle(); | 
|---|
| [1853] | 35 |  | 
|---|
| [8141] | 36 |   private: | 
|---|
| [8142] | 37 |     float             _borderLeft;           //!< The Distance to the left Border of the widget, before any internal Element starts. | 
|---|
 | 38 |     float             _borderRight;          //!< The Distance to the right Border of the widget, before any internal Element starts. | 
|---|
 | 39 |     float             _borderTop;            //!< The Distance to the top Border of the widget, before any internal Element starts | 
|---|
 | 40 |     float             _borderBottom;         //!< The Distance to the bottom Border of the widget, before any internal Element starts | 
|---|
| [1853] | 41 |  | 
|---|
| [8142] | 42 |     Font*             _font;                 //!< The Font used in the current Widget. | 
|---|
 | 43 |     float             _textSize;             //!< The TextSize of the Widget. | 
|---|
 | 44 |     float             _textColor;            //!< The TextColor of the Widget. | 
|---|
| [8141] | 45 |  | 
|---|
| [8142] | 46 |     float             _backgroundColor;      //!< The BackgroundColor of the Widget. | 
|---|
 | 47 |     Texture           _backgorundTexture;    //!< The BackgroundTexture of the Widget. | 
|---|
| [8141] | 48 |  | 
|---|
| [8142] | 49 |     float             _foregroundColor;      //!< The foregroundColor of the Widget. | 
|---|
 | 50 |     Texture           _foregorundTexture;    //!< The ForegroundTexture of the Widget | 
|---|
| [8141] | 51 |  | 
|---|
| [8143] | 52 |     FeaturePosition   _featurePosition;      //!< The Position a Feature will be layed at (checkbox(box), slider(text),...) | 
|---|
 | 53 |  | 
|---|
| [8142] | 54 |     bool              _animated;             //!< If the Widget is animated (Texture might be an AnimatedTexture.) | 
|---|
 | 55 |     bool              _animatedStateChanges; //!< If the Transitions between States are Animated automatically. | 
|---|
| [8141] | 56 |   }; | 
|---|
 | 57 | } | 
|---|
 | 58 | #endif /* _GLGUI_STYLE_H */ | 
|---|