Table of Contents

Interface IControlPainterHandler

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

Contains methods which can paint and measure control parts. For example, DrawCheckBox(Control, Graphics, RectD, CheckState, VisualControlState) method paints check box in different states.

public interface IControlPainterHandler : IDisposable

Methods

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

Draws checkbox.

GetCheckBoxSize(Control, CheckState, VisualControlState)

Gets default checkbox size.

GetCheckMarkSize(Control)

Returns the default size of a check mark in dips.

GetCollapseButtonSize(Control, Graphics)

Returns the default size of a collapse button in dips.

GetExpanderSize(Control)

Returns the default size of a expander in dips.

GetHeaderButtonHeight(Control)

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(Control)

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