Module video
dep_sdl3
only.Expand description
SDL’s video subsystem is largely interested in abstracting window management from the underlying operating system. You can create windows, manage them in various ways, set them fullscreen, and get events when interesting things happen with them, such as the mouse or keyboard interacting with a window.
The video subsystem is also interested in abstracting away some platform-specific differences in OpenGL: context creation, swapping buffers, etc. This may be crucial to your app, but also you are not required to use OpenGL at all. In fact, SDL can provide rendering to those windows as well, either with an easy-to-use 2D API or with a more-powerful GPU API . Of course, it can simply get out of your way and give you the window handles you need to use Vulkan, Direct3D, Metal, or whatever else you like directly, too.
The video subsystem covers a lot of functionality, out of necessity, so it
is worth perusing the list of functions just to see what’s available, but
most apps can get by with simply creating a window and listening for
events, so start with SDL_CreateWindow()
and [SDL_PollEvent()
].
Structs§
- SDL_
Display Mode - The structure that defines a display mode.
- SDL_
Display Mode Data - Internal display mode data.
- SDL_
Display Orientation - Display orientation values; the way a display is rotated.
- SDL_
Flash Operation - Window flash operation.
- SDL_
GLAttr - An enumeration of OpenGL configuration attributes.
- SDL_
GLContext State - SDL_
HitTest Result - Possible return values from the
SDL_HitTest
callback. - SDL_
System Theme - System theme.
- SDL_
Window - The struct used as an opaque handle to a window.
Constants§
- SDL_
FLASH_ BRIEFLY - Flash the window briefly to get attention
- SDL_
FLASH_ CANCEL - Cancel any window flash state
- SDL_
FLASH_ UNTIL_ FOCUSED - Flash the window until it gets focus
- SDL_
GL_ ACCELERATED_ VISUAL - set to 1 to require hardware acceleration, set to 0 to force software rendering; defaults to allow either.
- SDL_
GL_ ACCUM_ ALPHA_ SIZE - the minimum number of bits for the alpha channel of the accumulation buffer; defaults to 0.
- SDL_
GL_ ACCUM_ BLUE_ SIZE - the minimum number of bits for the blue channel of the accumulation buffer; defaults to 0.
- SDL_
GL_ ACCUM_ GREEN_ SIZE - the minimum number of bits for the green channel of the accumulation buffer; defaults to 0.
- SDL_
GL_ ACCUM_ RED_ SIZE - the minimum number of bits for the red channel of the accumulation buffer; defaults to 0.
- SDL_
GL_ ALPHA_ SIZE - the minimum number of bits for the alpha channel of the color buffer; defaults to 0.
- SDL_
GL_ BLUE_ SIZE - the minimum number of bits for the blue channel of the color buffer; defaults to 2.
- SDL_
GL_ BUFFER_ SIZE - the minimum number of bits for frame buffer size; defaults to 0.
- SDL_
GL_ CONTEXT_ DEBUG_ FLAG - SDL_
GL_ CONTEXT_ FLAGS - some combination of 0 or more of elements of the
SDL_GLContextFlag
enumeration; defaults to 0. - SDL_
GL_ CONTEXT_ FORWARD_ COMPATIBLE_ FLAG - SDL_
GL_ CONTEXT_ MAJOR_ VERSION - OpenGL context major version.
- SDL_
GL_ CONTEXT_ MINOR_ VERSION - OpenGL context minor version.
- SDL_
GL_ CONTEXT_ NO_ ERROR - SDL_
GL_ CONTEXT_ PROFILE_ COMPATIBILITY - OpenGL Compatibility Profile context
- SDL_
GL_ CONTEXT_ PROFILE_ CORE - OpenGL Core Profile context
- SDL_
GL_ CONTEXT_ PROFILE_ ES - GLX_CONTEXT_ES2_PROFILE_BIT_EXT
- SDL_
GL_ CONTEXT_ PROFILE_ MASK - type of GL context (Core, Compatibility, ES). See
SDL_GLProfile
; default value depends on platform. - SDL_
GL_ CONTEXT_ RELEASE_ BEHAVIOR - sets context the release behavior. See
SDL_GLContextReleaseFlag
; defaults to FLUSH. - SDL_
GL_ CONTEXT_ RELEASE_ BEHAVIOR_ FLUSH - SDL_
GL_ CONTEXT_ RELEASE_ BEHAVIOR_ NONE - SDL_
GL_ CONTEXT_ RESET_ ISOLATION_ FLAG - SDL_
GL_ CONTEXT_ RESET_ LOSE_ CONTEXT - SDL_
GL_ CONTEXT_ RESET_ NOTIFICATION - set context reset notification. See
SDL_GLContextResetNotification
; defaults to NO_NOTIFICATION. - SDL_
GL_ CONTEXT_ RESET_ NO_ NOTIFICATION - SDL_
GL_ CONTEXT_ ROBUST_ ACCESS_ FLAG - SDL_
GL_ DEPTH_ SIZE - the minimum number of bits in the depth buffer; defaults to 16.
- SDL_
GL_ DOUBLEBUFFER - whether the output is single or double buffered; defaults to double buffering on.
- SDL_
GL_ EGL_ PLATFORM - SDL_
GL_ FLOATBUFFERS - SDL_
GL_ FRAMEBUFFER_ SRGB_ CAPABLE - requests sRGB capable visual; defaults to 0.
- SDL_
GL_ GREEN_ SIZE - the minimum number of bits for the green channel of the color buffer; defaults to 3.
- SDL_
GL_ MULTISAMPLEBUFFERS - the number of buffers used for multisample anti-aliasing; defaults to 0.
- SDL_
GL_ MULTISAMPLESAMPLES - the number of samples used around the current pixel used for multisample anti-aliasing.
- SDL_
GL_ RED_ SIZE - the minimum number of bits for the red channel of the color buffer; defaults to 3.
- SDL_
GL_ RETAINED_ BACKING - not used (deprecated).
- SDL_
GL_ SHARE_ WITH_ CURRENT_ CONTEXT - OpenGL context sharing; defaults to 0.
- SDL_
GL_ STENCIL_ SIZE - the minimum number of bits in the stencil buffer; defaults to 0.
- SDL_
GL_ STEREO - whether the output is stereo 3D; defaults to off.
- SDL_
HITTEST_ DRAGGABLE - Region can drag entire window.
- SDL_
HITTEST_ NORMAL - Region is normal. No special properties.
- SDL_
HITTEST_ RESIZE_ BOTTOM - Region is the resizable bottom border.
- SDL_
HITTEST_ RESIZE_ BOTTOMLEFT - Region is the resizable bottom-left corner border.
- SDL_
HITTEST_ RESIZE_ BOTTOMRIGHT - Region is the resizable bottom-right corner border.
- SDL_
HITTEST_ RESIZE_ LEFT - Region is the resizable left border.
- SDL_
HITTEST_ RESIZE_ RIGHT - Region is the resizable right border.
- SDL_
HITTEST_ RESIZE_ TOP - Region is the resizable top border.
- SDL_
HITTEST_ RESIZE_ TOPLEFT - Region is the resizable top-left corner border.
- SDL_
HITTEST_ RESIZE_ TOPRIGHT - Region is the resizable top-right corner border.
- SDL_
ORIENTATION_ LANDSCAPE - The display is in landscape mode, with the right side up, relative to portrait mode
- SDL_
ORIENTATION_ LANDSCAPE_ FLIPPED - The display is in landscape mode, with the left side up, relative to portrait mode
- SDL_
ORIENTATION_ PORTRAIT - The display is in portrait mode
- SDL_
ORIENTATION_ PORTRAIT_ FLIPPED - The display is in portrait mode, upside down
- SDL_
ORIENTATION_ UNKNOWN - The display orientation can’t be determined
- SDL_
PROP_ DISPLAY_ HDR_ ENABLED_ BOOLEAN - SDL_
PROP_ DISPLAY_ KMSDRM_ PANEL_ ORIENTATION_ NUMBER - SDL_
PROP_ GLOBAL_ VIDEO_ WAYLAND_ WL_ DISPLAY_ POINTER - The pointer to the global
wl_display
object used by the Wayland video backend. - SDL_
PROP_ WINDOW_ ANDROID_ SURFACE_ POINTER - SDL_
PROP_ WINDOW_ ANDROID_ WINDOW_ POINTER - SDL_
PROP_ WINDOW_ COCOA_ METAL_ VIEW_ TAG_ NUMBER - SDL_
PROP_ WINDOW_ COCOA_ WINDOW_ POINTER - SDL_
PROP_ WINDOW_ CREATE_ ALWAYS_ ON_ TOP_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ BORDERLESS_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ COCOA_ VIEW_ POINTER - SDL_
PROP_ WINDOW_ CREATE_ COCOA_ WINDOW_ POINTER - SDL_
PROP_ WINDOW_ CREATE_ EXTERNAL_ GRAPHICS_ CONTEXT_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ FLAGS_ NUMBER - SDL_
PROP_ WINDOW_ CREATE_ FOCUSABLE_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ FULLSCREEN_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ HEIGHT_ NUMBER - SDL_
PROP_ WINDOW_ CREATE_ HIDDEN_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ HIGH_ PIXEL_ DENSITY_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ MAXIMIZED_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ MENU_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ METAL_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ MINIMIZED_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ MODAL_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ MOUSE_ GRABBED_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ OPENGL_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ PARENT_ POINTER - SDL_
PROP_ WINDOW_ CREATE_ RESIZABLE_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ TITLE_ STRING - SDL_
PROP_ WINDOW_ CREATE_ TOOLTIP_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ TRANSPARENT_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ UTILITY_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ VULKAN_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ WAYLAND_ CREATE_ EGL_ WINDOW_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ WAYLAND_ SURFACE_ ROLE_ CUSTOM_ BOOLEAN - SDL_
PROP_ WINDOW_ CREATE_ WAYLAND_ WL_ SURFACE_ POINTER - SDL_
PROP_ WINDOW_ CREATE_ WIDTH_ NUMBER - SDL_
PROP_ WINDOW_ CREATE_ WIN32_ HWND_ POINTER - SDL_
PROP_ WINDOW_ CREATE_ WIN32_ PIXEL_ FORMAT_ HWND_ POINTER - SDL_
PROP_ WINDOW_ CREATE_ X11_ WINDOW_ NUMBER - SDL_
PROP_ WINDOW_ CREATE_ X_ NUMBER - SDL_
PROP_ WINDOW_ CREATE_ Y_ NUMBER - SDL_
PROP_ WINDOW_ HDR_ ENABLED_ BOOLEAN - SDL_
PROP_ WINDOW_ HDR_ HEADROOM_ FLOAT - SDL_
PROP_ WINDOW_ KMSDRM_ DEVICE_ INDEX_ NUMBER - SDL_
PROP_ WINDOW_ KMSDRM_ DRM_ FD_ NUMBER - SDL_
PROP_ WINDOW_ KMSDRM_ GBM_ DEVICE_ POINTER - SDL_
PROP_ WINDOW_ OPENVR_ OVERLAY_ ID - SDL_
PROP_ WINDOW_ SDR_ WHITE_ LEVEL_ FLOAT - SDL_
PROP_ WINDOW_ SHAPE_ POINTER - SDL_
PROP_ WINDOW_ UIKIT_ METAL_ VIEW_ TAG_ NUMBER - SDL_
PROP_ WINDOW_ UIKIT_ OPENGL_ FRAMEBUFFER_ NUMBER - SDL_
PROP_ WINDOW_ UIKIT_ OPENGL_ RENDERBUFFER_ NUMBER - SDL_
PROP_ WINDOW_ UIKIT_ OPENGL_ RESOLVE_ FRAMEBUFFER_ NUMBER - SDL_
PROP_ WINDOW_ UIKIT_ WINDOW_ POINTER - SDL_
PROP_ WINDOW_ VIVANTE_ DISPLAY_ POINTER - SDL_
PROP_ WINDOW_ VIVANTE_ SURFACE_ POINTER - SDL_
PROP_ WINDOW_ VIVANTE_ WINDOW_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ DISPLAY_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ EGL_ WINDOW_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ SURFACE_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ VIEWPORT_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ XDG_ POPUP_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ XDG_ POSITIONER_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ XDG_ SURFACE_ POINTER - SDL_
PROP_ WINDOW_ WAYLAND_ XDG_ TOPLEVEL_ EXPORT_ HANDLE_ STRING - SDL_
PROP_ WINDOW_ WAYLAND_ XDG_ TOPLEVEL_ POINTER - SDL_
PROP_ WINDOW_ WIN32_ HDC_ POINTER - SDL_
PROP_ WINDOW_ WIN32_ HWND_ POINTER - SDL_
PROP_ WINDOW_ WIN32_ INSTANCE_ POINTER - SDL_
PROP_ WINDOW_ X11_ DISPLAY_ POINTER - SDL_
PROP_ WINDOW_ X11_ SCREEN_ NUMBER - SDL_
PROP_ WINDOW_ X11_ WINDOW_ NUMBER - SDL_
SYSTEM_ THEME_ DARK - Dark colored system theme
- SDL_
SYSTEM_ THEME_ LIGHT - Light colored system theme
- SDL_
SYSTEM_ THEME_ UNKNOWN - Unknown system theme
- SDL_
WINDOWPOS_ CENTERED - Used to indicate that the window position should be centered.
- SDL_
WINDOWPOS_ CENTERED_ MASK - A magic value used with
SDL_WINDOWPOS_CENTERED
. - SDL_
WINDOWPOS_ UNDEFINED - Used to indicate that you don’t care what the window position/display is.
- SDL_
WINDOWPOS_ UNDEFINED_ MASK - A magic value used with
SDL_WINDOWPOS_UNDEFINED
. - SDL_
WINDOW_ ALWAYS_ ON_ TOP - window should always be above others
- SDL_
WINDOW_ BORDERLESS - no window decoration
- SDL_
WINDOW_ EXTERNAL - window not created by SDL
- SDL_
WINDOW_ FULLSCREEN - window is in fullscreen mode
- SDL_
WINDOW_ HIDDEN - window is neither mapped onto the desktop nor shown in the taskbar/dock/window list;
SDL_ShowWindow()
is required for it to become visible - SDL_
WINDOW_ HIGH_ PIXEL_ DENSITY - window uses high pixel density back buffer if possible
- SDL_
WINDOW_ INPUT_ FOCUS - window has input focus
- SDL_
WINDOW_ KEYBOARD_ GRABBED - window has grabbed keyboard input
- SDL_
WINDOW_ MAXIMIZED - window is maximized
- SDL_
WINDOW_ METAL - window usable for Metal view
- SDL_
WINDOW_ MINIMIZED - window is minimized
- SDL_
WINDOW_ MODAL - window is modal
- SDL_
WINDOW_ MOUSE_ CAPTURE - window has mouse captured (unrelated to MOUSE_GRABBED)
- SDL_
WINDOW_ MOUSE_ FOCUS - window has mouse focus
- SDL_
WINDOW_ MOUSE_ GRABBED - window has grabbed mouse input
- SDL_
WINDOW_ MOUSE_ RELATIVE_ MODE - window has relative mode enabled
- SDL_
WINDOW_ NOT_ FOCUSABLE - window should not be focusable
- SDL_
WINDOW_ OCCLUDED - window is occluded
- SDL_
WINDOW_ OPENGL - window usable with OpenGL context
- SDL_
WINDOW_ POPUP_ MENU - window should be treated as a popup menu, requires a parent window
- SDL_
WINDOW_ RESIZABLE - window can be resized
- SDL_
WINDOW_ SURFACE_ VSYNC_ ADAPTIVE - SDL_
WINDOW_ SURFACE_ VSYNC_ DISABLED - SDL_
WINDOW_ TOOLTIP - window should be treated as a tooltip and does not get mouse or keyboard focus, requires a parent window
- SDL_
WINDOW_ TRANSPARENT - window with transparent buffer
- SDL_
WINDOW_ UTILITY - window should be treated as a utility window, not showing in the task bar and window list
- SDL_
WINDOW_ VULKAN - window usable for Vulkan surface
Functions§
- SDL_
Create ⚠Popup Window - Create a child popup window of the specified parent window.
- SDL_
Create ⚠Window - Create a window with the specified dimensions and flags.
- SDL_
Create ⚠Window With Properties - Create a window with the specified properties.
- SDL_
Destroy ⚠Window - Destroy a window.
- SDL_
Destroy ⚠Window Surface - Destroy the surface associated with the window.
- SDL_
Disable ⚠Screen Saver - Prevent the screen from being blanked by a screen saver.
- SDL_
EGL_ ⚠GetCurrent Config - Get the currently active EGL config.
- SDL_
EGL_ ⚠GetCurrent Display - Get the currently active EGL display.
- SDL_
EGL_ ⚠GetProc Address - Get an EGL library function by name.
- SDL_
EGL_ ⚠GetWindow Surface - Get the EGL surface associated with the window.
- SDL_
EGL_ ⚠SetAttribute Callbacks - Sets the callbacks for defining custom EGLAttrib arrays for EGL initialization.
- SDL_
Enable ⚠Screen Saver - Allow the screen to be blanked by a screen saver.
- SDL_
Flash ⚠Window - Request a window to demand attention from the user.
- SDL_
GL_ ⚠Create Context - Create an OpenGL context for an OpenGL window, and make it current.
- SDL_
GL_ ⚠Destroy Context - Delete an OpenGL context.
- SDL_
GL_ ⚠Extension Supported - Check if an OpenGL extension is supported for the current context.
- SDL_
GL_ ⚠GetAttribute - Get the actual value for an attribute from the current context.
- SDL_
GL_ ⚠GetCurrent Context - Get the currently active OpenGL context.
- SDL_
GL_ ⚠GetCurrent Window - Get the currently active OpenGL window.
- SDL_
GL_ ⚠GetProc Address - Get an OpenGL function by name.
- SDL_
GL_ ⚠GetSwap Interval - Get the swap interval for the current OpenGL context.
- SDL_
GL_ ⚠Load Library - Dynamically load an OpenGL library.
- SDL_
GL_ ⚠Make Current - Set up an OpenGL context for rendering into an OpenGL window.
- SDL_
GL_ ⚠Reset Attributes - Reset all previously set OpenGL context attributes to their default values.
- SDL_
GL_ ⚠SetAttribute - Set an OpenGL window attribute before window creation.
- SDL_
GL_ ⚠SetSwap Interval - Set the swap interval for the current OpenGL context.
- SDL_
GL_ ⚠Swap Window - Update a window with OpenGL rendering.
- SDL_
GL_ ⚠Unload Library - Unload the OpenGL library previously loaded by
SDL_GL_LoadLibrary()
. - SDL_
GetClosest ⚠Fullscreen Display Mode - Get the closest match to the requested display mode.
- SDL_
GetCurrent ⚠Display Mode - Get information about the current display mode.
- SDL_
GetCurrent ⚠Display Orientation - Get the orientation of a display.
- SDL_
GetCurrent ⚠Video Driver - Get the name of the currently initialized video driver.
- SDL_
GetDesktop ⚠Display Mode - Get information about the desktop’s display mode.
- SDL_
GetDisplay ⚠Bounds - Get the desktop area represented by a display.
- SDL_
GetDisplay ⚠Content Scale - Get the content scale of a display.
- SDL_
GetDisplay ⚠ForPoint - Get the display containing a point.
- SDL_
GetDisplay ⚠ForRect - Get the display primarily containing a rect.
- SDL_
GetDisplay ⚠ForWindow - Get the display associated with a window.
- SDL_
GetDisplay ⚠Name - Get the name of a display in UTF-8 encoding.
- SDL_
GetDisplay ⚠Properties - Get the properties associated with a display.
- SDL_
GetDisplay ⚠Usable Bounds - Get the usable desktop area represented by a display, in screen coordinates.
- SDL_
GetDisplays ⚠ - Get a list of currently connected displays.
- SDL_
GetFullscreen ⚠Display Modes - Get a list of fullscreen display modes available on a display.
- SDL_
GetGrabbed ⚠Window - Get the window that currently has an input grab enabled.
- SDL_
GetNatural ⚠Display Orientation - Get the orientation of a display when it is unrotated.
- SDL_
GetNum ⚠Video Drivers - Get the number of video drivers compiled into SDL.
- SDL_
GetPrimary ⚠Display - Return the primary display.
- SDL_
GetSystem ⚠Theme - Get the current system theme.
- SDL_
GetVideo ⚠Driver - Get the name of a built in video driver.
- SDL_
GetWindow ⚠Aspect Ratio - Get the size of a window’s client area.
- SDL_
GetWindow ⚠Borders Size - Get the size of a window’s borders (decorations) around the client area.
- SDL_
GetWindow ⚠Display Scale - Get the content display scale relative to a window’s pixel size.
- SDL_
GetWindow ⚠Flags - Get the window flags.
- SDL_
GetWindow ⚠FromID - Get a window from a stored ID.
- SDL_
GetWindow ⚠Fullscreen Mode - Query the display mode to use when a window is visible at fullscreen.
- SDL_
GetWindowICC ⚠Profile - Get the raw ICC profile data for the screen the window is currently on.
- SDL_
GetWindowID ⚠ - Get the numeric ID of a window.
- SDL_
GetWindow ⚠Keyboard Grab - Get a window’s keyboard grab mode.
- SDL_
GetWindow ⚠Maximum Size - Get the maximum size of a window’s client area.
- SDL_
GetWindow ⚠Minimum Size - Get the minimum size of a window’s client area.
- SDL_
GetWindow ⚠Mouse Grab - Get a window’s mouse grab mode.
- SDL_
GetWindow ⚠Mouse Rect - Get the mouse confinement rectangle of a window.
- SDL_
GetWindow ⚠Opacity - Get the opacity of a window.
- SDL_
GetWindow ⚠Parent - Get parent of a window.
- SDL_
GetWindow ⚠Pixel Density - Get the pixel density of a window.
- SDL_
GetWindow ⚠Pixel Format - Get the pixel format associated with the window.
- SDL_
GetWindow ⚠Position - Get the position of a window.
- SDL_
GetWindow ⚠Properties - Get the properties associated with a window.
- SDL_
GetWindow ⚠Safe Area - Get the safe area for this window.
- SDL_
GetWindow ⚠Size - Get the size of a window’s client area.
- SDL_
GetWindow ⚠Size InPixels - Get the size of a window’s client area, in pixels.
- SDL_
GetWindow ⚠Surface - Get the SDL surface associated with the window.
- SDL_
GetWindow ⚠SurfaceV Sync - Get VSync for the window surface.
- SDL_
GetWindow ⚠Title - Get the title of a window.
- SDL_
GetWindows ⚠ - Get a list of valid windows.
- SDL_
Hide ⚠Window - Hide a window.
- SDL_
Maximize ⚠Window - Request that the window be made as large as possible.
- SDL_
Minimize ⚠Window - Request that the window be minimized to an iconic representation.
- SDL_
Raise ⚠Window - Request that a window be raised above other windows and gain the input focus.
- SDL_
Restore ⚠Window - Request that the size and position of a minimized or maximized window be restored.
- SDL_
Screen ⚠Saver Enabled - Check whether the screensaver is currently enabled.
- SDL_
SetWindow ⚠Always OnTop - Set the window to always be above the others.
- SDL_
SetWindow ⚠Aspect Ratio - Request that the aspect ratio of a window’s client area be set.
- SDL_
SetWindow ⚠Bordered - Set the border state of a window.
- SDL_
SetWindow ⚠Focusable - Set whether the window may have input focus.
- SDL_
SetWindow ⚠Fullscreen - Request that the window’s fullscreen state be changed.
- SDL_
SetWindow ⚠Fullscreen Mode - Set the display mode to use when a window is visible and fullscreen.
- SDL_
SetWindow ⚠HitTest - Provide a callback that decides if a window region has special properties.
- SDL_
SetWindow ⚠Icon - Set the icon for a window.
- SDL_
SetWindow ⚠Keyboard Grab - Set a window’s keyboard grab mode.
- SDL_
SetWindow ⚠Maximum Size - Set the maximum size of a window’s client area.
- SDL_
SetWindow ⚠Minimum Size - Set the minimum size of a window’s client area.
- SDL_
SetWindow ⚠Modal - Toggle the state of the window as modal.
- SDL_
SetWindow ⚠Mouse Grab - Set a window’s mouse grab mode.
- SDL_
SetWindow ⚠Mouse Rect - Confines the cursor to the specified area of a window.
- SDL_
SetWindow ⚠Opacity - Set the opacity for a window.
- SDL_
SetWindow ⚠Parent - Set the window as a child of a parent window.
- SDL_
SetWindow ⚠Position - Request that the window’s position be set.
- SDL_
SetWindow ⚠Resizable - Set the user-resizable state of a window.
- SDL_
SetWindow ⚠Shape - Set the shape of a transparent window.
- SDL_
SetWindow ⚠Size - Request that the size of a window’s client area be set.
- SDL_
SetWindow ⚠SurfaceV Sync - Toggle VSync for the window surface.
- SDL_
SetWindow ⚠Title - Set the title of a window.
- SDL_
Show ⚠Window - Show a window.
- SDL_
Show ⚠Window System Menu - Display the system-level window menu.
- SDL_
Sync ⚠Window - Block until any pending window state is finalized.
- SDL_
Update ⚠Window Surface - Copy the window surface to the screen.
- SDL_
Update ⚠Window Surface Rects - Copy areas of the window surface to the screen.
- SDL_
WINDOWPOS_ CENTERED_ DISPLAY - Used to indicate that the window position should be centered.
- SDL_
WINDOWPOS_ ISCENTERED - A macro to test if the window position is marked as “centered.”
- SDL_
WINDOWPOS_ ISUNDEFINED - A macro to test if the window position is marked as “undefined.”
- SDL_
WINDOWPOS_ UNDEFINED_ DISPLAY - Used to indicate that you don’t care what the window position is.
- SDL_
Window ⚠HasSurface - Return whether the window has a surface associated with it.
Type Aliases§
- SDL_
DisplayID - This is a unique ID for a display for the time it is connected to the system, and is never reused for the lifetime of the application.
- SDL_
EGLAttrib - An EGL attribute, used when creating an EGL context.
- SDL_
EGLAttrib Array Callback - EGL platform attribute initialization callback.
- SDL_
EGLConfig - Opaque type for an EGL config.
- SDL_
EGLDisplay - Opaque type for an EGL display.
- SDL_
EGLInt Array Callback - EGL surface/context attribute initialization callback types.
- SDL_
EGLSurface - Opaque type for an EGL surface.
- SDL_
EGLint - An EGL integer attribute, used when creating an EGL surface.
- SDL_
GLContext - An opaque handle to an OpenGL context.
- SDL_
GLContext Flag - Possible flags to be set for the
SDL_GL_CONTEXT_FLAGS
attribute. - SDL_
GLContext Release Flag - Possible values to be set for the
SDL_GL_CONTEXT_RELEASE_BEHAVIOR
attribute. - SDL_
GLContext Reset Notification - Possible values to be set
SDL_GL_CONTEXT_RESET_NOTIFICATION
attribute. - SDL_
GLProfile - Possible values to be set for the
SDL_GL_CONTEXT_PROFILE_MASK
attribute. - SDL_
HitTest - Callback used for hit-testing.
- SDL_
Window Flags - The flags on a window.
- SDL_
WindowID - This is a unique ID for a window.