source:
orxonox.OLD/trunk/src/lib/gui/gl/glgui_pushbutton.h
@
9940
Last change on this file since 9940 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 813 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[5364] | 2 | * @file glgui_pushbutton.h |
3 | * The gl_pushbutton widget of th openglGUI | |
[5360] | 4 | * |
5 | */ | |
[1853] | 6 | |
[5364] | 7 | #ifndef _GLGUI_PUSHBUTTON_H |
8 | #define _GLGUI_PUSHBUTTON_H | |
[1853] | 9 | |
[5364] | 10 | #include "glgui_button.h" |
[1853] | 11 | |
[7779] | 12 | namespace OrxGui |
13 | { | |
[3543] | 14 | |
[7779] | 15 | // FORWARD DECLARATION |
[3543] | 16 | |
[7779] | 17 | //! This is part of the openglGUI class |
18 | /** | |
19 | * | |
20 | */ | |
21 | class GLGuiPushButton : public GLGuiButton | |
22 | { | |
[9869] | 23 | ObjectListDeclaration(GLGuiPushButton); |
[7779] | 24 | public: |
[7919] | 25 | GLGuiPushButton(const std::string& label = ""); |
[7779] | 26 | virtual ~GLGuiPushButton(); |
[1853] | 27 | |
[3245] | 28 | |
[8035] | 29 | |
30 | ||
31 | virtual void draw() const; | |
32 | virtual void update(); | |
[8717] | 33 | |
[8035] | 34 | protected: |
[7919] | 35 | virtual void resize(); |
[8035] | 36 | virtual void clicking(const Vector2D& pos); |
[8717] | 37 | virtual void releasing(const Vector2D& pos, bool focused); |
[7919] | 38 | virtual void receivedFocus(); |
39 | virtual void removedFocus(); | |
40 | ||
41 | ||
[8035] | 42 | |
[7779] | 43 | private: |
[7919] | 44 | void init(); |
[1853] | 45 | |
[7779] | 46 | }; |
47 | } | |
[5364] | 48 | #endif /* _GLGUI_PUSHBUTTON_H */ |
Note: See TracBrowser
for help on using the repository browser.