Table of Contents

Interface IApplication

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Interface for instances that provide backing functionality to static gateway class Application.

public interface IApplication

Properties

IsLegacy

true if implementation is 'old'. false if implementation is cutting edge.

Methods

AddIdle(Func<bool>)

Adds specified idle handler function to main iteration processing. The handler function will be called once per iteration of the main loop after other events have been handled.

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(Func<Exception, bool>?, IConsoleDriver?)

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

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?).