Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpaintengine_alpha_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 QPAINTENGINE_ALPHA_P_H
5#define QPAINTENGINE_ALPHA_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 for the convenience
12// of other Qt classes. 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 <QtPrintSupport/private/qtprintsupportglobal_p.h>
19
20#ifndef QT_NO_PRINTER
21#include "private/qpaintengine_p.h"
22#include <QtPrintSupport/qtprintsupportglobal.h>
23
25
27
28class Q_PRINTSUPPORT_EXPORT QAlphaPaintEngine : public QPaintEngine
29{
30 Q_DECLARE_PRIVATE(QAlphaPaintEngine)
31public:
33
34 bool begin(QPaintDevice *pdev) override;
35 bool end() override;
36
37 void updateState(const QPaintEngineState &state) override;
38
39 void drawPath(const QPainterPath &path) override;
40
41 void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) override;
42
43 void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override;
44 void drawTextItem(const QPointF &p, const QTextItem &textItem) override;
45 void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) override;
46
47protected:
48 QAlphaPaintEngine(QAlphaPaintEnginePrivate &data, PaintEngineFeatures devcaps = { });
49 QRegion alphaClipping() const;
50 bool continueCall() const;
51 void flushAndInit(bool init = true);
52 void cleanUp();
53};
54
100
102
103#endif // QT_NO_PRINTER
104
105#endif // QPAINTENGINE_ALPHA_P_H
void drawAlphaImage(const QRectF &rect)
QPaintEngine::PaintEngineFeatures m_savedcaps
QRectF addPenWidth(const QPainterPath &path)
void addDirtyRect(const QRectF &rect)
void addAlphaRect(const QRectF &rect)
bool fullyContained(const QRectF &rect) const
QRect toRect(const QRectF &rect) const
bool canSeeTroughBackground(bool somethingInRectHasAlpha, const QRectF &rect) const
void append(parameter_type t)
Definition qlist.h:458
The QPaintEngineState class provides information about the active paint engine's current state....
\inmodule QtGui
PolygonDrawMode
\value OddEvenMode The polygon should be drawn using OddEven fill rule.
\inmodule QtGui
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
\inmodule QtGui
Definition qpen.h:28
The QPicture class is a paint device that records and replays QPainter commands.
Definition qpicture.h:19
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:217
\inmodule QtCore\reentrant
Definition qrect.h:484
\inmodule QtCore\reentrant
Definition qrect.h:30
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtGui
The QTransform class specifies 2D transformations of a coordinate system.
Definition qtransform.h:20
rect
[4]
else opt state
[0]
Combined button and popup list for selecting options.
GLenum mode
GLboolean r
[2]
GLuint GLuint end
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfixed GLfixed GLint GLint GLfixed points
GLdouble s
[6]
Definition qopenglext.h:235
GLsizei const GLchar *const * path
GLfloat GLfloat p
[1]
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
widget render & pixmap