sdl2/generated/lib_sdl_video library

Functions

sdlCreateWindow(String? title, int x, int y, int w, int h, int flags) Pointer<SdlWindow>
Create a window with the specified position, dimensions, and flags.
sdlCreateWindowFrom(Pointer<NativeType> data) Pointer<SdlWindow>
Create an SDL window from an existing native window.
sdlDestroyWindow(Pointer<SdlWindow> window) → void
Destroy a window.
sdlDestroyWindowSurface(Pointer<SdlWindow> window) int
Destroy the surface associated with the window.
sdlDisableScreenSaver() → void
Prevent the screen from being blanked by a screen saver.
sdlEnableScreenSaver() → void
Allow the screen to be blanked by a screen saver.
sdlFlashWindow(Pointer<SdlWindow> window, int operation) int
Request a window to demand attention from the user.
sdlGetClosestDisplayMode(int displayIndex, Pointer<SdlDisplayMode> mode, Pointer<SdlDisplayMode> closest) Pointer<SdlDisplayMode>
Get the closest match to the requested display mode.
sdlGetCurrentDisplayMode(int displayIndex, Pointer<SdlDisplayMode> mode) int
Get information about the current display mode.
sdlGetCurrentVideoDriver() String?
Get the name of the currently initialized video driver.
sdlGetDesktopDisplayMode(int displayIndex, Pointer<SdlDisplayMode> mode) int
Get information about the desktop's display mode.
sdlGetDisplayBounds(int displayIndex, Pointer<SdlRect> rect) int
Get the desktop area represented by a display.
sdlGetDisplayDpi(int displayIndex, Pointer<Float> ddpi, Pointer<Float> hdpi, Pointer<Float> vdpi) int
Get the dots/pixels-per-inch for a display.
sdlGetDisplayMode(int displayIndex, int modeIndex, Pointer<SdlDisplayMode> mode) int
Get information about a specific display mode.
sdlGetDisplayName(int displayIndex) String?
Get the name of a display in UTF-8 encoding.
sdlGetDisplayOrientation(int displayIndex) int
Get the orientation of a display.
sdlGetDisplayUsableBounds(int displayIndex, Pointer<SdlRect> rect) int
Get the usable desktop area represented by a display.
sdlGetGrabbedWindow() Pointer<SdlWindow>
Get the window that currently has an input grab enabled.
sdlGetNumDisplayModes(int displayIndex) int
Get the number of available display modes.
sdlGetNumVideoDisplays() int
Get the number of available video displays.
sdlGetNumVideoDrivers() int
Get the number of video drivers compiled into SDL.
sdlGetPointDisplayIndex(Pointer<SdlPoint> point) int
Get the index of the display containing a point
sdlGetRectDisplayIndex(Pointer<SdlRect> rect) int
Get the index of the display primarily containing a rect
sdlGetVideoDriver(int index) String?
Get the name of a built in video driver.
sdlGetWindowBordersSize(Pointer<SdlWindow> window, Pointer<Int32> top, Pointer<Int32> left, Pointer<Int32> bottom, Pointer<Int32> right) int
Get the size of a window's borders (decorations) around the client area.
sdlGetWindowBrightness(Pointer<SdlWindow> window) double
Get the brightness (gamma multiplier) for a given window's display.
sdlGetWindowData(Pointer<SdlWindow> window, String? name) Pointer<NativeType>
Retrieve the data pointer associated with a window.
sdlGetWindowDisplayIndex(Pointer<SdlWindow> window) int
Get the index of the display associated with a window.
sdlGetWindowDisplayMode(Pointer<SdlWindow> window, Pointer<SdlDisplayMode> mode) int
Query the display mode to use when a window is visible at fullscreen.
sdlGetWindowFlags(Pointer<SdlWindow> window) int
Get the window flags.
sdlGetWindowFromId(int id) Pointer<SdlWindow>
Get a window from a stored ID.
sdlGetWindowGammaRamp(Pointer<SdlWindow> window, Pointer<Uint16> red, Pointer<Uint16> green, Pointer<Uint16> blue) int
Get the gamma ramp for a given window's display.
sdlGetWindowGrab(Pointer<SdlWindow> window) bool
Get a window's input grab mode.
sdlGetWindowIccProfile(Pointer<SdlWindow> window, Pointer<Uint32> size) Pointer<NativeType>
Get the raw ICC profile data for the screen the window is currently on.
sdlGetWindowId(Pointer<SdlWindow> window) int
Get the numeric ID of a window.
sdlGetWindowKeyboardGrab(Pointer<SdlWindow> window) bool
Get a window's keyboard grab mode.
sdlGetWindowMaximumSize(Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) → void
Get the maximum size of a window's client area.
sdlGetWindowMinimumSize(Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) → void
Get the minimum size of a window's client area.
sdlGetWindowMouseGrab(Pointer<SdlWindow> window) bool
Get a window's mouse grab mode.
sdlGetWindowMouseRect(Pointer<SdlWindow> window) Pointer<SdlRect>
Get the mouse confinement rectangle of a window.
sdlGetWindowOpacity(Pointer<SdlWindow> window, Pointer<Float> outOpacity) int
Get the opacity of a window.
sdlGetWindowPixelFormat(Pointer<SdlWindow> window) int
Get the pixel format associated with the window.
sdlGetWindowPosition(Pointer<SdlWindow> window, Pointer<Int32> x, Pointer<Int32> y) → void
Get the position of a window.
sdlGetWindowSize(Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) → void
Get the size of a window's client area.
sdlGetWindowSizeInPixels(Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) → void
Get the size of a window in pixels.
sdlGetWindowSurface(Pointer<SdlWindow> window) Pointer<SdlSurface>
Get the SDL surface associated with the window.
sdlGetWindowTitle(Pointer<SdlWindow> window) String?
Get the title of a window.
sdlGlCreateContext(Pointer<SdlWindow> window) Pointer<NativeType>
Create an OpenGL context for an OpenGL window, and make it current.
sdlGlDeleteContext(Pointer<NativeType> context) → void
Delete an OpenGL context.
sdlGlExtensionSupported(String? extension) bool
Check if an OpenGL extension is supported for the current context.
sdlGlGetAttribute(int attr, Pointer<Int32> value) int
Get the actual value for an attribute from the current context.
sdlGlGetCurrentContext() Pointer<NativeType>
Get the currently active OpenGL context.
sdlGlGetCurrentWindow() Pointer<SdlWindow>
Get the currently active OpenGL window.
sdlGlGetDrawableSize(Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) → void
Get the size of a window's underlying drawable in pixels.
sdlGlGetProcAddress(String? proc) Pointer<NativeType>
Get an OpenGL function by name.
sdlGlGetSwapInterval() int
Get the swap interval for the current OpenGL context.
sdlGlLoadLibrary(String? path) int
Dynamically load an OpenGL library.
sdlGlMakeCurrent(Pointer<SdlWindow> window, Pointer<NativeType> context) int
Set up an OpenGL context for rendering into an OpenGL window.
sdlGlResetAttributes() → void
Reset all previously set OpenGL context attributes to their default values.
sdlGlSetAttribute(int attr, int value) int
Set an OpenGL window attribute before window creation.
sdlGlSetSwapInterval(int interval) int
Set the swap interval for the current OpenGL context.
sdlGlSwapWindow(Pointer<SdlWindow> window) → void
Update a window with OpenGL rendering.
sdlGlUnloadLibrary() → void
Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
sdlHasWindowSurface(Pointer<SdlWindow> window) bool
Return whether the window has a surface associated with it.
sdlHideWindow(Pointer<SdlWindow> window) → void
Hide a window.
sdlIsScreenSaverEnabled() bool
Check whether the screensaver is currently enabled.
sdlMaximizeWindow(Pointer<SdlWindow> window) → void
Make a window as large as possible.
sdlMinimizeWindow(Pointer<SdlWindow> window) → void
Minimize a window to an iconic representation.
sdlRaiseWindow(Pointer<SdlWindow> window) → void
Raise a window above other windows and set the input focus.
sdlRestoreWindow(Pointer<SdlWindow> window) → void
Restore the size and position of a minimized or maximized window.
sdlSetWindowAlwaysOnTop(Pointer<SdlWindow> window, bool onTop) → void
Set the window to always be above the others.
sdlSetWindowBordered(Pointer<SdlWindow> window, bool bordered) → void
Set the border state of a window.
sdlSetWindowBrightness(Pointer<SdlWindow> window, double brightness) int
Set the brightness (gamma multiplier) for a given window's display.
sdlSetWindowData(Pointer<SdlWindow> window, String? name, Pointer<NativeType> userdata) Pointer<NativeType>
Associate an arbitrary named pointer with a window.
sdlSetWindowDisplayMode(Pointer<SdlWindow> window, Pointer<SdlDisplayMode> mode) int
Set the display mode to use when a window is visible at fullscreen.
sdlSetWindowFullscreen(Pointer<SdlWindow> window, int flags) int
Set a window's fullscreen state.
sdlSetWindowGammaRamp(Pointer<SdlWindow> window, Pointer<Uint16> red, Pointer<Uint16> green, Pointer<Uint16> blue) int
Set the gamma ramp for the display that owns a given window.
sdlSetWindowGrab(Pointer<SdlWindow> window, bool grabbed) → void
Set a window's input grab mode.
sdlSetWindowHitTest(Pointer<SdlWindow> window, Pointer<NativeFunction<SdlHitTest>> callback, Pointer<NativeType> callbackData) int
Provide a callback that decides if a window region has special properties.
sdlSetWindowIcon(Pointer<SdlWindow> window, Pointer<SdlSurface> icon) → void
Set the icon for a window.
sdlSetWindowInputFocus(Pointer<SdlWindow> window) int
Explicitly set input focus to the window.
sdlSetWindowKeyboardGrab(Pointer<SdlWindow> window, bool grabbed) → void
Set a window's keyboard grab mode.
sdlSetWindowMaximumSize(Pointer<SdlWindow> window, int maxW, int maxH) → void
Set the maximum size of a window's client area.
sdlSetWindowMinimumSize(Pointer<SdlWindow> window, int minW, int minH) → void
Set the minimum size of a window's client area.
sdlSetWindowModalFor(Pointer<SdlWindow> modalWindow, Pointer<SdlWindow> parentWindow) int
Set the window as a modal for another window.
sdlSetWindowMouseGrab(Pointer<SdlWindow> window, bool grabbed) → void
Set a window's mouse grab mode.
sdlSetWindowMouseRect(Pointer<SdlWindow> window, Pointer<SdlRect> rect) int
Confines the cursor to the specified area of a window.
sdlSetWindowOpacity(Pointer<SdlWindow> window, double opacity) int
Set the opacity for a window.
sdlSetWindowPosition(Pointer<SdlWindow> window, int x, int y) → void
Set the position of a window.
sdlSetWindowResizable(Pointer<SdlWindow> window, bool resizable) → void
Set the user-resizable state of a window.
sdlSetWindowSize(Pointer<SdlWindow> window, int w, int h) → void
Set the size of a window's client area.
sdlSetWindowTitle(Pointer<SdlWindow> window, String? title) → void
Set the title of a window.
sdlShowWindow(Pointer<SdlWindow> window) → void
Show a window.
sdlUpdateWindowSurface(Pointer<SdlWindow> window) int
Copy the window surface to the screen.
sdlUpdateWindowSurfaceRects(Pointer<SdlWindow> window, Pointer<SdlRect> rects, int numrects) int
Copy areas of the window surface to the screen.
sdlVideoInit(String? driverName) int
Initialize the video subsystem, optionally specifying a video driver.
sdlVideoQuit() → void
Shut down the video subsystem, if initialized with SDL_VideoInit().