Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
Interface to the mouse cursor. More...
#include <Cursor.h>
Public Member Functions | |
Cursor () | |
const core::position2d & | getAbsolutePosition () const |
const core::position2d & | getPosition () const |
virtual bool | isAutoCenter () |
Returns if the cursor is currently auto-center. | |
virtual void | setAutoCenter (bool reset) |
Changes the auto-center state of the mouse cursor. | |
virtual void | setPosition (s32 x, s32 y)=0 |
virtual void | setPosition (const core::position2d &pos)=0 |
virtual void | setVisible (bool set)=0 |
Changes the visible state of the mouse cursor. | |
virtual | ~Cursor () |
Public Attributes | |
core::position2d | mAbsolutePosition |
bool | mAutoCenter |
core::position2d | mPosition |
Interface to the mouse cursor.
input::Cursor::Cursor | ( | ) |
input::Cursor::~Cursor | ( | ) | [virtual] |
const core::position2d & input::Cursor::getAbsolutePosition | ( | ) | const |
Returns the current position of the mouse cursor.
References mAbsolutePosition.
const core::position2d & input::Cursor::getPosition | ( | ) | const |
Returns the current position of the mouse cursor.
References mPosition.
bool input::Cursor::isAutoCenter | ( | ) | [virtual] |
Returns if the cursor is currently auto-center.
References mAutoCenter.
void input::Cursor::setAutoCenter | ( | bool | reset | ) | [virtual] |
Changes the auto-center state of the mouse cursor.
References mAutoCenter.
virtual void input::Cursor::setPosition | ( | const core::position2d & | pos | ) | [pure virtual] |
Sets the new position of the cursor.
pos,: | New position of the cursor. |
Sets the new position of the cursor.
x,: | New X position of the cursor. |
y,: | New Y position of the cursor. |
virtual void input::Cursor::setVisible | ( | bool | set | ) | [pure virtual] |
Changes the visible state of the mouse cursor.
Referenced by Cursor(), and getAbsolutePosition().
Referenced by Cursor(), isAutoCenter(), and setAutoCenter().
Referenced by Cursor(), and getPosition().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|