![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquadpath_p.h>
Classes | |
| class | Element |
Public Types | |
| enum | PathHint : quint8 { PathLinear = 0x1 , PathQuadratic = 0x2 , PathConvex = 0x4 , PathFillOnRight = 0x8 , PathSolid = 0x10 , PathNonIntersecting = 0x20 , PathNonOverlappingControlPointTriangles = 0x40 } |
Public Member Functions | |
| void | moveTo (const QVector2D &to) |
| void | lineTo (const QVector2D &to) |
| void | quadTo (const QVector2D &control, const QVector2D &to) |
| Element & | elementAt (int i) |
| const Element & | elementAt (int i) const |
| int | indexOfChildAt (int i, int childNumber) const |
| QRectF | controlPointRect () const |
| Qt::FillRule | fillRule () const |
| void | setFillRule (Qt::FillRule rule) |
| void | reserve (int sizesize) |
| int | elementCount () const |
| bool | isEmpty () const |
| int | elementCountRecursive () const |
| int | lineCount () const |
| QPainterPath | toPainterPath () const |
| QString | asSvgString () const |
| QQuadPath | subPathsClosed (bool *didClose=nullptr) const |
| void | addCurvatureData () |
| QQuadPath | flattened () const |
| QQuadPath | dashed (qreal lineWidth, const QList< qreal > &dashPattern, qreal dashOffset=0) const |
| void | splitElementAt (int indexindex) |
| bool | contains (const QVector2D &point) const |
| bool | contains (const QVector2D &point, int fromIndex, int toIndex) const |
| Element::FillSide | fillSideOf (int elementIdx, float elementT) const |
| template<typename Func> | |
| void | iterateChildrenOf (Element &e, Func &&lambda) |
| template<typename Func> | |
| void | iterateChildrenOf (const Element &e, Func &&lambda) const |
| template<typename Func> | |
| void | iterateElements (Func &&lambda) |
| template<typename Func> | |
| void | iterateElements (Func &&lambda) const |
| bool | testHint (PathHint hint) const |
| void | setHint (PathHint hint, bool on=true) |
| PathHints | pathHints () const |
| void | setPathHints (PathHints newHints) |
Static Public Member Functions | |
| static QQuadPath | fromPainterPath (const QPainterPath &pathpath, PathHints hints={}) |
| static QVector2D | closestPointOnLine (const QVector2D &pp, const QVector2D &sp, const QVector2D &ep) |
| static bool | isPointOnLeft (const QVector2D &pp, const QVector2D &sp, const QVector2D &ep) |
| static bool | isPointOnLine (const QVector2D &pp, const QVector2D &sp, const QVector2D &ep) |
| static bool | isPointNearLine (const QVector2D &pp, const QVector2D &sp, const QVector2D &ep) |
Friends | |
| class | QSGCurveProcessor |
| Q_QUICK_EXPORT QDebug | operator<< (QDebug streamstream, const QQuadPath &pathpath) |
Definition at line 27 of file qquadpath_p.h.
| enum QQuadPath::PathHint : quint8 |
| Enumerator | |
|---|---|
| PathLinear | |
| PathQuadratic | |
| PathConvex | |
| PathFillOnRight | |
| PathSolid | |
| PathNonIntersecting | |
| PathNonOverlappingControlPointTriangles | |
Definition at line 31 of file qquadpath_p.h.
| void QQuadPath::addCurvatureData | ( | ) |
Definition at line 598 of file qquadpath.cpp.
| QString QQuadPath::asSvgString | ( | ) | const |
Definition at line 715 of file qquadpath.cpp.
|
static |
Definition at line 319 of file qquadpath.cpp.
| bool QQuadPath::contains | ( | const QVector2D & | point | ) | const |
Definition at line 327 of file qquadpath.cpp.
| bool QQuadPath::contains | ( | const QVector2D & | point, |
| int | fromIndex, | ||
| int | toIndex ) const |
Definition at line 332 of file qquadpath.cpp.
| QRectF QQuadPath::controlPointRect | ( | ) | const |
Definition at line 672 of file qquadpath.cpp.
| QQuadPath QQuadPath::dashed | ( | qreal | lineWidth, |
| const QList< qreal > & | dashPattern, | ||
| qreal | dashOffset = 0 ) const |
Definition at line 905 of file qquadpath.cpp.
|
inline |
Definition at line 211 of file qquadpath_p.h.
|
inline |
Definition at line 216 of file qquadpath_p.h.
|
inline |
Definition at line 232 of file qquadpath_p.h.
| int QQuadPath::elementCountRecursive | ( | ) | const |
Definition at line 691 of file qquadpath.cpp.
|
inline |
Definition at line 228 of file qquadpath_p.h.
| QQuadPath::Element::FillSide QQuadPath::fillSideOf | ( | int | elementIdx, |
| float | elementT ) const |
Definition at line 391 of file qquadpath.cpp.
| QQuadPath QQuadPath::flattened | ( | ) | const |
Definition at line 783 of file qquadpath.cpp.
|
static |
Definition at line 517 of file qquadpath.cpp.
|
inline |
Definition at line 221 of file qquadpath_p.h.
|
inline |
Definition at line 233 of file qquadpath_p.h.
|
static |
Definition at line 307 of file qquadpath.cpp.
|
static |
Definition at line 295 of file qquadpath.cpp.
|
static |
Definition at line 301 of file qquadpath.cpp.
|
inline |
Definition at line 268 of file qquadpath_p.h.
Definition at line 255 of file qquadpath_p.h.
|
inline |
Definition at line 281 of file qquadpath_p.h.
|
inline |
Definition at line 293 of file qquadpath_p.h.
|
inline |
Definition at line 235 of file qquadpath_p.h.
Definition at line 201 of file qquadpath_p.h.
Definition at line 195 of file qquadpath_p.h.
|
inline |
Definition at line 319 of file qquadpath_p.h.
Definition at line 206 of file qquadpath_p.h.
|
inline |
Definition at line 231 of file qquadpath_p.h.
|
inline |
Definition at line 229 of file qquadpath_p.h.
Definition at line 314 of file qquadpath_p.h.
|
inline |
Definition at line 324 of file qquadpath_p.h.
| void QQuadPath::splitElementAt | ( | int | index | ) |
Definition at line 962 of file qquadpath.cpp.
Definition at line 735 of file qquadpath.cpp.
|
inline |
Definition at line 309 of file qquadpath_p.h.
| QPainterPath QQuadPath::toPainterPath | ( | ) | const |
Definition at line 698 of file qquadpath.cpp.
Definition at line 1018 of file qquadpath.cpp.
|
friend |
Definition at line 345 of file qquadpath_p.h.