Table of Contents

Class ComponentFactoryImpl<TInputRecord>

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

Abstract base class implementation of IComponentFactory<TInputRecord> that provides a default implementation of CreateSizeMonitor(IOutput, IOutputBuffer).

public abstract class ComponentFactoryImpl<TInputRecord> : IComponentFactory<TInputRecord>, IComponentFactory where TInputRecord : struct

Type Parameters

TInputRecord

The platform specific keyboard input type (e.g. ConsoleKeyInfo or WindowsConsole.InputRecord

Inheritance
ComponentFactoryImpl<TInputRecord>
Implements
IComponentFactory<TInputRecord>
Derived
Inherited Members

Methods

CreateInput()

Create IInput<TInputRecord> class for the current driver implementation i.e. the class responsible for reading user input from the console.

CreateInputProcessor(ConcurrentQueue<TInputRecord>)

Creates the InputProcessorImpl<TInputRecord> class for the current driver implementation i.e. the class responsible for translating raw console input into Terminal.Gui common event Key and MouseEventArgs.

CreateOutput()

Create the IOutput class for the current driver implementation i.e. the class responsible for rendering IOutputBuffer into the console.

CreateSizeMonitor(IOutput, IOutputBuffer)

Creates ISizeMonitor class for the current driver implementation i.e. the class responsible for reporting the current size of the terminal.