SDL
2.0
|
#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "SDL_video.h"
#include "SDL_version.h"
#include "begin_code.h"
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include "close_code.h"
Go to the source code of this file.
Data Structures | |
struct | SDL_SysWMmsg |
struct | SDL_SysWMinfo |
Functions | |
SDL_bool | SDL_GetWindowWMInfo (SDL_Window *window, SDL_SysWMinfo *info) |
This function allows access to driver-dependent window information. More... | |
Include file for SDL custom system window manager hooks.
Your application has access to a special type of event SDL_SYSWMEVENT, 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_EventState().
Definition in file SDL_syswm.h.
enum SDL_SYSWM_TYPE |
These are the various supported windowing subsystems
Definition at line 116 of file SDL_syswm.h.
SDL_bool SDL_GetWindowWMInfo | ( | SDL_Window * | window, |
SDL_SysWMinfo * | info | ||
) |
This function allows access to driver-dependent window information.
window | The window about which information is being requested |
info | This structure must be initialized with the SDL version, and is then filled in with information about the given window. |
info
struct is valid, SDL_FALSE otherwise.You typically use this function like this:
Definition at line 3635 of file SDL_video.c.
References CHECK_WINDOW_MAGIC, SDL_VideoDevice::GetWindowWMInfo, SDL_FALSE, SDL_InvalidParamError, SDL_SYSWM_UNKNOWN, SDL_Unsupported, and SDL_SysWMinfo::subsystem.
Referenced by SDL_MessageboxValidForDriver().