Qt 4.8
|
#include <qstroker_p.h>
Public Functions | |
virtual void | begin (void *data) |
Prepares the stroker. More... | |
qreal | dashOffset () const |
QVector< qfixed > | dashPattern () const |
virtual void | end () |
Finishes the stroke. More... | |
QDashStroker (QStroker *stroker) | |
void | setDashOffset (qreal offset) |
void | setDashPattern (const QVector< qfixed > &dashPattern) |
void | setMiterLimit (qreal limit) |
void | setStrokeWidth (qreal width) |
QStroker * | stroker () const |
Public Functions inherited from QStrokerOps | |
QRectF | clipRect () const |
void | cubicTo (qfixed x1, qfixed y1, qfixed x2, qfixed y2, qfixed ex, qfixed ey) |
qfixed | curveThreshold () const |
void | lineTo (qfixed x, qfixed y) |
void | moveTo (qfixed x, qfixed y) |
QStrokerOps () | |
void | setClipRect (const QRectF &clip) |
void | setCubicToHook (qStrokerCubicToHook cubicToHook) |
void | setCurveThreshold (qfixed threshold) |
void | setCurveThresholdFromTransform (const QTransform &transform) |
void | setLineToHook (qStrokerLineToHook lineToHook) |
void | setMoveToHook (qStrokerMoveToHook moveToHook) |
void | strokeEllipse (const QRectF &ellipse, void *data, const QTransform &matrix) |
Convenience function for stroking an ellipse with bounding rect rect. More... | |
void | strokePath (const QPainterPath &path, void *data, const QTransform &matrix) |
Convenience function that decomposes path into begin(), moveTo(), lineTo(), curevTo() and end() calls. More... | |
void | strokePolygon (const QPointF *points, int pointCount, bool implicit_close, void *data, const QTransform &matrix) |
Convenience function for stroking a polygon of the pointCount first points in points. More... | |
virtual | ~QStrokerOps () |
Static Public Functions | |
static QVector< qfixed > | patternForStyle (Qt::PenStyle style) |
Protected Functions | |
virtual void | processCurrentSubpath () |
Protected Functions inherited from QStrokerOps | |
void | emitCubicTo (qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey) |
void | emitLineTo (qfixed x, qfixed y) |
void | emitMoveTo (qfixed x, qfixed y) |
Protected Variables | |
qreal | m_dashOffset |
QVector< qfixed > | m_dashPattern |
qreal | m_miter_limit |
qreal | m_stroke_width |
QStroker * | m_stroker |
Protected Variables inherited from QStrokerOps | |
QRectF | m_clip_rect |
qStrokerCubicToHook | m_cubicTo |
qfixed | m_curveThreshold |
void * | m_customData |
qfixed | m_dashThreshold |
QDataBuffer< Element > | m_elements |
qStrokerLineToHook | m_lineTo |
qStrokerMoveToHook | m_moveTo |
Definition at line 253 of file qstroker_p.h.
QDashStroker::QDashStroker | ( | QStroker * | stroker | ) |
Definition at line 1024 of file qstroker.cpp.
|
inlinevirtual |
Prepares the stroker.
Call this function once before starting a stroke by calling moveTo, lineTo or cubicTo.
The customData is passed back through that callback functions and can be used by the user to for instance maintain state information.
Reimplemented from QStrokerOps.
Definition at line 378 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::process().
|
inline |
Definition at line 266 of file qstroker_p.h.
Definition at line 263 of file qstroker_p.h.
|
inlinevirtual |
Finishes the stroke.
Call this function once when an entire primitive has been stroked.
Reimplemented from QStrokerOps.
Definition at line 385 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::process().
|
static |
Definition at line 1034 of file qstroker.cpp.
Referenced by QPainterPathStroker::setDashPattern().
|
protectedvirtual |
Implements QStrokerOps.
Definition at line 1104 of file qstroker.cpp.
|
inline |
Definition at line 265 of file qstroker_p.h.
Referenced by QPainterPathStroker::createStroke(), QDashedStrokeProcessor::process(), and QPdf::Stroker::setPen().
Definition at line 262 of file qstroker_p.h.
Referenced by QPainterPathStroker::createStroke(), QDashedStrokeProcessor::process(), and QPdf::Stroker::setPen().
|
inline |
|
inline |
|
inline |
Definition at line 258 of file qstroker_p.h.
|
protected |
Definition at line 279 of file qstroker_p.h.
Referenced by processCurrentSubpath().
Definition at line 278 of file qstroker_p.h.
Referenced by processCurrentSubpath().
|
protected |
Definition at line 282 of file qstroker_p.h.
Referenced by processCurrentSubpath().
|
protected |
Definition at line 281 of file qstroker_p.h.
Referenced by processCurrentSubpath().
|
protected |
Definition at line 277 of file qstroker_p.h.
Referenced by processCurrentSubpath(), and QDashStroker().