-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.IsWindowResized
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if window has been resizedLastFrame
None.
| Condition | Return Value |
|---|---|
| (always) | number |
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