Canvas Toolkit
← Class index

CBusyIndicator

Widgets · extends CWidget

Indeterminate progress using the shared animation driver. Hidden ancestors suspend animation. Stopping leaves layout geometry intact.

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

Declared members

readonly runningChanged: CSignal<[boolean]>;
constructor(parent?: CWidget | null);
isRunning(): boolean;

Requested state; remains true while hidden and suspended.

isAnimating(): boolean;

Whether the animation currently receives frames.

angle(): number;
cycleDuration(): number;
indicatorSize(): number;
start(): void;
stop(): void;
setRunning(running: boolean): void;
setCycleDuration(duration: number): void;

Duration of one revolution, in milliseconds (16..60000).

setIndicatorSize(size: number): void;

Preferred diameter, in logical pixels (8..256).

sizeHint(): CSize;
protected visibilityChangeEvent(): void;
destroy(): void;
protected paintEvent(painter: CPainter): void;