8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtCore/qnamespace.h>
10#include <QtCore/qstring.h>
11#include <QtCore/qmargins.h>
12#include <QtGui/qpixmap.h>
28 const QPalette &pal,
bool sunken =
true,
29 int lineWidth = 1,
int midLineWidth = 0);
32 const QPalette &pal,
bool sunken =
true,
33 int lineWidth = 1,
int midLineWidth = 0);
36 const QPalette &pal,
bool sunken =
false,
37 int lineWidth = 1,
int midLineWidth = 0,
38 const QBrush *fill =
nullptr);
41 const QPalette &pal,
bool sunken =
false,
42 int lineWidth = 1,
int midLineWidth = 0,
43 const QBrush *fill =
nullptr);
46 const QPalette &pal,
bool sunken =
false,
47 int lineWidth = 1,
const QBrush *fill =
nullptr);
50 const QPalette &pal,
bool sunken =
false,
51 int lineWidth = 1,
const QBrush *fill =
nullptr);
54 const QPalette &pal,
bool sunken =
false,
55 const QBrush *fill =
nullptr);
58 const QPalette &pal,
bool sunken =
false,
59 const QBrush *fill =
nullptr);
62 const QPalette &pal,
bool sunken =
false,
63 const QBrush *fill =
nullptr);
66 const QPalette &pal,
bool sunken =
false,
67 const QBrush *fill =
nullptr);
70 int lineWidth = 1,
const QBrush *fill =
nullptr);
73 int lineWidth = 1,
const QBrush *fill =
nullptr);
76 qreal rx, qreal ry,
const QColor &,
int lineWidth = 1,
77 const QBrush *fill =
nullptr);
80 const QColor &lineColor,
int lineWidth = 1,
81 const QBrush *fill =
nullptr)
83 qDrawPlainRoundedRect(painter, rect.x(), rect.y(), rect.width(), rect.height(),
84 rx, ry, lineColor, lineWidth, fill);
90 inline QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)
100namespace QDrawBorderPixmap
119 Q_DECLARE_FLAGS(DrawingHints, DrawingHint)
123Q_WIDGETS_EXPORT
void qDrawBorderPixmap(QPainter *painter,
124 const QRect &targetRect,
125 const QMargins &targetMargins,
126 const QPixmap &pixmap,
127 const QRect &sourceRect,
128 const QMargins &sourceMargins,
129 const QTileRules &rules = QTileRules()
131 , QDrawBorderPixmap::DrawingHints hints = QDrawBorderPixmap::DrawingHints()
137 const QMargins &margins,
138 const QPixmap &pixmap)
140 qDrawBorderPixmap(painter, target, margins, pixmap, pixmap.rect(), margins);
\inmodule QtCore\reentrant
const quint32 TRANSPARENT_COLOR
Q_WIDGETS_EXPORT void qDrawPlainRect(QPainter *p, int x, int y, int w, int h, const QColor &, int lineWidth=1, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawShadeRect(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, int lineWidth=1, int midLineWidth=0, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawWinPanel(QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawShadePanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, int lineWidth=1, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawWinButton(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawShadeRect(QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, int lineWidth=1, int midLineWidth=0, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawWinButton(QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawPlainRect(QPainter *p, const QRect &r, const QColor &, int lineWidth=1, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawShadeLine(QPainter *p, const QPoint &p1, const QPoint &p2, const QPalette &pal, bool sunken=true, int lineWidth=1, int midLineWidth=0)
void qDrawPlainRoundedRect(QPainter *painter, const QRect &rect, qreal rx, qreal ry, const QColor &lineColor, int lineWidth=1, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawShadePanel(QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, int lineWidth=1, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawShadeLine(QPainter *p, int x1, int y1, int x2, int y2, const QPalette &pal, bool sunken=true, int lineWidth=1, int midLineWidth=0)
void qDrawBorderPixmap(QPainter *painter, const QRect &target, const QMargins &margins, const QPixmap &pixmap)
Q_WIDGETS_EXPORT void qDrawPlainRoundedRect(QPainter *p, int x, int y, int w, int h, qreal rx, qreal ry, const QColor &, int lineWidth=1, const QBrush *fill=nullptr)
Q_WIDGETS_EXPORT void qDrawWinPanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=nullptr)
The QTileRules class provides the rules used to draw a pixmap or image split into nine segments.
QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)
Constructs a QTileRules with the given horizontalRule and verticalRule.
QTileRules(Qt::TileRule rule=Qt::StretchTile)
Constructs a QTileRules with the given rule used for both the horizontal rule and the vertical rule.