WoW:API Frame IsUserPlaced: Difference between revisions
Jump to navigation
Jump to search
(Created documentation on IsUserPlaced, after frustrating myself for 2 hours determining that it doesn't work on dynamic frames :)) |
m (Move page script moved page API Frame IsUserPlaced to API Frame IsUserPlaced without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} | ||
Returns whether the frame has been moved by the user. | Returns whether the frame has been moved by the user. | ||
userPlaced = Frame:IsUserPlaced() | |||
userPlaced = | |||
== Parameters == | == Parameters == | ||
=== Returns === | === Returns === | ||
;userPlaced : Boolean - true if the user moved the frame (i.e. [[API_Frame_SetUserPlaced|Frame:SetUserPlaced]](true) was called earlier) | |||
==Details== | ==Details== | ||
Does '''not''' work on frames that were created by [[API_CreateFrame|CreateFrame]]. | |||
Latest revision as of 04:45, 15 August 2023
← Widget API ← Frame < IsUserPlaced
Returns whether the frame has been moved by the user.
userPlaced = Frame:IsUserPlaced()
Parameters[edit]
Returns[edit]
- userPlaced
- Boolean - true if the user moved the frame (i.e. Frame:SetUserPlaced(true) was called earlier)
Details[edit]
Does not work on frames that were created by CreateFrame.