Method DrawPushButton
DrawPushButton(AbstractControl, Graphics, RectD, DrawFlags)
Draws blank button.
public void DrawPushButton(AbstractControl control, Graphics dc, RectD rect, WxControlPainterHandler.DrawFlags flags = DrawFlags.None)
Parameters
controlAbstractControlControl in which drawing will be performed.
dcGraphicsDrawing context.
rectRectDRectangle in which control is painted.
flagsWxControlPainterHandler.DrawFlagsDrawing flags.
Remarks
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
controlAbstractControlThe AbstractControl instance where button will be painted. Used for scale factor and dark mode determination.
canvasGraphicsThe Graphics surface used for rendering.
rectRectDThe bounding RectD that defines the button’s layout region.
controlStateVisualControlStateThe current VisualControlState used to render visual feedback (e.g., hover, pressed, disabled).