Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qrasterizer_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// Qt-Security score:significant reason:default
4
5#ifndef QRASTERIZER_P_H
6#define QRASTERIZER_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtGui/private/qtguiglobal_p.h>
20#include "QtGui/qpainter.h"
21
22#include <private/qdrawhelper_p.h>
23#include <private/qrasterdefs_p.h>
24
25QT_BEGIN_NAMESPACE
26
27struct QSpanData;
28class QRasterBuffer;
30
31class
33{
34public:
36 ~QRasterizer();
37
38 void setAntialiased(bool antialiased);
39 void setClipRect(const QRect &clipRect);
40
41 void initialize(ProcessSpans blend, void *data);
42
43 void rasterize(const QT_FT_Outline *outline, Qt::FillRule fillRule);
44 void rasterize(const QPainterPath &path, Qt::FillRule fillRule);
45
46 // width should be in units of |a-b|
47 void rasterizeLine(const QPointF &a, const QPointF &b, qreal width, bool squareCap = false);
48
49private:
51};
52
53QT_END_NAMESPACE
54
55#endif
QScanConverter scanConverter
void setAntialiased(bool antialiased)
void initialize(ProcessSpans blend, void *data)
void rasterizeLine(const QPointF &a, const QPointF &b, qreal width, bool squareCap=false)
void setClipRect(const QRect &clipRect)
void rasterize(const QT_FT_Outline *outline, Qt::FillRule fillRule)
void rasterize(const QPainterPath &path, Qt::FillRule fillRule)
void mergeCurve(const QT_FT_Vector &a, const QT_FT_Vector &b, const QT_FT_Vector &c, const QT_FT_Vector &d)
void begin(int top, int bottom, int left, int right, Qt::FillRule fillRule, QSpanBuffer *spanBuffer)
void mergeLine(QT_FT_Vector a, QT_FT_Vector b)
QSpanBuffer(ProcessSpans blend, void *data, const QRect &clipRect)
void addSpan(int x, int len, int y, int coverage)
static qreal qSafeDivide(qreal x, qreal y)
static bool q26Dot6Compare(qreal p1, qreal p2)
#define QScFixedFactor
static void split(QT_FT_Vector *b)
#define FloatToQScFixed(i)
QT_BEGIN_NAMESPACE typedef int QScFixed
#define SPAN_BUFFER_SIZE
#define IntToQScFixed(i)
#define QScFixedToFloat(i)
#define QScFixedMultiply(x, y)
#define FTPosToQScFixed(i)
#define QScFixedFastMultiply(x, y)
static QScFixed intersectPixelFP(int x, QScFixed top, QScFixed bottom, QScFixed leftIntersectX, QScFixed rightIntersectX, QScFixed slope, QScFixed invSlope)
static QT_FT_Vector PointToVector(const QPointF &p)
static QPointF snapTo26Dot6Grid(const QPointF &p)
static bool qClipLine(QPointF *pt1, QPointF *pt2, const QRectF &clip)
#define QScFixedToInt(i)
#define CHUNK_SIZE
static QScFixed qSafeFloatToQScFixed(qreal x)
#define DO_SEGMENT(next, li, ri, ls, rs)