Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdrawutil.cpp File Reference

(113d28a4b7b969f2ceea59888502827012124514)

#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>
Include dependency graph for qdrawutil.cpp:

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 Documentation

◆ QPixmapFragmentsArray

Function Documentation

◆ qDrawPlainRect() [1/2]

void qDrawPlainRect ( QPainter * p,
const QRect & r,
const QColor & c,
int lineWidth,
const QBrush * fill )

Definition at line 807 of file qdrawutil.cpp.

◆ qDrawPlainRect() [2/2]

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.

◆ qDrawPlainRoundedRect()

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.

◆ qDrawShadeLine() [1/2]

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.

◆ qDrawShadeLine() [2/2]

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.

◆ qDrawShadePanel() [1/2]

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.

◆ qDrawShadePanel() [2/2]

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.

◆ qDrawShadeRect() [1/2]

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.

◆ qDrawShadeRect() [2/2]

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.

◆ qDrawWinButton() [1/2]

void qDrawWinButton ( QPainter * p,
const QRect & r,
const QPalette & pal,
bool sunken,
const QBrush * fill )

Definition at line 749 of file qdrawutil.cpp.

◆ qDrawWinButton() [2/2]

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.

◆ qDrawWinPanel() [1/2]

void qDrawWinPanel ( QPainter * p,
const QRect & r,
const QPalette & pal,
bool sunken,
const QBrush * fill )

Definition at line 780 of file qdrawutil.cpp.

◆ qDrawWinPanel() [2/2]

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.

◆ qDrawWinShades()

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 )
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.