Module gfx.window

Optional window package, mainly to run gfx-d examples

Functions

NameDescription
createDisplay(createInfo) Create a display for the running platform. The display will load a backend instance during startup. It will try the backends in the provided loadOrder. On linux, more than one display implementation are provided. You may use linuxDisplayOrder to choose. The first succesfully created display is returned.

Interfaces

NameDescription
Display
Window

Structs

NameDescription
DisplayCreateInfo Options that influence how the display is created, and how it will create a Gfx-D instance.
KeyEvent
MouseEvent

Enums

NameDescription
LinuxDisplay Identifier of the display to use on linux

Manifest constants

NameTypeDescription
gfxWindowLogMask

Aliases

NameTypeDescription
CloseHandler bool delegate()
KeyHandler void delegate(KeyEvent)
MouseHandler void delegate(MouseEvent)
ResizeHandler void delegate(uint, uint)