Creates a render window with pixel size, title and optional window parameters.
titleoptionsOptionalCreates a rendering context for an existing system window handle.
handlesettingsOptionalProtectedactivateactiveProtectedallocatecapacityProtectedchangeGLStatesoperationRecords a color clear command, defaulting to black; also clears the stencil buffer when stencil is supplied.
colorstencilOptionalRecords only a stencil buffer clear command; the default stencil value is 0.
stencilSubmits queued draws and closes the window; create can be called again on this object.
Opens or recreates the render window; mode specifies its pixel size.
titleoptionsOptionalRecreates a rendering context using an existing system window handle.
handlesettingsOptionalReturns the created VkSurfaceKHR, or undefined when creation fails.
instanceallocatorSynchronously submits draws and swaps window buffers; may wait for vertical sync or the frame rate limit.
Synchronously records an object draw snapshot, unaffected by later changes; submits at flush/display.
drawablestatesOptionalRecords a draw of the entire GPU vertex buffer, retaining render states from the call.
bufferstatesOptionalDraws vertexCount vertices starting at firstVertex, automatically truncating counts beyond the end.
bufferfirstVertexvertexCountstatesOptionalCopies a vertex snapshot and records a draw using type; states defaults to RenderStates.Default.
verticestypestatesOptionalSubmit pending draws before an external graphics operation.
Returns a read-only reference to the default view covering the target's pixel area.
Return the platform-native window handle as bigint to preserve pointer precision.
Converts view's normalized scissor area into a pixel rectangle.
viewReturn the actual OpenGL context settings, which may differ from those requested.
Returns a read-only reference to the current view, updated by setView.
Converts view's normalized viewport into a pixel rectangle in the target.
viewSpecific 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.
ProtectedinitializeCalled only after native construction or resize succeeds.
sizeReturn whether the system window is still open.
Returns whether the window framebuffer enables sRGB color conversion.
Converts world coordinates to integer target pixel coordinates; uses the current view when view is omitted.
pointviewConverts target pixel coordinates to world coordinates; uses the current view when view is omitted.
pointviewProtectedonCalled 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.
Submits queued draws and restores OpenGL states saved by pushGLStates.
Submits queued draws and saves current OpenGL states for mixing with native OpenGL.
Request window focus from the system; the window manager decides whether to grant it.
Submits queued draws and restores OpenGL states required for SFML drawing.
Submits queued draws and activates or deactivates the OpenGL context; returns whether it succeeded.
activeSet the maximum display calls per second; 0 removes the frame-rate limit, and waiting occurs inside display.
limitSets the window icon using RGBA8 pixels of the specified size.
sizepixelsSet the axis-change threshold for joystick movement events, from 0 to 100.
thresholdSet whether holding a key repeatedly generates KeyPressed events.
enabledSets the maximum client area size in pixels; undefined removes the limit.
sizeSets the minimum client area size in pixels; 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.
positionSubmits queued draws and sets the client area's pixel size.
sizeSet the window title.
titleSet whether buffer swaps synchronize with the display refresh.
enabledCopies and sets the view for subsequent draws; recorded draws retain their original view.
viewShow or hide the window.
visibleProtectedsubmitdisplayProtectedsubmitcountdisplayBlocks the calling thread like SFML; Time.Zero waits indefinitely.
timeoutReadonly[graphics
A window supporting both Window operations and RenderTarget 2D drawing.