![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Enumerations | |
| enum | LengthType { LT_PERCENT , LT_PX , LT_PC , LT_PT , LT_MM , LT_CM , LT_IN , LT_OTHER } |
Functions | |
| bool | isDigit (ushort ch) |
| qreal | toDouble (QStringView *str) |
| qreal | toDouble (QStringView str, bool *ok) |
| qreal | parseLength (QStringView str, LengthType *type, bool *ok) |
| qreal | convertToPixels (qreal len, bool, LengthType type) |
| std::optional< qreal > | parseAngle (QStringView str) |
| void | parseNumbersArray (QStringView *str, QVarLengthArray< qreal, 8 > &points, const char *pattern) |
| std::optional< QPainterPath > | parsePath (QStringView dataStr, bool limitLength) |
| void | pathArc (QPainterPath &path, qreal rx, qreal ry, qreal x_axis_rotation, int large_arc_flag, int sweep_flag, qreal x, qreal y, qreal curx, qreal cury) |
| enum QGuiSvg::LengthType |
| Enumerator | |
|---|---|
| LT_PERCENT | |
| LT_PX | |
| LT_PC | |
| LT_PT | |
| LT_MM | |
| LT_CM | |
| LT_IN | |
| LT_OTHER | |
Definition at line 29 of file qguisvg_p.h.
| qreal QGuiSvg::convertToPixels | ( | qreal | len, |
| bool | , | ||
| LengthType | type ) |
Definition at line 189 of file qguisvg.cpp.
References LT_CM, LT_IN, LT_MM, LT_OTHER, LT_PC, LT_PERCENT, LT_PT, and LT_PX.
| bool QGuiSvg::isDigit | ( | ushort | ch | ) |
Definition at line 53 of file qguisvg.cpp.
Referenced by parseNumbersArray().
| std::optional< qreal > QGuiSvg::parseAngle | ( | QStringView | str | ) |
Definition at line 222 of file qguisvg.cpp.
| qreal QGuiSvg::parseLength | ( | QStringView | str, |
| LengthType * | type, | ||
| bool * | ok = NULL ) |
Definition at line 148 of file qguisvg.cpp.
References LT_CM, LT_IN, LT_MM, LT_OTHER, LT_PC, LT_PERCENT, LT_PT, and LT_PX.
| void QGuiSvg::parseNumbersArray | ( | QStringView * | str, |
| QVarLengthArray< qreal, 8 > & | points, | ||
| const char * | pattern = nullptr ) |
Definition at line 256 of file qguisvg.cpp.
References isDigit().
| std::optional< QPainterPath > QGuiSvg::parsePath | ( | QStringView | dataStr, |
| bool | limitLength = true ) |
Definition at line 286 of file qguisvg.cpp.
| void QGuiSvg::pathArc | ( | QPainterPath & | path, |
| qreal | rx, | ||
| qreal | ry, | ||
| qreal | x_axis_rotation, | ||
| int | large_arc_flag, | ||
| int | sweep_flag, | ||
| qreal | x, | ||
| qreal | y, | ||
| qreal | curx, | ||
| qreal | cury ) |
Definition at line 623 of file qguisvg.cpp.
| qreal QGuiSvg::toDouble | ( | QStringView * | str | ) |
Definition at line 59 of file qguisvg.cpp.
| qreal QGuiSvg::toDouble | ( | QStringView | str, |
| bool * | ok = NULL ) |
Definition at line 140 of file qguisvg.cpp.