CSpinBox
Implements the spin box widget.
import { CSpinBox } from "canvas-toolkit-lib";Declared members
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.
singleStep(): number;Provides single step behavior.
setMinimum(minimum: number): void;Sets the minimum.
setMaximum(maximum: number): void;Sets the maximum.
setRange(minimum: number, maximum: number): void;Sets the range.
setValue(value: number): void;Sets the value.
setSingleStep(step: number): void;Sets the single step.
stepUp(): void;Performs step up.
stepDown(): void;Performs step down.
lineEdit(): CLineEdit;Provides line edit behavior.
setGeometry(x: number, y: number, width: number, height: number): void;Sets the geometry.
sizeHint(): CSize;Returns the preferred size of the widget.
protected keyPressEvent(event: CKeyEvent): void;Handles the key press event.
protected wheelEvent(event: CWheelEvent): void;Handles the wheel event.