UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

20 lines (19 loc) 829 B
import { FocusType } from '../core/FocusType.js'; import { PointerEvent } from './PointerEvent.js'; import { Widget } from '../widgets/Widget.js'; import type { SourcePointer } from '../drivers/SourcePointer.js'; /** * A pointer move {@link PointerEvent}. * * Has a focus type of {@link FocusType.Pointer} and does not need focus. * * @category Event */ export declare class PointerMoveEvent extends PointerEvent { static readonly type = "pointer-move"; readonly type: typeof PointerMoveEvent.type; readonly focusType: FocusType.Pointer; constructor(x: number, y: number, shift: boolean, ctrl: boolean, alt: boolean, source: SourcePointer | null, target?: Widget | null); correctOffset(xOffset: number, yOffset: number): PointerMoveEvent; cloneWithTarget(target: Widget | null): PointerMoveEvent; }