OpenMW
apps/openmw/mwgui/imagebutton.hpp
Go to the documentation of this file.
00001 #ifndef MWGUI_IMAGEBUTTON_H
00002 #define MWGUI_IMAGEBUTTON_H
00003 
00004 #include <MyGUI_ImageBox.h>
00005 
00006 namespace MWGui
00007 {
00008 
00012     class ImageButton : public MyGUI::ImageBox
00013     {
00014         MYGUI_RTTI_DERIVED(ImageButton)
00015 
00016     public:
00017         MyGUI::IntSize getRequestedSize(bool logError = true);
00018 
00019     protected:
00020         virtual void setPropertyOverride(const std::string& _key, const std::string& _value);
00021         virtual void onMouseLostFocus(MyGUI::Widget* _new);
00022         virtual void onMouseSetFocus(MyGUI::Widget* _old);
00023         virtual void onMouseButtonPressed(int _left, int _top, MyGUI::MouseButton _id);
00024         virtual void onMouseButtonReleased(int _left, int _top, MyGUI::MouseButton _id);
00025 
00026         std::string mImageHighlighted;
00027         std::string mImageNormal;
00028         std::string mImagePushed;
00029     };
00030 
00031 }
00032 
00033 #endif