Method DrawPushButton
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
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).