Cursoropen in new window

Cursor はマウスカーソルの入力を管理するインターフェースです。

Pointable

Cursor は Pointable なインターフェースです。

Component

Cursor は Component を継承しています。

メソッド

delta(): Pointable

1フレーム前からのカーソルの移動量を Pointable で返します。

setStyle(style: CursorStyle): this

CursorStyle 型の引数 style をカーソルのスタイルに反映させます。

getStyle(): CursorStyle

現在、カーソルに反映されているスタイルを CursorStyle で返します。