Anchors

From Warcraft Wiki
Jump to navigation Jump to search

Anchors (or FRAMEPOINT in the XML schema) are an enumeration of the following values, used with Region:SetPoint() or <Anchor>.

  • TOPLEFT
  • TOPRIGHT
  • BOTTOMLEFT
  • BOTTOMRIGHT
  • TOP
  • BOTTOM
  • LEFT
  • RIGHT
  • CENTER

Initialization

During the AddOn loading process, anchors are adjusted at multiple stages. [citation needed] 

VARIABLES_LOADED
Anchors defined in XML have already been set.
PLAYER_ENTERING_WORLD
If a frame is parented to UIParent, then its anchors are wiped and replaced with layout-cache.txt. If the frame layout data have not been saved in the cache (the user has never moved the frame with the mouse), Frame:GetLeft(), Frame:GetBottom(), Frame:GetRight() and Frame:GetTop() return nil.