Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl/glgui_defs.h @ 10479

Last change on this file since 10479 was 9656, checked in by bensch, 18 years ago

orxonox/trunk: merged the proxy bache back with no conflicts

File size: 2.3 KB
Line 
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
12namespace 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    {
27      "Horizontal",
28      "Vertical"
29    };
30
31  //! An enumeration for the Positions of some Elements (FixedPositionBox as an example).
32  typedef enum {
33    Left,               //!< Left
34    Right,              //!< Right
35    Top,                //!< Top
36    Bottom,             //!< Bottom
37    TopLeft,            //!< TopLeft
38    TopRight,           //!< TopRight
39    BottomLeft,         //!< BottomLeft
40    BottomRight,        //!< BottomRight
41    Center,             //!< Centered
42  } Position;
43
44  //! Names of Positions
45  const std::string PositionString[] =
46    {
47      "Left",
48      "Right",
49      "Top",
50      "Bottom",
51      "TopLeft",
52      "TopRight",
53      "BottomLeft",
54      "BottomRight",
55      "Center"
56    };
57
58
59  //! An enumerator that defines the different states Widgets may be in.
60  typedef enum {
61    Normal,           //!< Normal state of the GUI's Widgets.
62    Focused,           //!< If the widget is Active.
63    Selected,         //!< If the Widget is Selected.
64    Insensitive       //!< If the Widget is insensitive.
65  } State;
66  //! The count of States a GUI-Element can be in.
67#define GLGUI_STATE_COUNT   4
68#define GLGUI_DEFAULT_STYLE OrxGui::Normal
69
70  //! names of the States.
71  const std::string StateString[] =
72    {
73      "Normal",
74      "Focused",
75      "Selected",
76      "Insensitive"
77    };
78
79  //! Where a Certain feature will be positioned at.
80  typedef enum {
81    FeatureLeft,          //!< On the Left side.
82    FeatureRight,         //!< On the Right side.
83    FeatureTop,           //!< On Top of the rest of the Widget.
84    FeatureBottom,        //!< At the Bottom of the rest of the Widget.
85  } FeaturePosition;
86
87  //! Names of Feature-Positions
88  const std::string FeaturePositionString[] =
89    {
90      "Left",
91      "Right",
92      "Top",
93      "Bottom"
94    };
95
96
97
98};
99
100
101#endif /* _GLGUI_DEFS_H */
Note: See TracBrowser for help on using the repository browser.