18#include <QtCore/qvarlengtharray.h>
19#include <QtGui/private/qtguiglobal_p.h>
20#include "QtGui/qbrush.h"
21#include "QtGui/qcolorspace.h"
22#include "QtGui/qcolortransform.h"
23#include "QtGui/qfont.h"
24#include "QtGui/qpen.h"
25#include "QtGui/qregion.h"
26#include "QtGui/qpainter.h"
27#include "QtGui/qpainterpath.h"
28#include "QtGui/qpaintengine.h"
30#include <private/qpen_p.h>
132 int wx = 0, wy = 0, ww = 0, wh = 0;
133 int vx = 0, vy = 0, vw = 0, vh = 0;
169 QVarLengthArray<QPainterPrivate*, NDPtrs>
d_ptrs;
171 std::unique_ptr<QPainterState>
state;
172 template <
typename T, std::
size_t N = 8>
192 dummyState = std::make_unique<QPainterDummyState>();
206#if !defined(QT_NO_RAWFONT)
208 QFontEngine *fontEngine,
bool overline =
false,
bool underline =
false,
209 bool strikeOut =
false);
236 if (pe && pe->autoDestruct())
240 std::unique_ptr<QPaintEngine, QPaintEngineDestructor>
engine;
std::unique_ptr< QBrushData, QBrushDataPointerDeleter > DataPtr
Qt::BrushStyle style() const
Returns the brush style.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QPaintEngineState class provides information about the active paint engine's current state....
QPainterClipInfo(const QRectF &r, Qt::ClipOperation op, const QTransform &m)
QPainterClipInfo(const QRect &r, Qt::ClipOperation op, const QTransform &m)
QPainterClipInfo(const QRegion &r, Qt::ClipOperation op, const QTransform &m)
Qt::ClipOperation operation
QPainterClipInfo(const QPainterPath &p, Qt::ClipOperation op, const QTransform &m)
void drawOpaqueBackground(const QPainterPath &path, DrawOperation operation)
void updateEmulationSpecifier(QPainterState *s)
QPaintDevice * original_device
QPainterDummyState * fakeState() const
QPaintEngineEx * extended
QPaintDevice * helper_device
void initFrom(const QPaintDevice *device)
static constexpr qsizetype NDPtrs
SmallStack< std::unique_ptr< QPainterState > > savedStates
static QPainterPrivate * get(QPainter *painter)
std::unique_ptr< QPaintEngine, QPaintEngineDestructor > engine
void updateState(QPainterState *state)
std::unique_ptr< QEmulationPaintEngine > emulationEngine
void draw_helper(const QPainterPath &path, DrawOperation operation=StrokeAndFillDraw)
QVarLengthArray< QPainterPrivate *, NDPtrs > d_ptrs
QPainterPrivate(QPainter *painter)
void drawTextItem(const QPointF &p, const QTextItem &_ti, QTextEngine *textEngine)
void drawStretchedGradient(const QPainterPath &path, DrawOperation operation)
void updateState(std::unique_ptr< QPainterState > &state)
QTransform hidpiScaleTransform() const
void detachPainterPrivate(QPainter *q)
QTransform viewTransform() const
qreal effectiveDevicePixelRatio() const
std::unique_ptr< QPainterDummyState > dummyState
std::unique_ptr< QPainterState > state
void updateStateImpl(QPainterState *state)
static bool attachPainterPrivate(QPainter *q, QPaintDevice *pdev)
void drawGlyphs(const QPointF &decorationPosition, const quint32 *glyphArray, QFixedPoint *positionArray, int glyphCount, QFontEngine *fontEngine, bool overline=false, bool underline=false, bool strikeOut=false)
QList< QPainterClipInfo > clipInfo
QPainter::RenderHints renderHints
Qt::LayoutDirection layoutDirection
QTransform redirectionMatrix
The QPainter class performs low-level painting on widgets and other paint devices.
CompositionMode
Defines the modes supported for digital image compositing.
@ CompositionMode_SourceOver
\inmodule QtCore\reentrant
The QRawFont class provides access to a single physical instance of a font.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLdouble GLdouble GLdouble GLdouble q
GLsizei const GLchar *const * path
qreal qpen_widthf(const QPen &p)
Qt::BrushStyle qbrush_style(const QBrush &b)
bool qpen_fast_equals(const QPen &a, const QPen &b)
Qt::PenStyle qpen_style(const QPen &p)
const QColor & qbrush_color(const QBrush &b)
const void * data_ptr(const QTransform &t)
QString qt_generate_brush_key(const QBrush &brush)
Q_GUI_EXPORT void qt_draw_helper(QPainterPrivate *p, const QPainterPath &path, QPainterPrivate::DrawOperation operation)
Qt::PenCapStyle qpen_capStyle(const QPen &p)
Qt::PenJoinStyle qpen_joinStyle(const QPen &p)
QBrush qpen_brush(const QPen &p)
bool qbrush_fast_equals(const QBrush &a, const QBrush &b)
bool qtransform_fast_equals(const QTransform &a, const QTransform &b)
bool qbrush_has_transform(const QBrush &b)
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
void operator()(QPaintEngine *pe) const noexcept