source:
orxonox.OLD/trunk/src/story_entities/menu/glgui_imagebutton.h
@
9115
Last change on this file since 9115 was 8740, checked in by bensch, 18 years ago | |
---|---|
File size: 965 bytes |
Rev | Line | |
---|---|---|
[8498] | 1 | /*! |
[8740] | 2 | * @file glgui_imagebutton.h |
[8498] | 3 | * |
4 | */ | |
5 | ||
[8688] | 6 | #ifndef _GLGUI_IMAGEBUTTON_H |
7 | #define _GLGUI_IMAGEBUTTON_H | |
[8498] | 8 | |
[8689] | 9 | #include "glgui_pushbutton.h" |
[8498] | 10 | #include "event_listener.h" |
11 | ||
[8691] | 12 | #include "glgui_image.h" |
[8689] | 13 | |
[8688] | 14 | //! Namespace of the GLGuiImageButton of ORXONOX. |
[8498] | 15 | namespace OrxGui |
16 | { | |
[8689] | 17 | class GLGuiImageButton : public GLGuiPushButton |
[8498] | 18 | { |
19 | public: | |
[8689] | 20 | GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image); |
[8688] | 21 | virtual ~GLGuiImageButton(); |
[8498] | 22 | |
23 | ||
[8740] | 24 | void push(); |
25 | void release(); | |
26 | ||
[8691] | 27 | DeclareSignal1(startLevel, int); |
28 | ||
[8509] | 29 | protected: |
[8689] | 30 | virtual void releasing(const Vector2D& pos, bool focused); |
31 | virtual void receivedFocus(); | |
32 | virtual void removedFocus(); | |
[8509] | 33 | |
[8694] | 34 | virtual void showing(); |
35 | virtual void hiding(); | |
[8689] | 36 | |
[8740] | 37 | virtual bool processEvent(const Event& event); |
[8498] | 38 | private: |
[8689] | 39 | unsigned int levelID; |
40 | std::string imageName; | |
41 | GLGuiImage* image; | |
[8498] | 42 | |
43 | private: | |
[8509] | 44 | |
[8498] | 45 | }; |
46 | ||
47 | } | |
48 | ||
[8688] | 49 | #endif /* _GLGUI_IMAGEBUTTON_H */ |
Note: See TracBrowser
for help on using the repository browser.