API 参考
正在准备搜索索引…

系统光标或自定义 RGBA 像素光标。

源码与继承
成员目录5

构造函数

属性

方法

构造函数

属性

Type: typeof CursorType = CursorType

系统光标形状枚举。

源码与继承

方法

  • 尝试从 RGBA8 像素创建光标;热点须在尺寸内,创建失败返回 undefined。

    参数

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

    返回值

    undefined | Cursor
    源码与继承

符号成员

"[graphicsNative]": NativeGraphicsHandle<"cursor">
源码与继承

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