Canvas Toolkit
← Class index

CStyleOption

GUI and styling

Contains common state passed from a widget to a style drawing operation.

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

Declared members

rect: CRect;

Returns or updates the rect value.

state: CStyleState;

Returns or updates the state value.

palette: CPalette;

Returns or updates the palette value.

font: CFont;

Returns the font used by these metrics.

constructor(other?: CStyleOption | null);

Creates a new CStyleOption instance. @param other Other.

initFrom(widget: CWidget): void;

Initializes this style option from a widget. @param widget Widget.