Skip to content

raylib.IsWindowState

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check if one specific window flag is enabled

Parameters

Parameter Default Value Note
flags

Return value

Condition Return Value
(always) number

Notes

Example

raylib.SetConfigFlags raylib.FLAG_WINDOW_RESIZABLE
raylib.InitWindow 800, 600, "Window State Demo"
while not raylib.WindowShouldClose
    raylib.BeginDrawing
    raylib.ClearBackground color.white
    if raylib.IsWindowState(raylib.FLAG_WINDOW_RESIZABLE) then
        raylib.DrawText "Window is resizable", 10, 10, 20, color.green
    else
        raylib.DrawText "Window is not resizable", 10, 10, 20, color.gray
    end if
    raylib.EndDrawing
end while
raylib.CloseWindow

Clone this wiki locally