UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

21 lines (20 loc) 1.02 kB
import { type WidgetEvent } from '../events/WidgetEvent.js'; import { ComplementaryClickHelper } from '../helpers/ComplementaryClickHelper.js'; import { type WidgetAutoXML } from '../xml/WidgetAutoXML.js'; import { PassthroughWidget } from './PassthroughWidget.js'; import { Widget, type WidgetProperties } from './Widget.js'; export declare class ClickProxy<W extends Widget = Widget> extends PassthroughWidget<W> { readonly complementaryClickHelper: ComplementaryClickHelper; static autoXML: WidgetAutoXML; /** * The helper used for handling pointer events. Will be attached to the * complementary click helper when needed. */ private readonly clickHelper; constructor(child: W, complementaryClickHelper: ComplementaryClickHelper, properties?: Readonly<WidgetProperties>); protected activate(): void; protected deactivate(): void; protected handleAttachment(): void; protected handleDetachment(): void; protected handleEvent(event: WidgetEvent): Widget | null; }