OpenMW
apps/openmw/mwgui/cursor.hpp
Go to the documentation of this file.
00001 #ifndef MWGUI_CURSOR_H
00002 #define MWGUI_CURSOR_H
00003 
00004 #include <MyGUI_IPointer.h>
00005 #include <MyGUI_ResourceImageSet.h>
00006 
00007 namespace MWGui
00008 {
00009 
00014     class ResourceImageSetPointerFix :
00015         public MyGUI::IPointer
00016     {
00017         MYGUI_RTTI_DERIVED( ResourceImageSetPointerFix )
00018 
00019     public:
00020         ResourceImageSetPointerFix();
00021         virtual ~ResourceImageSetPointerFix();
00022 
00023         virtual void deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version);
00024 
00025         virtual void setImage(MyGUI::ImageBox* _image);
00026         virtual void setPosition(MyGUI::ImageBox* _image, const MyGUI::IntPoint& _point);
00027 
00028         //and now for the whole point of this class, allow us to get
00029         //the hot spot, the image and the size of the cursor.
00030         virtual MyGUI::ResourceImageSetPtr getImageSet();
00031         virtual MyGUI::IntPoint getHotSpot();
00032         virtual MyGUI::IntSize getSize();
00033         virtual int getRotation();
00034 
00035     private:
00036         MyGUI::IntPoint mPoint;
00037         MyGUI::IntSize mSize;
00038         MyGUI::ResourceImageSetPtr mImageSet;
00039         int mRotation; // rotation in degrees
00040     };
00041 
00042 }
00043 
00044 #endif