![]() |
Qt 6.x
The Qt SDK
|
#include <qcosmeticstroker_p.h>
Collaboration diagram for QCosmeticStroker:Classes | |
| struct | Point |
| struct | PointF |
Public Types | |
| enum | Caps { NoCaps = 0 , CapBegin = 0x1 , CapEnd = 0x2 } |
| enum | Direction { NoDirection = 0 , TopToBottom = 0x1 , BottomToTop = 0x2 , LeftToRight = 0x4 , RightToLeft = 0x8 , VerticalMask = 0x3 , HorizontalMask = 0xc } |
| enum | { NSPANS = 255 } |
Public Member Functions | |
| QCosmeticStroker (QRasterPaintEngineState *s, const QRect &dr, const QRect &dr_unclipped) | |
| ~QCosmeticStroker () | |
| void | drawLine (const QPointF &p1, const QPointF &p2) |
| void | drawPath (const QVectorPath &path) |
| void | drawPoints (const QPoint *points, int num) |
| void | drawPoints (const QPointF *points, int num) |
| bool | clipLine (qreal &x1, qreal &y1, qreal &x2, qreal &y2) |
Public Attributes | |
| QRasterPaintEngineState * | state |
| QRect | deviceRect |
| QRect | clip |
| qreal | xmin |
| qreal | xmax |
| qreal | ymin |
| qreal | ymax |
| StrokeLine | stroke |
| bool | drawCaps |
| int * | pattern |
| int * | reversePattern |
| int | patternSize |
| int | patternLength |
| int | patternOffset |
| QT_FT_Span | spans [NSPANS] |
| int | current_span |
| ProcessSpans | blend |
| int | opacity |
| uint | color |
| uint * | pixels |
| int | ppl |
| Direction | lastDir |
| Point | lastPixel |
| bool | lastAxisAligned |
Definition at line 32 of file qcosmeticstroker_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| NSPANS | |
Definition at line 99 of file qcosmeticstroker_p.h.
| Enumerator | |
|---|---|
| NoCaps | |
| CapBegin | |
| CapEnd | |
Definition at line 44 of file qcosmeticstroker_p.h.
| Enumerator | |
|---|---|
| NoDirection | |
| TopToBottom | |
| BottomToTop | |
| LeftToRight | |
| RightToLeft | |
| VerticalMask | |
| HorizontalMask | |
Definition at line 51 of file qcosmeticstroker_p.h.
|
inline |
Definition at line 61 of file qcosmeticstroker_p.h.
|
inline |
Definition at line 75 of file qcosmeticstroker_p.h.
References reversePattern.
Definition at line 286 of file qcosmeticstroker.cpp.
References lastPixel, qIsFinite(), QCosmeticStroker::Point::x, xmax, xmin, ymax, and ymin.
Referenced by drawLine(), and drawLineAA().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 342 of file qcosmeticstroker.cpp.
References blend, CapBegin, CapEnd, current_span, QPen::dashOffset(), drawCaps, drawPoints(), QRasterPaintEngineState::lastPen, lastPixel, QPainterState::matrix, p1, p2, patternOffset, QRasterPaintEngineState::penData, spans, state, stroke, QCosmeticStroker::Point::x, and QCosmeticStroker::Point::y.
Referenced by QRasterPaintEngine::drawLines(), and QRasterPaintEngine::drawLines().
Here is the call graph for this function:
Here is the caller graph for this function:| void QCosmeticStroker::drawPath | ( | const QVectorPath & | path | ) |
Definition at line 496 of file qcosmeticstroker.cpp.
References QRasterPaintEngineState::Flags::antialiased, begin(), blend, CapBegin, CapEnd, current_span, QPainterPath::CurveToDataElement, QPainterPath::CurveToElement, QPen::dashOffset(), drawCaps, e, QRasterPaintEngineState::Flags::fast_pen, QRasterPaintEngineState::flags, QRasterPaintEngineState::lastPen, lastPixel, QPainterPath::LineToElement, QPainterState::matrix, QPainterPath::MoveToElement, NoCaps, p1, p2, patternOffset, QRasterPaintEngineState::penData, Q_ASSERT, spans, state, stroke, subPath(), QPointF::x(), QCosmeticStroker::Point::x, QPointF::y(), and QCosmeticStroker::Point::y.
Referenced by QRasterPaintEngine::drawPolygon(), QRasterPaintEngine::drawPolygon(), QRasterPaintEngine::drawRects(), QRasterPaintEngine::drawRects(), and QRasterPaintEngine::stroke().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 362 of file qcosmeticstroker.cpp.
References blend, current_span, drawPixel(), QPainterState::matrix, QRasterPaintEngineState::penData, qRound(), spans, and state.
Referenced by drawLine(), QRasterPaintEngine::drawPoints(), and QRasterPaintEngine::drawPoints().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 375 of file qcosmeticstroker.cpp.
References blend, current_span, drawPixel(), QPainterState::matrix, QRasterPaintEngineState::penData, qRound(), spans, and state.
Here is the call graph for this function:| ProcessSpans QCosmeticStroker::blend |
Definition at line 102 of file qcosmeticstroker_p.h.
Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().
| QRect QCosmeticStroker::clip |
Definition at line 85 of file qcosmeticstroker_p.h.
Referenced by drawPixel(), drawPixelARGB32(), and drawPixelARGB32Opaque().
| uint QCosmeticStroker::color |
Definition at line 106 of file qcosmeticstroker_p.h.
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
| int QCosmeticStroker::current_span |
Definition at line 101 of file qcosmeticstroker_p.h.
Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().
| QRect QCosmeticStroker::deviceRect |
Definition at line 84 of file qcosmeticstroker_p.h.
| bool QCosmeticStroker::drawCaps |
Definition at line 91 of file qcosmeticstroker_p.h.
Referenced by drawLine(), and drawPath().
| bool QCosmeticStroker::lastAxisAligned |
Definition at line 112 of file qcosmeticstroker_p.h.
Referenced by drawLine().
| Direction QCosmeticStroker::lastDir |
Definition at line 110 of file qcosmeticstroker_p.h.
Referenced by drawLine().
| Point QCosmeticStroker::lastPixel |
Definition at line 111 of file qcosmeticstroker_p.h.
Referenced by clipLine(), drawLine(), drawLine(), and drawPath().
| int QCosmeticStroker::opacity |
Definition at line 104 of file qcosmeticstroker_p.h.
Referenced by drawPixel().
| int* QCosmeticStroker::pattern |
Definition at line 93 of file qcosmeticstroker_p.h.
| int QCosmeticStroker::patternLength |
Definition at line 96 of file qcosmeticstroker_p.h.
| int QCosmeticStroker::patternOffset |
Definition at line 97 of file qcosmeticstroker_p.h.
Referenced by drawLine(), and drawPath().
| int QCosmeticStroker::patternSize |
Definition at line 95 of file qcosmeticstroker_p.h.
| uint* QCosmeticStroker::pixels |
Definition at line 107 of file qcosmeticstroker_p.h.
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
| int QCosmeticStroker::ppl |
Definition at line 108 of file qcosmeticstroker_p.h.
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
| int* QCosmeticStroker::reversePattern |
Definition at line 94 of file qcosmeticstroker_p.h.
Referenced by ~QCosmeticStroker().
| QT_FT_Span QCosmeticStroker::spans[NSPANS] |
Definition at line 100 of file qcosmeticstroker_p.h.
Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().
| QRasterPaintEngineState* QCosmeticStroker::state |
Definition at line 83 of file qcosmeticstroker_p.h.
Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().
| StrokeLine QCosmeticStroker::stroke |
Definition at line 90 of file qcosmeticstroker_p.h.
Referenced by drawLine(), and drawPath().
| qreal QCosmeticStroker::xmax |
Definition at line 87 of file qcosmeticstroker_p.h.
Referenced by clipLine().
| qreal QCosmeticStroker::xmin |
Definition at line 87 of file qcosmeticstroker_p.h.
Referenced by clipLine().
| qreal QCosmeticStroker::ymax |
Definition at line 88 of file qcosmeticstroker_p.h.
Referenced by clipLine().
| qreal QCosmeticStroker::ymin |
Definition at line 88 of file qcosmeticstroker_p.h.
Referenced by clipLine().