Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7221 was 7221, checked in by bensch, 18 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
RevLine 
[4838]1/*!
[5363]2 * @file glgui_button.h
3 * The gl_BUTTON widget of th openglGUI
[5360]4 *
5 */
[1853]6
[5363]7#ifndef _GLGUI_BUTTON_H
8#define _GLGUI_BUTTON_H
[1853]9
[5363]10#include "glgui_widget.h"
[1853]11
[5363]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
[4838]23// FORWARD DECLARATION
[5371]24class Text;
[3543]25
[5360]26//! This is part of the openglGUI class
27/**
28 *
29 */
[5363]30class GLGuiButton : public GLGuiWidget {
[3543]31
[5360]32 public:
[5395]33   GLGuiButton();
34   virtual ~GLGuiButton();
[2036]35
[5395]36   void init();
[7221]37   void setLabel(const std::string& label);
[1853]38
[5427]39   virtual void draw() const;
[1853]40
[5395]41  protected:
42    Text*                label;
[5371]43
[5395]44  private:
45    GLGui_ButtonState    state;
[1853]46};
47
[5360]48#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.