SDL 3.0
SDL_system.h File Reference
+ Include dependency graph for SDL_system.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef union _XEvent XEvent
 
typedef SDL_bool(* SDL_X11EventHook) (void *userdata, XEvent *xevent)
 

Functions

void SDL_SetX11EventHook (SDL_X11EventHook callback, void *userdata)
 
SDL_bool SDL_IsTablet (void)
 
void SDL_OnApplicationWillTerminate (void)
 
void SDL_OnApplicationDidReceiveMemoryWarning (void)
 
void SDL_OnApplicationWillResignActive (void)
 
void SDL_OnApplicationDidEnterBackground (void)
 
void SDL_OnApplicationWillEnterForeground (void)
 
void SDL_OnApplicationDidBecomeActive (void)
 

Detailed Description

Include file for platform specific SDL API functions

Definition in file SDL_system.h.

Typedef Documentation

◆ SDL_X11EventHook

typedef SDL_bool(* SDL_X11EventHook) (void *userdata, XEvent *xevent)

Definition at line 111 of file SDL_system.h.

◆ XEvent

typedef union _XEvent XEvent

Definition at line 110 of file SDL_system.h.

Function Documentation

◆ SDL_IsTablet()

SDL_bool SDL_IsTablet ( void  )
extern

Query if the current device is a tablet.

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

Returns
SDL_TRUE if the device is a tablet, SDL_FALSE otherwise.
Since
This function is available since SDL 3.0.0.

◆ SDL_OnApplicationDidBecomeActive()

void SDL_OnApplicationDidBecomeActive ( void  )
extern

◆ SDL_OnApplicationDidEnterBackground()

void SDL_OnApplicationDidEnterBackground ( void  )
extern

◆ SDL_OnApplicationDidReceiveMemoryWarning()

void SDL_OnApplicationDidReceiveMemoryWarning ( void  )
extern

◆ SDL_OnApplicationWillEnterForeground()

void SDL_OnApplicationWillEnterForeground ( void  )
extern

◆ SDL_OnApplicationWillResignActive()

void SDL_OnApplicationWillResignActive ( void  )
extern

◆ SDL_OnApplicationWillTerminate()

void SDL_OnApplicationWillTerminate ( void  )
extern

◆ SDL_SetX11EventHook()

void SDL_SetX11EventHook ( SDL_X11EventHook  callback,
void *  userdata 
)
extern

Set a callback for every X11 event

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

Parameters
callbackThe SDL_X11EventHook function to call.
userdataa pointer to pass to every iteration of callback
Since
This function is available since SDL 3.0.0.