Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QDashStroker Class Reference

#include <qstroker_p.h>

Inheritance diagram for QDashStroker:
Collaboration diagram for QDashStroker:

Public Member Functions

 QDashStroker (QStroker *stroker)
 ~QDashStroker ()
QStroker * stroker () const
void setDashPattern (const QList< qfixed > &dashPattern)
QList< qfixed > dashPattern () const
void setDashOffset (qreal offset)
qreal dashOffset () const
void begin (void *data) override
 Prepares the stroker.
void end () override
 Finishes the stroke.
void setStrokeWidth (qreal width)
void setMiterLimit (qreal limit)
Public Member Functions inherited from QStrokerOps
 QStrokerOps ()
virtual ~QStrokerOps ()
void setMoveToHook (qStrokerMoveToHook moveToHook)
void setLineToHook (qStrokerLineToHook lineToHook)
void setCubicToHook (qStrokerCubicToHook cubicToHook)
void moveTo (qfixed x, qfixed y)
void lineTo (qfixed x, qfixed y)
void cubicTo (qfixed x1, qfixed y1, qfixed x2, qfixed y2, qfixed ex, qfixed ey)
void strokePath (const QPainterPath &path, void *data, const QTransform &matrix)
 Convenience function that decomposes path into begin(), moveTo(), lineTo(), curevTo() and end() calls.
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.
void strokeEllipse (const QRectF &ellipse, void *data, const QTransform &matrix)
 Convenience function for stroking an ellipse with bounding rect rect.
QRectF clipRect () const
void setClipRect (const QRectF &clip)
void setCurveThresholdFromTransform (const QTransform &transform)
void setCurveThreshold (qfixed threshold)
qfixed curveThreshold () const
bool curveThresholdExplicitlySet () const

Static Public Member Functions

static QList< qfixed > patternForStyle (Qt::PenStyle style)
static int repetitionLimit ()

Protected Member Functions

void processCurrentSubpath () override
Protected Member Functions inherited from QStrokerOps
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)

Protected Attributes

QStroker * m_stroker
QList< qfixed > m_dashPattern
qreal m_dashOffset
qreal m_stroke_width
qreal m_miter_limit
Protected Attributes inherited from QStrokerOps
QDataBuffer< Element > m_elements
QRectF m_clip_rect
qfixed m_curveThreshold
qfixed m_dashThreshold
bool m_curveThresholdExplicitlySet
void * m_customData
qStrokerMoveToHook m_moveTo
qStrokerLineToHook m_lineTo
qStrokerCubicToHook m_cubicTo

Detailed Description

Definition at line 237 of file qstroker_p.h.

Constructor & Destructor Documentation

◆ QDashStroker()

QDashStroker::QDashStroker ( QStroker * stroker)

Definition at line 989 of file qstroker.cpp.

◆ ~QDashStroker()

QDashStroker::~QDashStroker ( )

Definition at line 999 of file qstroker.cpp.

Member Function Documentation

◆ begin()

void QDashStroker::begin ( void * customData)
inlineoverridevirtual

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 364 of file qstroker_p.h.

◆ dashOffset()

qreal QDashStroker::dashOffset ( ) const
inline

Definition at line 252 of file qstroker_p.h.

◆ dashPattern()

QList< qfixed > QDashStroker::dashPattern ( ) const
inline

Definition at line 249 of file qstroker_p.h.

◆ end()

void QDashStroker::end ( )
inlineoverridevirtual

Finishes the stroke.

Call this function once when an entire primitive has been stroked.

Reimplemented from QStrokerOps.

Definition at line 371 of file qstroker_p.h.

◆ patternForStyle()

QList< qfixed > QDashStroker::patternForStyle ( Qt::PenStyle style)
static

Definition at line 1003 of file qstroker.cpp.

◆ processCurrentSubpath()

void QDashStroker::processCurrentSubpath ( )
overrideprotectedvirtual

Implements QStrokerOps.

Definition at line 1073 of file qstroker.cpp.

◆ repetitionLimit()

int QDashStroker::repetitionLimit ( )
inlinestatic

Definition at line 246 of file qstroker_p.h.

◆ setDashOffset()

void QDashStroker::setDashOffset ( qreal offset)
inline

Definition at line 251 of file qstroker_p.h.

◆ setDashPattern()

void QDashStroker::setDashPattern ( const QList< qfixed > & dashPattern)
inline

Definition at line 248 of file qstroker_p.h.

◆ setMiterLimit()

void QDashStroker::setMiterLimit ( qreal limit)
inline

Definition at line 258 of file qstroker_p.h.

◆ setStrokeWidth()

void QDashStroker::setStrokeWidth ( qreal width)
inline

Definition at line 257 of file qstroker_p.h.

◆ stroker()

QStroker * QDashStroker::stroker ( ) const
inline

Definition at line 243 of file qstroker_p.h.

Member Data Documentation

◆ m_dashOffset

qreal QDashStroker::m_dashOffset
protected

Definition at line 265 of file qstroker_p.h.

◆ m_dashPattern

QList<qfixed> QDashStroker::m_dashPattern
protected

Definition at line 264 of file qstroker_p.h.

◆ m_miter_limit

qreal QDashStroker::m_miter_limit
protected

Definition at line 268 of file qstroker_p.h.

◆ m_stroke_width

qreal QDashStroker::m_stroke_width
protected

Definition at line 267 of file qstroker_p.h.

◆ m_stroker

QStroker* QDashStroker::m_stroker
protected

Definition at line 263 of file qstroker_p.h.


The documentation for this class was generated from the following files: