Returns whether the mouse cursor is over the given region.
Returns whether the mouse cursor is over the given region. This function replaces the previous MouseIsOver FrameXML function.
If provided, the arguments are treated as offsets by which to adjust the hit rectangle when comparing it to the mouse. They are in screen coordinates; positive offsets move an edge right or up, negative values move it left or down. No frame edges are actually moved. For example: if button:IsMouseOver(2, -2, -2, 2) then
will return true if the mouse is within 2 pixels of the given frame.