ScriptRegionResizing:GetPointByName
Jump to navigation
Jump to search
Returns an anchor point by name for the region.
point, relativeTo, relativePoint, offsetX, offsetY = ScriptRegionResizing:GetPointByName(point)
Arguments
- point
- string : FramePoint
TOPLEFT, TOPRIGHT, BOTTOMLEFT, BOTTOMRIGHT
TOP, BOTTOM, LEFT, RIGHT, CENTER
Returns
Returns nil
if the specified point is not set.
- point
- string : FramePoint
- relativeTo
- Object
- relativePoint
- string : FramePoint
- offsetX
- number
- offsetY
- number
Example
Prints the TOPLEFT point of UIParent.
/dump UIParent:GetPointByName("TOPLEFT")
-- "TOPLEFT", nil, "TOPLEFT", 0, 0
Patch changes
Patch 9.0.1 (2020-10-13): Added.