createWindow

Factory function to create windows.

The window is allocated with mallocNew and should be destroyed with destroyFree.

Parameters

usage WindowUsage

Intended usage of the window.

parentInfo void*

OS handle of the parent window. For WindowBackend.win32 it's a HWND. For WindowBackend.x11 it's _unused_.

controlInfo void*

was used in Carbon Audio Units, an additional parenting information. Should be null otherwise.

listener IWindowListener

A IWindowListener which listens to events by this window. Can be null for the moment. Must outlive the created window.

backend WindowBackend

Which windowing sub-system is used. Only Mac has any choice in this. Should be WindowBackend.autodetect in almost all cases

width int

Initial width of the window.

height int

Initial height of the window.

Return Value

Type: IWindow

null if this backend isn't available on this platform.

Meta