1 | /*! |
---|
2 | * @file glgui_defs.h |
---|
3 | * Definitions for the GLGui. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GLGUI_DEFS_H |
---|
7 | #define _GLGUI_DEFS_H |
---|
8 | |
---|
9 | #include <string> |
---|
10 | |
---|
11 | /// TODO MOVE TO ORXGUI_TYPES |
---|
12 | namespace OrxGui |
---|
13 | { |
---|
14 | //! if the Element should be visible by default. |
---|
15 | #define GLGUI_WIDGET_DEFAULT_VISIBLE false |
---|
16 | |
---|
17 | |
---|
18 | //! An enumeration for the Orientation of an Element. |
---|
19 | typedef enum { |
---|
20 | Horizontal, //!< Horizontal Orientation. |
---|
21 | Vertical //!< Vertical Orientation. |
---|
22 | } Orientation; |
---|
23 | |
---|
24 | //! Names of Orientations |
---|
25 | const std::string OrientationString[] = { |
---|
26 | "Horizontal", |
---|
27 | "Vertical" |
---|
28 | }; |
---|
29 | |
---|
30 | //! An enumerator that defines the different states Widgets may be in. |
---|
31 | typedef enum { |
---|
32 | Normal, //!< Normal state of the GUI's Widgets. |
---|
33 | Focused, //!< If the widget is Active. |
---|
34 | Selected, //!< If the Widget is Selected. |
---|
35 | Insensitive //!< If the Widget is insensitive. |
---|
36 | } State; |
---|
37 | //! The count of States a GUI-Element can be in. |
---|
38 | #define GLGUI_STATE_COUNT 4 |
---|
39 | #define GLGUI_DEFAULT_STYLE OrxGui::Normal |
---|
40 | |
---|
41 | //! names of the States. |
---|
42 | const std::string StateString[] = |
---|
43 | { |
---|
44 | "Normal", |
---|
45 | "Focused", |
---|
46 | "Selected", |
---|
47 | "Insensitive" |
---|
48 | }; |
---|
49 | |
---|
50 | //! Where a Certain feature will be positioned at. |
---|
51 | typedef enum { |
---|
52 | FeatureLeft, //!< On the Left side. |
---|
53 | FeatureRight, //!< On the Right side. |
---|
54 | FeatureTop, //!< On Top of the rest of the Widget. |
---|
55 | FeatureBottom, //!< At the Bottom of the rest of the Widget. |
---|
56 | } FeaturePosition; |
---|
57 | |
---|
58 | //! Names of Feature-Positions |
---|
59 | const std::string FeaturePositionString[] = |
---|
60 | { |
---|
61 | "Left", |
---|
62 | "Right", |
---|
63 | "Top", |
---|
64 | "Bottom" |
---|
65 | }; |
---|
66 | |
---|
67 | |
---|
68 | |
---|
69 | }; |
---|
70 | |
---|
71 | |
---|
72 | #endif /* _GLGUI_DEFS_H */ |
---|