5#ifndef QQC2QDRAWUTIL_P_H
6#define QQC2QDRAWUTIL_P_H
19#include <QtGui/qpixmap.h>
21#include <QtCore/qmargins.h>
22#include <QtCore/qnamespace.h>
23#include <QtCore/qstring.h>
25#if QT_CONFIG(settings)
26#include <QtCore/qsettings.h>
45void qDrawShadeLine(
QPainter *p,
int x1,
int y1,
int x2,
int y2,
46 const QPalette &pal,
bool sunken =
true,
47 int lineWidth = 1,
int midLineWidth = 0);
50 const QPalette &pal,
bool sunken =
true,
51 int lineWidth = 1,
int midLineWidth = 0);
53void qDrawShadeRect(
QPainter *p,
int x,
int y,
int w,
int h,
54 const QPalette &pal,
bool sunken =
false,
55 int lineWidth = 1,
int midLineWidth = 0,
56 const QBrush *fill =
nullptr);
58void qDrawShadeRect(
QPainter *p,
const QRect &r,
59 const QPalette &pal,
bool sunken =
false,
60 int lineWidth = 1,
int midLineWidth = 0,
61 const QBrush *fill =
nullptr);
63void qDrawShadePanel(
QPainter *p,
int x,
int y,
int w,
int h,
64 const QPalette &pal,
bool sunken =
false,
65 int lineWidth = 1,
const QBrush *fill =
nullptr);
67void qDrawShadePanel(
QPainter *p,
const QRect &r,
68 const QPalette &pal,
bool sunken =
false,
69 int lineWidth = 1,
const QBrush *fill =
nullptr);
71void qDrawWinButton(
QPainter *p,
int x,
int y,
int w,
int h,
72 const QPalette &pal,
bool sunken =
false,
73 const QBrush *fill =
nullptr);
75void qDrawWinButton(
QPainter *p,
const QRect &r,
76 const QPalette &pal,
bool sunken =
false,
77 const QBrush *fill =
nullptr);
79void qDrawWinPanel(
QPainter *p,
int x,
int y,
int w,
int h,
80 const QPalette &pal,
bool sunken =
false,
81 const QBrush *fill =
nullptr);
83void qDrawWinPanel(
QPainter *p,
const QRect &r,
84 const QPalette &pal,
bool sunken =
false,
85 const QBrush *fill =
nullptr);
87void qDrawPlainRect(
QPainter *p,
int x,
int y,
int w,
int h,
const QColor &,
88 int lineWidth = 1,
const QBrush *fill =
nullptr);
90void qDrawPlainRect(
QPainter *p,
const QRect &r,
const QColor &,
91 int lineWidth = 1,
const QBrush *fill =
nullptr);
97 inline QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)
144 const QMargins &margins,
145 const QPixmap &pixmap)
147 qDrawBorderPixmap(painter, target, margins, pixmap, pixmap.rect(), margins);
\inmodule QtCore\reentrant
void qDrawPlainRect(QPainter *p, const QRect &r, const QColor &c, int lineWidth, const QBrush *fill)
void qDrawShadeRect(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, const QBrush *fill)
void qDrawShadeLine(QPainter *p, int x1, int y1, int x2, int y2, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth)
void qDrawShadeRect(QPainter *p, const QRect &r, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, const QBrush *fill)
void qDrawPlainRect(QPainter *p, int x, int y, int w, int h, const QColor &c, int lineWidth, const QBrush *fill)
void qDrawBorderPixmap(QPainter *painter, const QRect &target, const QMargins &margins, const QPixmap &pixmap)
The qDrawBorderPixmap function is for drawing a pixmap into the margins of a rectangle.
void qDrawShadeLine(QPainter *p, const QPoint &p1, const QPoint &p2, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth)
void qDrawWinButton(QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill)
static void qDrawWinShades(QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
void qDrawWinPanel(QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill)
void qDrawBorderPixmap(QPainter *painter, const QRect &targetRect, const QMargins &targetMargins, const QPixmap &pixmap, const QRect &sourceRect, const QMargins &sourceMargins, const QTileRules &rules, QDrawBorderPixmap::DrawingHints hints)
void qDrawShadePanel(QPainter *p, const QRect &r, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill)
QVarLengthArray< QPainter::PixmapFragment, 16 > QPixmapFragmentsArray
void qDrawWinPanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill)
void qDrawWinButton(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill)
void qDrawShadePanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill)
The QTileRules class provides the rules used to draw a pixmap or image split into nine segments.
QTileRules(Qt::TileRule rule=Qt::StretchTile)
QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)