Wowpedia
Advertisement

Sets an object to be positioned and sized exactly the same as another object.

MyObject:SetAllPoints(relativeRegion or "regionName") 

... is exactly equivalent to:

MyObject:SetPoint("TOPLEFT", relativeRegion ,"TOPLEFT", 0, 0)
MyObject:SetPoint("BOTTOMRIGHT", relativeRegion ,"BOTTOMRIGHT", 0, 0)
  • See Region:SetPoint()
  • region may be given as nil to anchor relative to the whole screen.
  • region unspecified anchors the object to the parent.

Patch changes

  • Bc icon.gif Patch 2.2.0 (2007-09-25): Coordinates are now relative to the closest anchor point.
  • WoW Icon update.png Patch 1.10.0 (2006-03-28): Updated.

See also

Advertisement