> ## Documentation Index
> Fetch the complete documentation index at: https://amethyst.geoxor.moe/llms.txt
> Use this file to discover all available pages before exploring further.

# Window

Amethyst's window will emit these events when window state changes

<img src="https://mintcdn.com/amethyst/UDwMpRjxGcDWLceu/guides/%7BFECA45A8-06FB-40A3-8455-B93B072F9620%7D.png?fit=max&auto=format&n=UDwMpRjxGcDWLceu&q=85&s=e95f440c75d559ce36ab4458dcf1b0a7" alt="alt text" width="573" height="119" data-path="guides/{FECA45A8-06FB-40A3-8455-B93B072F9620}.png" />

### window:maximize

Emits when the window is maximized

```ts theme={null}
amethyst.on("window:maximize");
```

### window:unmaximize

Emits when the window is unmaximized

```ts theme={null}
amethyst.on("window:unmaximize");
```

### window:minimize

Emits when the window is minimized

```ts theme={null}
amethyst.on("window:minimize");
```

### window:focus

Emits when the window is focused

```ts theme={null}
amethyst.on("window:focus");
```

### window:unfocus

Emits when the window is unfocused

```ts theme={null}
amethyst.on("window:unfocus");
```
