|
virtual void | setVisible (bool visible)=0 |
| Changes the visible state of the mouse cursor.
|
|
virtual bool | isVisible () const =0 |
| Returns if the cursor is currently visible.
|
|
virtual void | setPosition (const core::position2d< f32 > &pos)=0 |
| Sets the new position of the cursor.
|
|
virtual void | setPosition (f32 x, f32 y)=0 |
| Sets the new position of the cursor.
|
|
virtual void | setPosition (const core::position2d< s32 > &pos)=0 |
| Sets the new position of the cursor.
|
|
virtual void | setPosition (s32 x, s32 y)=0 |
| Sets the new position of the cursor.
|
|
virtual const core::position2d< s32 > & | getPosition (bool updateCursor=true)=0 |
| Returns the current position of the mouse cursor.
|
|
virtual core::position2d< f32 > | getRelativePosition (bool updateCursor=true)=0 |
| Returns the current position of the mouse cursor.
|
|
virtual void | setReferenceRect (core::rect< s32 > *rect=0)=0 |
| Sets an absolute reference rect for setting and retrieving the cursor position.
|
|
virtual void | setActiveIcon (ECURSOR_ICON iconId) |
| Sets the active cursor icon.
|
|
virtual ECURSOR_ICON | getActiveIcon () const |
| Gets the currently active icon.
|
|
virtual ECURSOR_ICON | addIcon (const gui::SCursorSprite &icon) |
| Add a custom sprite as cursor icon.
|
|
virtual void | changeIcon (ECURSOR_ICON iconId, const gui::SCursorSprite &sprite) |
| replace a cursor icon.
|
|
virtual core::dimension2di | getSupportedIconSize () const |
| Return a system-specific size which is supported for cursors. Larger icons will fail, smaller icons might work.
|
|
virtual void | setPlatformBehavior (ECURSOR_PLATFORM_BEHAVIOR behavior) |
| Set platform specific behavior flags.
|
|
virtual ECURSOR_PLATFORM_BEHAVIOR | getPlatformBehavior () const |
| Return platform specific behavior.
|
|
| IReferenceCounted () |
| Constructor.
|
|
virtual | ~IReferenceCounted () |
| Destructor.
|
|
void | grab () const |
| Grabs the object. Increments the reference counter by one.
|
|
bool | drop () const |
| Drops the object. Decrements the reference counter by one.
|
|
s32 | getReferenceCount () const |
| Get the reference count.
|
|
const c8 * | getDebugName () const |
| Returns the debug name of the object.
|
|
Interface to manipulate the mouse cursor.
virtual void jpp::gui::ICursorControl::setPosition |
( |
const core::position2d< f32 > & |
pos | ) |
|
|
pure virtual |
Sets the new position of the cursor.
The position must be between (0.0f, 0.0f) and (1.0f, 1.0f), where (0.0f, 0.0f) is the top left corner and (1.0f, 1.0f) is the bottom right corner of the render window.
- Parameters
-
pos | New position of the cursor. |
virtual void jpp::gui::ICursorControl::setPosition |
( |
f32 |
x, |
|
|
f32 |
y |
|
) |
| |
|
pure virtual |
Sets the new position of the cursor.
The position must be between (0.0f, 0.0f) and (1.0f, 1.0f), where (0.0f, 0.0f) is the top left corner and (1.0f, 1.0f) is the bottom right corner of the render window.
- Parameters
-
x | New x-coord of the cursor. |
y | New x-coord of the cursor. |