29#ifndef NOMLIB_GRAPHICS_CURSOR_HPP
30#define NOMLIB_GRAPHICS_CURSOR_HPP
34#include "nomlib/config.hpp"
35#include "nomlib/math/Point2.hpp"
44void free_cursor( SDL_Cursor* c );
67 typedef self_type* raw_ptr;
115 Type system_cursor(
void )
const;
static MouseState mouse_state(void)
Retrieve the current state of the mouse.
Type
The mouse cursor types.
@ No
Four pointed arrow pointing north, south, east and west.
@ SizeWE
Double arrow pointing northeast and southwest.
@ SizeAll
Double arrow pointing north and south.
@ SizeNS
Double arrow pointing west and east.
@ SizeNESW
Double arrow pointing northwest and southeast.
@ Hand
Slashed circle or crossbones.
SDL_Cursor * cursor(void) const
Get the active mouse cursor.
void set_system_cursor(Type id)
Set a platform-dependent system cursor.
void show_cursor(bool state)
Toggle the visibility state of the cursor.
void set_cursor(SDL_Cursor *cursor)
Set the active cursor.
Type system_cursor_
Track the active system cursor in use.
bool cursor_state(void) const
Get the state of the cursor.
SDL_Cursor * default_cursor(void) const
Get the default mouse cursor.
Cursor(void)
Default constructor.
uint32 state
32-bit button bit-mask of the current button state.
Point2i pos
The X & Y coordinates of the mouse cursor position, relative to the focused window.