| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.System.Safe
Synopsis
- sDL_SetX11EventHook :: SDL_X11EventHook -> Ptr Void -> IO ()
- sDL_SetLinuxThreadPriority :: Sint64 -> CInt -> IO CBool
- sDL_SetLinuxThreadPriorityAndPolicy :: Sint64 -> CInt -> CInt -> IO CBool
- sDL_IsTablet :: IO CBool
- sDL_IsTV :: IO CBool
- sDL_GetSandbox :: IO SDL_Sandbox
- sDL_OnApplicationWillTerminate :: IO ()
- sDL_OnApplicationDidReceiveMemoryWarning :: IO ()
- sDL_OnApplicationWillEnterBackground :: IO ()
- sDL_OnApplicationDidEnterBackground :: IO ()
- sDL_OnApplicationWillEnterForeground :: IO ()
- sDL_OnApplicationDidEnterForeground :: IO ()
Documentation
Arguments
| :: SDL_X11EventHook |
|
| -> Ptr Void |
|
| -> 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 atSDL3/SDL_system.h 178:34
Since: 3.2.0
sDL_SetLinuxThreadPriority Source #
- C declaration
SDL_SetLinuxThreadPriority, defined atSDL3/SDL_system.h 197:34
sDL_SetLinuxThreadPriorityAndPolicy Source #
Arguments
| :: Sint64 |
|
| -> CInt |
|
| -> CInt |
|
| -> IO CBool |
- C declaration
SDL_SetLinuxThreadPriorityAndPolicy, defined atSDL3/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 atSDL3/SDL_system.h 630:34
Since: 3.2.0
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 atSDL3/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 atSDL3/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 atSDL3/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 atSDL3/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 atSDL3/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 atSDL3/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 atSDL3/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 atSDL3/SDL_system.h 772:34
Since: 3.2.0