Window.this

Constructor.

It's important to understand that the window will be drawn immediately by default. This means that the window will display before any other actions take place, including drawing or managing other widgets. This is so other methods (such as platformId) that rely on the window being drawn don't fail if immediately used afterwards.

This behaviour can be overridden by passing false as the waitForWindow argument which is useful if you want the entire UI belonging to the new window to be drawn before actaully showing it.

If no parent is specified the new window with be a child of the main window.

  1. this(Window parent, string title, bool waitForWindow)
  2. this(string title, bool waitForWindow)
    class Window
    this
    (
    string title
    ,
    bool waitForWindow = true
    )

Parameters

title string

The title of the window.

waitForWindow bool

Whether to wait for the window to be drawn before continuing.

Meta