# C_UI: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_UI

## Functions

### C_UI.DoesAnyDisplayHaveNotch

```lua
notchPresent = C_UI.DoesAnyDisplayHaveNotch()
```

True if any display attached has a notch. This does not mean the current view intersects the notch.

Returns:
- `notchPresent`: bool

### C_UI.GetTopLeftNotchSafeRegion

```lua
left, right, top, bottom = C_UI.GetTopLeftNotchSafeRegion()
```

Region of screen left of screen notch. Zeros if no notch.

Returns:
- `left`: number
- `right`: number
- `top`: number
- `bottom`: number

### C_UI.GetTopRightNotchSafeRegion

```lua
left, right, top, bottom = C_UI.GetTopRightNotchSafeRegion()
```

Region of screen right of screen notch. Zeros if no notch.

Returns:
- `left`: number
- `right`: number
- `top`: number
- `bottom`: number

### C_UI.GetUIParent

```lua
uiParent = C_UI.GetUIParent()
```

Returns:
- `uiParent`: SimpleFrame

### C_UI.GetWorldFrame

```lua
worldFrame = C_UI.GetWorldFrame()
```

Returns:
- `worldFrame`: SimpleFrame

### C_UI.Reload

```lua
C_UI.Reload()
```

### C_UI.ShouldUIParentAvoidNotch

```lua
willAvoidNotch = C_UI.ShouldUIParentAvoidNotch()
```

UIParent will shift down to avoid notch if true. This does not mean there is a notch.

Returns:
- `willAvoidNotch`: bool

## Events

### NOTCHED_DISPLAY_MODE_CHANGED

No payload.

### UI_SCALE_CHANGED

No payload.

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
