Packages
sdl2
SDL
Input
Cursor
get_active
get_default
get_focus
get_global_state
get_relative_mode
get_relative_state
get_state
is_haptic
set_relative_mode
show
toggle_capture
warp_global
warp_inwindow
Cursor
Cursor.from_color
Cursor.from_system
set_active
Cursor
Object Hierarchy:
SDL.Input.Cursor
SDL.Input.Cursor
SDL.Input.Cursor
Description:
[
CCode
( cname =
"SDL_Cursor"
, free_function =
"SDL_FreeCursor"
) ]
[
Compact
]
public
class
Cursor
Namespace:
SDL.Input
Package:
sdl2
Content:
Static methods:
public
static
Cursor
get_active
()
public
static
Cursor
get_default
()
public
static
Window
get_focus
()
public
static
uint32
get_global_state
(
ref
int
x,
ref
int
y)
public
static
bool
get_relative_mode
()
public
static
uint32
get_relative_state
(
ref
int
x,
ref
int
y)
public
static
uint32
get_state
(
ref
int
x,
ref
int
y)
public
static
int
is_haptic
()
public
static
int
set_relative_mode
(
bool
enabled)
public
static
int
show
(
int
toggle)
public
static
int
toggle_capture
(
bool
active)
public
static
int
warp_global
(
int
x,
int
y)
public
static
void
warp_inwindow
(
Window
window,
int
x,
int
y)
Creation methods:
public
Cursor
(
uint8
[] data,
uint8
[] mask,
int
w,
int
h,
int
hot_x,
int
hot_y)
public
Cursor.from_color
(
Surface
surface,
int
hot_x,
int
hot_y)
public
Cursor.from_system
(
SystemCursor
id)
Methods:
public
void
set_active
()