WoW:API Frame IsUserPlaced: Difference between revisions

From AddOn Studio
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}} __NOTOC__
{{widgetmethod}}  
 
 
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Returns whether the frame has been moved by the user.
Returns whether the frame has been moved by the user.


<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  userPlaced = Frame:IsUserPlaced()
  userPlaced = [[API_Frame_IsUserPlaced|Frame:IsUserPlaced()]]
 


== Parameters ==
== Parameters ==
=== Arguments ===
<!-- List each argument, together with its type -->
''none''
=== Returns ===
=== Returns ===
<!-- List each return value, together with its type -->
;userPlaced : Boolean - true if the user moved the frame (i.e. [[API_Frame_SetUserPlaced|Frame:SetUserPlaced]](true) was called earlier)
 
:;userPlaced : Boolean - true if the user moved the frame (i.e. [[API_Frame_SetUserPlaced|Frame:SetUserPlaced]](true) was called earlier)
 


==Details==
==Details==
<!-- Details not appropriate for the main description can go here.
Does '''not''' work on frames that were created by [[API_CreateFrame|CreateFrame]].
    REMOVE the section if you're just going to restate the intro line! -->
 
: 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.