[][src]Function qt_widgets::q_draw_win_button_4a

pub unsafe fn q_draw_win_button_4a(
    p: impl CastInto<MutPtr<QPainter>>,
    r: impl CastInto<Ref<QRect>>,
    pal: impl CastInto<Ref<QPalette>>,
    sunken: bool
)

This is an overloaded function.

Calls C++ function: void qDrawWinButton(QPainter* p, const QRect& r, const QPalette& pal, bool sunken = …).

C++ documentation:

This is an overloaded function.

Draws the Windows-style button at the rectangle specified by rect using the given painter with a line width of 2 pixels. The button's interior is filled with the fill brush unless fill is 0.

The given palette specifies the shading colors (light, dark and middle colors).

The button appears sunken if sunken is true, otherwise raised.

Warning: This function does not look at QWidget::style() or QApplication::style()-> Use the drawing functions in QStyle to make widgets that follow the current GUI style.

See also qDrawWinPanel() and QStyle.