Table of Contents

Class PlessControlPainterHandler

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Provides methods to paint and measure control parts such as checkboxes, expanders, and header buttons.

public class PlessControlPainterHandler : DisposableObject, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, IControlPainterHandler, IDisposable
Inheritance
PlessControlPainterHandler
Implements

Fields

CheckBoxImageChecked

Gets or sets the SVG image used when the checkbox is checked.

CheckBoxImageIndeterminate

Gets or sets the SVG image used when the checkbox is in an indeterminate state.

CheckBoxImageUnchecked

Gets or sets the SVG image used when the checkbox is unchecked.

CheckBoxStateColors

Gets or sets the colors associated with different visual states of a checkbox.

DefaultCheckBoxSize

Gets or sets the default size of a checkbox in device-independent units.

DefaultCheckMarkSize

Gets or sets the default size of a check mark in device-independent units.

DefaultCollapseButtonSize

Gets or sets the default size of a collapse button in device-independent units.

DefaultExpanderSize

Gets or sets the default size of an expander in device-independent units.

DefaultHeaderButtonHeight

Gets or sets the default height of a header button in device-independent units.

DefaultHeaderButtonMargin

Gets or sets the default margin of a header button's label in device-independent units.

NativeHandler

Gets or sets native IControlPainterHandler which is used for the cases when there is not platform independent implementation.

RadioButtonImageChecked

Gets or sets the SVG image used when the radio button is checked.

RadioButtonImageIndeterminate

Gets or sets the SVG image used when the radio button is in an indeterminate state.

RadioButtonImageUnchecked

Gets or sets the SVG image used when the radio button is unchecked.

Methods

DrawCheckBox(AbstractControl, Graphics, RectD, CheckState, VisualControlState)

Draws checkbox.

DrawCheckBoxSvg(AbstractControl, Graphics, RectD, CheckState, VisualControlState, GetCheckBoxSvgDelegate?)

Draws a checkbox using SVG images.

DrawPushButton(AbstractControl, Graphics, RectD, VisualControlState)

Draws a push button control within the specified bounds and visual state.

DrawRadioButton(AbstractControl, Graphics, RectD, bool, VisualControlState)

Draws a radio button control within the specified bounds, reflecting its checked state and visual appearance.

DrawRadioButtonSvg(AbstractControl, Graphics, RectD, bool, VisualControlState)

Draws a radio button using an SVG-based visual representation within the specified bounds and state.

GetCheckBoxSize(AbstractControl, CheckState, VisualControlState)

Gets default checkbox size.

GetCheckBoxSvg(CheckState)

Gets the SVG image corresponding to the specified checkbox state.

GetCheckMarkSize(AbstractControl)

Returns the default size of a check mark in dips.

GetCollapseButtonSize(AbstractControl, Graphics)

Returns the default size of a collapse button in dips.

GetExpanderSize(AbstractControl)

Returns the default size of a expander in dips.

GetHeaderButtonHeight(AbstractControl)

Returns the default height of a header button in dips, either a fixed platform height if available, or a generic height based on the window's font.

GetHeaderButtonMargin(AbstractControl)

Returns the margin on left and right sides of header button's label in dips.

GetRadioButtonSvg(CheckState)

Gets the SVG image corresponding to the specified radio button state.