![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtWidgets/qtwidgetsglobal.h>
#include <QtCore/qnamespace.h>
#include <QtCore/qstring.h>
#include <QtCore/qmargins.h>
#include <QtGui/qpixmap.h>
Go to the source code of this file.
Classes | |
class | QTileRules |
The QTileRules class provides the rules used to draw a pixmap or image split into nine segments. More... |
Namespaces | |
namespace | QDrawBorderPixmap |
Enumerations | |
enum | QDrawBorderPixmap::DrawingHint { QDrawBorderPixmap::OpaqueTopLeft = 0x0001 , QDrawBorderPixmap::OpaqueTop = 0x0002 , QDrawBorderPixmap::OpaqueTopRight = 0x0004 , QDrawBorderPixmap::OpaqueLeft = 0x0008 , QDrawBorderPixmap::OpaqueCenter = 0x0010 , QDrawBorderPixmap::OpaqueRight = 0x0020 , QDrawBorderPixmap::OpaqueBottomLeft = 0x0040 , QDrawBorderPixmap::OpaqueBottom = 0x0080 , QDrawBorderPixmap::OpaqueBottomRight = 0x0100 , QDrawBorderPixmap::OpaqueCorners = OpaqueTopLeft | OpaqueTopRight | OpaqueBottomLeft | OpaqueBottomRight , QDrawBorderPixmap::OpaqueEdges = OpaqueTop | OpaqueLeft | OpaqueRight | OpaqueBottom , QDrawBorderPixmap::OpaqueFrame = OpaqueCorners | OpaqueEdges , QDrawBorderPixmap::OpaqueAll = OpaqueCenter | OpaqueFrame } |
Functions | |
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) |
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) |
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 | 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 | 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 | qDrawShadePanel (QPainter *p, const QRect &r, 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 | qDrawWinButton (QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, 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) |
Q_WIDGETS_EXPORT void | qDrawWinPanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken=false, const QBrush *fill=nullptr) |
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 | qDrawPlainRect (QPainter *p, const QRect &r, const QColor &, int lineWidth=1, const QBrush *fill=nullptr) |
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) |
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 | qDrawBorderPixmap (QPainter *painter, const QRect &targetRect, const QMargins &targetMargins, const QPixmap &pixmap, const QRect &sourceRect, const QMargins &sourceMargins, const QTileRules &rules=QTileRules(), QDrawBorderPixmap::DrawingHints hints=QDrawBorderPixmap::DrawingHints()) |
void | qDrawBorderPixmap (QPainter *painter, const QRect &target, const QMargins &margins, const QPixmap &pixmap) |
|
inline |
Definition at line 135 of file qdrawutil.h.
Q_WIDGETS_EXPORT void qDrawBorderPixmap | ( | QPainter * | painter, |
const QRect & | targetRect, | ||
const QMargins & | targetMargins, | ||
const QPixmap & | pixmap, | ||
const QRect & | sourceRect, | ||
const QMargins & | sourceMargins, | ||
const QTileRules & | rules = QTileRules(), | ||
QDrawBorderPixmap::DrawingHints | hints = QDrawBorderPixmap::DrawingHints() ) |
void qDrawPlainRect | ( | QPainter * | p, |
const QRect & | r, | ||
const QColor & | c, | ||
int | lineWidth = 1, | ||
const QBrush * | fill = nullptr ) |
Definition at line 807 of file qdrawutil.cpp.
void qDrawPlainRect | ( | QPainter * | p, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
const QColor & | c, | ||
int | lineWidth = 1, | ||
const QBrush * | fill = nullptr ) |
Definition at line 533 of file qdrawutil.cpp.
void qDrawPlainRoundedRect | ( | QPainter * | p, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
qreal | rx, | ||
qreal | ry, | ||
const QColor & | c, | ||
int | lineWidth = 1, | ||
const QBrush * | fill = nullptr ) |
Definition at line 583 of file qdrawutil.cpp.
|
inline |
Definition at line 79 of file qdrawutil.h.
void qDrawShadeLine | ( | QPainter * | p, |
const QPoint & | p1, | ||
const QPoint & | p2, | ||
const QPalette & | pal, | ||
bool | sunken = true, | ||
int | lineWidth = 1, | ||
int | midLineWidth = 0 ) |
Definition at line 642 of file qdrawutil.cpp.
void qDrawShadeLine | ( | QPainter * | p, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
const QPalette & | pal, | ||
bool | sunken = true, | ||
int | lineWidth = 1, | ||
int | midLineWidth = 0 ) |
Definition at line 60 of file qdrawutil.cpp.
void qDrawShadePanel | ( | QPainter * | p, |
const QRect & | r, | ||
const QPalette & | pal, | ||
bool | sunken = false, | ||
int | lineWidth = 1, | ||
const QBrush * | fill = nullptr ) |
Definition at line 718 of file qdrawutil.cpp.
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 ) |
Definition at line 294 of file qdrawutil.cpp.
void qDrawShadeRect | ( | QPainter * | p, |
const QRect & | r, | ||
const QPalette & | pal, | ||
bool | sunken = false, | ||
int | lineWidth = 1, | ||
int | midLineWidth = 0, | ||
const QBrush * | fill = nullptr ) |
Definition at line 681 of file qdrawutil.cpp.
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 ) |
Definition at line 184 of file qdrawutil.cpp.
void qDrawWinButton | ( | QPainter * | p, |
const QRect & | r, | ||
const QPalette & | pal, | ||
bool | sunken = false, | ||
const QBrush * | fill = nullptr ) |
Definition at line 749 of file qdrawutil.cpp.
void qDrawWinButton | ( | QPainter * | p, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
const QPalette & | pal, | ||
bool | sunken = false, | ||
const QBrush * | fill = nullptr ) |
Definition at line 457 of file qdrawutil.cpp.
void qDrawWinPanel | ( | QPainter * | p, |
const QRect & | r, | ||
const QPalette & | pal, | ||
bool | sunken = false, | ||
const QBrush * | fill = nullptr ) |
Definition at line 780 of file qdrawutil.cpp.