5 #ifndef __I_CURSOR_CONTROL_H_INCLUDED__ 6 #define __I_CURSOR_CONTROL_H_INCLUDED__ 104 virtual void setVisible(
bool visible) = 0;
108 virtual bool isVisible()
const = 0;
116 virtual void setPosition(
const core::position2d<f32> &pos) = 0;
125 virtual void setPosition(
f32 x,
f32 y) = 0;
129 virtual void setPosition(
const core::position2d<s32> &pos) = 0;
134 virtual void setPosition(
s32 x,
s32 y) = 0;
139 virtual const core::position2d<s32>& getPosition() = 0;
146 virtual core::position2d<f32> getRelativePosition() = 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 ECURSOR_ICON addIcon(const gui::SCursorSprite &icon)
Add a custom sprite as cursor icon.
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.
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 ECURSOR_ICON getActiveIcon() const
Gets the currently active icon.
Interface to manipulate the mouse cursor.
default - no platform specific behavior
virtual core::dimension2di getSupportedIconSize() const
Return a system-specific size which is supported for cursors. Larger icons will fail, smaller icons might work.
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.