![]() |
Qt 6.x
The Qt SDK
|
#include <qstroker_p.h>
Static Public Member Functions | |
static QList< qfixed > | patternForStyle (Qt::PenStyle style) |
static int | repetitionLimit () |
Protected Member Functions | |
void | processCurrentSubpath () override |
![]() | |
void | emitMoveTo (qfixed x, qfixed y) |
void | emitLineTo (qfixed x, qfixed y) |
void | emitCubicTo (qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey) |
virtual void | processCurrentSubpath ()=0 |
Protected Attributes | |
QStroker * | m_stroker |
QList< qfixed > | m_dashPattern |
qreal | m_dashOffset |
qreal | m_stroke_width |
qreal | m_miter_limit |
![]() | |
QDataBuffer< Element > | m_elements |
QRectF | m_clip_rect |
qfixed | m_curveThreshold |
qfixed | m_dashThreshold |
void * | m_customData |
qStrokerMoveToHook | m_moveTo |
qStrokerLineToHook | m_lineTo |
qStrokerCubicToHook | m_cubicTo |
Definition at line 226 of file qstroker_p.h.
QDashStroker::QDashStroker | ( | QStroker * | stroker | ) |
Definition at line 981 of file qstroker.cpp.
References m_stroker, qdashstroker_cubicTo(), qdashstroker_lineTo(), qdashstroker_moveTo(), QStrokerOps::setCubicToHook(), QStrokerOps::setLineToHook(), and QStrokerOps::setMoveToHook().
QDashStroker::~QDashStroker | ( | ) |
Definition at line 991 of file qstroker.cpp.
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 353 of file qstroker_p.h.
References QStrokerOps::begin(), and m_stroker.
Referenced by QDashedStrokeProcessor::process().
|
inline |
Definition at line 241 of file qstroker_p.h.
Definition at line 238 of file qstroker_p.h.
|
inlineoverridevirtual |
Finishes the stroke.
Call this function once when an entire primitive has been stroked.
Reimplemented from QStrokerOps.
Definition at line 360 of file qstroker_p.h.
References QStrokerOps::end(), and m_stroker.
Referenced by QDashedStrokeProcessor::process().
|
static |
Definition at line 995 of file qstroker.cpp.
References Qt::DashDotDotLine, Qt::DashDotLine, Qt::DashLine, dot(), Qt::DotLine, and qfixed.
Referenced by QPainterPathStroker::setDashPattern().
|
overrideprotectedvirtual |
Implements QStrokerOps.
Definition at line 1065 of file qstroker.cpp.
References QList< T >::at(), QRectF::bottom(), done, e, QStrokerOps::emitLineTo(), QStrokerOps::emitMoveTo(), i, QRectF::isEmpty(), qfixed2d::isFinite(), it, QRectF::left(), QLineF::length(), lineIntersectsRect(), lineRectIntersectsRect(), QStrokerOps::m_clip_rect, QStrokerOps::m_customData, m_dashOffset, m_dashPattern, QStrokerOps::m_dashThreshold, QStrokerOps::m_elements, m_miter_limit, m_stroke_width, m_stroker, QStroker::miterLimit(), p2, QLineF::p2(), QLineF::pointAt(), pos, Q_ASSERT, qfixed, qFuzzyIsNull(), qMax(), qMin(), qt_fixed_to_real, qt_real_to_fixed, repetitionLimit(), QRectF::right(), QList< T >::size(), QStroker::strokeWidth(), QRectF::top(), qfixed2d::x, and qfixed2d::y.
|
inlinestatic |
Definition at line 235 of file qstroker_p.h.
Referenced by processCurrentSubpath(), QRasterPaintEnginePrivate::rasterizeLine_dashed(), and QPaintEngineEx::stroke().
Definition at line 240 of file qstroker_p.h.
Referenced by QPainterPathStroker::createStroke(), and QDashedStrokeProcessor::process().
Definition at line 237 of file qstroker_p.h.
Referenced by QPainterPathStroker::createStroke(), and QDashedStrokeProcessor::process().
Definition at line 247 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::process().
Definition at line 246 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::process().
|
inline |
Definition at line 232 of file qstroker_p.h.
|
protected |
Definition at line 254 of file qstroker_p.h.
Referenced by processCurrentSubpath().
Definition at line 253 of file qstroker_p.h.
Referenced by processCurrentSubpath().
|
protected |
Definition at line 257 of file qstroker_p.h.
Referenced by processCurrentSubpath().
|
protected |
Definition at line 256 of file qstroker_p.h.
Referenced by processCurrentSubpath().
|
protected |
Definition at line 252 of file qstroker_p.h.
Referenced by QDashStroker(), begin(), end(), and processCurrentSubpath().