![]() |
Qt 6.x
The Qt SDK
|
#include "qcosmeticstroker_p.h"
#include "private/qpainterpath_p.h"
#include "private/qrgba64_p.h"
#include <qdebug.h>
Go to the source code of this file.
Macros | |
#define | toF26Dot6(x) static_cast<int>((x) * 64.) |
Typedefs | |
typedef void(* | DrawPixel) (QCosmeticStroker *stroker, int x, int y, int coverage) |
Enumerations | |
enum | StrokeSelection { Aliased = 0 , AntiAliased = 1 , Solid = 0 , Dashed = 2 , RegularDraw = 0 , FastDraw = 4 } |
Functions | |
static uint | sourceOver (uint d, uint color) |
static FDot16 | FDot16FixedDiv (int x, int y) |
template<DrawPixel drawPixel, class Dasher > | |
static bool | drawLine (QCosmeticStroker *stroker, qreal x1, qreal y1, qreal x2, qreal y2, int caps) |
template<DrawPixel drawPixel, class Dasher > | |
static bool | drawLineAA (QCosmeticStroker *stroker, qreal x1, qreal y1, qreal x2, qreal y2, int caps) |
void | drawPixel (QCosmeticStroker *stroker, int x, int y, int coverage) |
void | drawPixelARGB32 (QCosmeticStroker *stroker, int x, int y, int coverage) |
void | drawPixelARGB32Opaque (QCosmeticStroker *stroker, int x, int y, int) |
static StrokeLine | strokeLine (int strokeSelection) |
static const QPainterPath::ElementType * | subPath (const QPainterPath::ElementType *t, const QPainterPath::ElementType *end, const qreal *points, bool *closed) |
static void | splitCubic (QCosmeticStroker::PointF *points) |
static int | swapCaps (int caps) |
static void | capAdjust (int caps, int &x1, int &x2, FDot16 &y, FDot16 yinc) |
Variables | |
QT_BEGIN_NAMESPACE typedef int | FDot16 |
Definition at line 31 of file qcosmeticstroker.cpp.
typedef void(* DrawPixel) (QCosmeticStroker *stroker, int x, int y, int coverage) |
Definition at line 49 of file qcosmeticstroker.cpp.
enum StrokeSelection |
Enumerator | |
---|---|
Aliased | |
AntiAliased | |
Solid | |
Dashed | |
RegularDraw | |
FastDraw |
Definition at line 162 of file qcosmeticstroker.cpp.
Definition at line 693 of file qcosmeticstroker.cpp.
References QCosmeticStroker::CapBegin, and QCosmeticStroker::CapEnd.
Referenced by drawLine(), and drawLineAA().
|
static |
Definition at line 709 of file qcosmeticstroker.cpp.
References QCosmeticStroker::BottomToTop, capAdjust(), QCosmeticStroker::CapBegin, QCosmeticStroker::CapEnd, QCosmeticStroker::clipLine(), dir, drawPixel(), FDot16, FDot16FixedDiv(), QCosmeticStroker::HorizontalMask, QCosmeticStroker::lastAxisAligned, QCosmeticStroker::lastDir, QCosmeticStroker::lastPixel, QCosmeticStroker::LeftToRight, qAbs(), qSwap(), QCosmeticStroker::RightToLeft, swapCaps(), toF26Dot6, QCosmeticStroker::TopToBottom, QCosmeticStroker::VerticalMask, QCosmeticStroker::Point::x, and QCosmeticStroker::Point::y.
Referenced by strokeLine().
|
static |
Definition at line 911 of file qcosmeticstroker.cpp.
References capAdjust(), QCosmeticStroker::clipLine(), drawPixel(), FDot16, FDot16FixedDiv(), Q_ASSERT, qAbs(), qSwap(), swapCaps(), and toF26Dot6.
Referenced by strokeLine().
|
inline |
Definition at line 118 of file qcosmeticstroker.cpp.
References QCosmeticStroker::blend, QRect::bottom(), QCosmeticStroker::clip, QT_FT_Span_::coverage, QCosmeticStroker::current_span, QT_FT_Span_::len, QCosmeticStroker::NSPANS, QCosmeticStroker::opacity, QRasterPaintEngineState::penData, QRect::right(), QCosmeticStroker::spans, QCosmeticStroker::state, QRect::x(), QT_FT_Span_::x, QRect::y(), and QT_FT_Span_::y.
Referenced by drawLine(), drawLineAA(), QCosmeticStroker::drawPoints(), QCosmeticStroker::drawPoints(), and strokeLine().
|
inline |
Definition at line 141 of file qcosmeticstroker.cpp.
References QRect::bottom(), BYTE_MUL(), QCosmeticStroker::clip, QCosmeticStroker::color, QCosmeticStroker::pixels, QCosmeticStroker::ppl, QRect::right(), sourceOver(), QRect::x(), and QRect::y().
Referenced by strokeLine().
|
inline |
Definition at line 152 of file qcosmeticstroker.cpp.
References QRect::bottom(), QCosmeticStroker::clip, QCosmeticStroker::color, QCosmeticStroker::pixels, QCosmeticStroker::ppl, QRect::right(), sourceOver(), QRect::x(), and QRect::y().
Referenced by strokeLine().
|
inlinestatic |
Definition at line 38 of file qcosmeticstroker.cpp.
References FDot16, and qAbs().
Referenced by drawLine(), and drawLineAA().
Definition at line 33 of file qcosmeticstroker.cpp.
References BYTE_MUL(), d, and qAlpha().
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
|
static |
Definition at line 639 of file qcosmeticstroker.cpp.
References d.
|
static |
Definition at line 171 of file qcosmeticstroker.cpp.
References Aliased, AntiAliased, Dashed, drawLine(), drawLineAA(), drawPixel(), drawPixelARGB32(), drawPixelARGB32Opaque(), FastDraw, Q_ASSERT, QT_PREPEND_NAMESPACE(), RegularDraw, and Solid.
|
inlinestatic |
Definition at line 476 of file qcosmeticstroker.cpp.
References QPainterPath::MoveToElement.
Referenced by QOpenGLProgramBinaryCache::QOpenGLProgramBinaryCache(), automaticPipelineCacheDir(), QCosmeticStroker::drawPath(), persistentQsbcDir(), qmlDirectoryRecursion(), QQmlJS::Dom::ModuleIndex::qmldirsToLoad(), and readInputFile().
|
inlinestatic |
Definition at line 686 of file qcosmeticstroker.cpp.
References QCosmeticStroker::CapBegin, and QCosmeticStroker::CapEnd.
Referenced by drawLine(), and drawLineAA().
QT_BEGIN_NAMESPACE typedef int FDot16 |
Definition at line 28 of file qcosmeticstroker.cpp.
Referenced by drawLine(), drawLineAA(), and FDot16FixedDiv().