lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
22 lines (21 loc) • 680 B
TypeScript
import { BaseLabel } from './BaseLabel.js';
import type { LabelProperties } from './BaseLabel.js';
import type { WidgetAutoXML } from '../xml/WidgetAutoXML.js';
/**
* A widget which displays a line of text.
*
* Can be updated, but this is done manually via the {@link Label#text}
* accessor.
*
* @category Widget
*/
export declare class Label extends BaseLabel {
static autoXML: WidgetAutoXML;
/**
* @param text - The text of the label. Has the same behaviour as setting {@link Label#text}.
*/
constructor(text?: string, properties?: Readonly<LabelProperties>);
/** The current text value. */
set text(text: string);
get text(): string;
}