WoW:API Region SetPoint
Jump to navigation
Jump to search
Sets the current attachment point of an UI component.
obj:SetPoint(point, parent, relativePoint[, x, y]);
- Arguments
- point
- the point to attach the obj to (see API Positions) (i.e. bind the left side of your frame)
- parent
- the name of the parent to attach the obj to (can be "UIParent" to attach it to the screen itself)
- relativePoint
- the relative point to attach the obj to (see API Positions) (i.e. bind your frame to the left side of the parent)
- x
- the X offset (-5 means 5 units left, 5 means 5 units right)
- y
- the Y offset (-5 means 5 units UP, 5 means 5 units down)
- Returns
- nil
- Example
MainMenuBar:SetPoint("BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 0, 0);
- Result
- Description
- Attaches obj to the specified position.