Canvas Toolkit
← Class index

CStyleOptionLabel

GUI and styling · extends CStyleOption

Contains style information used to render a label.

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

Declared members

text: string;

Returns or updates the text value.

mnemonicIndex: number;

UTF-16 index of the mnemonic character, or -1.

alignment: number;

Returns or updates the alignment value.

pixmap: CPixmap | null;

Returns the best matching pixmap for the requested size, mode, and state.

constructor(other?: CStyleOptionLabel | null);

Creates a new CStyleOptionLabel instance. @param other Other.

initFromLabel(label: CLabel): void;

Initializes this style option from the specified label. @param label Label.