4#include <private/qemulationpaintengine_p.h>
5#include <private/qpainter_p.h>
6#include <private/qtextengine_p.h>
135 QPen savedPen =
s->pen;
143 QRectF(0, 0,
d->width(),
d->height()) :
234void QEmulationPaintEngine::fillBGRect(
const QRectF &
r)
236 qreal pts[] = {
r.x(),
r.y(),
r.x() +
r.width(),
r.y(),
237 r.x() +
r.width(),
r.y() +
r.height(),
r.x(),
r.y() +
r.height() };
void renderHintsChanged() override
Type type() const override
Reimplement this function to return the paint engine \l{Type}.
void beginNativePainting() override
void drawTextItem(const QPointF &p, const QTextItem &textItem) override
This function draws the text item textItem at position p.
void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) override
Reimplement this function to draw the pixmap in the given rect, starting at the given p.
void brushChanged() override
void setState(QPainterState *s) override
void stroke(const QVectorPath &path, const QPen &pen) override
void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags) override
Reimplement this function to draw the part of the image specified by the sr rectangle in the given re...
QEmulationPaintEngine(QPaintEngineEx *engine)
bool end() override
Reimplement this function to finish painting on the current paint device.
void opacityChanged() override
void drawStaticTextItem(QStaticTextItem *item) override
void clip(const QVectorPath &path, Qt::ClipOperation op) override
void clipEnabledChanged() override
bool begin(QPaintDevice *pdev) override
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
QPaintEngineEx * real_engine
void penChanged() override
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
void fill(const QVectorPath &path, const QBrush &brush) override
QPainterState * createState(QPainterState *orig) const override
void endNativePainting() override
void compositionModeChanged() override
void brushOriginChanged() override
void transformChanged() override
virtual void renderHintsChanged()=0
virtual void penChanged()=0
virtual void stroke(const QVectorPath &path, const QPen &pen)
virtual void beginNativePainting()
virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) override=0
Reimplement this function to draw the part of the image specified by the sr rectangle in the given re...
virtual void clip(const QVectorPath &path, Qt::ClipOperation op)=0
virtual void clipEnabledChanged()=0
virtual void endNativePainting()
virtual void fill(const QVectorPath &path, const QBrush &brush)=0
virtual void opacityChanged()=0
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override=0
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
virtual void compositionModeChanged()=0
virtual void brushOriginChanged()=0
virtual QPainterState * createState(QPainterState *orig) const
virtual void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) override
Reimplement this function to draw the pixmap in the given rect, starting at the given p.
virtual void brushChanged()=0
virtual void transformChanged()=0
virtual void setState(QPainterState *s)
virtual void drawStaticTextItem(QStaticTextItem *)
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem)
This function draws the text item textItem at position p.
QPainter * painter() const
Returns the paint engine's painter.
QPaintEngineState * state
virtual Type type() const =0
Reimplement this function to return the paint engine \l{Type}.
Type
\value X11 \value Windows \value MacPrinter \value CoreGraphics \macos's Quartz2D (CoreGraphics) \val...
QPaintDevice * device() const
Returns the paint device on which this painter is currently painting, or \nullptr if the painter is n...
void setStyle(Qt::PenStyle)
[0]
void setBrush(const QBrush &brush)
Sets the brush used to fill strokes generated with this pen to the given brush.
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
Qt::PenStyle style() const
Returns the pen style.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
bool isQBitmap() const
Returns true if this is a QBitmap; otherwise returns false.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
static jboolean copy(JNIEnv *, jobject)
bool Q_GUI_EXPORT qHasPixmapTexture(const QBrush &brush)
static void combineXForm(QBrush *brush, const QRectF &r)
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
GLsizei const GLchar *const * path
Qt::BrushStyle qbrush_style(const QBrush &b)
static QT_BEGIN_NAMESPACE qreal dpr(const QWindow *w)
constexpr qreal toReal() const