CScrollBar
Implements the scroll bar widget.
import { CScrollBar } from "canvas-toolkit-lib";Declared members
readonly valueChanged: CSignal<[number]>;Signal emitted when value changes.
constructor(orientation: COrientation, parent?: CWidget | null);Creates a new instance.
orientation(): COrientation;Provides orientation behavior.
minimum(): number;Returns the minimum .
maximum(): number;Returns the maximum .
value(): number;Provides value behavior.
singleStep(): number;Provides single step behavior.
pageStep(): number;Provides page 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.
setPageStep(step: number): void;Sets the page step.
stepBackward(): void;Performs step backward.
stepForward(): void;Performs step forward.
pageBackward(): void;Provides page backward behavior.
pageForward(): void;Provides page forward behavior.
trackStart(): number;Provides track start behavior.
buttonSize(): number;Provides button size behavior.
trackLength(): number;Provides track length behavior.
thumbLength(): number;Provides thumb length behavior.
thumbStart(): number;Provides thumb start behavior.
setGeometry(x: number, y: number, width: number, height: number): void;Sets the geometry.
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.
protected paintEvent(painter: CPainter): void;Handles the paint event.