Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 21, 2006, 10:50:07 PM (18 years ago)
Author:
bensch
Message:

orxonox/gui: image-widget work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl/specials/glgui_imagebutton.h

    r8688 r8689  
    1010#define _GLGUI_IMAGEBUTTON_H
    1111
    12 #include "glgui_widget.h"
     12#include "glgui_pushbutton.h"
    1313#include "event_listener.h"
    1414
     15
    1516#include <stack>
     17
     18class GLGuiImage;
    1619
    1720//! Namespace of the GLGuiImageButton of ORXONOX.
    1821namespace OrxGui
    1922{
    20   class GLGuiImageButton : public GLGuiWidget
     23  class GLGuiImageButton : public GLGuiPushButton
    2124  {
    2225  public:
    23     GLGuiImageButton();
     26    GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image);
    2427    virtual ~GLGuiImageButton();
    2528
    26     void debug() const;
    2729
    2830  protected:
    29     virtual void resize();
     31    virtual void releasing(const Vector2D& pos, bool focused);
     32    virtual void receivedFocus();
     33    virtual void removedFocus();
     34
    3035
    3136  private:
     37    unsigned int        levelID;
     38    std::string         imageName;
     39    GLGuiImage*         image;
    3240
    3341  private:
Note: See TracChangeset for help on using the changeset viewer.