Canvas Toolkit
← Class index

CToolBoxButton

Widgets · extends CAbstractButton

Implements the tool box button widget.

Module widgets/CToolBoxButton.js. This class is available through the browser modules in the download.

Declared members

constructor(parent?: CWidget | null);

Creates a new instance.

isHovered(): boolean;

Returns whether the hovered condition is active.

isDown(): boolean;

Returns whether the down condition is active.

isCurrent(): boolean;

Returns whether the current condition is active.

setCurrent(current: boolean): void;

Sets the current.

sizeHint(): CSize;

Returns the preferred size of the widget.

protected keyPressEvent(event: CKeyEvent): void;
protected mousePressEvent(event: CMouseEvent): void;

Handles the mouse press event.

protected mouseReleaseEvent(event: CMouseEvent): void;

Handles the mouse release event.

protected mouseMoveEvent(event: CMouseEvent): void;

Handles the mouse move event.

protected mouseLeaveEvent(event: CMouseEvent): void;

Handles the mouse leave event.

protected paintEvent(painter: CPainter): void;

Handles the paint event.