Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl/glgui_checkbutton.h @ 10368

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 951 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    ObjectListDeclaration(GLGuiCheckButton);
24  public:
25    GLGuiCheckButton(const std::string& label = "", bool active = false);
26    virtual ~GLGuiCheckButton();
27
28
29    bool    isActive() { return this->bActive; };
30    void    setActivity(bool bActive);
31    void    toggleActiveState();
32
33    virtual void draw() const;
34    virtual void update() {};
35
36    sigslot::signal1<bool> toggled;
37
38  protected:
39    virtual void resize();
40    virtual void releasing(const Vector2D& pos, bool focused);
41
42  private:
43    void init();
44
45
46  private:
47    bool             bActive;
48    Rect2D           _checkBox;
49  };
50}
51
52#endif /* _GLGUI_CHECKBUTTON_H */
Note: See TracBrowser for help on using the repository browser.