Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickVectorImageGenerator::Utils Namespace Reference

Classes

class  ViewBoxItem
 

Functions

QPainterPath polygonToPath (const QPolygonF &poly, bool closed)
 
QString pathHintString (const QQuadPath &qp)
 
QRectF mapToQtLogicalMode (const QRectF &objModeRect, const QRectF &boundingRect)
 
QString toSvgString (const QPainterPath &path)
 
QString toSvgString (const QQuadPath &path)
 
QString strokeCapStyleString (Qt::PenCapStyle strokeCapStyle)
 
QString strokeJoinStyleString (Qt::PenJoinStyle strokeJoinStyle)
 
template<typename T >
QString listString (QList< T > list)
 

Function Documentation

◆ listString()

template<typename T >
QString QQuickVectorImageGenerator::Utils::listString ( QList< T > list)
inline

Definition at line 240 of file utils_p.h.

References i, QList< T >::isEmpty(), QList< T >::last(), QList< T >::length(), list, listString(), and QStringLiteral.

Referenced by listString(), and QQuickQmlGenerator::outputShapePath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mapToQtLogicalMode()

QRectF QQuickVectorImageGenerator::Utils::mapToQtLogicalMode ( const QRectF & objModeRect,
const QRectF & boundingRect )
inline

Definition at line 120 of file utils_p.h.

References boundingRect().

+ Here is the call graph for this function:

◆ pathHintString()

QString QQuickVectorImageGenerator::Utils::pathHintString ( const QQuadPath & qp)
inline

Definition at line 84 of file utils_p.h.

References CHECK_PATH_HINT, and str.

Referenced by QQuickQmlGenerator::outputShapePath().

+ Here is the caller graph for this function:

◆ polygonToPath()

QPainterPath QQuickVectorImageGenerator::Utils::polygonToPath ( const QPolygonF & poly,
bool closed )
inline

Definition at line 66 of file utils_p.h.

Referenced by QSvgVisitorImpl::visitPolygonNode(), and QSvgVisitorImpl::visitPolylineNode().

+ Here is the caller graph for this function:

◆ strokeCapStyleString()

QString QQuickVectorImageGenerator::Utils::strokeCapStyleString ( Qt::PenCapStyle strokeCapStyle)
inline

Definition at line 196 of file utils_p.h.

References Qt::FlatCap, QStringLiteral, Qt::RoundCap, and Qt::SquareCap.

Referenced by QQuickQmlGenerator::outputShapePath().

+ Here is the caller graph for this function:

◆ strokeJoinStyleString()

QString QQuickVectorImageGenerator::Utils::strokeJoinStyleString ( Qt::PenJoinStyle strokeJoinStyle)
inline

Definition at line 217 of file utils_p.h.

References Qt::BevelJoin, Qt::MiterJoin, QStringLiteral, and Qt::RoundJoin.

Referenced by QQuickQmlGenerator::outputShapePath().

+ Here is the caller graph for this function:

◆ toSvgString() [1/2]

QString QQuickVectorImageGenerator::Utils::toSvgString ( const QPainterPath & path)
inline

Definition at line 145 of file utils_p.h.

References c2, i, QPainterPath::Element::isCurveTo(), QPainterPath::Element::isLineTo(), QPainterPath::Element::isMoveTo(), QPointF::x(), QPainterPath::Element::x, QPointF::y(), and QPainterPath::Element::y.

Referenced by QQuickItemGenerator::outputShapePath(), and QQuickQmlGenerator::outputShapePath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toSvgString() [2/2]

QString QQuickVectorImageGenerator::Utils::toSvgString ( const QQuadPath & path)
inline

Definition at line 179 of file utils_p.h.

References QQuadPath::Element::controlPoint(), QQuadPath::Element::endPoint(), QQuadPath::Element::isLine(), QQuadPath::Element::isSubpathStart(), QQuadPath::Element::startPoint(), QVector2D::x(), and QVector2D::y().

+ Here is the call graph for this function: