Open a window with pixel dimensions, a title, and options.
titleoptionsOptionalCreate an OpenGL context for an existing system window handle.
handlesettingsOptionalClose the window; the object remains and create can be called again.
Open or recreate the window; mode is pixel dimensions or a full video mode.
titleoptionsOptionalRecreate the OpenGL context using an existing system window handle.
handlesettingsOptionalReturns the created VkSurfaceKHR, or undefined when creation fails.
instanceallocatorSwap the OpenGL front and back buffers; vertical sync and frame-rate limits may block the current thread.
Return the platform-native window handle as bigint to preserve pointer precision.
Return the actual OpenGL context settings, which may differ from those requested.
Specific handlers take precedence over the optional fallback.
handlersfallbackOptionalDrain the current event queue, passing event data synchronously to visitor in order.
visitorReturn whether the window currently has input focus.
Return whether the system window is still open.
ProtectedonCalled synchronously after an explicit create succeeds; derived hooks are not called during base construction with arguments.
ProtectedonCalled synchronously after SFML actually reports a size change, without consuming the corresponding Resized event.
Retrieve one window event without blocking; return undefined if the queue is empty.
Request window focus from the system; the window manager decides whether to grant it.
Activate or deactivate the window's OpenGL context on the current thread, returning whether it succeeded.
activeSet the maximum display calls per second; 0 removes the frame-rate limit, and waiting occurs inside display.
limitSet the RGBA8 window icon; pixel data must contain at least size.x×size.y×4 bytes.
sizepixelsSet the axis-change threshold for joystick movement events, from 0 to 100.
thresholdSet whether holding a key repeatedly generates KeyPressed events.
enabledSet the client area's maximum pixel dimensions; undefined removes the limit.
sizeSet the client area's minimum pixel dimensions; undefined removes the limit.
sizeSet whether to confine the mouse to the window, usually only effective while the window has focus.
grabbedSet whether the mouse cursor is visible in the client area.
visibleSet the window's pixel position on the desktop.
positionSet the client area's pixel dimensions; width and height must be positive.
sizeSet the window title.
titleSet whether buffer swaps synchronize with the display refresh.
enabledShow or hide the window.
visibleBlocks the calling thread like SFML; Time.Zero waits indefinitely.
timeout
An OS window with an OpenGL context, usable by Texture.update().