![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qdrawutil.h"#include "qbitmap.h"#include "qpixmapcache.h"#include "qpainter.h"#include "qpainterstateguard.h"#include "qpalette.h"#include "qstylehelper_p.h"#include <private/qpaintengineex_p.h>#include <qvarlengtharray.h>#include <qmath.h>#include <private/qhexstring_p.h>Go to the source code of this file.
Typedefs | |
| typedef QVarLengthArray< QPainter::PixmapFragment, 16 > | QPixmapFragmentsArray |
Functions | |
| 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, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, 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) |
| 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 | qDrawWinButton (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawWinPanel (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawPlainRect (QPainter *p, int x, int y, int w, int h, const QColor &c, int lineWidth, const QBrush *fill) |
| void | qDrawPlainRoundedRect (QPainter *p, int x, int y, int w, int h, qreal rx, qreal ry, const QColor &c, int lineWidth, const QBrush *fill) |
| void | qDrawShadeLine (QPainter *p, const QPoint &p1, const QPoint &p2, 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 | qDrawShadePanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill) |
| void | qDrawWinButton (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawWinPanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawPlainRect (QPainter *p, const QRect &r, const QColor &c, int lineWidth, const QBrush *fill) |
| typedef QVarLengthArray< QPainter::PixmapFragment, 16 > QPixmapFragmentsArray |
Definition at line 878 of file qdrawutil.cpp.
| void qDrawPlainRect | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QColor & | c, | ||
| int | lineWidth, | ||
| const QBrush * | fill ) |
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, | ||
| const QBrush * | fill ) |
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, | ||
| const QBrush * | fill ) |
Definition at line 583 of file qdrawutil.cpp.
| void qDrawShadeLine | ( | QPainter * | p, |
| const QPoint & | p1, | ||
| const QPoint & | p2, | ||
| const QPalette & | pal, | ||
| bool | sunken, | ||
| int | lineWidth, | ||
| int | midLineWidth ) |
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, | ||
| int | lineWidth, | ||
| int | midLineWidth ) |
Definition at line 60 of file qdrawutil.cpp.
| void qDrawShadePanel | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QPalette & | pal, | ||
| bool | sunken, | ||
| int | lineWidth, | ||
| const QBrush * | fill ) |
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, | ||
| int | lineWidth, | ||
| const QBrush * | fill ) |
Definition at line 294 of file qdrawutil.cpp.
| void qDrawShadeRect | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QPalette & | pal, | ||
| bool | sunken, | ||
| int | lineWidth, | ||
| int | midLineWidth, | ||
| const QBrush * | fill ) |
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, | ||
| int | lineWidth, | ||
| int | midLineWidth, | ||
| const QBrush * | fill ) |
Definition at line 184 of file qdrawutil.cpp.
| void qDrawWinButton | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QPalette & | pal, | ||
| bool | sunken, | ||
| const QBrush * | fill ) |
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, | ||
| const QBrush * | fill ) |
Definition at line 457 of file qdrawutil.cpp.
| void qDrawWinPanel | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QPalette & | pal, | ||
| bool | sunken, | ||
| const QBrush * | fill ) |
Definition at line 780 of file qdrawutil.cpp.
| void qDrawWinPanel | ( | QPainter * | p, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPalette & | pal, | ||
| bool | sunken, | ||
| const QBrush * | fill ) |
Definition at line 497 of file qdrawutil.cpp.
|
static |
This function draws a rectangle with two pixel line width. It is called from qDrawWinButton() and qDrawWinPanel().
c1..c4 and fill are used:
1 1 1 1 1 2 1 3 3 3 4 2 1 3 F F 4 2 1 3 F F 4 2 1 4 4 4 4 2 2 2 2 2 2 2
Definition at line 388 of file qdrawutil.cpp.