Interface Window

This type represents a window towards the windowing system, that's used to render the scene of a component. It provides API to control windowing system specific aspects such as the position on the screen.

interface Window {
    fullscreen: boolean;
    logicalPosition: Point;
    logicalSize: Size;
    maximized: boolean;
    minimized: boolean;
    physicalPosition: Point;
    physicalSize: Size;
    get visible(): boolean;
    hide(): void;
    requestRedraw(): void;
    show(): void;
}

Properties

fullscreen: boolean

Gets or sets the window's fullscreen state *

logicalPosition: Point

Gets or sets the logical position of the window on the screen.

logicalSize: Size

Gets or sets the logical size of the window on the screen,

maximized: boolean

Gets or sets the window's maximized state *

minimized: boolean

Gets or sets teh window's minimized state *

physicalPosition: Point

Gets or sets the physical position of the window on the screen.

physicalSize: Size

Gets or sets the physical size of the window on the screen,

Accessors

  • get visible(): boolean
  • Returns the visibility state of the window. This function can return false even if you previously called show() on it, for example if the user minimized the window.

    Returns boolean

Methods

  • Hides the window, so that it is not visible anymore.

    Returns void

  • Issues a request to the windowing system to re-render the contents of the window.

    Returns void

  • Shows the window on the screen. An additional strong reference on the associated component is maintained while the window is visible.

    Returns void