Canvas Toolkit
← Class index

CStyleOptionToolBoxButton

GUI and styling · extends CStyleOptionButton

Contains style information used to render a tool box button.

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

Declared members

text: string;

Returns or updates the text value.

current: boolean;

Returns or updates the current value.

constructor(other?: CStyleOptionToolBoxButton | null);

Creates a new CStyleOptionToolBoxButton instance. @param other Other.

initFromToolBoxButton(button: CToolBoxButton): void;

Initializes this style option from the specified tool box button. @param button Button.