Canvas Toolkit
← Class index

CStyleOptionToolButton

GUI and styling · extends CStyleOptionButton

Contains style information used to render a tool button.

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

Declared members

text: string;

Returns or updates the text value.

icon: CIcon | null;

Returns or updates the icon value.

iconSize: CSize;

Returns the icon size used by the style.

toolButtonStyle: CToolButtonStyle;

Returns or updates the tool button style value.

autoRaise: boolean;

Returns or updates the auto raise value.

constructor(other?: CStyleOptionToolButton | null);

Creates a new CStyleOptionToolButton instance. @param other Other.

initFromToolButton(button: CToolButton): void;

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