IApplicationRunner

Description

interface Tinman.Engine.Application.IApplicationRunner

Provides access to the context that is running the current IApplication.

See also

IApplication

Public / Methods

Reset​Graphics​Context


public method ResetGraphicsContext → (1)

which opt : int32 = -1

[-1..IApplicationRunner.AvailableGraphicsContexts.Count-1]
The graphics context factory to use when re-creating the graphics context. If -1, the same factory will be used. Defaults -1.

Reset the current graphics context.

Public / Attributes

Available​Graphics​Contexts


public attribute AvailableGraphicsContexts → (get)

value : IVectorConst<string>

[not-null]
The graphics context factory list.

Returns a list of available graphics context factories.

Can​Fullscreen


public attribute CanFullscreen → (get)

value : bool

true if Fullscreen can be set to true, false if not.

Can the application be put into full-screen mode?

Current​Graphics​Context


public attribute CurrentGraphicsContext → (get)

value : int32

[0..IApplicationRunner.AvailableGraphicsContexts.Count-1]
Index of current graphics context factory.

Returns the factory that has created the current graphics context.

Fullscreen


public attribute Fullscreen → (get,set)

value : bool

true if the application is running in full-screen mode,
false if it is running in windowed mode.

Is the application running in full-screen mode?

For various reasons, it may not be possible to put the application in full-screen mode. Trying to set this property to true will fail silently, getting the property again will still yield false.