30 #ifndef _CEGUIMouseCursor_h_
31 #define _CEGUIMouseCursor_h_
33 #include "CEGUI/Base.h"
34 #include "CEGUI/String.h"
35 #include "CEGUI/Vector.h"
36 #include "CEGUI/Rect.h"
37 #include "CEGUI/EventSet.h"
38 #include "CEGUI/InputEvent.h"
39 #include "CEGUI/UDim.h"
43 # pragma warning(push)
44 # pragma warning(disable : 4275)
45 # pragma warning(disable : 4251)
103 void setImage(
const String& name);
110 void setImage(
const Image* image);
129 void setDefaultImage(
const Image* image);
141 void setDefaultImage(
const String& name);
152 const Image* getDefaultImage()
const;
162 void draw(
void)
const;
172 void setPosition(
const Vector2f& position);
185 void offsetPosition(
const Vector2f& offset);
200 void setConstraintArea(
const Rectf* area);
215 void setUnifiedConstraintArea(
const URect* area);
225 void hide(
void) {d_visible =
false;}
235 void show(
void) {d_visible =
true;}
269 {
return d_position; }
279 Rectf getConstraintArea(
void)
const;
289 const URect& getUnifiedConstraintArea(
void)
const;
301 Vector2f getDisplayIndependantPosition(
void)
const;
314 void notifyDisplaySizeChanged(
const Sizef& new_size);
331 void setExplicitRenderSize(
const Sizef& size);
338 const Sizef& getExplicitRenderSize()
const;
354 static void setInitialMousePosition(
const Vector2f& position);
381 void constrainPosition(
void);
384 void cacheGeometry()
const;
387 void calculateCustomOffset()
const;
393 const Image* d_cursorImage;
395 const Image* d_defaultCursorImage;
406 static bool s_initialPositionSet;
410 mutable bool d_cachedGeometryValid;
415 #if defined(_MSC_VER)
416 # pragma warning(pop)
419 #endif // end of guard _CEGUIMouseCursor_h_