sdl3/generated/lib_sdl_system library

Functions

sdlGetAndroidActivity() Pointer<NativeType>
Retrieve the Java instance of the Android activity class.
sdlGetAndroidCachePath() String?
Get the path used for caching data for this Android application.
sdlGetAndroidExternalStoragePath() String?
Get the path used for external storage for this Android application.
sdlGetAndroidExternalStorageState() int
Get the current state of external storage for this Android application.
sdlGetAndroidInternalStoragePath() String?
Get the path used for internal storage for this Android application.
sdlGetAndroidJniEnv() Pointer<NativeType>
Get the Android Java Native Interface Environment of the current thread.
sdlGetAndroidSdkVersion() int
Query Android API level of the current device.
sdlGetDirect3D9AdapterIndex(int displayId) int
Get the D3D9 adapter index that matches the specified display.
sdlGetDxgiOutputInfo(int displayId, Pointer<Int32> adapterIndex, Pointer<Int32> outputIndex) bool
Get the DXGI Adapter and Output indices for the specified display.
sdlGetGdkDefaultUser(Pointer<XUserHandle> outUserHandle) bool
Gets a reference to the default user handle for GDK.
sdlGetGdkTaskQueue(Pointer<XTaskQueueHandle> outTaskQueue) bool
Gets a reference to the global async task queue handle for GDK, initializing if needed.
sdlGetSandbox() int
Get the application sandbox environment, if any.
sdlIsChromebook() bool
Query if the application is running on a Chromebook.
sdlIsDeXMode() bool
Query if the application is running on a Samsung DeX docking station.
sdlIsTablet() bool
Query if the current device is a tablet.
sdlIsTv() bool
Query if the current device is a TV.
sdlOnApplicationDidChangeStatusBarOrientation() → void
Let iOS apps with external event handling report onApplicationDidChangeStatusBarOrientation.
sdlOnApplicationDidEnterBackground() → void
Let iOS apps with external event handling report onApplicationDidEnterBackground.
sdlOnApplicationDidEnterForeground() → void
Let iOS apps with external event handling report onApplicationDidBecomeActive.
sdlOnApplicationDidReceiveMemoryWarning() → void
Let iOS apps with external event handling report onApplicationDidReceiveMemoryWarning.
sdlOnApplicationWillEnterBackground() → void
Let iOS apps with external event handling report onApplicationWillResignActive.
sdlOnApplicationWillEnterForeground() → void
Let iOS apps with external event handling report onApplicationWillEnterForeground.
sdlOnApplicationWillTerminate() → void
Let iOS apps with external event handling report onApplicationWillTerminate.
sdlRequestAndroidPermission(String? permission, Pointer<NativeFunction<SdlRequestAndroidPermissionCallback>> cb, Pointer<NativeType> userdata) bool
Request permissions at runtime, asynchronously.
sdlSendAndroidBackButton() → void
Trigger the Android system back button behavior.
sdlSendAndroidMessage(int command, int param) bool
Send a user command to SDLActivity.
sdlSetiOsAnimationCallback(Pointer<SdlWindow> window, int interval, Pointer<NativeFunction<SdlIOsAnimationCallback>> callback, Pointer<NativeType> callbackParam) bool
Use this function to set the animation callback on Apple iOS.
sdlSetiOsEventPump(bool enabled) → void
Use this function to enable or disable the SDL event pump on Apple iOS.
sdlSetLinuxThreadPriority(int threadId, int priority) bool
Sets the UNIX nice value for a thread.
sdlSetLinuxThreadPriorityAndPolicy(int threadId, int sdlPriority, int schedPolicy) bool
Sets the priority (not nice level) and scheduling policy for a thread.
sdlSetWindowsMessageHook(Pointer<NativeFunction<SdlWindowsMessageHook>> callback, Pointer<NativeType> userdata) → void
Set a callback for every Windows message, run before TranslateMessage().
sdlSetX11EventHook(Pointer<NativeFunction<SdlX11EventHook>> callback, Pointer<NativeType> userdata) → void
Set a callback for every X11 event.
sdlShowAndroidToast(String? message, int duration, int gravity, int xoffset, int yoffset) bool
Shows an Android toast notification.