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