sdl.system

SDL System

Members

Aliases

SDL_RequestAndroidPermissionCallback
alias SDL_RequestAndroidPermissionCallback = void function(void* userdata, const char* permission, bool granted)

Callback that presents a response from a SDL_RequestAndroidPermission call.

SDL_WindowsMessageHook
alias SDL_WindowsMessageHook = bool function(void* userdata, MSG* msg)

A callback to be used with SDL_SetWindowsMessageHook.

SDL_X11EventHook
alias SDL_X11EventHook = bool function(void* userdata, XEvent* xevent)

A callback to be used with SDL_SetX11EventHook.

SDL_iOSAnimationCallback
alias SDL_iOSAnimationCallback = void function(void* userdata)

The prototype for an Apple iOS animation callback.

XTaskQueueHandle
alias XTaskQueueHandle = OpaqueHandle!("XTaskQueueObject")
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
XUserHandle
alias XUserHandle = OpaqueHandle!("XUser")
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Enums

SDL_Sandbox
enum SDL_Sandbox

Application sandbox environment.

Functions

SDL_GetAndroidActivity
void* SDL_GetAndroidActivity()

Retrieve the Java instance of the Android activity class.

SDL_GetAndroidCachePath
const(char)* SDL_GetAndroidCachePath()

Get the path used for caching data for this Android application.

SDL_GetAndroidExternalStoragePath
const(char)* SDL_GetAndroidExternalStoragePath()

Get the path used for external storage for this Android application.

SDL_GetAndroidExternalStorageState
Uint32 SDL_GetAndroidExternalStorageState()

Get the current state of external storage for this Android application.

SDL_GetAndroidInternalStoragePath
const(char)* SDL_GetAndroidInternalStoragePath()

Get the path used for internal storage for this Android application.

SDL_GetAndroidJNIEnv
void* SDL_GetAndroidJNIEnv()

Get the Android Java Native Interface Environment of the current thread.

SDL_GetAndroidSDKVersion
int SDL_GetAndroidSDKVersion()

Query Android API level of the current device. - API level 35: Android 15 (VANILLA_ICE_CREAM) - API level 34: Android 14 (UPSIDE_DOWN_CAKE) - API level 33: Android 13 (TIRAMISU) - API level 32: Android 12L (S_V2) - API level 31: Android 12 (S) - API level 30: Android 11 (R) - API level 29: Android 10 (Q) - API level 28: Android 9 (P) - API level 27: Android 8.1 (O_MR1) - API level 26: Android 8.0 (O) - API level 25: Android 7.1 (N_MR1) - API level 24: Android 7.0 (N) - API level 23: Android 6.0 (M) - API level 22: Android 5.1 (LOLLIPOP_MR1) - API level 21: Android 5.0 (LOLLIPOP, L) - API level 20: Android 4.4W (KITKAT_WATCH) - API level 19: Android 4.4 (KITKAT) - API level 18: Android 4.3 (JELLY_BEAN_MR2) - API level 17: Android 4.2 (JELLY_BEAN_MR1) - API level 16: Android 4.1 (JELLY_BEAN) - API level 15: Android 4.0.3 (ICE_CREAM_SANDWICH_MR1) - API level 14: Android 4.0 (ICE_CREAM_SANDWICH) - API level 13: Android 3.2 (HONEYCOMB_MR2) - API level 12: Android 3.1 (HONEYCOMB_MR1) - API level 11: Android 3.0 (HONEYCOMB) - API level 10: Android 2.3.3 (GINGERBREAD_MR1)

SDL_GetDXGIOutputInfo
bool SDL_GetDXGIOutputInfo(SDL_DisplayID displayID, int* adapterIndex, int* outputIndex)

Get the DXGI Adapter and Output indices for the specified display.

SDL_GetDirect3D9AdapterIndex
int SDL_GetDirect3D9AdapterIndex(SDL_DisplayID displayID)

Get the D3D9 adapter index that matches the specified display.

SDL_GetGDKDefaultUser
bool SDL_GetGDKDefaultUser(XUserHandle* outUserHandle)

Gets a reference to the default user handle for GDK.

SDL_GetGDKTaskQueue
bool SDL_GetGDKTaskQueue(XTaskQueueHandle* outTaskQueue)

Gets a reference to the global async task queue handle for GDK, initializing if needed.

SDL_GetSandbox
SDL_Sandbox SDL_GetSandbox()

Get the application sandbox environment, if any.

SDL_IsChromebook
bool SDL_IsChromebook()

Query if the application is running on a Chromebook.

SDL_IsDeXMode
bool SDL_IsDeXMode()

Query if the application is running on a Samsung DeX docking station.

SDL_IsTV
bool SDL_IsTV()

Query if the current device is a TV.

SDL_IsTablet
bool SDL_IsTablet()

Query if the current device is a tablet.

SDL_OnApplicationDidChangeStatusBarOrientation
void SDL_OnApplicationDidChangeStatusBarOrientation()

Let iOS apps with external event handling report onApplicationDidChangeStatusBarOrientation.

SDL_OnApplicationDidEnterBackground
void SDL_OnApplicationDidEnterBackground()

Let iOS apps with external event handling report onApplicationDidEnterBackground.

SDL_OnApplicationDidEnterForeground
void SDL_OnApplicationDidEnterForeground()

Let iOS apps with external event handling report onApplicationDidBecomeActive.

SDL_OnApplicationDidReceiveMemoryWarning
void SDL_OnApplicationDidReceiveMemoryWarning()

Let iOS apps with external event handling report onApplicationDidReceiveMemoryWarning.

SDL_OnApplicationWillEnterBackground
void SDL_OnApplicationWillEnterBackground()

Let iOS apps with external event handling report onApplicationWillResignActive.

SDL_OnApplicationWillEnterForeground
void SDL_OnApplicationWillEnterForeground()

Let iOS apps with external event handling report onApplicationWillEnterForeground.

SDL_OnApplicationWillTerminate
void SDL_OnApplicationWillTerminate()

Let iOS apps with external event handling report onApplicationWillTerminate.

SDL_RequestAndroidPermission
bool SDL_RequestAndroidPermission(char* permission, SDL_RequestAndroidPermissionCallback cb, void* userdata)

Request permissions at runtime, asynchronously.

SDL_SendAndroidBackButton
void SDL_SendAndroidBackButton()

Trigger the Android system back button behavior.

SDL_SendAndroidMessage
bool SDL_SendAndroidMessage(Uint32 command, int param)

Send a user command to SDLActivity.

SDL_SetLinuxThreadPriority
bool SDL_SetLinuxThreadPriority(Sint64 threadID, int priority)

Sets the UNIX nice value for a thread.

SDL_SetLinuxThreadPriorityAndPolicy
bool SDL_SetLinuxThreadPriorityAndPolicy(Sint64 threadID, int sdlPriority, int schedPolicy)

Sets the priority (not nice level) and scheduling policy for a thread.

SDL_SetWindowsMessageHook
void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void* userdata)

Set a callback for every Windows message, run before TranslateMessage().

SDL_SetX11EventHook
void SDL_SetX11EventHook(SDL_X11EventHook callback, void* userdata)

Set a callback for every X11 event.

SDL_SetiOSAnimationCallback
bool SDL_SetiOSAnimationCallback(SDL_Window* window, int interval, SDL_iOSAnimationCallback callback, void* callbackParam)

Use this function to set the animation callback on Apple iOS.

SDL_SetiOSEventPump
void SDL_SetiOSEventPump(bool enabled)

Use this function to enable or disable the SDL event pump on Apple iOS.

SDL_ShowAndroidToast
bool SDL_ShowAndroidToast(char* message, int duration, int gravity, int xoffset, int yoffset)

Shows an Android toast notification.

Manifest constants

SDL_ANDROID_EXTERNAL_STORAGE_READ
enum SDL_ANDROID_EXTERNAL_STORAGE_READ;

See the official Android developer guide for more information: http://developer.android.com/guide/topics/data/data-storage.html

SDL_ANDROID_EXTERNAL_STORAGE_WRITE
enum SDL_ANDROID_EXTERNAL_STORAGE_WRITE;

See the official Android developer guide for more information: http://developer.android.com/guide/topics/data/data-storage.html

Structs

MSG
struct MSG
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Unions

XEvent
union XEvent
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

See Also

Meta

License

Subject to the terms of the Zlib License, as written in the LICENSE file.

Authors

Luna Nielsen