WowAddons

World of Warcraft Forever API · SimpleScriptRegionResizingAPI.md, for your AI

SimpleScriptRegionResizingAPI (widget methods)

13 functions, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an 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. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

AdjustPointsOffset

self:AdjustPointsOffset(x, y)

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

Arguments

xuiUnit
yuiUnit

ClearAllPoints

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

self:ClearPoint(point)

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

Arguments

pointFramePoint

ClearPointsOffset

self:ClearPointsOffset()

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

GetNumPoints

numPoints = self:GetNumPoints()

Returns

numPointsnumber

GetPoint

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

anchorIndexluaIndex default 0
resolveCollapsedbool default false

Returns

pointFramePoint
relativeToScriptRegion
relativePointFramePoint
offsetXuiUnit
offsetYuiUnit

GetPointByName

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

pointFramePoint
resolveCollapsedbool default false

Returns

pointFramePoint
relativeToScriptRegion
relativePointFramePoint
offsetXuiUnit
offsetYuiUnit

SetAllPoints

self:SetAllPoints(relativeTo, [doResize])

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

Arguments

relativeToScriptRegion
doResizebool default true

SetHeight

self:SetHeight(height)

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

Arguments

heightuiUnit

SetPoint

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

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

Arguments

pointFramePoint
relativeToScriptRegion
relativePointFramePoint
offsetXuiUnit
offsetYuiUnit

SetPointsOffset

self:SetPointsOffset(x, y)

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

Arguments

xuiUnit
yuiUnit

SetSize

self:SetSize(x, y)

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

Arguments

xuiUnit
yuiUnit

SetWidth

self:SetWidth(width)

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

Arguments

widthuiUnit

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows