Last change
on this file since 8141 was
8141,
checked in by bensch, 18 years ago
|
gui: added a class for the Styles of the GUI
|
File size:
1.2 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file glgui_style.h |
---|
3 | * @brief Definition of ... |
---|
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 | |
---|
15 | namespace OrxGui |
---|
16 | { |
---|
17 | |
---|
18 | //! A class for Defining Styles to the opengl-gui. |
---|
19 | class GLGuiStyle |
---|
20 | { |
---|
21 | //! An enumerator that defines the different states Widgets may be in. |
---|
22 | typedef enum { |
---|
23 | Normal, //!< Normal state of the GUI's Widgets. |
---|
24 | Active, //!< If the widget is Active. |
---|
25 | Selected, //!< If the Widget is Selected. |
---|
26 | Insensitive //!< If the Widget is insensitive. |
---|
27 | } State; |
---|
28 | |
---|
29 | public: |
---|
30 | GLGuiStyle(); |
---|
31 | virtual ~GLGuiStyle(); |
---|
32 | |
---|
33 | |
---|
34 | private: |
---|
35 | |
---|
36 | float _borderLeft; |
---|
37 | float _borderRight; |
---|
38 | float _borderTop; |
---|
39 | float _borderBottom; |
---|
40 | |
---|
41 | Font* _font; |
---|
42 | float _textSize; |
---|
43 | float _textColor; |
---|
44 | |
---|
45 | float _backgroundColor; |
---|
46 | Texture _backgorundTexture; |
---|
47 | |
---|
48 | float _foregroundColor; |
---|
49 | Texture _foregorundTexture; |
---|
50 | |
---|
51 | bool _animated; |
---|
52 | bool _animatedStateChanges; |
---|
53 | }; |
---|
54 | } |
---|
55 | #endif /* _GLGUI_STYLE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.