WoW API: Region ClearAllPoints

From AddOn Studio
Revision as of 20:22, 26 September 2007 by WoWWiki>Fibby (New page: {{wowapi}} __NOTOC__ Removes all anchor points associated with this Region. region:ClearAllPoints(); == Arguments == : ''none'' == Returns == : ''none'' == Details == : There are n...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < Region ClearAllPoints

Removes all anchor points associated with this Region.

region:ClearAllPoints();

Arguments

none


Returns

none


Details

There are no API functions which would alter an existing anchor point of a frame. So if you do want to change an anchor point (say, you want to move your frame), you should :ClearAllPoints() first, and then reanchor your frame using :SetPoint().
Note that right after :ClearAllPoints() call your frame will disappear from screen, since WoW cannot display non-anchored objects.


See also