Function Window.icon

Wraps SDL_SetWindowIcon which sets a new icon to the window

void icon (
  Surface newIcon
) @property @trusted;

Parameters

NameDescription
newIcon dsdl2.Surface of the new icon