Canvas Toolkit
← Class index

CStyleOptionScrollBar

GUI and styling · extends CStyleOption

Contains style information used to render a scroll bar.

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

Declared members

orientation: COrientation;

Returns or updates the orientation value.

buttonSize: number;

Returns the button size used by the style.

trackStart: number;

Returns or updates the track start value.

trackLength: number;

Returns or updates the track length value.

thumbStart: number;

Returns or updates the thumb start value.

thumbLength: number;

Returns or updates the thumb length value.

constructor(other?: CStyleOptionScrollBar | null);

Creates a new CStyleOptionScrollBar instance. @param other Other.

initFromScrollBar(scrollBar: CScrollBar): void;

Initializes this style option from the specified scroll bar. @param scrollBar Scroll bar.