5 #ifndef __I_CURSOR_CONTROL_H_INCLUDED__ 6 #define __I_CURSOR_CONTROL_H_INCLUDED__ 116 virtual void setPosition(
const core::position2d<f32> &pos) = 0;
129 virtual void setPosition(
const core::position2d<s32> &pos) = 0;
142 virtual const core::position2d<s32>&
getPosition(
bool updateCursor=
true) = 0;
dimension2d< s32 > dimension2di
Typedef for an integer dimension.
virtual ECURSOR_PLATFORM_BEHAVIOR getPlatformBehavior() const
Return platform specific behavior.
float f32
32 bit floating point variable.
char c8
8 bit character variable.
virtual void setReferenceRect(core::rect< s32 > *rect=0)=0
Sets an absolute reference rect for setting and retrieving the cursor position.
virtual ECURSOR_ICON addIcon(const gui::SCursorSprite &icon)
Add a custom sprite as cursor icon.
virtual bool isVisible() const =0
Returns if the cursor is currently visible.
structure used to set sprites as cursors.
Everything in the Irrlicht Engine can be found in this namespace.
virtual void changeIcon(ECURSOR_ICON iconId, const gui::SCursorSprite &sprite)
replace a cursor icon.
Specifies a 2 dimensional size.
virtual const core::position2d< s32 > & getPosition(bool updateCursor=true)=0
Returns the current position of the mouse cursor.
ECURSOR_ICON
Default icons for cursors.
virtual void setActiveIcon(ECURSOR_ICON iconId)
Sets the active cursor icon.
signed int s32
32 bit signed variable.
IGUISpriteBank * SpriteBank
virtual void setPosition(const core::position2d< f32 > &pos)=0
Sets the new position of the cursor.
virtual ECURSOR_ICON getActiveIcon() const
Gets the currently active icon.
Interface to manipulate the mouse cursor.
GLint GLint GLint GLint GLint GLint y
default - no platform specific behavior
virtual core::position2d< f32 > getRelativePosition(bool updateCursor=true)=0
Returns the current position of the mouse cursor.
GLint GLint GLint GLint GLint x
virtual core::dimension2di getSupportedIconSize() const
Return a system-specific size which is supported for cursors. Larger icons will fail,...
virtual void setVisible(bool visible)=0
Changes the visible state of the mouse cursor.
const c8 *const GUICursorIconNames[ECI_COUNT+1]
Names for ECURSOR_ICON.
Base class of most objects of the Irrlicht Engine.
SCursorSprite(gui::IGUISpriteBank *spriteBank, s32 spriteId, const core::position2d< s32 > &hotspot=(core::position2d< s32 >(0, 0)))
core::position2d< s32 > HotSpot
On X11 try caching cursor updates as XQueryPointer calls can be expensive.
ECURSOR_PLATFORM_BEHAVIOR
platform specific behavior flags for the cursor
virtual void setPlatformBehavior(ECURSOR_PLATFORM_BEHAVIOR behavior)
Set platform specific behavior flags.