Module system

Available on crate feature dep_sdl3 only.
Expand description

Platform-specific SDL API functions. These are functions that deal with needs of specific operating systems, that didn’t make sense to offer as platform-independent, generic APIs.

Most apps can make do without these functions, but they can be useful for integrating with other parts of a specific system, adding platform-specific polish to an app, or solving problems that only affect one target.

Structs§

SDL_Sandbox
Application sandbox environment.

Constants§

SDL_SANDBOX_FLATPAK
SDL_SANDBOX_MACOS
SDL_SANDBOX_NONE
SDL_SANDBOX_SNAP
SDL_SANDBOX_UNKNOWN_CONTAINER

Functions§

SDL_GetSandbox
Get the application sandbox environment, if any.
SDL_IsTV
Query if the current device is a TV.
SDL_IsTablet
Query if the current device is a tablet.
SDL_OnApplicationDidEnterBackground
Let iOS apps with external event handling report onApplicationDidEnterBackground.
SDL_OnApplicationDidEnterForeground
Let iOS apps with external event handling report onApplicationDidBecomeActive.
SDL_OnApplicationDidReceiveMemoryWarning
Let iOS apps with external event handling report onApplicationDidReceiveMemoryWarning.
SDL_OnApplicationWillEnterBackground
Let iOS apps with external event handling report onApplicationWillResignActive.
SDL_OnApplicationWillEnterForeground
Let iOS apps with external event handling report onApplicationWillEnterForeground.
SDL_OnApplicationWillTerminate
Let iOS apps with external event handling report onApplicationWillTerminate.
SDL_SetLinuxThreadPriority
Sets the UNIX nice value for a thread.
SDL_SetLinuxThreadPriorityAndPolicy
Sets the priority (not nice level) and scheduling policy for a thread.
SDL_SetX11EventHook
Set a callback for every X11 event.

Type Aliases§

SDL_X11EventHook
A callback to be used with SDL_SetX11EventHook.
XEvent
(sdl3-sys) Enable either a use-x11-* or a use-x11-dl-* feature to alias this to XEvent from the x11 or x11-dl crates, respectively. Otherwise it’s an opaque struct.