Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_button.h


Ignore:
Timestamp:
May 23, 2006, 10:04:17 PM (18 years ago)
Author:
bensch
Message:

3088 linews changed :): trunk: namespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_button.h

    r7221 r7779  
    1010#include "glgui_widget.h"
    1111
    12 typedef enum
    13 {
    14   GLGui_Button_Active,
    15   GLGui_Button_Inactive,
    16   GLGui_Button_Pressed,
    17   GLGui_Button_Released,
    18   GLGui_Button_Activating,
    19   GLGui_Button_Deactivating,
    20 
    21 } GLGui_ButtonState;
    22 
    23 // FORWARD DECLARATION
    2412class Text;
    2513
    26 //! This is part of the openglGUI class
    27 /**
    28  *
    29  */
    30 class GLGuiButton : public GLGuiWidget {
     14namespace OrxGui
     15{
     16  typedef enum
     17  {
     18    Button_Active,
     19    Button_Inactive,
     20    Button_Pressed,
     21    Button_Released,
     22    Button_Activating,
     23    Button_Deactivating,
    3124
    32  public:
    33    GLGuiButton();
    34    virtual ~GLGuiButton();
     25  } ButtonState;
    3526
    36    void init();
    37    void setLabel(const std::string& label);
     27  //! This is part of the openglGUI class
     28  /**
     29   *
     30   */
     31  class GLGuiButton : public GLGuiWidget
     32  {
    3833
    39    virtual void draw() const;
     34  public:
     35    GLGuiButton();
     36    virtual ~GLGuiButton();
     37
     38    void init();
     39    void setLabel(const std::string& label);
     40
     41    virtual void draw() const;
    4042
    4143  protected:
     
    4345
    4446  private:
    45     GLGui_ButtonState    state;
    46 };
    47 
     47    ButtonState          state;
     48  };
     49}
    4850#endif /* _GLGUI__H */
Note: See TracChangeset for help on using the changeset viewer.