Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QGuiSvg Namespace Reference

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< qrealparseAngle (QStringView str)
void parseNumbersArray (QStringView *str, QVarLengthArray< qreal, 8 > &points, const char *pattern)
std::optional< QPainterPathparsePath (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)

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ convertToPixels()

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.

◆ isDigit()

bool QGuiSvg::isDigit ( ushort ch)

Definition at line 53 of file qguisvg.cpp.

Referenced by parseNumbersArray().

Here is the caller graph for this function:

◆ parseAngle()

std::optional< qreal > QGuiSvg::parseAngle ( QStringView str)

Definition at line 222 of file qguisvg.cpp.

◆ parseLength()

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.

◆ parseNumbersArray()

void QGuiSvg::parseNumbersArray ( QStringView * str,
QVarLengthArray< qreal, 8 > & points,
const char * pattern = nullptr )

Definition at line 256 of file qguisvg.cpp.

References isDigit().

Here is the call graph for this function:

◆ parsePath()

std::optional< QPainterPath > QGuiSvg::parsePath ( QStringView dataStr,
bool limitLength = true )

Definition at line 286 of file qguisvg.cpp.

◆ pathArc()

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.

◆ toDouble() [1/2]

qreal QGuiSvg::toDouble ( QStringView * str)

Definition at line 59 of file qguisvg.cpp.

◆ toDouble() [2/2]

qreal QGuiSvg::toDouble ( QStringView str,
bool * ok = NULL )

Definition at line 140 of file qguisvg.cpp.