OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cursor.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_CURSOR_H
2 #define MWGUI_CURSOR_H
3 
4 #include <MyGUI_IPointer.h>
5 #include <MyGUI_ResourceImageSet.h>
6 
7 namespace MWGui
8 {
9 
15  public MyGUI::IPointer
16  {
17  MYGUI_RTTI_DERIVED( ResourceImageSetPointerFix )
18 
19  public:
22 
23  virtual void deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version);
24 
25  virtual void setImage(MyGUI::ImageBox* _image);
26  virtual void setPosition(MyGUI::ImageBox* _image, const MyGUI::IntPoint& _point);
27 
28  //and now for the whole point of this class, allow us to get
29  //the hot spot, the image and the size of the cursor.
30  virtual MyGUI::ResourceImageSetPtr getImageSet();
31  virtual MyGUI::IntPoint getHotSpot();
32  virtual MyGUI::IntSize getSize();
33  virtual int getRotation();
34 
35  private:
36  MyGUI::IntPoint mPoint;
37  MyGUI::IntSize mSize;
38  MyGUI::ResourceImageSetPtr mImageSet;
39  int mRotation; // rotation in degrees
40  };
41 
42 }
43 
44 #endif
virtual void setPosition(MyGUI::ImageBox *_image, const MyGUI::IntPoint &_point)
Definition: cursor.cpp:54
int mRotation
Definition: cursor.hpp:39
Definition: cursor.hpp:14
virtual MyGUI::IntPoint getHotSpot()
Definition: cursor.cpp:64
MyGUI::ResourceImageSetPtr mImageSet
Definition: cursor.hpp:38
Version
Definition: esmcommon.hpp:12
virtual void setImage(MyGUI::ImageBox *_image)
Definition: cursor.cpp:48
MyGUI::IntSize mSize
Definition: cursor.hpp:37
virtual MyGUI::IntSize getSize()
Definition: cursor.cpp:69
virtual int getRotation()
Definition: cursor.cpp:43
virtual MyGUI::ResourceImageSetPtr getImageSet()
Definition: cursor.cpp:59
virtual ~ResourceImageSetPointerFix()
Definition: cursor.cpp:18
ResourceImageSetPointerFix()
Definition: cursor.cpp:12
MyGUI::IntPoint mPoint
Definition: cursor.hpp:36
virtual void deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version)
Definition: cursor.cpp:22