Table of Contents

Method DrawPushButton

Namespace
Alternet.Drawing
Assembly
Alternet.UI.dll

DrawPushButton(AbstractControl, Graphics, RectD, DrawFlags)

Draws blank button.

public void DrawPushButton(AbstractControl control, Graphics dc, RectD rect, WxControlPainterHandler.DrawFlags flags = DrawFlags.None)

Parameters

control AbstractControl

Control in which drawing will be performed.

dc Graphics

Drawing context.

rect RectD

Rectangle in which control is painted.

flags WxControlPainterHandler.DrawFlags

Drawing flags.

Remarks

The flags parameter may support the Pressed, IsDefault and Current.

DrawPushButton(AbstractControl, Graphics, RectD, VisualControlState)

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

public 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).