cursor-style-manager-wle
Version:
Shared cursor styles for Wonderland Engine
22 lines (21 loc) • 847 B
TypeScript
import { Component } from '@wonderlandengine/api';
import type { ICursorStyleManager } from './ICursorStyleManager';
/**
* The default cursor style manager implementation. Note that you can create
* your own manager class, so long as it implements the ICursorStyleManager
* interface.
*/
export declare class CursorStyleManagerComponent extends Component implements ICursorStyleManager {
static TypeName: string;
static Properties: {
defaultCursorStyle: import("@wonderlandengine/api").ComponentProperty;
};
requestedPointerStyles: Array<string>;
requestedPointerStyleKeys: Array<unknown>;
defaultCursorStyle: string;
init(): void;
cursorStyleHandler(style: string): void;
getStyle(key: unknown): string | null;
setStyle(key: unknown, style: string): void;
clearStyle(key: unknown): void;
}