lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
20 lines (19 loc) • 907 B
TypeScript
import { PointerButtonEvent } from './PointerButtonEvent.js';
import { FocusType } from '../core/FocusType.js';
import { Widget } from '../widgets/Widget.js';
import type { SourcePointer } from '../drivers/SourcePointer.js';
/**
* A pointer release {@link PointerButtonEvent} (pointer button up).
*
* Has a focus type of {@link FocusType.Pointer} and does not need focus.
*
* @category Event
*/
export declare class PointerReleaseEvent extends PointerButtonEvent {
static readonly type = "pointer-release";
readonly type: typeof PointerReleaseEvent.type;
readonly focusType: FocusType.Pointer;
constructor(x: number, y: number, button: number, shift: boolean, ctrl: boolean, alt: boolean, source: SourcePointer | null, target?: Widget | null);
correctOffset(xOffset: number, yOffset: number): PointerReleaseEvent;
cloneWithTarget(target: Widget | null): PointerReleaseEvent;
}