SDL 3.0
|
Include file for SDL custom system window manager hooks. More...
#include <SDL3/SDL_stdinc.h>
#include <SDL3/SDL_error.h>
#include <SDL3/SDL_platform_defines.h>
#include <SDL3/SDL_video.h>
#include <SDL3/SDL_begin_code.h>
#include <SDL3/SDL_close_code.h>
Go to the source code of this file.
Data Structures | |
struct | SDL_SysWMmsg |
struct | SDL_SysWMinfo |
Macros | |
#define | SDL_SYSWM_CURRENT_VERSION 1 |
SDL_syswm.h. | |
#define | SDL_SYSWM_INFO_SIZE_V1 (16 * (sizeof (void *) >= 8 ? sizeof (void *) : sizeof(Uint64))) |
#define | SDL_SYSWM_CURRENT_INFO_SIZE SDL_SYSWM_INFO_SIZE_V1 |
#define | SDL_METALVIEW_TAG 255 |
Enumerations | |
enum | SDL_SYSWM_TYPE { SDL_SYSWM_UNKNOWN , SDL_SYSWM_ANDROID , SDL_SYSWM_COCOA , SDL_SYSWM_HAIKU , SDL_SYSWM_KMSDRM , SDL_SYSWM_RISCOS , SDL_SYSWM_UIKIT , SDL_SYSWM_VIVANTE , SDL_SYSWM_WAYLAND , SDL_SYSWM_WINDOWS , SDL_SYSWM_WINRT , SDL_SYSWM_X11 } |
Functions | |
SDL_COMPILE_TIME_ASSERT (SDL_SysWMinfo_size, sizeof(struct SDL_SysWMinfo)==SDL_SYSWM_CURRENT_INFO_SIZE) | |
int | SDL_GetWindowWMInfo (SDL_Window *window, SDL_SysWMinfo *info, Uint32 version) |
Include file for SDL custom system window manager hooks.
Definition in file SDL_syswm.h.
#define SDL_METALVIEW_TAG 255 |
Definition at line 196 of file SDL_syswm.h.
#define SDL_SYSWM_CURRENT_INFO_SIZE SDL_SYSWM_INFO_SIZE_V1 |
Definition at line 193 of file SDL_syswm.h.
#define SDL_SYSWM_CURRENT_VERSION 1 |
Your application has access to a special type of event SDL_EVENT_SYSWM, which contains window-manager specific information and arrives whenever an unhandled window event occurs. This event is ignored by default, but you can enable it with SDL_SetEventEnabled(). The available subsystems based on platform Forward declaration of types used by subsystems
Definition at line 191 of file SDL_syswm.h.
#define SDL_SYSWM_INFO_SIZE_V1 (16 * (sizeof (void *) >= 8 ? sizeof (void *) : sizeof(Uint64))) |
Definition at line 192 of file SDL_syswm.h.
enum SDL_SYSWM_TYPE |
These are the various supported windowing subsystems
Definition at line 202 of file SDL_syswm.h.
SDL_COMPILE_TIME_ASSERT | ( | SDL_SysWMinfo_size | , |
sizeof(struct SDL_SysWMinfo) | = =SDL_SYSWM_CURRENT_INFO_SIZE |
||
) |
|
extern |
Get driver-specific information about a window.
You must include SDL_syswm.h for the declaration of SDL_SysWMinfo.
window | the window about which information is being requested |
info | an SDL_SysWMinfo structure filled in with window information |
version | the version of info being requested, should be SDL_SYSWM_CURRENT_VERSION |