Method DrawPushButton
DrawPushButton(Graphics, AbstractControl, RectD, VisualControlState)
Draws a push button control within the specified bounds and visual state.
public static void DrawPushButton(this Graphics canvas, AbstractControl control, RectD rect, VisualControlState controlState)
Parameters
canvasGraphicsThe Graphics surface used for rendering.
controlAbstractControlThe AbstractControl instance where button will be painted. Used for scale factor and dark mode determination.
rectRectDThe bounding RectD that defines the button’s layout region.
controlStateVisualControlStateThe current VisualControlState used to render visual feedback (e.g., hover, pressed, disabled).
DrawPushButton(object?, PaintEventArgs, VisualControlState)
Draw push button using the specified parameters.
public static void DrawPushButton(object? sender, PaintEventArgs e, VisualControlState controlState)
Parameters
senderobjectThe container control where drawing is performed.
ePaintEventArgsThe paint arguments including canvas and bounding rectangle.
controlStateVisualControlStateThe state of the push button.