Mouse Class
Definition
Section titled “Definition”Adds mouse-related extension methods for IScreenObject.
public static class MouseInheritance object
Methods
Section titled “Methods”WithMouse(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>)
Section titled “WithMouse(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>)”Adds a mouse handler to a IScreenObject.
public static IScreenObject WithMouse(this IScreenObject screenObject, Func<IScreenObject, MouseScreenObjectState, bool> handler)Parameters
Section titled “Parameters”screenObject IScreenObject
The object to use.
handler Func<IScreenObject, MouseScreenObjectState, bool>
The handler callback.
Returns
Section titled “Returns”RemoveMouseHooks(IScreenObject)
Section titled “RemoveMouseHooks(IScreenObject)”Removes all of the mouse hooks added with WithMouse(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>).
public static IScreenObject RemoveMouseHooks(this IScreenObject screenObject)Parameters
Section titled “Parameters”screenObject IScreenObject
The object to use.
Returns
Section titled “Returns”RemoveMouseHook(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>)
Section titled “RemoveMouseHook(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>)”Removes the specified handler that was added with WithMouse(IScreenObject, Func<IScreenObject, MouseScreenObjectState, bool>).
public static IScreenObject RemoveMouseHook(this IScreenObject screenObject, Func<IScreenObject, MouseScreenObjectState, bool> handler)Parameters
Section titled “Parameters”screenObject IScreenObject
The object to use.
handler Func<IScreenObject, MouseScreenObjectState, bool>
The handler callback.