Canvas Toolkit
← Class index

CStyleOptionProgressBar

GUI and styling · extends CStyleOption

Contains style information used to render a progress bar.

Module gui/CStyleOptionProgressBar.js. This class is available through the browser modules in the download.

Declared members

minimum: number;

Returns or updates the minimum value.

maximum: number;

Returns or updates the maximum value.

value: number;

Returns or updates the value value.

constructor(other?: CStyleOptionProgressBar | null);

Creates a new CStyleOptionProgressBar instance. @param other Other.

initFromProgressBar(progressBar: CProgressBar): void;

Initializes this style option from the specified progress bar. @param progressBar Progress bar.