21 #include "../SDL_internal.h"
23 #ifndef _SDL_sysvideo_h
24 #define _SDL_sysvideo_h
111 #define FULLSCREEN_VISIBLE(W) \
112 (((W)->flags & SDL_WINDOW_FULLSCREEN) && \
113 ((W)->flags & SDL_WINDOW_SHOWN) && \
114 !((W)->flags & SDL_WINDOW_MINIMIZED))
140 #define _THIS SDL_VideoDevice *_this
235 void *(*GL_GetProcAddress) (
_THIS,
const char *proc);
335 #if SDL_VIDEO_OPENGL_EGL
336 struct SDL_EGL_VideoData *egl_data;
339 #if SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
356 #if SDL_VIDEO_DRIVER_COCOA
359 #if SDL_VIDEO_DRIVER_X11
362 #if SDL_VIDEO_DRIVER_MIR
365 #if SDL_VIDEO_DRIVER_DIRECTFB
368 #if SDL_VIDEO_DRIVER_WINDOWS
371 #if SDL_VIDEO_DRIVER_WINRT
374 #if SDL_VIDEO_DRIVER_HAIKU
377 #if SDL_VIDEO_DRIVER_PANDORA
380 #if SDL_VIDEO_DRIVER_UIKIT
383 #if SDL_VIDEO_DRIVER_ANDROID
386 #if SDL_VIDEO_DRIVER_PSP
389 #if SDL_VIDEO_DRIVER_RPI
392 #if SDL_VIDEO_DRIVER_DUMMY
395 #if SDL_VIDEO_DRIVER_WAYLAND
398 #if SDL_VIDEO_DRIVER_NACL
401 #if SDL_VIDEO_DRIVER_VIVANTE
404 #if SDL_VIDEO_DRIVER_EMSCRIPTEN
void SDL_UpdateWindowGrab(SDL_Window *window)
int(* GetDisplayDPI)(_THIS, SDL_VideoDisplay *display, float *ddpi, float *hdpi, float *vdpi)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
void(* RestoreWindow)(_THIS, SDL_Window *window)
SDL_DisplayMode fullscreen_mode
uint32_t Uint32
An unsigned 32-bit integer type.
int(* SetWindowHitTest)(SDL_Window *window, SDL_bool enabled)
SDL_bool(* IsScreenKeyboardShown)(_THIS, SDL_Window *window)
int(* CreateWindowFrom)(_THIS, SDL_Window *window, const void *data)
SDL_TLSID current_glwin_tls
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
A collection of pixels used in software blitting.
void SDL_OnWindowResized(SDL_Window *window)
int(* GL_SetSwapInterval)(_THIS, int interval)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void(* ShowWindow)(_THIS, SDL_Window *window)
The structure that defines a display mode.
SDL_HitTestResult(* SDL_HitTest)(SDL_Window *win, const SDL_Point *area, void *data)
Callback used for hit-testing.
void(* StartTextInput)(_THIS)
void(* SetWindowSize)(_THIS, SDL_Window *window)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
void(* GL_SwapWindow)(_THIS, SDL_Window *window)
void SDL_OnWindowEnter(SDL_Window *window)
int SDL_AddVideoDisplay(const SDL_VideoDisplay *display)
int(* GL_LoadLibrary)(_THIS, const char *path)
struct SDL_GLDriverData * gl_data
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
void * SDL_GetDisplayDriverData(int displayIndex)
void(* SetWindowBordered)(_THIS, SDL_Window *window, SDL_bool bordered)
void(* GL_GetDrawableSize)(_THIS, SDL_Window *window, int *w, int *h)
void SDL_OnWindowHidden(SDL_Window *window)
void(* HideWindow)(_THIS, SDL_Window *window)
void(* RaiseWindow)(_THIS, SDL_Window *window)
struct SDL_WindowUserData * next
int(* SetWindowShape)(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
void SDL_OnWindowMinimized(SDL_Window *window)
void(* SetTextInputRect)(_THIS, SDL_Rect *rect)
void * SDL_GLContext
An opaque handle to an OpenGL context.
SDL_bool(* GetWindowWMInfo)(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_GLContext current_glctx
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
int SDL_RecreateWindow(SDL_Window *window, Uint32 flags)
SDL_WindowShaper * shaper
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
uint8_t Uint8
An unsigned 8-bit integer type.
SDL_Window * SDL_GetFocusWindow(void)
SDL_DisplayMode * display_modes
void(* SetWindowMinimumSize)(_THIS, SDL_Window *window)
SDL_DisplayMode current_mode
SDL_VideoDisplay * displays
int(* GetDisplayBounds)(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect)
void(* DestroyWindow)(_THIS, SDL_Window *window)
void SDL_OnWindowLeave(SDL_Window *window)
void(* StopTextInput)(_THIS)
void(* SetWindowIcon)(_THIS, SDL_Window *window, SDL_Surface *icon)
int framebuffer_srgb_capable
MessageBox structure containing title, text, window, etc.
SDL_bool(* HasScreenKeyboardSupport)(_THIS)
GLenum GLenum GLsizei const GLuint GLboolean enabled
SDL_Window * fullscreen_window
void(* DestroyWindowFramebuffer)(_THIS, SDL_Window *window)
void(* GL_UnloadLibrary)(_THIS)
int share_with_current_context
void(* GetDisplayModes)(_THIS, SDL_VideoDisplay *display)
int(* ShowMessageBox)(_THIS, const SDL_MessageBoxData *messageboxdata, int *buttonid)
SDL_bool SDL_ShouldAllowTopmost(void)
void(* SetWindowMaximumSize)(_THIS, SDL_Window *window)
SDL_DisplayMode desktop_mode
Uint32 last_fullscreen_flags
static char text[MAX_TEXT_LENGTH]
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
int(* ResizeWindowShape)(SDL_Window *window)
SDL_VideoDisplay * SDL_GetDisplayForWindow(SDL_Window *window)
void(* SetWindowPosition)(_THIS, SDL_Window *window)
void(* ShowScreenKeyboard)(_THIS, SDL_Window *window)
SDL_TLSID current_glctx_tls
int(* CreateWindow)(_THIS, SDL_Window *window)
The type used to identify a window.
int(* GetWindowGammaRamp)(_THIS, SDL_Window *window, Uint16 *ramp)
SDL_Rect rects[MAX_RECTS]
void(* MinimizeWindow)(_THIS, SDL_Window *window)
void SDL_OnWindowFocusLost(SDL_Window *window)
struct SDL_VideoDevice::@28 gl_config
uint16_t Uint16
An unsigned 16-bit integer type.
SDL_bool(* HasClipboardText)(_THIS)
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
SDL_Window * grabbed_window
SDL_VideoDevice * SDL_GetVideoDevice(void)
SDL_ShapeDriver shape_driver
SDL_bool suspend_screensaver
union SDL_SysWMinfo::@18 info
void(* SetWindowFullscreen)(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
void SDL_OnWindowRestored(SDL_Window *window)
void SDL_OnWindowShown(SDL_Window *window)
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents...
GLsizei const GLchar *const * path
GLubyte GLubyte GLubyte GLubyte w
int(* UpdateWindowFramebuffer)(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
void(* SetWindowTitle)(_THIS, SDL_Window *window)
int(* GL_GetSwapInterval)(_THIS)
void(* MaximizeWindow)(_THIS, SDL_Window *window)
int(* SetClipboardText)(_THIS, const char *text)
int(* SetWindowGammaRamp)(_THIS, SDL_Window *window, const Uint16 *ramp)
void(* OnWindowEnter)(_THIS, SDL_Window *window)
void(* SuspendScreenSaver)(_THIS)
SDL_Window * current_glwin
void(* SetWindowGrab)(_THIS, SDL_Window *window, SDL_bool grabbed)
int(* CreateWindowFramebuffer)(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
float SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
GLfloat GLfloat GLfloat GLfloat h
SDL_WindowUserData * data
A rectangle, with the origin at the upper left.
void(* PumpEvents)(_THIS)
void(* HideScreenKeyboard)(_THIS, SDL_Window *window)
void SDL_OnWindowFocusGained(SDL_Window *window)