IsMouseOver

From IfsoGUIWiki

Jump to: navigation, search

Internal Method - Should only be called by the GUI and or a gadget.

Contents

Declaration

IsMouseOver:Int(parX:Int, parY:Int, parW:Int, parH:Int, iMouseX:Int, iMouseY:Int)
Returns whether or not the mouse is over the gadget. The gadget should set itself as the active gadget before returning true (GUI.SetActiveGadget(Self)).

Returns

True or False (Integer), whether the mouse is over the gadget or not.

Parameters

  • parX:Int - Absolute value of the parents X position.
  • parY:Int - Absolute value of the parents Y position.
  • parW:Int - Parents width.
  • parH:Int - Parent height.
  • iMouseX:Int - Mouse X position.
  • iMouseY:Int - Mouse Y position.

Gadget Information

Internal Method - Should only be called by the GUI and or a gadget.

Example

Personal tools