Table of Contents

Class ApplicationV2

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

Implementation of IApplication that boots the new 'v2' main loop architecture.

public class ApplicationV2 : ApplicationImpl, IApplication
Inheritance
ApplicationV2
Implements
Inherited Members

Constructors

ApplicationV2()

Creates anew instance of the Application backend. The provided factory methods will be used on Init calls to get things booted.

Properties

TimedEvents

Handles recurring events. These are invoked on the main UI thread - allowing for safe updates to View instances.

Methods

AddTimeout(TimeSpan, Func<bool>)

Adds a timeout to the application.

Init(IConsoleDriver?, string?)

Initializes a new instance of Terminal.Gui Application.

Invoke(Action)

Runs action on the main UI loop thread

LayoutAndDraw(bool)

Causes any Toplevels that need layout to be laid out. Then draws any Toplevels that need display. Only Views that need to be laid out (see NeedsLayout) will be laid out. Only Views that need to be drawn (see NeedsDraw) will be drawn.

RemoveTimeout(object)

Removes a previously scheduled timeout

RequestStop(Toplevel?)

Stops the provided Toplevel, causing or the top if provided.

Run(Toplevel, Func<Exception, bool>?)

Runs the Application using the provided Toplevel view.

Run<T>(Func<Exception, bool>?, IConsoleDriver?)

Runs the application by creating a Toplevel-derived object of type T and calling Run(Toplevel, Func<Exception, bool>?).

Shutdown()

Shutdown an application initialized with Init(IConsoleDriver?, string?).