Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/story_entities/menu/glgui_imagebutton.h @ 8734

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

merged the gui back

File size: 1.0 KB
Line 
1/*!
2 * @file shell.h
3 * Definition of a on-screen-shell
4 *
5 * @todo Buffer Display in different Colors for different debug mode.
6 * @todo choose color of the Font and the background.
7 */
8
9#ifndef _GLGUI_IMAGEBUTTON_H
10#define _GLGUI_IMAGEBUTTON_H
11
12#include "glgui_pushbutton.h"
13#include "event_listener.h"
14
15#include "glgui_image.h"
16
17//! Namespace of the GLGuiImageButton of ORXONOX.
18namespace OrxGui
19{
20  class GLGuiImageButton : public GLGuiPushButton
21  {
22  public:
23    GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image);
24    virtual ~GLGuiImageButton();
25
26
27    DeclareSignal1(startLevel, int);
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
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.