SDL – sdl2 Reference Manual
Packages
sdl2
SDL
Audio
CPU
Hint
Input
Video
ErrorCode
EventAction
EventState
EventType
HatValue
InitFlag
MouseWheelDirection
PowerState
RWFlags
ThreadPriority
WindowEventType
Condition
Haptic
Mutex
RWops
Semaphore
Thread
AudioDeviceEvent
CommonEvent
ControllerAxisEvent
ControllerButtonEvent
ControllerDeviceEvent
DollarGestureEvent
DropEvent
Event
JoyAxisEvent
JoyBallEvent
JoyButtonEvent
JoyDeviceEvent
JoyHatEvent
KeyboardEvent
MouseButtonEvent
MouseMotionEvent
MouseWheelEvent
MultiGestureEvent
OSEvent
QuitEvent
SysWMEvent
TextEditingEvent
TextInputEvent
Timer
TouchFingerEvent
UserEvent
Version
WindowEvent
EventFilter
ThreadFunction
TimerFunc
clear_error
emit_error
get_error
get_initialized
get_power_info
init
init_subsystem
quit
quit_subsystem
set_error
SDL
Description:
Content:
Namespaces:
Audio
CPU
Hint
Input
Clipboard
Keyboard
ScreenKeyboard
TextInput
Touch
Video
GL
MessageBox
Classes:
Condition
Haptic
Mutex
RWops
Semaphore
Thread
Structs:
AudioDeviceEvent
CommonEvent
ControllerAxisEvent
ControllerButtonEvent
ControllerDeviceEvent
DollarGestureEvent
DropEvent
Event
JoyAxisEvent
JoyBallEvent
JoyButtonEvent
JoyDeviceEvent
JoyHatEvent
KeyboardEvent
MouseButtonEvent
MouseMotionEvent
MouseWheelEvent
MultiGestureEvent
OSEvent
QuitEvent
SysWMEvent
TextEditingEvent
TextInputEvent
Timer
TouchFingerEvent
UserEvent
Version
WindowEvent
Enums:
ErrorCode
EventAction
EventState
EventType
HatValue
InitFlag
-
These flags can be OR'd together.
MouseWheelDirection
PowerState
RWFlags
ThreadPriority
WindowEventType
Delegates:
public
delegate
int
EventFilter
(
ref
Event
ev)
public
delegate
int
ThreadFunction
()
public
delegate
uint32
TimerFunc
(
uint32
interval)
Functions:
public
void
clear_error
()
public
void
emit_error
(
ErrorCode
code)
public
unowned
string
get_error
()
public
uint32
get_initialized
(
uint32
flags)
Use this function to return a mask of the specified subsystems which have previously been initialized.
public
PowerState
get_power_info
(
out
int
seconds_left,
out
int
percentage_left)
public
int
init
(
uint32
flags =
EVERYTHING
)
Use this function to initialize the SDL library. This must be called before using any other SDL function.
public
int
init_subsystem
(
uint32
flags)
Use this function to initialize specific SDL subsystems.
public
void
quit
()
Use this function to clean up all initialized subsystems. You should call it upon all exit conditions.
public
void
quit_subsystem
(
uint32
flags)
Use this function to shut down specific SDL subsystems.
public
int
set_error
(
string
format, ...)