Canvas Toolkit
← Class index

CSizeGrip

Widgets · extends CWidget

Implements the size grip widget.

import { CSizeGrip } from "canvas-toolkit-lib";

Declared members

constructor(parent?: CWidget | null);

Creates a new instance.

setVisible(visible: boolean): void;

Hiding or disabling a grip terminates any active pointer resize.

setEnabled(enabled: boolean): void;
sizeHint(): CSize;

Returns the preferred size of the widget.

protected mousePressEvent(event: CMouseEvent): void;

Handles the mouse press event.

protected mouseMoveEvent(event: CMouseEvent): void;

Handles the mouse move event.

protected mouseReleaseEvent(event: CMouseEvent): void;

Handles the mouse release event.

protected paintEvent(painter: CPainter): void;

Handles the paint event.