Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/gui/src/lib/gui/gl_gui/glgui_checkbutton.h @ 7925

Last change on this file since 7925 was 7925, checked in by bensch, 18 years ago

gui: removed the grab-event, and using Rect now

File size: 805 bytes
Line 
1/*!
2 * @file glgui_checkbutton.h
3 * The gl_ widget of th openglGUI
4 *
5 */
6
7#ifndef _GLGUI_CHECKBUTTON_H
8#define _GLGUI_CHECKBUTTON_H
9
10#include "glgui_button.h"
11
12namespace OrxGui
13{
14
15  // FORWARD DECLARATION
16
17  //! This is part of the openglGUI class
18  /**
19   *
20   */
21  class GLGuiCheckButton : public GLGuiButton
22  {
23
24  public:
25    GLGuiCheckButton(const std::string& label = "", bool active = false);
26    virtual ~GLGuiCheckButton();
27
28    virtual void released();
29
30    bool    isActive() { return this->bActive; };
31    void    setActivity(bool bActive);
32    void    toggleActiveState();
33
34    virtual void draw() const;
35    virtual void update() {};
36
37  protected:
38    virtual void resize();
39
40  private:
41    void init();
42
43
44  private:
45    bool             bActive;
46
47  };
48}
49
50#endif /* _GLGUI_CHECKBUTTON_H */
Note: See TracBrowser for help on using the repository browser.