Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

merged the gui back

File size: 1.0 KB
RevLine 
[8498]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
[8688]9#ifndef _GLGUI_IMAGEBUTTON_H
10#define _GLGUI_IMAGEBUTTON_H
[8498]11
[8689]12#include "glgui_pushbutton.h"
[8498]13#include "event_listener.h"
14
[8691]15#include "glgui_image.h"
[8689]16
[8688]17//! Namespace of the GLGuiImageButton of ORXONOX.
[8498]18namespace OrxGui
19{
[8689]20  class GLGuiImageButton : public GLGuiPushButton
[8498]21  {
22  public:
[8689]23    GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image);
[8688]24    virtual ~GLGuiImageButton();
[8498]25
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
[8694]37
[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.