Canvas Toolkit
← Class index

CDefaultStyle

GUI and styling · extends CStyle

Provides the default visual style used to render Canvas Toolkit widgets.

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

Declared members

sliderHandleSize(): number;

Returns the slider handle size used by the style. @returns The resulting value.

toolTipHorizontalPadding(): number;

Returns the tool tip horizontal padding used by the style. @returns The resulting value.

toolTipVerticalPadding(): number;

Returns the tool tip vertical padding used by the style. @returns The resulting value.

comboBoxArrowWidth(): number;

Returns the combo box arrow width used by the style. @returns The resulting value.

splitterHandleWidth(): number;

Returns the splitter handle width used by the style. @returns The resulting value.

drawLabel(painter: CPainter, option: CStyleOptionLabel): void;

Draws the label using the supplied painter and style option. @param painter Painter. @param option Option.

drawPushButton(painter: CPainter, option: CStyleOptionPushButton): void;

Draws the push button using the supplied painter and style option. @param painter Painter. @param option Option.

drawCheckBox(painter: CPainter, option: CStyleOptionCheckBox): void;

Draws the check box using the supplied painter and style option. @param painter Painter. @param option Option.

drawLineEdit(painter: CPainter, option: CStyleOptionLineEdit): void;

Draws the line edit using the supplied painter and style option. @param painter Painter. @param option Option.

drawSlider(painter: CPainter, option: CStyleOptionSlider): void;

Draws the slider using the supplied painter and style option. @param painter Painter. @param option Option.

drawDial(painter: CPainter, option: CStyleOptionSlider): void;

Draws the dial using the supplied painter and style option. @param painter Painter. @param option Option.

drawProgressBar(painter: CPainter, option: CStyleOptionProgressBar): void;

Draws the progress bar using the supplied painter and style option. @param painter Painter. @param option Option.

drawGroupBox(painter: CPainter, option: CStyleOptionGroupBox): void;

Draws the group box using the supplied painter and style option. @param painter Painter. @param option Option.

drawScrollBar(painter: CPainter, option: CStyleOptionScrollBar): void;

Draws the scroll bar using the supplied painter and style option. @param painter Painter. @param option Option.

drawRadioButton(painter: CPainter, option: CStyleOptionRadioButton): void;

Draws the radio button using the supplied painter and style option. @param painter Painter. @param option Option.

drawTabWidget(painter: CPainter, option: CStyleOptionTabWidget): void;

Draws the tab widget using the supplied painter and style option. @param painter Painter. @param option Option.

drawToolTip(painter: CPainter, option: CStyleOptionToolTipWidget): void;

Draws the tool tip using the supplied painter and style option. @param painter Painter. @param option Option.

drawFrame(painter: CPainter, option: CStyleOptionFrame): void;

Draws the frame using the supplied painter and style option. @param painter Painter. @param option Option.

drawToolButton(painter: CPainter, option: CStyleOptionToolButton): void;

Draws the tool button using the supplied painter and style option. @param painter Painter. @param option Option.

drawToolBar(painter: CPainter, option: CStyleOptionToolBar): void;

Draws the tool bar using the supplied painter and style option. @param painter Painter. @param option Option.

drawComboBox(painter: CPainter, option: CStyleOptionComboBox): void;

Draws the combo box using the supplied painter and style option. @param painter Painter. @param option Option.

drawSplitterHandle(painter: CPainter, option: CStyleOptionSplitterHandle): void;

Draws the splitter handle using the supplied painter and style option. @param painter Painter. @param option Option.

drawSizeGrip(painter: CPainter, option: CStyleOptionSizeGrip): void;

Draws the size grip using the supplied painter and style option. @param painter Painter. @param option Option.

drawToolBoxButton(painter: CPainter, option: CStyleOptionToolBoxButton): void;

Draws the tool box button using the supplied painter and style option. @param painter Painter. @param option Option.

drawKeySequenceEdit(painter: CPainter, option: CStyleOptionKeySequenceEdit): void;

Draws the key sequence edit using the supplied painter and style option. @param painter Painter. @param option Option.