CStyle
Defines the abstract interface used to render Canvas Toolkit widgets.
Module gui/CStyle.js. This class is available through the browser modules in the download.
Declared members
drawCategoryButton(painter: CPainter, option: CStyleOptionCategoryButton): void;Connected segments share a border and retain one keyboard focus indicator.
drawToggleSwitch(painter: CPainter, option: CStyleOptionToggleSwitch): void;Palette-aware track and animated thumb; no changes required in derived styles.
drawTag(painter: CPainter, option: CStyleOptionTagEdit): void;Draws a tag and its optional trailing remove button.
drawBusyIndicator(painter: CPainter, option: CStyleOptionBusyIndicator): void;Twelve fading spokes, centered in the available rectangle.
drawRatingWidget(painter: CPainter, option: CStyleOptionRatingWidget): void;Draws geometric stars using palette colors, independently of installed fonts.
drawNavigationPath(painter: CPainter, option: CStyleOptionNavigationPath): void;Default palette-aware renderer; custom styles can override this method.
drawSplitButton(painter: CPainter, option: CStyleOptionSplitButton): void;Draws both parts using the style's push button renderer and palette.
abstract sliderHandleSize(): number;Returns the slider handle size used by the style. @returns The resulting value.
abstract toolTipHorizontalPadding(): number;Returns the tool tip horizontal padding used by the style. @returns The resulting value.
abstract toolTipVerticalPadding(): number;Returns the tool tip vertical padding used by the style. @returns The resulting value.
abstract comboBoxArrowWidth(): number;Returns the combo box arrow width used by the style. @returns The resulting value.
abstract splitterHandleWidth(): number;Returns the splitter handle width used by the style. @returns The resulting value.
abstract drawLabel(painter: CPainter, option: CStyleOptionLabel): void;Draws the label using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawPushButton(painter: CPainter, option: CStyleOptionPushButton): void;Draws the push button using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawToolButton(painter: CPainter, option: CStyleOptionToolButton): void;Draws the tool button using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawCheckBox(painter: CPainter, option: CStyleOptionCheckBox): void;Draws the check box using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawLineEdit(painter: CPainter, option: CStyleOptionLineEdit): void;Draws the line edit using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawSlider(painter: CPainter, option: CStyleOptionSlider): void;Draws the slider using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawDial(painter: CPainter, option: CStyleOptionSlider): void;Draws the dial using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawProgressBar(painter: CPainter, option: CStyleOptionProgressBar): void;Draws the progress bar using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawGroupBox(painter: CPainter, option: CStyleOptionGroupBox): void;Draws the group box using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawScrollBar(painter: CPainter, option: CStyleOptionScrollBar): void;Draws the scroll bar using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawRadioButton(painter: CPainter, option: CStyleOptionRadioButton): void;Draws the radio button using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawTabWidget(painter: CPainter, option: CStyleOptionTabWidget): void;Draws the tab widget using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawToolTip(painter: CPainter, option: CStyleOptionToolTipWidget): void;Draws the tool tip using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawFrame(painter: CPainter, option: CStyleOptionFrame): void;Draws the frame using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawComboBox(painter: CPainter, option: CStyleOptionComboBox): void;Draws the combo box using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawToolBar(painter: CPainter, option: CStyleOptionToolBar): void;Draws the tool bar using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawSplitterHandle(painter: CPainter, option: CStyleOptionSplitterHandle): void;Draws the splitter handle using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawSizeGrip(painter: CPainter, option: CStyleOptionSizeGrip): void;Draws the size grip using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawToolBoxButton(painter: CPainter, option: CStyleOptionToolBoxButton): void;Draws the tool box button using the supplied painter and style option. @param painter Painter. @param option Option.
abstract drawKeySequenceEdit(painter: CPainter, option: CStyleOptionKeySequenceEdit): void;Draws the key sequence edit using the supplied painter and style option. @param painter Painter. @param option Option.