setCursor

fnvoid setCursor(Cursor cursor) nothrow @nogc

Sets the cursor shape for the current window.

Parameters

cursorCursor shape to use Example:
setCursor(Cursor.WAIT);  // Show busy cursor
// ... do work ...
setCursor(Cursor.DEFAULT);  // Restore default
fnvoid setCursor(int cursor) nothrow @nogc

ditto

fnvoid setCursor(Cursor cursor, uint fg, uint bg = 0xFFFFFF00) nothrow @nogc

Sets the cursor shape with custom colors.

Parameters

cursorCursor shape to use
fgForeground color
bgBackground color