Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_button.h @ 7917

Last change on this file since 7917 was 7779, checked in by bensch, 19 years ago

3088 linews changed :): trunk: namespaces

File size: 728 bytes
Line 
1/*!
2 * @file glgui_button.h
3 * The gl_BUTTON widget of th openglGUI
4 *
5 */
6
7#ifndef _GLGUI_BUTTON_H
8#define _GLGUI_BUTTON_H
9
10#include "glgui_widget.h"
11
12class Text;
13
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,
24
25  } ButtonState;
26
27  //! This is part of the openglGUI class
28  /**
29   *
30   */
31  class GLGuiButton : public GLGuiWidget
32  {
33
34  public:
35    GLGuiButton();
36    virtual ~GLGuiButton();
37
38    void init();
39    void setLabel(const std::string& label);
40
41    virtual void draw() const;
42
43  protected:
44    Text*                label;
45
46  private:
47    ButtonState          state;
48  };
49}
50#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.