30 #ifndef _CEGUIMouseCursor_h_
31 #define _CEGUIMouseCursor_h_
33 #include "CEGUIBase.h"
34 #include "CEGUIString.h"
35 #include "CEGUISingleton.h"
36 #include "CEGUIVector.h"
37 #include "CEGUIRect.h"
38 #include "CEGUIEventSet.h"
39 #include "CEGUIInputEvent.h"
40 #include "CEGUIUDim.h"
44 # pragma warning(push)
45 # pragma warning(disable : 4275)
46 # pragma warning(disable : 4251)
137 void setImage(
const String& imageset,
const String& image_name);
144 void setImage(
const Image* image);
163 void draw(
void)
const;
173 void setPosition(
const Point& position);
186 void offsetPosition(
const Point& offset);
201 void setConstraintArea(
const Rect* area);
216 void setUnifiedConstraintArea(
const URect* area);
226 void hide(
void) {d_visible =
false;}
236 void show(
void) {d_visible =
true;}
270 {
return d_position; }
280 Rect getConstraintArea(
void)
const;
290 const URect& getUnifiedConstraintArea(
void)
const;
302 Point getDisplayIndependantPosition(
void)
const;
315 void notifyDisplaySizeChanged(
const Size& new_size);
332 void setExplicitRenderSize(
const Size& size);
339 const Size& getExplicitRenderSize()
const;
355 static void setInitialMousePosition(
const Point& position);
383 void constrainPosition(
void);
386 void cacheGeometry()
const;
389 void calculateCustomOffset()
const;
394 const Image* d_cursorImage;
403 mutable Point d_customOffset;
405 static bool s_initialPositionSet;
407 static Point s_initialPosition;
409 mutable bool d_cachedGeometryValid;
414 #if defined(_MSC_VER)
415 # pragma warning(pop)
418 #endif // end of guard _CEGUIMouseCursor_h_