136#define SDL_WINDOWPOS_UNDEFINED_MASK 0x1FFF0000u
137#define SDL_WINDOWPOS_UNDEFINED_DISPLAY(X) (SDL_WINDOWPOS_UNDEFINED_MASK|(X))
138#define SDL_WINDOWPOS_UNDEFINED SDL_WINDOWPOS_UNDEFINED_DISPLAY(0)
139#define SDL_WINDOWPOS_ISUNDEFINED(X) \
140 (((X)&0xFFFF0000) == SDL_WINDOWPOS_UNDEFINED_MASK)
145#define SDL_WINDOWPOS_CENTERED_MASK 0x2FFF0000u
146#define SDL_WINDOWPOS_CENTERED_DISPLAY(X) (SDL_WINDOWPOS_CENTERED_MASK|(X))
147#define SDL_WINDOWPOS_CENTERED SDL_WINDOWPOS_CENTERED_DISPLAY(0)
148#define SDL_WINDOWPOS_ISCENTERED(X) \
149 (((X)&0xFFFF0000) == SDL_WINDOWPOS_CENTERED_MASK)
233 SDL_GL_ACCUM_RED_SIZE,
234 SDL_GL_ACCUM_GREEN_SIZE,
235 SDL_GL_ACCUM_BLUE_SIZE,
236 SDL_GL_ACCUM_ALPHA_SIZE,
238 SDL_GL_MULTISAMPLEBUFFERS,
239 SDL_GL_MULTISAMPLESAMPLES,
240 SDL_GL_ACCELERATED_VISUAL,
241 SDL_GL_RETAINED_BACKING,
242 SDL_GL_CONTEXT_MAJOR_VERSION,
243 SDL_GL_CONTEXT_MINOR_VERSION,
245 SDL_GL_CONTEXT_FLAGS,
246 SDL_GL_CONTEXT_PROFILE_MASK,
247 SDL_GL_SHARE_WITH_CURRENT_CONTEXT,
248 SDL_GL_FRAMEBUFFER_SRGB_CAPABLE,
249 SDL_GL_CONTEXT_RELEASE_BEHAVIOR,
250 SDL_GL_CONTEXT_RESET_NOTIFICATION,
251 SDL_GL_CONTEXT_NO_ERROR,
257 SDL_GL_CONTEXT_PROFILE_CORE = 0x0001,
258 SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002,
264 SDL_GL_CONTEXT_DEBUG_FLAG = 0x0001,
265 SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 0x0002,
266 SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG = 0x0004,
267 SDL_GL_CONTEXT_RESET_ISOLATION_FLAG = 0x0008
272 SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE = 0x0000,
273 SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x0001
274} SDL_GLcontextReleaseFlag;
278 SDL_GL_CONTEXT_RESET_NO_NOTIFICATION = 0x0000,
279 SDL_GL_CONTEXT_RESET_LOSE_CONTEXT = 0x0001
280} SDL_GLContextResetNotification;
472extern DECLSPEC
int SDLCALL
SDL_GetDisplayDPI(
int displayIndex,
float * ddpi,
float * hdpi,
float * vdpi);
782 int h, Uint32 flags);
1046 int *top,
int *left,
1047 int *bottom,
int *right);
1083 int min_w,
int min_h);
1115 int max_w,
int max_h);
1170 SDL_bool resizable);
1644 const Uint16 * green,
1645 const Uint16 * blue);
1684 SDL_HITTEST_RESIZE_TOPLEFT,
1685 SDL_HITTEST_RESIZE_TOP,
1686 SDL_HITTEST_RESIZE_TOPRIGHT,
1687 SDL_HITTEST_RESIZE_RIGHT,
1688 SDL_HITTEST_RESIZE_BOTTOMRIGHT,
1689 SDL_HITTEST_RESIZE_BOTTOM,
1690 SDL_HITTEST_RESIZE_BOTTOMLEFT,
1691 SDL_HITTEST_RESIZE_LEFT
1750 void *callback_data);
DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window *window, int *x, int *y)
SDL_HitTestResult
Definition: SDL_video.h:1681
@ SDL_HITTEST_DRAGGABLE
Definition: SDL_video.h:1683
@ SDL_HITTEST_NORMAL
Definition: SDL_video.h:1682
DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name)
DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void)
DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex, SDL_DisplayMode *mode)
DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window *window, SDL_Surface *icon)
DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window *window)
void * SDL_GLContext
An opaque handle to an OpenGL context.
Definition: SDL_video.h:218
DECLSPEC SDL_GLContext SDLCALL SDL_GL_CreateContext(SDL_Window *window)
DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window *window)
DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode *mode)
DECLSPEC void SDLCALL SDL_SetWindowMouseGrab(SDL_Window *window, SDL_bool grabbed)
DECLSPEC void SDLCALL SDL_EnableScreenSaver(void)
DECLSPEC void *SDLCALL SDL_GetWindowICCProfile(SDL_Window *window, size_t *size)
DECLSPEC void SDLCALL SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h)
DECLSPEC int SDLCALL SDL_GetWindowBordersSize(SDL_Window *window, int *top, int *left, int *bottom, int *right)
DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window *window)
DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char *extension)
DECLSPEC int SDLCALL SDL_FlashWindow(SDL_Window *window, SDL_FlashOperation operation)
DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window *window)
DECLSPEC int SDLCALL SDL_SetWindowHitTest(SDL_Window *window, SDL_HitTest callback, void *callback_data)
SDL_HitTestResult(SDLCALL * SDL_HitTest)(SDL_Window *win, const SDL_Point *area, void *data)
Definition: SDL_video.h:1704
DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window *window, int w, int h)
DECLSPEC SDL_bool SDLCALL SDL_GetWindowMouseGrab(SDL_Window *window)
DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_Window *window, const SDL_DisplayMode *mode)
SDL_GLattr
OpenGL configuration attributes.
Definition: SDL_video.h:224
SDL_FlashOperation
Window flash operation.
Definition: SDL_video.h:209
@ SDL_FLASH_UNTIL_FOCUSED
Definition: SDL_video.h:212
@ SDL_FLASH_BRIEFLY
Definition: SDL_video.h:211
@ SDL_FLASH_CANCEL
Definition: SDL_video.h:210
DECLSPEC void SDLCALL SDL_GetWindowSizeInPixels(SDL_Window *window, int *w, int *h)
DECLSPEC void SDLCALL SDL_GetWindowMaximumSize(SDL_Window *window, int *w, int *h)
DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path)
DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window *window)
DECLSPEC const char *SDLCALL SDL_GetDisplayName(int displayIndex)
DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_Window *window, const char *title)
DECLSPEC void SDLCALL SDL_SetWindowResizable(SDL_Window *window, SDL_bool resizable)
DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window *window)
DECLSPEC void SDLCALL SDL_SetWindowKeyboardGrab(SDL_Window *window, SDL_bool grabbed)
DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void)
DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window *window)
DECLSPEC void *SDLCALL SDL_SetWindowData(SDL_Window *window, const char *name, void *userdata)
DECLSPEC SDL_Surface *SDLCALL SDL_GetWindowSurface(SDL_Window *window)
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:95
DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window *window, SDL_GLContext context)
DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex)
DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window *window, int *w, int *h)
DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window *window)
DECLSPEC SDL_Window *SDLCALL SDL_GetWindowFromID(Uint32 id)
DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window *window)
DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc)
DECLSPEC SDL_DisplayOrientation SDLCALL SDL_GetDisplayOrientation(int displayIndex)
DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window *window, const Uint16 *red, const Uint16 *green, const Uint16 *blue)
DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval)
DECLSPEC void SDLCALL SDL_DisableScreenSaver(void)
DECLSPEC SDL_Window *SDLCALL SDL_GetGrabbedWindow(void)
DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window *window)
DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void)
DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window *window)
DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window *window, SDL_DisplayMode *mode)
DECLSPEC int SDLCALL SDL_GetDisplayDPI(int displayIndex, float *ddpi, float *hdpi, float *vdpi)
DECLSPEC SDL_Window *SDLCALL SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window *window, float brightness)
DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window *window)
DECLSPEC SDL_DisplayMode *SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode *mode, SDL_DisplayMode *closest)
DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void)
DECLSPEC int SDLCALL SDL_GetPointDisplayIndex(const SDL_Point *point)
DECLSPEC SDL_Window *SDLCALL SDL_GL_GetCurrentWindow(void)
DECLSPEC int SDLCALL SDL_GetDisplayUsableBounds(int displayIndex, SDL_Rect *rect)
DECLSPEC int SDLCALL SDL_GetWindowOpacity(SDL_Window *window, float *out_opacity)
DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window *window)
DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window *window)
DECLSPEC int SDLCALL SDL_SetWindowMouseRect(SDL_Window *window, const SDL_Rect *rect)
DECLSPEC SDL_Window *SDLCALL SDL_CreateWindowFrom(const void *data)
DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context)
DECLSPEC int SDLCALL SDL_SetWindowInputFocus(SDL_Window *window)
DECLSPEC void SDLCALL SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_h)
SDL_WindowFlags
The flags on a window.
Definition: SDL_video.h:103
@ SDL_WINDOW_ALLOW_HIGHDPI
Definition: SDL_video.h:117
@ SDL_WINDOW_FOREIGN
Definition: SDL_video.h:116
@ SDL_WINDOW_TOOLTIP
Definition: SDL_video.h:124
@ SDL_WINDOW_ALWAYS_ON_TOP
Definition: SDL_video.h:121
@ SDL_WINDOW_SHOWN
Definition: SDL_video.h:106
@ SDL_WINDOW_SKIP_TASKBAR
Definition: SDL_video.h:122
@ SDL_WINDOW_MOUSE_CAPTURE
Definition: SDL_video.h:120
@ SDL_WINDOW_VULKAN
Definition: SDL_video.h:127
@ SDL_WINDOW_OPENGL
Definition: SDL_video.h:105
@ SDL_WINDOW_MINIMIZED
Definition: SDL_video.h:110
@ SDL_WINDOW_UTILITY
Definition: SDL_video.h:123
@ SDL_WINDOW_MOUSE_FOCUS
Definition: SDL_video.h:114
@ SDL_WINDOW_INPUT_GRABBED
Definition: SDL_video.h:130
@ SDL_WINDOW_RESIZABLE
Definition: SDL_video.h:109
@ SDL_WINDOW_KEYBOARD_GRABBED
Definition: SDL_video.h:126
@ SDL_WINDOW_FULLSCREEN
Definition: SDL_video.h:104
@ SDL_WINDOW_MAXIMIZED
Definition: SDL_video.h:111
@ SDL_WINDOW_METAL
Definition: SDL_video.h:128
@ SDL_WINDOW_HIDDEN
Definition: SDL_video.h:107
@ SDL_WINDOW_MOUSE_GRABBED
Definition: SDL_video.h:112
@ SDL_WINDOW_POPUP_MENU
Definition: SDL_video.h:125
@ SDL_WINDOW_BORDERLESS
Definition: SDL_video.h:108
@ SDL_WINDOW_INPUT_FOCUS
Definition: SDL_video.h:113
DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window *window, int x, int y)
DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window *window, Uint32 flags)
DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode *mode)
DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window *window, SDL_bool grabbed)
DECLSPEC int SDLCALL SDL_GetDisplayBounds(int displayIndex, SDL_Rect *rect)
DECLSPEC int SDLCALL SDL_SetWindowOpacity(SDL_Window *window, float opacity)
DECLSPEC void SDLCALL SDL_GL_GetDrawableSize(SDL_Window *window, int *w, int *h)
SDL_WindowEventID
Event subtype for window events.
Definition: SDL_video.h:155
@ SDL_WINDOWEVENT_HIDDEN
Definition: SDL_video.h:158
@ SDL_WINDOWEVENT_FOCUS_LOST
Definition: SDL_video.h:174
@ SDL_WINDOWEVENT_CLOSE
Definition: SDL_video.h:175
@ SDL_WINDOWEVENT_RESIZED
Definition: SDL_video.h:163
@ SDL_WINDOWEVENT_HIT_TEST
Definition: SDL_video.h:177
@ SDL_WINDOWEVENT_FOCUS_GAINED
Definition: SDL_video.h:173
@ SDL_WINDOWEVENT_SHOWN
Definition: SDL_video.h:157
@ SDL_WINDOWEVENT_MOVED
Definition: SDL_video.h:161
@ SDL_WINDOWEVENT_TAKE_FOCUS
Definition: SDL_video.h:176
@ SDL_WINDOWEVENT_MINIMIZED
Definition: SDL_video.h:167
@ SDL_WINDOWEVENT_DISPLAY_CHANGED
Definition: SDL_video.h:179
@ SDL_WINDOWEVENT_LEAVE
Definition: SDL_video.h:172
@ SDL_WINDOWEVENT_MAXIMIZED
Definition: SDL_video.h:168
@ SDL_WINDOWEVENT_SIZE_CHANGED
Definition: SDL_video.h:164
@ SDL_WINDOWEVENT_RESTORED
Definition: SDL_video.h:169
@ SDL_WINDOWEVENT_ICCPROF_CHANGED
Definition: SDL_video.h:178
@ SDL_WINDOWEVENT_EXPOSED
Definition: SDL_video.h:159
@ SDL_WINDOWEVENT_ENTER
Definition: SDL_video.h:171
@ SDL_WINDOWEVENT_NONE
Definition: SDL_video.h:156
DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void)
DECLSPEC void SDLCALL SDL_GL_ResetAttributes(void)
DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window *window)
SDL_GLprofile
Definition: SDL_video.h:256
@ SDL_GL_CONTEXT_PROFILE_ES
Definition: SDL_video.h:259
SDL_DisplayEventID
Event subtype for display events.
Definition: SDL_video.h:186
@ SDL_DISPLAYEVENT_NONE
Definition: SDL_video.h:187
@ SDL_DISPLAYEVENT_ORIENTATION
Definition: SDL_video.h:188
@ SDL_DISPLAYEVENT_DISCONNECTED
Definition: SDL_video.h:190
@ SDL_DISPLAYEVENT_CONNECTED
Definition: SDL_video.h:189
DECLSPEC void SDLCALL SDL_VideoQuit(void)
DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window *window, const char *name)
DECLSPEC const SDL_Rect *SDLCALL SDL_GetWindowMouseRect(SDL_Window *window)
DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window *window, const SDL_Rect *rects, int numrects)
DECLSPEC void SDLCALL SDL_SetWindowAlwaysOnTop(SDL_Window *window, SDL_bool on_top)
DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index)
DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void)
DECLSPEC int SDLCALL SDL_GetRectDisplayIndex(const SDL_Rect *rect)
DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void)
DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value)
SDL_DisplayOrientation
Display orientation.
Definition: SDL_video.h:197
@ SDL_ORIENTATION_LANDSCAPE
Definition: SDL_video.h:199
@ SDL_ORIENTATION_PORTRAIT
Definition: SDL_video.h:201
@ SDL_ORIENTATION_PORTRAIT_FLIPPED
Definition: SDL_video.h:202
@ SDL_ORIENTATION_LANDSCAPE_FLIPPED
Definition: SDL_video.h:200
@ SDL_ORIENTATION_UNKNOWN
Definition: SDL_video.h:198
DECLSPEC SDL_bool SDLCALL SDL_GetWindowKeyboardGrab(SDL_Window *window)
DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window *window, Uint16 *red, Uint16 *green, Uint16 *blue)
DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window *window, SDL_bool bordered)
DECLSPEC int SDLCALL SDL_SetWindowModalFor(SDL_Window *modal_window, SDL_Window *parent_window)
DECLSPEC void SDLCALL SDL_GetWindowMinimumSize(SDL_Window *window, int *w, int *h)
DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window *window)
The structure that defines a display mode.
Definition: SDL_video.h:54
int h
Definition: SDL_video.h:57
int refresh_rate
Definition: SDL_video.h:58
Uint32 format
Definition: SDL_video.h:55
void * driverdata
Definition: SDL_video.h:59
int w
Definition: SDL_video.h:56
Definition: SDL_rect.h:49
Definition: SDL_rect.h:79
A collection of pixels used in software blitting.
Definition: SDL_surface.h:73