29 #ifndef _CEGUIMouseCursor_h_
30 #define _CEGUIMouseCursor_h_
32 #include "CEGUI/Base.h"
33 #include "CEGUI/String.h"
34 #include "CEGUI/Vector.h"
35 #include "CEGUI/Rect.h"
36 #include "CEGUI/EventSet.h"
37 #include "CEGUI/InputEvent.h"
38 #include "CEGUI/UDim.h"
42 # pragma warning(push)
43 # pragma warning(disable : 4275)
44 # pragma warning(disable : 4251)
102 void setImage(
const String& name);
109 void setImage(
const Image* image);
128 void setDefaultImage(
const Image* image);
140 void setDefaultImage(
const String& name);
151 const Image* getDefaultImage()
const;
161 void draw(
void)
const;
171 void setPosition(
const Vector2f& position);
184 void offsetPosition(
const Vector2f& offset);
199 void setConstraintArea(
const Rectf* area);
214 void setUnifiedConstraintArea(
const URect* area);
224 void hide(
void) {d_visible =
false;}
234 void show(
void) {d_visible =
true;}
268 {
return d_position; }
278 Rectf getConstraintArea(
void)
const;
288 const URect& getUnifiedConstraintArea(
void)
const;
300 Vector2f getDisplayIndependantPosition(
void)
const;
313 void notifyDisplaySizeChanged(
const Sizef& new_size);
330 void setExplicitRenderSize(
const Sizef& size);
337 const Sizef& getExplicitRenderSize()
const;
353 static void setInitialMousePosition(
const Vector2f& position);
380 void constrainPosition(
void);
383 void cacheGeometry()
const;
386 void calculateCustomOffset()
const;
392 const Image* d_cursorImage;
394 const Image* d_defaultCursorImage;
405 static bool s_initialPositionSet;
409 mutable bool d_cachedGeometryValid;
414 #if defined(_MSC_VER)
415 # pragma warning(pop)
418 #endif // end of guard _CEGUIMouseCursor_h_