class Cursor
package nb
Controls the cursor.
Works with this fork of hashlink : https://github.com/NeroGM/hashlink
Available since
0.1.0
.Static variables
staticcursor:CursorKind = CursorKind.Arrow
The last cursor set by this class. (Which is the current mouse cursor if you're not changing the cursor by other means.)
Static methods
staticgetCursorPosition(relative:Bool = true):Point
Returns the cursor position.
Parameters:
relative | If |
---|
Returns:
An h2d.col.Point
containing the cursor position.
staticmoveTo(x:Int, y:Int, relative:Bool = true, ?twType:TweenType):Void
Tweens the cursor to a given position.
Parameters:
x | The x position. |
---|---|
y | The y position. |
relative | If |
twType | The |