![]() |
nomlib
|
Platform-dependent mouse cursor interface. More...
#include <Cursor.hpp>
Public Types | |
| enum | Type { Arrow , Beam , Wait , CrossHair , WaitArrow , SizeENWSE , SizeNESW , SizeWE , SizeNS , SizeAll , No , Hand , NumSystemCursors } |
| The mouse cursor types. More... | |
| typedef Cursor | self_type |
| typedef self_type * | raw_ptr |
Public Member Functions | |
| Cursor (void) | |
| Default constructor. | |
| ~Cursor (void) | |
| Destructor. | |
| SDL_Cursor * | cursor (void) const |
| Get the active mouse cursor. | |
| SDL_Cursor * | default_cursor (void) const |
| Get the default mouse cursor. | |
| Type | system_cursor (void) const |
| void | set_system_cursor (Type id) |
| Set a platform-dependent system cursor. | |
| bool | cursor_state (void) const |
| Get the state of the cursor. | |
| void | show_cursor (bool state) |
| Toggle the visibility state of the cursor. | |
Static Public Member Functions | |
| static MouseState | mouse_state (void) |
| Retrieve the current state of the mouse. | |
Private Member Functions | |
| void | set_cursor (SDL_Cursor *cursor) |
| Set the active cursor. | |
Private Attributes | |
| Type | system_cursor_ |
| Track the active system cursor in use. | |
Platform-dependent mouse cursor interface.
Definition at line 62 of file Cursor.hpp.
| typedef self_type* nom::Cursor::raw_ptr |
Definition at line 67 of file Cursor.hpp.
| typedef Cursor nom::Cursor::self_type |
Definition at line 65 of file Cursor.hpp.
| enum nom::Cursor::Type |
The mouse cursor types.
Definition at line 72 of file Cursor.hpp.
| SDL_Cursor * nom::Cursor::cursor | ( | void | ) | const |
Get the active mouse cursor.
| bool nom::Cursor::cursor_state | ( | void | ) | const |
Get the state of the cursor.
| SDL_Cursor * nom::Cursor::default_cursor | ( | void | ) | const |
Get the default mouse cursor.
|
static |
Retrieve the current state of the mouse.
|
private |
Set the active cursor.
| void nom::Cursor::set_system_cursor | ( | Type | id | ) |
Set a platform-dependent system cursor.
| void nom::Cursor::show_cursor | ( | bool | state | ) |
Toggle the visibility state of the cursor.
|
private |
Track the active system cursor in use.
Definition at line 141 of file Cursor.hpp.