IApplicationControl

Description

interface Tinman.Engine.Application.IApplicationControl

Derived from

IRequestClose

Base interface for classes that host an IApplication object inside of a 3rd-party windowing system, such as WinForms, WPF, MFC, or Qt.

Public / Methods

ResetApplication


public method ResetApplication → ()

Resets this application control by disposing the application and the running loop (if present).

ResetGraphicsContext


public method ResetGraphicsContext → ()

Resets the graphics context.

Public / Attributes

Application


[OwnerValue]
public attribute Application → (get,set)

value : IApplication

The application to run.

Gets or sets the application that is run in this application control.

ContextFactory


public attribute ContextFactory → (get,set)

value : IGraphicsContextFactory

The graphics context factory.

The graphics context factory to use.

Setting the context factory to null will reset the application control (see ResetApplication).

Changing the context factory while an application is running will change the graphics context of the application (see IApplication.GraphicsContextDetach and IApplication.GraphicsContextAttach).

An implementing class may choose to accept only certain implementations of IGraphicsContext. When it rejects an implementation, it must act as if null had been passed.