#include <qstroker_p.h>
|
| QStrokerOps () |
|
virtual | ~QStrokerOps () |
|
void | setMoveToHook (qStrokerMoveToHook moveToHook) |
|
void | setLineToHook (qStrokerLineToHook lineToHook) |
|
void | setCubicToHook (qStrokerCubicToHook cubicToHook) |
|
virtual void | begin (void *customData) |
|
virtual void | end () |
|
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) |
|
void | strokePolygon (const QPointF *points, int pointCount, bool implicit_close, void *data, const QTransform &matrix) |
|
void | strokeEllipse (const QRectF &ellipse, void *data, const QTransform &matrix) |
|
QRectF | clipRect () const |
|
void | setClipRect (const QRectF &clip) |
|
void | setCurveThresholdFromTransform (const QTransform &transform) |
|
void | setCurveThreshold (qfixed threshold) |
|
qfixed | curveThreshold () const |
|
Definition at line 130 of file qstroker_p.h.
◆ QStrokerOps()
QStrokerOps::QStrokerOps |
( |
| ) |
|
◆ ~QStrokerOps()
QStrokerOps::~QStrokerOps |
( |
| ) |
|
|
virtual |
◆ begin()
void QStrokerOps::begin |
( |
void * |
customData | ) |
|
|
virtual |
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 in QDashStroker.
Definition at line 207 of file qstroker.cpp.
◆ clipRect()
QRectF QStrokerOps::clipRect |
( |
| ) |
const |
|
inline |
◆ cubicTo()
◆ curveThreshold()
qfixed QStrokerOps::curveThreshold |
( |
| ) |
const |
|
inline |
◆ emitCubicTo()
◆ emitLineTo()
◆ emitMoveTo()
◆ end()
void QStrokerOps::end |
( |
| ) |
|
|
virtual |
Finishes the stroke. Call this function once when an entire primitive has been stroked.
Reimplemented in QDashStroker.
Definition at line 218 of file qstroker.cpp.
◆ lineTo()
◆ moveTo()
◆ processCurrentSubpath()
virtual void QStrokerOps::processCurrentSubpath |
( |
| ) |
|
|
protectedpure virtual |
◆ setClipRect()
◆ setCubicToHook()
◆ setCurveThreshold()
void QStrokerOps::setCurveThreshold |
( |
qfixed |
threshold | ) |
|
|
inline |
◆ setCurveThresholdFromTransform()
◆ setLineToHook()
◆ setMoveToHook()
◆ strokeEllipse()
Convenience function for stroking an ellipse with bounding rect rect. The matrix is used to transform the coordinates before they enter the stroker.
Definition at line 340 of file qstroker.cpp.
◆ strokePath()
Convenience function that decomposes path into begin(), moveTo(), lineTo(), curevTo() and end() calls.
The customData parameter is used in the callback functions
The matrix is used to transform the points before input to the stroker.
- See also
- begin()
Definition at line 236 of file qstroker.cpp.
◆ strokePolygon()
Convenience function for stroking a polygon of the pointCount first points in points. If implicit_close is set to true a line is implicitly drawn between the first and last point in the polygon. Typically true for polygons and false for polylines.
The matrix is used to transform the points before they enter the stroker.
- See also
- begin()
Definition at line 307 of file qstroker.cpp.
◆ m_clip_rect
QRectF QStrokerOps::m_clip_rect |
|
protected |
◆ m_cubicTo
◆ m_curveThreshold
qfixed QStrokerOps::m_curveThreshold |
|
protected |
◆ m_customData
void* QStrokerOps::m_customData |
|
protected |
◆ m_dashThreshold
qfixed QStrokerOps::m_dashThreshold |
|
protected |
◆ m_elements
◆ m_lineTo
◆ m_moveTo
The documentation for this class was generated from the following files: