Qt 4.8
|
#include <qcosmeticstroker_p.h>
Classes | |
struct | Point |
struct | PointF |
Public Types | |
enum | { NSPANS = 255 } |
enum | Caps { NoCaps = 0, CapBegin = 0x1, CapEnd = 0x2 } |
enum | Direction { TopToBottom = 0x1, BottomToTop = 0x2, LeftToRight = 0x4, RightToLeft = 0x8, VerticalMask = 0x3, HorizontalMask = 0xc } |
Public Functions | |
bool | clipLine (qreal &x1, qreal &y1, qreal &x2, qreal &y2) |
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) |
QCosmeticStroker (QRasterPaintEngineState *s, const QRect &dr, const QRect &dr_unclipped) | |
~QCosmeticStroker () | |
Public Variables | |
ProcessSpans | blend |
QRect | clip |
uint | color |
int | current_span |
QRect | deviceRect |
bool | drawCaps |
bool | lastAxisAligned |
Direction | lastDir |
Point | lastPixel |
int | opacity |
int * | pattern |
int | patternLength |
int | patternOffset |
int | patternSize |
uint * | pixels |
int | ppl |
int * | reversePattern |
QT_FT_Span | spans [NSPANS] |
QRasterPaintEngineState * | state |
StrokeLine | stroke |
qreal | xmax |
qreal | xmin |
qreal | ymax |
qreal | ymin |
Private Functions | |
void | calculateLastPoint (qreal rx1, qreal ry1, qreal rx2, qreal ry2) |
void | renderCubic (const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4, int caps) |
void | renderCubicSubdivision (PointF *points, int level, int caps) |
void | setup () |
Definition at line 61 of file qcosmeticstroker_p.h.
anonymous enum |
Enumerator | |
---|---|
NSPANS |
Definition at line 125 of file qcosmeticstroker_p.h.
Enumerator | |
---|---|
NoCaps | |
CapBegin | |
CapEnd |
Definition at line 73 of file qcosmeticstroker_p.h.
Enumerator | |
---|---|
TopToBottom | |
BottomToTop | |
LeftToRight | |
RightToLeft | |
VerticalMask | |
HorizontalMask |
Definition at line 80 of file qcosmeticstroker_p.h.
|
inline |
Definition at line 89 of file qcosmeticstroker_p.h.
|
inline |
Definition at line 102 of file qcosmeticstroker_p.h.
Definition at line 411 of file qcosmeticstroker.cpp.
Definition at line 366 of file qcosmeticstroker.cpp.
Referenced by QRasterPaintEngine::drawLines(), and ~QCosmeticStroker().
void QCosmeticStroker::drawPath | ( | const QVectorPath & | path | ) |
Definition at line 518 of file qcosmeticstroker.cpp.
Referenced by QRasterPaintEngine::drawPolygon(), QRasterPaintEngine::drawRects(), QRasterPaintEngine::stroke(), and ~QCosmeticStroker().
void QCosmeticStroker::drawPoints | ( | const QPoint * | points, |
int | num | ||
) |
Definition at line 385 of file qcosmeticstroker.cpp.
Referenced by QRasterPaintEngine::drawPoints(), and ~QCosmeticStroker().
void QCosmeticStroker::drawPoints | ( | const QPointF * | points, |
int | num | ||
) |
Definition at line 398 of file qcosmeticstroker.cpp.
|
private |
Definition at line 643 of file qcosmeticstroker.cpp.
|
private |
Definition at line 690 of file qcosmeticstroker.cpp.
|
private |
Definition at line 233 of file qcosmeticstroker.cpp.
Referenced by QCosmeticStroker().
ProcessSpans QCosmeticStroker::blend |
Definition at line 128 of file qcosmeticstroker_p.h.
Referenced by drawPixel().
QRect QCosmeticStroker::clip |
Definition at line 111 of file qcosmeticstroker_p.h.
Referenced by drawPixel(), drawPixelARGB32(), and drawPixelARGB32Opaque().
uint QCosmeticStroker::color |
Definition at line 132 of file qcosmeticstroker_p.h.
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
int QCosmeticStroker::current_span |
Definition at line 127 of file qcosmeticstroker_p.h.
Referenced by drawPixel().
QRect QCosmeticStroker::deviceRect |
Definition at line 110 of file qcosmeticstroker_p.h.
bool QCosmeticStroker::drawCaps |
Definition at line 117 of file qcosmeticstroker_p.h.
bool QCosmeticStroker::lastAxisAligned |
Definition at line 138 of file qcosmeticstroker_p.h.
Referenced by drawLine().
Direction QCosmeticStroker::lastDir |
Definition at line 136 of file qcosmeticstroker_p.h.
Referenced by drawLine().
Point QCosmeticStroker::lastPixel |
Definition at line 137 of file qcosmeticstroker_p.h.
Referenced by drawLine().
int QCosmeticStroker::opacity |
Definition at line 130 of file qcosmeticstroker_p.h.
Referenced by drawPixel().
int* QCosmeticStroker::pattern |
Definition at line 119 of file qcosmeticstroker_p.h.
Referenced by ~QCosmeticStroker().
int QCosmeticStroker::patternLength |
Definition at line 122 of file qcosmeticstroker_p.h.
int QCosmeticStroker::patternOffset |
Definition at line 123 of file qcosmeticstroker_p.h.
int QCosmeticStroker::patternSize |
Definition at line 121 of file qcosmeticstroker_p.h.
uint* QCosmeticStroker::pixels |
Definition at line 133 of file qcosmeticstroker_p.h.
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
int QCosmeticStroker::ppl |
Definition at line 134 of file qcosmeticstroker_p.h.
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
int* QCosmeticStroker::reversePattern |
Definition at line 120 of file qcosmeticstroker_p.h.
Referenced by ~QCosmeticStroker().
QT_FT_Span QCosmeticStroker::spans[NSPANS] |
Definition at line 126 of file qcosmeticstroker_p.h.
Referenced by drawPixel().
QRasterPaintEngineState* QCosmeticStroker::state |
Definition at line 109 of file qcosmeticstroker_p.h.
Referenced by drawPixel().
StrokeLine QCosmeticStroker::stroke |
Definition at line 116 of file qcosmeticstroker_p.h.
qreal QCosmeticStroker::xmax |
Definition at line 113 of file qcosmeticstroker_p.h.
qreal QCosmeticStroker::xmin |
Definition at line 113 of file qcosmeticstroker_p.h.
qreal QCosmeticStroker::ymax |
Definition at line 114 of file qcosmeticstroker_p.h.
qreal QCosmeticStroker::ymin |
Definition at line 114 of file qcosmeticstroker_p.h.