UNPKG

@daign/2d-graphics

Version:

Two dimensional graphics library that implements the daign-2d-pipeline.

21 lines (20 loc) 652 B
import { Matrix3 } from '@daign/math'; import { Group } from '../basic-elements'; import { ButtonObject } from './buttonObject'; /** * Interactive button control which displays a button object. */ export declare class ButtonControl extends Group { private callback; /** * Constructor. * @param buttonObject - The button object to display. * @param targetTransformation - The transformation matrix of the control object. * @param application - The corresponding application. */ constructor(buttonObject: ButtonObject, targetTransformation: Matrix3); /** * Button click event. */ click(): void; }