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_
Class used as a two dimensional vector (aka a Point)
Definition: CEGUIVector.h:45
Class that allows access to the GUI system mouse cursor.
Definition: CEGUIMouseCursor.h:70
void hide(void)
Hides the mouse cursor.
Definition: CEGUIMouseCursor.h:226
Area rectangle class built using unified dimensions (UDims).
Definition: CEGUIUDim.h:245
Class that represents a single Image of an Imageset.
Definition: CEGUIImage.h:57
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: CEGUIGeometryBuffer.h:42
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
static const String EventImageChanged
Definition: CEGUIMouseCursor.h:85
bool isVisible(void) const
return whether the mouse cursor is visible.
Definition: CEGUIMouseCursor.h:259
static const String EventNamespace
Namespace for global events.
Definition: CEGUIMouseCursor.h:73
Definition: CEGUISingleton.h:56
Point getPosition(void) const
Return the current mouse cursor position as a pixel offset from the top-left corner of the display...
Definition: CEGUIMouseCursor.h:269
The default mouse cursor image should be displayed.
Definition: CEGUIMouseCursor.h:60
MouseCursorImage
Enumeration of special values used for mouse cursor settings in Window objects.
Definition: CEGUIMouseCursor.h:57
No image should be displayed for the mouse cursor.
Definition: CEGUIMouseCursor.h:59
EventArgs based class that is used for objects passed to input event handlers concerning mouse cursor...
Definition: CEGUIInputEvent.h:293
const Image * getImage(void) const
Get the current mouse cursor image.
Definition: CEGUIMouseCursor.h:153
void setVisible(bool visible)
Set the visibility of the mouse cursor.
Definition: CEGUIMouseCursor.h:249
Class that collects together a set of Event objects.
Definition: CEGUIEventSet.h:66
void show(void)
Shows the mouse cursor.
Definition: CEGUIMouseCursor.h:236
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44
String class used within the GUI system.
Definition: CEGUIString.h:57