createWindow

Creates a window and returns its handle, while also saving its reference for later and to safe and automatic deallocation.

createWindow
(,
int x
,
int y
,
int width
,
int height
,
WindowH parent = null
,)

Parameters

title io_str_t

The title of the window.

x int

X position of the window, or -1 for OS default.

y int

Y position of the window, or -1 for OS default.

width int

Width of the window, or -1 for OS default.

height int

Height of the window, or -1 for OS default.

parent WindowH

Parent if there's any

styleIDs uint[]

Style identifiers, see enum WindowStyleIDs for details.

Return Value

Type: WindowH

The Window handle, or null if an error have happened. Note: Only some basic functionality can be accessed from here. More advanced functionality is out of scope of this library to minimize its complexity, and it's not supposed to be a GUI library. However, function addWindow will add any window handle to the reference counting if needed.

Meta