Window.this

Creates a window. Please note windows are created in a hidden state, so you must call show or loop to get it to display.

  1. this(Widget p)
  2. this(SimpleWindow win)
  3. this(int width, int height, string title, WindowTypes windowType, WindowFlags windowFlags, SimpleWindow parent)
    class Window
    this
    (
    int width = 500
    ,
    int height = 500
    ,
    string title = null
    ,
    WindowTypes windowType = WindowTypes.normal
    ,
    WindowFlags windowFlags = WindowFlags.dontAutoShow | WindowFlags.managesChildWindowFocus
    ,
    SimpleWindow parent = null
    )
  4. this(string title, int width, int height)

Meta

History

Prior to May 12, 2021, the default title was "D Application" (simpledisplay.d's default). After that, the default is Runtime.args[0] instead.

The width and height arguments were added to the overload that takes string first on June 21, 2021.