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
qsgrhiinternaltextnode.cpp File Reference

(e44e7f61c843d4fb90a74974e08c6fafa01e7053)

#include "qsgrhiinternaltextnode_p.h"
#include <private/qquadpath_p.h>
#include <private/qsgcurvefillnode_p.h>
#include <private/qsgcurvestrokenode_p.h>
#include <private/qsgcurveprocessor_p.h>
#include <QtCore/qmath.h>
Include dependency graph for qsgrhiinternaltextnode.cpp:

Go to the source code of this file.

Functions

static QSpan< const qrealdashPatternForStyle (QTextCharFormat::UnderlineStyle style)
static QQuadPath buildDashedPath (qreal x0, qreal x1, qreal cy, QSpan< const qreal > pattern, qreal penWidth)
static QQuadPath buildWavyPath (qreal x0, qreal x1, qreal cy, qreal penWidth)
static void strokePathToNode (QSGNode *parent, const QQuadPath &path, const QColor &color, qreal penWidth)

Variables

static constexpr qreal dashPattern [] = { 4, 2 }
static constexpr qreal dotPattern [] = { 1, 2 }
static constexpr qreal dashDotPattern [] = { 4, 2, 1, 2 }
static constexpr qreal dashDotDotPattern [] = { 4, 2, 1, 2, 1, 2 }
static constexpr qreal goldenRatio = 1.6180339887498949

Function Documentation

◆ buildDashedPath()

QQuadPath buildDashedPath ( qreal x0,
qreal x1,
qreal cy,
QSpan< const qreal > pattern,
qreal penWidth )
static

Definition at line 45 of file qsgrhiinternaltextnode.cpp.

◆ buildWavyPath()

QQuadPath buildWavyPath ( qreal x0,
qreal x1,
qreal cy,
qreal penWidth )
static

Definition at line 78 of file qsgrhiinternaltextnode.cpp.

◆ dashPatternForStyle()

QSpan< const qreal > dashPatternForStyle ( QTextCharFormat::UnderlineStyle style)
static

Definition at line 28 of file qsgrhiinternaltextnode.cpp.

◆ strokePathToNode()

void strokePathToNode ( QSGNode * parent,
const QQuadPath & path,
const QColor & color,
qreal penWidth )
static

Definition at line 105 of file qsgrhiinternaltextnode.cpp.

Variable Documentation

◆ dashDotDotPattern

constexpr qreal dashDotDotPattern = { 4, 2, 1, 2, 1, 2 }
staticconstexpr

Definition at line 25 of file qsgrhiinternaltextnode.cpp.

◆ dashDotPattern

constexpr qreal dashDotPattern = { 4, 2, 1, 2 }
staticconstexpr

Definition at line 24 of file qsgrhiinternaltextnode.cpp.

◆ dashPattern

constexpr qreal dashPattern = { 4, 2 }
staticconstexpr

Definition at line 22 of file qsgrhiinternaltextnode.cpp.

◆ dotPattern

constexpr qreal dotPattern = { 1, 2 }
staticconstexpr

Definition at line 23 of file qsgrhiinternaltextnode.cpp.

◆ goldenRatio

constexpr qreal goldenRatio = 1.6180339887498949
staticconstexpr

Definition at line 74 of file qsgrhiinternaltextnode.cpp.