Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7578 was 7221, checked in by bensch, 19 years ago

orxonox/trunk: merged the std-branche back, it runs on windows and Linux

svn merge https://svn.orxonox.net/orxonox/branches/std . -r7202:HEAD

File size: 735 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
12typedef 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
24class Text;
25
26//! This is part of the openglGUI class
27/**
28 *
29 */
30class GLGuiButton : public GLGuiWidget {
31
32 public:
33   GLGuiButton();
34   virtual ~GLGuiButton();
35
36   void init();
37   void setLabel(const std::string& label);
38
39   virtual void draw() const;
40
41  protected:
42    Text*                label;
43
44  private:
45    GLGui_ButtonState    state;
46};
47
48#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.