63#define SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER "SDL.video.wayland.wl_display"
143#define SDL_WINDOW_FULLSCREEN SDL_UINT64_C(0x0000000000000001)
144#define SDL_WINDOW_OPENGL SDL_UINT64_C(0x0000000000000002)
145#define SDL_WINDOW_OCCLUDED SDL_UINT64_C(0x0000000000000004)
146#define SDL_WINDOW_HIDDEN SDL_UINT64_C(0x0000000000000008)
147#define SDL_WINDOW_BORDERLESS SDL_UINT64_C(0x0000000000000010)
148#define SDL_WINDOW_RESIZABLE SDL_UINT64_C(0x0000000000000020)
149#define SDL_WINDOW_MINIMIZED SDL_UINT64_C(0x0000000000000040)
150#define SDL_WINDOW_MAXIMIZED SDL_UINT64_C(0x0000000000000080)
151#define SDL_WINDOW_MOUSE_GRABBED SDL_UINT64_C(0x0000000000000100)
152#define SDL_WINDOW_INPUT_FOCUS SDL_UINT64_C(0x0000000000000200)
153#define SDL_WINDOW_MOUSE_FOCUS SDL_UINT64_C(0x0000000000000400)
154#define SDL_WINDOW_EXTERNAL SDL_UINT64_C(0x0000000000000800)
155#define SDL_WINDOW_MODAL SDL_UINT64_C(0x0000000000001000)
156#define SDL_WINDOW_HIGH_PIXEL_DENSITY SDL_UINT64_C(0x0000000000002000)
157#define SDL_WINDOW_MOUSE_CAPTURE SDL_UINT64_C(0x0000000000004000)
158#define SDL_WINDOW_ALWAYS_ON_TOP SDL_UINT64_C(0x0000000000008000)
159#define SDL_WINDOW_UTILITY SDL_UINT64_C(0x0000000000020000)
160#define SDL_WINDOW_TOOLTIP SDL_UINT64_C(0x0000000000040000)
161#define SDL_WINDOW_POPUP_MENU SDL_UINT64_C(0x0000000000080000)
162#define SDL_WINDOW_KEYBOARD_GRABBED SDL_UINT64_C(0x0000000000100000)
163#define SDL_WINDOW_VULKAN SDL_UINT64_C(0x0000000010000000)
164#define SDL_WINDOW_METAL SDL_UINT64_C(0x0000000020000000)
165#define SDL_WINDOW_TRANSPARENT SDL_UINT64_C(0x0000000040000000)
166#define SDL_WINDOW_NOT_FOCUSABLE SDL_UINT64_C(0x0000000080000000)
174#define SDL_WINDOWPOS_UNDEFINED_MASK 0x1FFF0000u
175#define SDL_WINDOWPOS_UNDEFINED_DISPLAY(X) (SDL_WINDOWPOS_UNDEFINED_MASK|(X))
176#define SDL_WINDOWPOS_UNDEFINED SDL_WINDOWPOS_UNDEFINED_DISPLAY(0)
177#define SDL_WINDOWPOS_ISUNDEFINED(X) \
178 (((X)&0xFFFF0000) == SDL_WINDOWPOS_UNDEFINED_MASK)
185#define SDL_WINDOWPOS_CENTERED_MASK 0x2FFF0000u
186#define SDL_WINDOWPOS_CENTERED_DISPLAY(X) (SDL_WINDOWPOS_CENTERED_MASK|(X))
187#define SDL_WINDOWPOS_CENTERED SDL_WINDOWPOS_CENTERED_DISPLAY(0)
188#define SDL_WINDOWPOS_ISCENTERED(X) \
189 (((X)&0xFFFF0000) == SDL_WINDOWPOS_CENTERED_MASK)
438#define SDL_PROP_DISPLAY_HDR_ENABLED_BOOLEAN "SDL.display.HDR_enabled"
439#define SDL_PROP_DISPLAY_KMSDRM_PANEL_ORIENTATION_NUMBER "SDL.display.KMSDRM.panel_orientation"
1055#define SDL_PROP_WINDOW_CREATE_ALWAYS_ON_TOP_BOOLEAN "always_on_top"
1056#define SDL_PROP_WINDOW_CREATE_BORDERLESS_BOOLEAN "borderless"
1057#define SDL_PROP_WINDOW_CREATE_FOCUSABLE_BOOLEAN "focusable"
1058#define SDL_PROP_WINDOW_CREATE_EXTERNAL_GRAPHICS_CONTEXT_BOOLEAN "external_graphics_context"
1059#define SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN "fullscreen"
1060#define SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER "height"
1061#define SDL_PROP_WINDOW_CREATE_HIDDEN_BOOLEAN "hidden"
1062#define SDL_PROP_WINDOW_CREATE_HIGH_PIXEL_DENSITY_BOOLEAN "high_pixel_density"
1063#define SDL_PROP_WINDOW_CREATE_MAXIMIZED_BOOLEAN "maximized"
1064#define SDL_PROP_WINDOW_CREATE_MENU_BOOLEAN "menu"
1065#define SDL_PROP_WINDOW_CREATE_METAL_BOOLEAN "metal"
1066#define SDL_PROP_WINDOW_CREATE_MINIMIZED_BOOLEAN "minimized"
1067#define SDL_PROP_WINDOW_CREATE_MODAL_BOOLEAN "modal"
1068#define SDL_PROP_WINDOW_CREATE_MOUSE_GRABBED_BOOLEAN "mouse_grabbed"
1069#define SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN "opengl"
1070#define SDL_PROP_WINDOW_CREATE_PARENT_POINTER "parent"
1071#define SDL_PROP_WINDOW_CREATE_RESIZABLE_BOOLEAN "resizable"
1072#define SDL_PROP_WINDOW_CREATE_TITLE_STRING "title"
1073#define SDL_PROP_WINDOW_CREATE_TRANSPARENT_BOOLEAN "transparent"
1074#define SDL_PROP_WINDOW_CREATE_TOOLTIP_BOOLEAN "tooltip"
1075#define SDL_PROP_WINDOW_CREATE_UTILITY_BOOLEAN "utility"
1076#define SDL_PROP_WINDOW_CREATE_VULKAN_BOOLEAN "vulkan"
1077#define SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER "width"
1078#define SDL_PROP_WINDOW_CREATE_X_NUMBER "x"
1079#define SDL_PROP_WINDOW_CREATE_Y_NUMBER "y"
1080#define SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER "cocoa.window"
1081#define SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER "cocoa.view"
1082#define SDL_PROP_WINDOW_CREATE_WAYLAND_SURFACE_ROLE_CUSTOM_BOOLEAN "wayland.surface_role_custom"
1083#define SDL_PROP_WINDOW_CREATE_WAYLAND_CREATE_EGL_WINDOW_BOOLEAN "wayland.create_egl_window"
1084#define SDL_PROP_WINDOW_CREATE_WAYLAND_WL_SURFACE_POINTER "wayland.wl_surface"
1085#define SDL_PROP_WINDOW_CREATE_WIN32_HWND_POINTER "win32.hwnd"
1086#define SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER "win32.pixel_format_hwnd"
1087#define SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER "x11.window"
1252#define SDL_PROP_WINDOW_SHAPE_POINTER "SDL.window.shape"
1253#define SDL_PROP_WINDOW_HDR_ENABLED_BOOLEAN "SDL.window.HDR_enabled"
1254#define SDL_PROP_WINDOW_SDR_WHITE_LEVEL_FLOAT "SDL.window.SDR_white_level"
1255#define SDL_PROP_WINDOW_HDR_HEADROOM_FLOAT "SDL.window.HDR_headroom"
1256#define SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER "SDL.window.android.window"
1257#define SDL_PROP_WINDOW_ANDROID_SURFACE_POINTER "SDL.window.android.surface"
1258#define SDL_PROP_WINDOW_UIKIT_WINDOW_POINTER "SDL.window.uikit.window"
1259#define SDL_PROP_WINDOW_UIKIT_METAL_VIEW_TAG_NUMBER "SDL.window.uikit.metal_view_tag"
1260#define SDL_PROP_WINDOW_UIKIT_OPENGL_FRAMEBUFFER_NUMBER "SDL.window.uikit.opengl.framebuffer"
1261#define SDL_PROP_WINDOW_UIKIT_OPENGL_RENDERBUFFER_NUMBER "SDL.window.uikit.opengl.renderbuffer"
1262#define SDL_PROP_WINDOW_UIKIT_OPENGL_RESOLVE_FRAMEBUFFER_NUMBER "SDL.window.uikit.opengl.resolve_framebuffer"
1263#define SDL_PROP_WINDOW_KMSDRM_DEVICE_INDEX_NUMBER "SDL.window.kmsdrm.dev_index"
1264#define SDL_PROP_WINDOW_KMSDRM_DRM_FD_NUMBER "SDL.window.kmsdrm.drm_fd"
1265#define SDL_PROP_WINDOW_KMSDRM_GBM_DEVICE_POINTER "SDL.window.kmsdrm.gbm_dev"
1266#define SDL_PROP_WINDOW_COCOA_WINDOW_POINTER "SDL.window.cocoa.window"
1267#define SDL_PROP_WINDOW_COCOA_METAL_VIEW_TAG_NUMBER "SDL.window.cocoa.metal_view_tag"
1268#define SDL_PROP_WINDOW_VIVANTE_DISPLAY_POINTER "SDL.window.vivante.display"
1269#define SDL_PROP_WINDOW_VIVANTE_WINDOW_POINTER "SDL.window.vivante.window"
1270#define SDL_PROP_WINDOW_VIVANTE_SURFACE_POINTER "SDL.window.vivante.surface"
1271#define SDL_PROP_WINDOW_WINRT_WINDOW_POINTER "SDL.window.winrt.window"
1272#define SDL_PROP_WINDOW_WIN32_HWND_POINTER "SDL.window.win32.hwnd"
1273#define SDL_PROP_WINDOW_WIN32_HDC_POINTER "SDL.window.win32.hdc"
1274#define SDL_PROP_WINDOW_WIN32_INSTANCE_POINTER "SDL.window.win32.instance"
1275#define SDL_PROP_WINDOW_WAYLAND_DISPLAY_POINTER "SDL.window.wayland.display"
1276#define SDL_PROP_WINDOW_WAYLAND_SURFACE_POINTER "SDL.window.wayland.surface"
1277#define SDL_PROP_WINDOW_WAYLAND_EGL_WINDOW_POINTER "SDL.window.wayland.egl_window"
1278#define SDL_PROP_WINDOW_WAYLAND_XDG_SURFACE_POINTER "SDL.window.wayland.xdg_surface"
1279#define SDL_PROP_WINDOW_WAYLAND_XDG_TOPLEVEL_POINTER "SDL.window.wayland.xdg_toplevel"
1280#define SDL_PROP_WINDOW_WAYLAND_XDG_TOPLEVEL_EXPORT_HANDLE_STRING "SDL.window.wayland.xdg_toplevel_export_handle"
1281#define SDL_PROP_WINDOW_WAYLAND_XDG_POPUP_POINTER "SDL.window.wayland.xdg_popup"
1282#define SDL_PROP_WINDOW_WAYLAND_XDG_POSITIONER_POINTER "SDL.window.wayland.xdg_positioner"
1283#define SDL_PROP_WINDOW_X11_DISPLAY_POINTER "SDL.window.x11.display"
1284#define SDL_PROP_WINDOW_X11_SCREEN_NUMBER "SDL.window.x11.screen"
1285#define SDL_PROP_WINDOW_X11_WINDOW_NUMBER "SDL.window.x11.window"
1970#define SDL_WINDOW_SURFACE_VSYNC_DISABLED 0
1971#define SDL_WINDOW_SURFACE_VSYNC_ADAPTIVE (-1)
void(* SDL_FunctionPointer)(void)
@ SDL_SYSTEM_THEME_UNKNOWN
int SDL_SetWindowKeyboardGrab(SDL_Window *window, SDL_bool grabbed)
struct SDL_GLContextState * SDL_GLContext
@ SDL_HITTEST_RESIZE_LEFT
@ SDL_HITTEST_RESIZE_TOPRIGHT
@ SDL_HITTEST_RESIZE_BOTTOM
@ SDL_HITTEST_RESIZE_BOTTOMRIGHT
@ SDL_HITTEST_RESIZE_BOTTOMLEFT
@ SDL_HITTEST_RESIZE_RIGHT
@ SDL_HITTEST_RESIZE_TOPLEFT
SDL_DisplayID SDL_GetDisplayForPoint(const SDL_Point *point)
int SDL_SetWindowModalFor(SDL_Window *modal_window, SDL_Window *parent_window)
int SDL_UpdateWindowSurface(SDL_Window *window)
SDL_EGLAttrib *(* SDL_EGLAttribArrayCallback)(void)
int SDL_RaiseWindow(SDL_Window *window)
SDL_bool SDL_ScreenSaverEnabled(void)
int SDL_GetWindowSurfaceVSync(SDL_Window *window, int *vsync)
SDL_Surface * SDL_GetWindowSurface(SDL_Window *window)
const char * SDL_GetDisplayName(SDL_DisplayID displayID)
SDL_bool SDL_GL_ExtensionSupported(const char *extension)
int SDL_GetDisplayUsableBounds(SDL_DisplayID displayID, SDL_Rect *rect)
int SDL_ShowWindow(SDL_Window *window)
int SDL_GL_SetSwapInterval(int interval)
SDL_WindowFlags SDL_GetWindowFlags(SDL_Window *window)
SDL_bool SDL_WindowHasSurface(SDL_Window *window)
struct SDL_DisplayModeData SDL_DisplayModeData
int SDL_GL_GetSwapInterval(int *interval)
const char * SDL_GetWindowTitle(SDL_Window *window)
int SDL_SetWindowShape(SDL_Window *window, SDL_Surface *shape)
SDL_HitTestResult(* SDL_HitTest)(SDL_Window *win, const SDL_Point *area, void *data)
@ SDL_GL_FRAMEBUFFER_SRGB_CAPABLE
@ SDL_GL_CONTEXT_RELEASE_BEHAVIOR
@ SDL_GL_CONTEXT_MAJOR_VERSION
@ SDL_GL_CONTEXT_RESET_NOTIFICATION
@ SDL_GL_ACCUM_ALPHA_SIZE
@ SDL_GL_MULTISAMPLESAMPLES
@ SDL_GL_CONTEXT_MINOR_VERSION
@ SDL_GL_MULTISAMPLEBUFFERS
@ SDL_GL_ACCUM_GREEN_SIZE
@ SDL_GL_SHARE_WITH_CURRENT_CONTEXT
@ SDL_GL_RETAINED_BACKING
@ SDL_GL_ACCELERATED_VISUAL
@ SDL_GL_CONTEXT_PROFILE_MASK
@ SDL_GL_CONTEXT_NO_ERROR
SDL_PixelFormat SDL_GetWindowPixelFormat(SDL_Window *window)
void SDL_GL_ResetAttributes(void)
@ SDL_FLASH_UNTIL_FOCUSED
SDL_EGLint *(* SDL_EGLIntArrayCallback)(void)
void * SDL_GetWindowICCProfile(SDL_Window *window, size_t *size)
int SDL_FlashWindow(SDL_Window *window, SDL_FlashOperation operation)
float SDL_GetWindowOpacity(SDL_Window *window)
int SDL_SetWindowResizable(SDL_Window *window, SDL_bool resizable)
int SDL_GetWindowSizeInPixels(SDL_Window *window, int *w, int *h)
SDL_PropertiesID SDL_GetWindowProperties(SDL_Window *window)
SDL_DisplayID SDL_GetDisplayForRect(const SDL_Rect *rect)
SDL_DisplayMode ** SDL_GetFullscreenDisplayModes(SDL_DisplayID displayID, int *count)
int SDL_SetWindowMouseGrab(SDL_Window *window, SDL_bool grabbed)
int SDL_GetWindowBordersSize(SDL_Window *window, int *top, int *left, int *bottom, int *right)
const SDL_Rect * SDL_GetWindowMouseRect(SDL_Window *window)
float SDL_GetWindowDisplayScale(SDL_Window *window)
int SDL_DisableScreenSaver(void)
SDL_bool SDL_GetWindowKeyboardGrab(SDL_Window *window)
int SDL_RestoreWindow(SDL_Window *window)
int SDL_UpdateWindowSurfaceRects(SDL_Window *window, const SDL_Rect *rects, int numrects)
SDL_DisplayID * SDL_GetDisplays(int *count)
SDL_Window * SDL_GetWindowFromID(SDL_WindowID id)
int SDL_SetWindowTitle(SDL_Window *window, const char *title)
int SDL_SetWindowBordered(SDL_Window *window, SDL_bool bordered)
struct SDL_Window SDL_Window
SDL_WindowID SDL_GetWindowID(SDL_Window *window)
SDL_DisplayID SDL_GetPrimaryDisplay(void)
int SDL_GetDisplayBounds(SDL_DisplayID displayID, SDL_Rect *rect)
SDL_Window ** SDL_GetWindows(int *count)
SDL_GLContext SDL_GL_CreateContext(SDL_Window *window)
const char * SDL_GetCurrentVideoDriver(void)
int SDL_SetWindowSurfaceVSync(SDL_Window *window, int vsync)
float SDL_GetWindowPixelDensity(SDL_Window *window)
int SDL_SetWindowAlwaysOnTop(SDL_Window *window, SDL_bool on_top)
int SDL_SetWindowIcon(SDL_Window *window, SDL_Surface *icon)
int SDL_GetWindowMaximumSize(SDL_Window *window, int *w, int *h)
int SDL_SetWindowAspectRatio(SDL_Window *window, float min_aspect, float max_aspect)
const SDL_DisplayMode * SDL_GetDesktopDisplayMode(SDL_DisplayID displayID)
int SDL_GetWindowPosition(SDL_Window *window, int *x, int *y)
int SDL_MinimizeWindow(SDL_Window *window)
SDL_EGLConfig SDL_EGL_GetCurrentConfig(void)
SDL_DisplayID SDL_GetDisplayForWindow(SDL_Window *window)
void SDL_EGL_SetAttributeCallbacks(SDL_EGLAttribArrayCallback platformAttribCallback, SDL_EGLIntArrayCallback surfaceAttribCallback, SDL_EGLIntArrayCallback contextAttribCallback)
SDL_FunctionPointer SDL_EGL_GetProcAddress(const char *proc)
SDL_FunctionPointer SDL_GL_GetProcAddress(const char *proc)
int SDL_SetWindowSize(SDL_Window *window, int w, int h)
SDL_EGLDisplay SDL_EGL_GetCurrentDisplay(void)
int SDL_GetClosestFullscreenDisplayMode(SDL_DisplayID displayID, int w, int h, float refresh_rate, SDL_bool include_high_density_modes, SDL_DisplayMode *mode)
SDL_Window * SDL_CreateWindow(const char *title, int w, int h, SDL_WindowFlags flags)
SDL_GLContext SDL_GL_GetCurrentContext(void)
SDL_Window * SDL_GetGrabbedWindow(void)
void SDL_GL_UnloadLibrary(void)
int SDL_HideWindow(SDL_Window *window)
int SDL_GL_SetAttribute(SDL_GLattr attr, int value)
int SDL_SetWindowMouseRect(SDL_Window *window, const SDL_Rect *rect)
int SDL_SetWindowOpacity(SDL_Window *window, float opacity)
@ SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE
@ SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH
int SDL_GetNumVideoDrivers(void)
float SDL_GetDisplayContentScale(SDL_DisplayID displayID)
SDL_Window * SDL_GL_GetCurrentWindow(void)
int SDL_GetWindowSafeArea(SDL_Window *window, SDL_Rect *rect)
SDL_Window * SDL_CreateWindowWithProperties(SDL_PropertiesID props)
int SDL_ShowWindowSystemMenu(SDL_Window *window, int x, int y)
int SDL_MaximizeWindow(SDL_Window *window)
int SDL_GL_MakeCurrent(SDL_Window *window, SDL_GLContext context)
int SDL_GetWindowMinimumSize(SDL_Window *window, int *w, int *h)
int SDL_SetWindowFullscreenMode(SDL_Window *window, const SDL_DisplayMode *mode)
SDL_DisplayOrientation SDL_GetNaturalDisplayOrientation(SDL_DisplayID displayID)
const char * SDL_GetVideoDriver(int index)
SDL_bool SDL_GetWindowMouseGrab(SDL_Window *window)
int SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_h)
int SDL_GL_DestroyContext(SDL_GLContext context)
@ SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG
@ SDL_GL_CONTEXT_RESET_ISOLATION_FLAG
@ SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG
@ SDL_GL_CONTEXT_DEBUG_FLAG
SDL_DisplayOrientation SDL_GetCurrentDisplayOrientation(SDL_DisplayID displayID)
int SDL_SetWindowHitTest(SDL_Window *window, SDL_HitTest callback, void *callback_data)
void SDL_DestroyWindow(SDL_Window *window)
SDL_EGLSurface SDL_EGL_GetWindowSurface(SDL_Window *window)
int SDL_SetWindowFocusable(SDL_Window *window, SDL_bool focusable)
int SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h)
int SDL_DestroyWindowSurface(SDL_Window *window)
int SDL_EnableScreenSaver(void)
const SDL_DisplayMode * SDL_GetWindowFullscreenMode(SDL_Window *window)
const SDL_DisplayMode * SDL_GetCurrentDisplayMode(SDL_DisplayID displayID)
SDL_Window * SDL_CreatePopupWindow(SDL_Window *parent, int offset_x, int offset_y, int w, int h, SDL_WindowFlags flags)
int SDL_GL_SwapWindow(SDL_Window *window)
int SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
SDL_SystemTheme SDL_GetSystemTheme(void)
int SDL_SetWindowPosition(SDL_Window *window, int x, int y)
@ SDL_GL_CONTEXT_PROFILE_COMPATIBILITY
@ SDL_GL_CONTEXT_PROFILE_ES
@ SDL_GL_CONTEXT_PROFILE_CORE
int SDL_SyncWindow(SDL_Window *window)
int SDL_GL_LoadLibrary(const char *path)
int SDL_SetWindowFullscreen(SDL_Window *window, SDL_bool fullscreen)
int SDL_GetWindowSize(SDL_Window *window, int *w, int *h)
SDL_Window * SDL_GetWindowParent(SDL_Window *window)
int SDL_GetWindowAspectRatio(SDL_Window *window, float *min_aspect, float *max_aspect)
@ SDL_ORIENTATION_LANDSCAPE
@ SDL_ORIENTATION_PORTRAIT
@ SDL_ORIENTATION_PORTRAIT_FLIPPED
@ SDL_ORIENTATION_LANDSCAPE_FLIPPED
@ SDL_ORIENTATION_UNKNOWN
SDL_GLContextResetNotification
@ SDL_GL_CONTEXT_RESET_NO_NOTIFICATION
@ SDL_GL_CONTEXT_RESET_LOSE_CONTEXT
SDL_PropertiesID SDL_GetDisplayProperties(SDL_DisplayID displayID)
int refresh_rate_numerator
int refresh_rate_denominator
SDL_DisplayModeData * internal