Logo Mibo

IWindow Type

Runtime window control, registered by the host in the GameContext.

Toggles and mode changes take effect immediately; the runtime's resize tracking updates the context dimensions on the next frame.

Instance members

Instance member Description

this.IsFullscreen

Full Usage: this.IsFullscreen

Returns: bool
Modifiers: abstract

True when the window is in either fullscreen mode.

Returns: bool

this.Mode

Full Usage: this.Mode

Returns: WindowMode
Modifiers: abstract

The current presentation mode.

Returns: WindowMode

this.SetMode

Full Usage: this.SetMode

Parameters:
Modifiers: abstract

Switch the presentation mode.

mode : WindowMode

this.SetSize

Full Usage: this.SetSize

Parameters:
    width : int
    height : int

Modifiers: abstract

Set the window size in pixels. No effect outside Windowed.

width : int
height : int

this.ToggleFullscreen

Full Usage: this.ToggleFullscreen

Modifiers: abstract

Toggle between Windowed and fullscreen.

Entering fullscreen uses the mode set in the startup GameConfig; a windowed startup toggles to BorderlessFullscreen.

Type something to start searching.