My Project
Loading...
Searching...
No Matches
SDL_syswm.h File Reference
#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "SDL_video.h"
#include "SDL_version.h"
#include <windows.h>
#include "begin_code.h"
#include "close_code.h"

Go to the source code of this file.

Data Structures

struct  SDL_SysWMmsg
 
struct  SDL_SysWMinfo
 

Macros

#define WIN32_LEAN_AND_MEAN
 
#define NOMINMAX
 
#define SDL_METALVIEW_TAG   255
 

Typedefs

typedef struct SDL_SysWMinfo SDL_SysWMinfo
 

Enumerations

enum  SDL_SYSWM_TYPE {
  SDL_SYSWM_UNKNOWN , SDL_SYSWM_WINDOWS , SDL_SYSWM_X11 , SDL_SYSWM_DIRECTFB ,
  SDL_SYSWM_COCOA , SDL_SYSWM_UIKIT , SDL_SYSWM_WAYLAND , SDL_SYSWM_MIR ,
  SDL_SYSWM_WINRT , SDL_SYSWM_ANDROID , SDL_SYSWM_VIVANTE , SDL_SYSWM_OS2 ,
  SDL_SYSWM_HAIKU , SDL_SYSWM_KMSDRM , SDL_SYSWM_RISCOS
}
 

Functions

DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo (SDL_Window *window, SDL_SysWMinfo *info)
 

Detailed Description

Include file for SDL custom system window manager hooks.

Enumeration Type Documentation

◆ SDL_SYSWM_TYPE

These are the various supported windowing subsystems

Function Documentation

◆ SDL_GetWindowWMInfo()

DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo ( SDL_Window window,
SDL_SysWMinfo info 
)

Get driver-specific information about a window.

You must include SDL_syswm.h for the declaration of SDL_SysWMinfo.

The caller must initialize the info structure's version by using SDL_VERSION(&info.version), and then this function will fill in the rest of the structure with information about the given window.

Parameters
windowthe window about which information is being requested
infoan SDL_SysWMinfo structure filled in with window information
Returns
SDL_TRUE if the function is implemented and the version member of the info struct is valid, or SDL_FALSE if the information could not be retrieved; call SDL_GetError() for more information.
Since
This function is available since SDL 2.0.0.