[][src]Function qt_widgets::q_draw_win_button_7a

pub unsafe fn q_draw_win_button_7a(
    p: impl CastInto<Ptr<QPainter>>,
    x: c_int,
    y: c_int,
    w: c_int,
    h: c_int,
    pal: impl CastInto<Ref<QPalette>>,
    sunken: bool
)

Draws the Windows-style button specified by the given point (x, y}, width and height using the provided painter with a line width of 2 pixels. The button's interior is filled with the fill brush unless fill is 0.

Calls C++ function: void qDrawWinButton(QPainter* p, int x, int y, int w, int h, const QPalette& pal, bool sunken = …).

C++ documentation:

Draws the Windows-style button specified by the given point (x, y}, width and height using the provided 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.