Class KeyboardConsoleComponent
A base class that implements ProcessKeyboard(IScreenObject, Keyboard, out bool) of IComponent.
Inheritance
KeyboardConsoleComponent
Implements
Inherited Members
Namespace: SadConsole.Components
Assembly: SadConsole.dll
Syntax
public abstract class KeyboardConsoleComponent : IComponent
Constructors
KeyboardConsoleComponent()
Declaration
protected KeyboardConsoleComponent()
Properties
SortOrder
Indicates priority to other components.
Declaration
public uint SortOrder { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
OnAdded(IScreenObject)
Called when the component is added to a host.
Declaration
public virtual void OnAdded(IScreenObject host)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | host | The host that added the component. |
OnRemoved(IScreenObject)
Called when the component is removed from the host.
Declaration
public virtual void OnRemoved(IScreenObject host)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | host | The host that removed the component. |
ProcessKeyboard(IScreenObject, Keyboard, out bool)
Called by a host when the keyboard is being processed.
Declaration
public abstract void ProcessKeyboard(IScreenObject host, Keyboard keyboard, out bool handled)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | host | The host calling the component. |
Keyboard | keyboard | The state of the keyboard. |
bool | handled | When set to true informs the host caller that we handled the mouse and to stop others from handling. |