Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8902 was 8619, checked in by bensch, 18 years ago

trunk: merged the gui-branche back.
merged with command:
svn merge -r8520:HEAD https://svn.orxonox.net/orxonox/branches/gui
no conflicts

File size: 1.7 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    "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 */
Note: See TracBrowser for help on using the repository browser.