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
4#ifndef QRASTERIZER_P_H
5#define QRASTERIZER_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 "QtGui/qpainter.h"
20
21#include <private/qdrawhelper_p.h>
22#include <private/qrasterdefs_p.h>
23
24QT_BEGIN_NAMESPACE
25
26struct QSpanData;
27class QRasterBuffer;
29
30class
32{
33public:
35 ~QRasterizer();
36
37 void setAntialiased(bool antialiased);
38 void setClipRect(const QRect &clipRect);
39
40 void initialize(ProcessSpans blend, void *data);
41
42 void rasterize(const QT_FT_Outline *outline, Qt::FillRule fillRule);
43 void rasterize(const QPainterPath &path, Qt::FillRule fillRule);
44
45 // width should be in units of |a-b|
46 void rasterizeLine(const QPointF &a, const QPointF &b, qreal width, bool squareCap = false);
47
48private:
50};
51
52QT_END_NAMESPACE
53
54#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)