> For the complete documentation index, see [llms.txt](https://hawklib.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hawklib.gitbook.io/docs/elements/window.md).

# Window

Script Setup

## Window Creation

```luau
local Window = HawkLib:Window({
    ScriptName = "Hawk Example Script",
    DestroyIfExists = true,
    Theme = "Rise" --All themes: Rise, Red, Hawk, Cyberpunk, TokyoNight, OLED, BloodRed, White, Ubuntu, Glacier, Midnight, Anime, Femboy, Hanki, Sunset, Ocean, Forest
})
```

## Minimize & Close Buttons

Minimize

```luau
Window:Minimize({
    Visibility = true, --Minimize button visibility
    OpenButton = true, --Open button visibility
    Callback = function()
        print("Window minimized")
    end
})
```

Close

```luau
Window:Close({
    Visibility = true, --Close Button visibility
    Callback = function()
        HawkLib:Destroy()
        print("Window closed")
    end
})
```
