Skip to content

raylib.IsWindowFullscreen

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check if window is currently fullscreen

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

raylib.InitWindow 800, 600, "Fullscreen Demo"
while not raylib.WindowShouldClose
    if raylib.IsKeyPressed(raylib.KEY_F) then raylib.ToggleFullscreen
    raylib.BeginDrawing
    raylib.ClearBackground color.white
    if raylib.IsWindowFullscreen then
        raylib.DrawText "Fullscreen ON  (F to toggle)", 10, 10, 20, color.green
    else
        raylib.DrawText "Fullscreen OFF (F to toggle)", 10, 10, 20, color.black
    end if
    raylib.EndDrawing
end while
raylib.CloseWindow

Clone this wiki locally