class
Cursor
Allows you to manipulate the platform cursor in various ways.
Public
Constructors
Cursor
Methods
SetScreenPosition
Moves the cursor to the specified screen position.
GetScreenPosition
Retrieves the cursor position in screen coordinates.
Hide
Hides the cursor.
Show
Shows the cursor.
ClipToWindow
Limit cursor movement to the specified window.
ClipToRect
Limit cursor movement to specific area on the screen.
ClipDisable
Disables cursor clipping that was set using any of the clipTo* methods.
SetCursor
Sets a cursor icon.
Uses one of the built-in cursor types.
SetCursor
Sets a cursor icon.
Uses one of the manually registered icons.
- name
- The name to identify the cursor, one set previously by calling setCursorIcon().
SetCursorIcon
Registers a new custom cursor icon you can then set by calling "setCursor".
- name
- The name to identify the cursor.
- pixelData
- Cursor image data.
- hotSpot
- Offset on the cursor image to where the actual input happens (for example tip of the Arrow cursor).
SetCursorIcon
Registers a new custom cursor icon you can then set by calling setCursor().
- type
- One of the built-in cursor types.
- pixelData
- Cursor image data.
- hotSpot
- Offset on the cursor image to where the actual input happens (for example tip of the Arrow cursor).
ClearCursorIcon
Removes a custom cursor icon and releases any data associated with it.
ClearCursorIcon
Removes a custom cursor icon and releases any data associated with it.
Restores original icon associated with this cursor type.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.
Private
Methods
RestoreCursorIcon
Restores the default cursor icon for the specified cursor type.
UpdateCursorImage
Sends the cursor image to the OS, making it active.