include: Filled in all remaining missing documentation!
This commit is contained in:
@@ -129,7 +129,29 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetDXGIOutputInfo(SDL_DisplayID displayID,
|
||||
* Platform specific functions for UNIX
|
||||
*/
|
||||
|
||||
/* this is defined in Xlib's headers, just need a simple declaration here. */
|
||||
typedef union _XEvent XEvent;
|
||||
|
||||
/**
|
||||
* A callback to be used with SDL_SetX11EventHook.
|
||||
*
|
||||
* This callback may modify the event, and should return true if the event
|
||||
* should continue to be processed, or false to prevent further processing.
|
||||
*
|
||||
* As this is processing an event directly from the X11 event loop, this
|
||||
* callback should do the minimum required work and return quickly.
|
||||
*
|
||||
* \param userdata the app-defined pointer provided to SDL_SetX11EventHook.
|
||||
* \param xevent a pointer to an Xlib XEvent union to process.
|
||||
* \returns true to let event continue on, false to drop it.
|
||||
*
|
||||
* \threadsafety This may only be called (by SDL) from the thread handling the
|
||||
* X11 event loop.
|
||||
*
|
||||
* \since This datatype is available since SDL 3.1.3.
|
||||
*
|
||||
* \sa SDL_SetX11EventHook
|
||||
*/
|
||||
typedef bool (SDLCALL *SDL_X11EventHook)(void *userdata, XEvent *xevent);
|
||||
|
||||
/**
|
||||
@@ -380,6 +402,13 @@ extern SDL_DECLSPEC void SDLCALL SDL_SendAndroidBackButton(void);
|
||||
* \since This macro is available since SDL 3.1.3.
|
||||
*/
|
||||
#define SDL_ANDROID_EXTERNAL_STORAGE_READ 0x01
|
||||
|
||||
/**
|
||||
* See the official Android developer guide for more information:
|
||||
* http://developer.android.com/guide/topics/data/data-storage.html
|
||||
*
|
||||
* \since This macro is available since SDL 3.1.3.
|
||||
*/
|
||||
#define SDL_ANDROID_EXTERNAL_STORAGE_WRITE 0x02
|
||||
|
||||
/**
|
||||
@@ -468,7 +497,17 @@ extern SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidExternalStoragePath(void)
|
||||
*/
|
||||
extern SDL_DECLSPEC const char * SDLCALL SDL_GetAndroidCachePath(void);
|
||||
|
||||
|
||||
/**
|
||||
* Callback that presents a response from a SDL_RequestAndroidPermission call.
|
||||
*
|
||||
* \param userdata an app-controlled pointer that is passed to the callback.
|
||||
* \param permission the Android-specific permission name that was requested.
|
||||
* \param granted true if permission is granted, false if denied.
|
||||
*
|
||||
* \since This datatype is available since SDL 3.1.3.
|
||||
*
|
||||
* \sa SDL_RequestAndroidPermission
|
||||
*/
|
||||
typedef void (SDLCALL *SDL_RequestAndroidPermissionCallback)(void *userdata, const char *permission, bool granted);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user