Skip to content

raylib.GetWindowHandle

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Local storage for the window handle returned by glfwGetX11Window This is needed as X11 handles are integers and may not fit inside a pointer depending on platform Storing the handle locally and returning a pointer in GetWindowHandle allows the code to work regardless of pointer width Get native window handle

Parameters

None.

Return value

Condition Return Value
(always) map

Notes

Example

raylib.InitWindow 800, 600, "Window Handle Demo"
handle = raylib.GetWindowHandle
print "Native window handle: " + handle
raylib.CloseWindow

Clone this wiki locally