Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qemulationpaintengine_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QEMULATIONPAINTENGINE_P_H
5#define QEMULATIONPAINTENGINE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include <private/qpaintengineex_p.h>
20
22
23
25{
26public:
28
29 bool begin(QPaintDevice *pdev) override;
30 bool end() override;
31
32 Type type() const override;
33 QPainterState *createState(QPainterState *orig) const override;
34
35 void fill(const QVectorPath &path, const QBrush &brush) override;
36 void stroke(const QVectorPath &path, const QPen &pen) override;
37 void clip(const QVectorPath &path, Qt::ClipOperation op) override;
38
39 void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override;
40 void drawTextItem(const QPointF &p, const QTextItem &textItem) override;
42 void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) override;
43 void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags) override;
44
45 void clipEnabledChanged() override;
46 void penChanged() override;
47 void brushChanged() override;
48 void brushOriginChanged() override;
49 void opacityChanged() override;
50 void compositionModeChanged() override;
51 void renderHintsChanged() override;
52 void transformChanged() override;
53
54 void setState(QPainterState *s) override;
55
56 void beginNativePainting() override;
57 void endNativePainting() override;
58
60
62 inline const QPainterState *state() const { return (const QPainterState *)QPaintEngine::state; }
63
65private:
66 void fillBGRect(const QRectF &r);
67};
68
70
71#endif
\inmodule QtGui
Definition qbrush.h:30
Type type() const override
Reimplement this function to return the paint engine \l{Type}.
const QPainterState * state() const
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 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...
uint flags() const override
bool end() override
Reimplement this function to finish painting on the current paint device.
void drawStaticTextItem(QStaticTextItem *item) override
void clip(const QVectorPath &path, Qt::ClipOperation op) override
bool begin(QPaintDevice *pdev) override
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
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
\inmodule QtGui
Definition qimage.h:37
QPaintEngineState * state
\inmodule QtGui
Definition qpen.h:25
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
\inmodule QtCore\reentrant
Definition qpoint.h:214
\inmodule QtCore\reentrant
Definition qrect.h:483
\inmodule QtGui
Combined button and popup list for selecting options.
ClipOperation
Definition brush.cpp:5
GLboolean r
[2]
GLbitfield flags
GLsizei const GLchar *const * path
GLdouble s
[6]
Definition qopenglext.h:235
GLfloat GLfloat p
[1]
unsigned int uint
Definition qtypes.h:29
QGraphicsItem * item
widget render & pixmap
QJSEngine engine
[0]
Definition moc.h:24