KernelAPI reference
Interface IDisplayControl
Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time
What a platform can change about its window and presentation while the game runs (Screen uses it). A capability (TryGetCapability``1): platforms without a window (headless) or whose host owns these choices (browsers, phones) do not offer it, or report that a change did not apply.
public interface IDisplayControlProperties
CurrentDisplay
Index in Displays of the display the window is on; -1 when unknown.
int CurrentDisplay { get; }Property Value
Displays
The displays the system reports, in its order.
IReadOnlyList<DisplayInfo> Displays { get; }Property Value
VSync
Whether frames wait for the display’s refresh.
bool VSync { get; }Property Value
WindowMode
The window’s current mode.
WindowMode WindowMode { get; }Property Value
Methods
MoveToDisplay(int)
Moves the window (and full screen) to display index; returns whether it applied.
bool MoveToDisplay(int index)Parameters
index int
Returns
SetVSync(bool)
Turns VSync on or off; returns whether VSync now equals on.
bool SetVSync(bool on)Parameters
on bool
Returns
SetWindowMode(WindowMode)
Changes the window’s mode; returns whether it applied.
bool SetWindowMode(WindowMode mode)Parameters
mode WindowMode