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.

The parent window is responsible for the life of this window. If the parent window is destroyed, this one will be too.

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

Parameters

parent Window

The window to act as a parent.

title string

The title of the window.

waitForWindow bool

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

Meta