Window.setIcon

Change the window's icon.

pixels must be an array of width x height pixels in 32-bits RGBA format.

The OS default icon is used by default.

class Window
void
setIcon
(
uint width
,
uint height
,
const(ubyte[]) pixels
)

Parameters

width uint

Icon's width, in pixels

height uint

Icon's height, in pixels

pixels const(ubyte[])

Pointer to the array of pixels in memory

Meta