WoW:API GetCursorPosition: Difference between revisions

m
Move page script moved page API GetCursorPosition to WoW:API GetCursorPosition without leaving a redirect
(→‎Example: Ok, i need to l2preview)
m (Move page script moved page API GetCursorPosition to WoW:API GetCursorPosition without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 22: Line 22:
== Details ==
== Details ==


: Returns scale-independant coordinates similar to Cursor:GetCenter() if 'Cursor' was a valid frame. You can use this value relative to UIParent if you treat BOTTOMLEFT as 0,0. Remember to also apply scale.
: Returns scale-independent coordinates similar to Cursor:GetCenter() if 'Cursor' was a valid frame. You can use this value relative to UIParent if you treat BOTTOMLEFT as 0,0. Remember to also apply scale.
 
== Notes ==
: To apply scale, divide both x and y by the value returned by UIParent:GetEffectiveScale()
: The coordinates returned by this use BOTTOMLEFT as the origin, not TOPLEFT. This means [0, 0] is the exact bottom-left point on the screen.
Anonymous user