Skip to content

MouseConsoleComponent Class

A base class that implements ProcessMouse(IScreenObject, MouseScreenObjectState, out bool) of IComponent.

C#
public abstract class MouseConsoleComponent : IComponent

Inheritance object

Implements IComponent

C#
protected MouseConsoleComponent()

Indicates priority to other components.

C#
public uint SortOrder { get; set; }

ProcessMouse(IScreenObject, MouseScreenObjectState, out bool)

Section titled “ProcessMouse(IScreenObject, MouseScreenObjectState, out bool)”

Called by a host when the mouse is being processed.

C#
public abstract void ProcessMouse(IScreenObject host, MouseScreenObjectState state, out bool handled)

host IScreenObject
The host calling the component.

state MouseScreenObjectState
The state of the mouse in relation to the console.

handled bool
When set to true informs the host caller that we handled the mouse and to stop others from handling.

Called when the component is added to a host.

C#
public virtual void OnAdded(IScreenObject host)

host IScreenObject
The host that added the component.

Called when the component is removed from the host.

C#
public virtual void OnRemoved(IScreenObject host)

host IScreenObject
The host that removed the component.