Skip to content

raylib.IsWindowResized

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check if window has been resizedLastFrame

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

raylib.SetConfigFlags raylib.FLAG_WINDOW_RESIZABLE
raylib.InitWindow 800, 600, "Resizable Window Demo"
while not raylib.WindowShouldClose
    raylib.BeginDrawing
    raylib.ClearBackground color.white
    if raylib.IsWindowResized then
        w = raylib.GetScreenWidth
        h = raylib.GetScreenHeight
        raylib.DrawText "Resized to " + w + "x" + h, 10, 10, 20, color.blue
    else
        raylib.DrawText "Drag the window edge to resize", 10, 10, 20, color.black
    end if
    raylib.EndDrawing
end while
raylib.CloseWindow

Clone this wiki locally