Table of Contents

Method DrawPushButton

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

DrawPushButton(AbstractControl, Graphics, RectD, VisualControlState)

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

void DrawPushButton(AbstractControl control, Graphics canvas, RectD rect, VisualControlState controlState)

Parameters

control AbstractControl

The AbstractControl instance where button will be painted. Used for scale factor and dark mode determination.

canvas Graphics

The Graphics surface used for rendering.

rect RectD

The bounding RectD that defines the button’s layout region.

controlState VisualControlState

The current VisualControlState used to render visual feedback (e.g., hover, pressed, disabled).