Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

File size: 2.3 KB
RevLine 
[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]12namespace 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
[8619]24  //! Names of Orientations
[9656]25  const std::string OrientationString[] =
26    {
27      "Horizontal",
28      "Vertical"
29    };
[8448]30
[9656]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
[8448]59  //! An enumerator that defines the different states Widgets may be in.
60  typedef enum {
61    Normal,           //!< Normal state of the GUI's Widgets.
[8619]62    Focused,           //!< If the widget is Active.
[8448]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
[9656]70  //! names of the States.
[8448]71  const std::string StateString[] =
72    {
73      "Normal",
[8619]74      "Focused",
[8448]75      "Selected",
76      "Insensitive"
77    };
78
[9656]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;
[8448]86
[9656]87  //! Names of Feature-Positions
88  const std::string FeaturePositionString[] =
[8448]89    {
90      "Left",
91      "Right",
92      "Top",
93      "Bottom"
94    };
95
96
97
[7779]98};
[5359]99
100
[7917]101#endif /* _GLGUI_DEFS_H */
Note: See TracBrowser for help on using the repository browser.