[][src]Function qt_widgets::q_draw_win_panel_5a

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

Draws the Windows-style panel 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 qDrawWinPanel(QPainter* p, const QRect& r, const QPalette& pal, bool sunken = …, const QBrush* fill = …).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for void qDrawWinPanel(QPainter *painter, int x, int y, int width, int height, const QPalette &palette, bool sunken = false, const QBrush *fill = Q_NULLPTR):

Draws the Windows-style panel 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. The panel 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.

Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded panel:

QFrame frame: frame.setFrameStyle(QFrame::WinPanel | QFrame::Raised);

See also qDrawShadePanel(), qDrawWinButton(), and QStyle.