WoW:API MouseIsOver

From AddOn Studio
Revision as of 19:07, 10 January 2005 by WoWWiki>Flickering (Added return value documentation)
Jump to navigation Jump to search
MouseIsOver -Documentation by coder_1024-
isOver = MouseIsOver(frame);

Determines whether or not the mouse is over the specified frame.


Arguments
(frame)
frame
Frame - The frame to test with

Results
isOver
isOver
Boolean - A true value if the mouse is over the frame, false otherwise.

Example

You can determine whether or not the mouse is over the minimap using the below.

if (MouseIsOver(MinimapCluster)) then
   -- do something
end

Template:WoW API