4#ifndef QPAINTENGINE_P_H
5#define QPAINTENGINE_P_H
18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtGui/qpainter.h"
20#include "QtGui/qpaintengine.h"
21#include "QtGui/qregion.h"
22#include "private/qobject_p.h"
33 hasSystemViewport(0) {}
49 systemClip = baseSystemClip;
53 if (hasSystemTransform) {
57 systemClip = systemTransform.
map(systemClip);
61 if (hasSystemViewport) {
62 systemClip &= systemViewport;
72 systemTransform =
xform;
81 systemViewport = region;
82 hasSystemViewport = !systemViewport.
isEmpty();
90 systemTransform =
xform;
92 systemViewport = region;
93 hasSystemViewport = !systemViewport.
isEmpty();
void setSystemViewport(const QRegion ®ion)
void setSystemTransform(const QTransform &xform)
QPaintDevice * currentClipDevice
QTransform systemTransform
static QPaintEnginePrivate * get(QPaintEngine *paintEngine)
virtual void systemStateChanged()
void setSystemTransformAndViewport(const QTransform &xform, const QRegion ®ion)
virtual Qt::HANDLE nativeHandle()
virtual QPaintEngine * aggregateEngine()
QPaintEngineState * state
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr QPoint topLeft() const noexcept
Returns the position of the rectangle's top-left corner.
The QRegion class specifies a clip region for a painter.
QRect boundingRect() const noexcept
Returns the bounding rectangle of this region.
void translate(int dx, int dy)
Translates (moves) the region dx along the X axis and dy along the Y axis.
bool isEmpty() const
Returns true if the region is empty; otherwise returns false.
Combined button and popup list for selecting options.
int qRound(qfloat16 d) noexcept