Cursor - mgismissing/cosmos GitHub Wiki

Nowadays, the best way to navigate between user interfaces is certainly using a mouse cursor. The Cursor class implements just that.

The cursor is normally defined by default by the system, but if for some reason another instance is needed, the following piece of code is needed:

let cursor: Cursor = new Cursor(imageX.cursor.SYS_ARROW)

This also defines the cursor's default image, which is a CursorImage.