SDL.Input.Cursor – sdl2 Reference Manual
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
()
2022 vala-language.org