![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtGui More...
#include <qstroker_p.h>
Classes | |
| struct | Element |
Public Member Functions | |
| QStrokerOps () | |
| virtual | ~QStrokerOps () |
| void | setMoveToHook (qStrokerMoveToHook moveToHook) |
| void | setLineToHook (qStrokerLineToHook lineToHook) |
| void | setCubicToHook (qStrokerCubicToHook cubicToHook) |
| virtual void | begin (void *customData) |
| Prepares the stroker. | |
| virtual void | end () |
| Finishes the stroke. | |
| 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 |
Protected Member Functions | |
| 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 |
\inmodule QtGui
Definition at line 95 of file qstroker_p.h.
| QStrokerOps::QStrokerOps | ( | ) |
Definition at line 154 of file qstroker.cpp.
|
virtual |
Definition at line 165 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 in QDashStroker.
Definition at line 177 of file qstroker.cpp.
|
inline |
Definition at line 129 of file qstroker_p.h.
|
inline |
Definition at line 299 of file qstroker_p.h.
|
inline |
Definition at line 140 of file qstroker_p.h.
|
inlineprotected |
Definition at line 278 of file qstroker_p.h.
Definition at line 272 of file qstroker_p.h.
Definition at line 266 of file qstroker_p.h.
|
virtual |
Finishes the stroke.
Call this function once when an entire primitive has been stroked.
Reimplemented in QDashStroker.
Definition at line 188 of file qstroker.cpp.
Definition at line 293 of file qstroker_p.h.
Definition at line 284 of file qstroker_p.h.
|
protectedpure virtual |
Implemented in QDashStroker, and QStroker.
Definition at line 130 of file qstroker_p.h.
|
inline |
Definition at line 115 of file qstroker_p.h.
Definition at line 139 of file qstroker_p.h.
|
inline |
Definition at line 132 of file qstroker_p.h.
|
inline |
Definition at line 114 of file qstroker_p.h.
|
inline |
Definition at line 113 of file qstroker_p.h.
| void QStrokerOps::strokeEllipse | ( | const QRectF & | rect, |
| void * | data, | ||
| const QTransform & | matrix ) |
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 310 of file qstroker.cpp.
| void QStrokerOps::strokePath | ( | const QPainterPath & | path, |
| void * | customData, | ||
| const QTransform & | matrix ) |
| void QStrokerOps::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.
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.
Definition at line 277 of file qstroker.cpp.
|
protected |
Definition at line 150 of file qstroker_p.h.
|
protected |
Definition at line 157 of file qstroker_p.h.
|
protected |
Definition at line 151 of file qstroker_p.h.
|
protected |
Definition at line 154 of file qstroker_p.h.
|
protected |
Definition at line 152 of file qstroker_p.h.
|
protected |
Definition at line 148 of file qstroker_p.h.
|
protected |
Definition at line 156 of file qstroker_p.h.
|
protected |
Definition at line 155 of file qstroker_p.h.