API reference
Preparing search index…

A system cursor or a custom RGBA pixel cursor.

Source & inheritance
Member directory5

Constructors

Properties

Methods

Constructors

Properties

Type: typeof CursorType = CursorType

The system cursor shape enumeration.

Source & inheritance

Methods

  • Try to create a cursor from RGBA8 pixels; the hotspot must be within the dimensions. Return undefined if creation fails.

    Parameters

    pixels
    Uint8Array
    size
    Readonly<Vector2u>
    hotspot
    Readonly<Vector2u>

    Returns

    undefined | Cursor
    Source & inheritance

Symbol members

"[graphicsNative]": NativeGraphicsHandle<"cursor">
Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0