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