Line | |
---|
1 | /*! |
---|
2 | * @file glgui_imagebutton.h |
---|
3 | * |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GLGUI_IMAGEBUTTON_H |
---|
7 | #define _GLGUI_IMAGEBUTTON_H |
---|
8 | |
---|
9 | #include "glgui_pushbutton.h" |
---|
10 | #include "event_listener.h" |
---|
11 | |
---|
12 | #include "glgui_image.h" |
---|
13 | |
---|
14 | //! Namespace of the GLGuiImageButton of ORXONOX. |
---|
15 | namespace OrxGui |
---|
16 | { |
---|
17 | class GLGuiImageButton : public GLGuiPushButton |
---|
18 | { |
---|
19 | public: |
---|
20 | GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image); |
---|
21 | virtual ~GLGuiImageButton(); |
---|
22 | |
---|
23 | |
---|
24 | void push(); |
---|
25 | void release(); |
---|
26 | |
---|
27 | sigslot::signal1<int> startLevel; |
---|
28 | |
---|
29 | protected: |
---|
30 | virtual void releasing(const Vector2D& pos, bool focused); |
---|
31 | virtual void receivedFocus(); |
---|
32 | virtual void removedFocus(); |
---|
33 | |
---|
34 | virtual void showing(); |
---|
35 | virtual void hiding(); |
---|
36 | |
---|
37 | virtual bool processEvent(const Event& event); |
---|
38 | private: |
---|
39 | unsigned int levelID; |
---|
40 | std::string imageName; |
---|
41 | GLGuiImage* image; |
---|
42 | |
---|
43 | private: |
---|
44 | |
---|
45 | }; |
---|
46 | |
---|
47 | } |
---|
48 | |
---|
49 | #endif /* _GLGUI_IMAGEBUTTON_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.