WoW:API Region ClearAllPoints: Difference between revisions
Jump to navigation
Jump to search
(New page: {{wowapi}} __NOTOC__ Removes all anchor points associated with this Region. region:ClearAllPoints(); == Arguments == : ''none'' == Returns == : ''none'' == Details == : There are n...) |
m (Move page script moved page API Region ClearAllPoints to API Region ClearAllPoints without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{widgetmethod|Region}} | ||
Removes all anchor points associated with this Region. | Removes all anchor points associated with this Region. | ||
Line 7: | Line 7: | ||
== Arguments == | == Arguments == | ||
: ''none'' | : ''none'' | ||
== Returns == | == Returns == | ||
: ''none'' | : ''none'' | ||
== Details == | == 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 <tt>:ClearAllPoints()</tt> first, and then reanchor your frame using <tt>[[API Region SetPoint|:SetPoint()]]</tt>. | : 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 <tt>:ClearAllPoints()</tt> first, and then reanchor your frame using <tt>[[API Region SetPoint|:SetPoint()]]</tt>. | ||
: Note that right after <tt>:ClearAllPoints()</tt> call your frame will disappear from screen, since WoW cannot display non-anchored objects. | : Note that right after <tt>:ClearAllPoints()</tt> call your frame will disappear from screen, since WoW cannot display non-anchored objects. | ||
== See also == | == See also == |
Latest revision as of 04:47, 15 August 2023
← Widget API ← Region < ClearAllPoints
Removes all anchor points associated with this Region.
region:ClearAllPoints();
Arguments[edit]
- none
Returns[edit]
- none
Details[edit]
- 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.