Canvas Toolkit
← Class index

CDial

Widgets · extends CWidget

Implements the dial widget.

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

Declared members

static readonly StartAngle = 135;
static readonly SpanAngle = 270;
readonly valueChanged: CSignal<[number]>;

Signal emitted when value changes.

constructor(parent?: CWidget | null);

Creates a new instance.

minimum(): number;

Returns the minimum .

maximum(): number;

Returns the maximum .

value(): number;

Provides value behavior.

setValue(value: number): void;

Sets the value.

setRange(minimum: number, maximum: number): void;

Sets the range.

setMinimum(minimum: number): void;

Sets the minimum.

setMaximum(maximum: number): void;

Sets the maximum.

singleStep(): number;

Provides single step behavior.

setSingleStep(step: number): void;

Sets the single step.

pageStep(): number;

Provides page step behavior.

setPageStep(step: number): void;

Sets the page step.

protected paintEvent(painter: CPainter): void;

Handles the paint event.

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 keyPressEvent(event: CKeyEvent): void;

Handles the key press event.