Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9570 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
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
[8448]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.
[8619]33    Focused,           //!< If the widget is Active.
[8448]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
[8619]41//! names of the States.
[8448]42  const std::string StateString[] =
43    {
44      "Normal",
[8619]45      "Focused",
[8448]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
[8619]58    //! Names of Feature-Positions
[8448]59    const std::string FeaturePositionString[] =
60    {
61      "Left",
62      "Right",
63      "Top",
64      "Bottom"
65    };
66
67
68
[7779]69};
[5359]70
71
[7917]72#endif /* _GLGUI_DEFS_H */
Note: See TracBrowser for help on using the repository browser.