igiWindowIsOpen

Category: IGI (in-game GUI) — Windows

Syntax:

igiWindowIsOpen:Int()


Parameters

None



Returns

0 on the frame the window's X was clicked, otherwise 1.



Summary

For a window opened with IGI_WINDOW_CLOSEBOX: tells you the user clicked its X. IGI doesn't hide the window itself - stop calling igiBeginEx for it, as in the example.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.



Example
If showHelp Then
    igiBeginEx("Help", -1, -1, 0, 0, IGI_WINDOW_CLOSEBOX)
    If Not igiWindowIsOpen() Then showHelp = False
    igiText("Arrow keys move")
    igiEnd()
EndIf

BambooBasic © 2026 Michael Denathorn