CPushButton
Implements the push button widget.
import { CPushButton } from "canvas-toolkit-lib";Declared members
constructor(parent?: CWidget | null);Creates a new instance.
isDefault(): boolean;Whether this is the explicitly configured default button.
setDefault(value?: boolean): void;Makes this the default button of its containing dialog.
setParent(parent: CWidget | null): void;isDown(): boolean;Returns whether the down condition is active.
isHovered(): boolean;Returns whether the hovered condition is active.
radius(): number;setRadius(r: number): void;icon(): CIcon | null;setIcon(icon: CIcon | null): void;iconPosition(): CIconPosition;setIconPosition(position: CIconPosition): void;sizeHint(): CSize;Returns the preferred size of the widget.
protected mousePressEvent(event: CMouseEvent): void;Handles the mouse press event.
protected mouseReleaseEvent(event: CMouseEvent): void;Handles the mouse release event.
protected paintEvent(painter: CPainter): void;Handles the paint event.
protected mouseEnterEvent(event: CMouseEvent): void;Handles the mouse enter event.
protected mouseLeaveEvent(event: CMouseEvent): void;Handles the mouse leave event.
protected keyPressEvent(event: CKeyEvent): void;Handles the key press event.
protected keyReleaseEvent(event: CKeyEvent): void;Handles the key release event.