UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

20 lines (19 loc) 741 B
import { TextButton } from '../TextButton.js'; import type { WidgetProperties } from '../Widget.js'; import type { WidgetAutoXML } from '../../xml/WidgetAutoXML.js'; /** * A {@link TextButton} which calls a given callback and displays a given text source. * * For now there's nothing special about this class; it's just a common base * class for virtual keyboard key widgets. * * @category Widget */ export declare class VirtualKey extends TextButton { static autoXML: WidgetAutoXML; /** * @param text - The text to display in the virtual key. * @param callback - The callback called when the button is pressed. */ constructor(text: string, callback: () => void, properties?: Readonly<WidgetProperties>); }