# SimpleScriptRegionResizingAPI (widget methods): 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/SimpleScriptRegionResizingAPI

## Functions

### AdjustPointsOffset

```lua
self:AdjustPointsOffset(x, y)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `x`: uiUnit
- `y`: uiUnit

### ClearAllPoints

```lua
self:ClearAllPoints()
```

Clears all points and immediately invalidates the rect. (Prior to 11.2.0, this would only invalidate rect immediately for AnchoringRestricted regions.)

Protected: only Blizzard's own code may call it.

### ClearPoint

```lua
self:ClearPoint(point)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `point`: FramePoint

### ClearPointsOffset

```lua
self:ClearPointsOffset()
```

Protected: only Blizzard's own code may call it.

### GetNumPoints

```lua
numPoints = self:GetNumPoints()
```

Returns:
- `numPoints`: number

### GetPoint

```lua
point, relativeTo, relativePoint, offsetX, offsetY = self:GetPoint([anchorIndex], [resolveCollapsed])
```

May return nothing.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments:
- `anchorIndex`: luaIndex, default 0
- `resolveCollapsed`: bool, default false

Returns:
- `point`: FramePoint
- `relativeTo`: ScriptRegion
- `relativePoint`: FramePoint
- `offsetX`: uiUnit
- `offsetY`: uiUnit

### GetPointByName

```lua
point, relativeTo, relativePoint, offsetX, offsetY = self:GetPointByName(point, [resolveCollapsed])
```

May return nothing.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments:
- `point`: FramePoint
- `resolveCollapsed`: bool, default false

Returns:
- `point`: FramePoint
- `relativeTo`: ScriptRegion
- `relativePoint`: FramePoint
- `offsetX`: uiUnit
- `offsetY`: uiUnit

### SetAllPoints

```lua
self:SetAllPoints(relativeTo, [doResize])
```

Protected: only Blizzard's own code may call it.

Arguments:
- `relativeTo`: ScriptRegion
- `doResize`: bool, default true

### SetHeight

```lua
self:SetHeight(height)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `height`: uiUnit

### SetPoint

```lua
self:SetPoint(point, relativeTo, relativePoint, offsetX, offsetY)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `point`: FramePoint
- `relativeTo`: ScriptRegion
- `relativePoint`: FramePoint
- `offsetX`: uiUnit
- `offsetY`: uiUnit

### SetPointsOffset

```lua
self:SetPointsOffset(x, y)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `x`: uiUnit
- `y`: uiUnit

### SetSize

```lua
self:SetSize(x, y)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `x`: uiUnit
- `y`: uiUnit

### SetWidth

```lua
self:SetWidth(width)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `width`: uiUnit

---
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."
