sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.System.Safe

Synopsis

Documentation

sDL_SetX11EventHook Source #

Arguments

:: SDL_X11EventHook
callback
the SDL_X11EventHook function to call.
-> Ptr Void
userdata
a pointer to pass to every iteration of callback.
-> IO () 

Set a callback for every X11 event.

The callback may modify the event, and should return true if the event should continue to be processed, or false to prevent further processing.

Thread safety
This function should only be called on the main thread.
C declaration
SDL_SetX11EventHook, defined at SDL3/SDL_system.h 178:34

Since: 3.2.0

sDL_SetLinuxThreadPriority Source #

Arguments

:: Sint64
C declaration
threadID
-> CInt
C declaration
priority
-> IO CBool 
C declaration
SDL_SetLinuxThreadPriority, defined at SDL3/SDL_system.h 197:34

sDL_SetLinuxThreadPriorityAndPolicy Source #

Arguments

:: Sint64
C declaration
threadID
-> CInt
C declaration
sdlPriority
-> CInt
C declaration
schedPolicy
-> IO CBool 
C declaration
SDL_SetLinuxThreadPriorityAndPolicy, defined at SDL3/SDL_system.h 215:34

sDL_IsTablet :: IO CBool Source #

Query if the current device is a tablet.

If SDL can't determine this, it will return false.

Returns
true if the device is a tablet, false otherwise.
Thread safety
It is safe to call this function from any thread.
C declaration
SDL_IsTablet, defined at SDL3/SDL_system.h 630:34

Since: 3.2.0

sDL_IsTV :: IO CBool Source #

Query if the current device is a TV.

If SDL can't determine this, it will return false.

Returns
true if the device is a TV, false otherwise.
Thread safety
It is safe to call this function from any thread.
C declaration
SDL_IsTV, defined at SDL3/SDL_system.h 643:34

Since: 3.2.0

sDL_GetSandbox :: IO SDL_Sandbox Source #

Get the application sandbox environment, if any.

Returns
the application sandbox environment or SDL_SANDBOX_NONE if the application is not running in a sandbox environment.
C declaration
SDL_GetSandbox, defined at SDL3/SDL_system.h 667:41

Since: 3.2.0

sDL_OnApplicationWillTerminate :: IO () Source #

Let iOS apps with external event handling report onApplicationWillTerminate.

This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!

Thread safety
It is safe to call this function from any thread.
C declaration
SDL_OnApplicationWillTerminate, defined at SDL3/SDL_system.h 687:34

Since: 3.2.0

sDL_OnApplicationDidReceiveMemoryWarning :: IO () Source #

Let iOS apps with external event handling report onApplicationDidReceiveMemoryWarning.

This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!

Thread safety
It is safe to call this function from any thread.
C declaration
SDL_OnApplicationDidReceiveMemoryWarning, defined at SDL3/SDL_system.h 704:34

Since: 3.2.0

sDL_OnApplicationWillEnterBackground :: IO () Source #

Let iOS apps with external event handling report onApplicationWillResignActive.

This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!

Thread safety
It is safe to call this function from any thread.
C declaration
SDL_OnApplicationWillEnterBackground, defined at SDL3/SDL_system.h 721:34

Since: 3.2.0

sDL_OnApplicationDidEnterBackground :: IO () Source #

Let iOS apps with external event handling report onApplicationDidEnterBackground.

This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!

Thread safety
It is safe to call this function from any thread.
C declaration
SDL_OnApplicationDidEnterBackground, defined at SDL3/SDL_system.h 738:34

Since: 3.2.0

sDL_OnApplicationWillEnterForeground :: IO () Source #

Let iOS apps with external event handling report onApplicationWillEnterForeground.

This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!

Thread safety
It is safe to call this function from any thread.
C declaration
SDL_OnApplicationWillEnterForeground, defined at SDL3/SDL_system.h 755:34

Since: 3.2.0

sDL_OnApplicationDidEnterForeground :: IO () Source #

Let iOS apps with external event handling report onApplicationDidBecomeActive.

This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!

Thread safety
It is safe to call this function from any thread.
C declaration
SDL_OnApplicationDidEnterForeground, defined at SDL3/SDL_system.h 772:34

Since: 3.2.0