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
QSGCurveGlyphAtlas Class Reference

#include <qsgcurveglyphatlas_p.h>

+ Collaboration diagram for QSGCurveGlyphAtlas:

Public Member Functions

 QSGCurveGlyphAtlas (const QRawFont &font)
 
virtual ~QSGCurveGlyphAtlas ()
 
void populate (const QList< glyph_t > &glyphs)
 
void addGlyph (QSGCurveFillNode *node, glyph_t glyph, const QPointF &position, qreal pixelSize) const
 
void addStroke (QSGCurveStrokeNode *node, glyph_t glyph, const QPointF &position) const
 
qreal fontSize () const
 

Detailed Description

Definition at line 27 of file qsgcurveglyphatlas_p.h.

Constructor & Destructor Documentation

◆ QSGCurveGlyphAtlas()

QT_BEGIN_NAMESPACE QSGCurveGlyphAtlas::QSGCurveGlyphAtlas ( const QRawFont & font)

Definition at line 15 of file qsgcurveglyphatlas.cpp.

References qEnvironmentVariableIntValue(), and QRawFont::setPixelSize().

+ Here is the call graph for this function:

◆ ~QSGCurveGlyphAtlas()

QSGCurveGlyphAtlas::~QSGCurveGlyphAtlas ( )
virtual

Definition at line 27 of file qsgcurveglyphatlas.cpp.

Member Function Documentation

◆ addGlyph()

void QSGCurveGlyphAtlas::addGlyph ( QSGCurveFillNode * node,
glyph_t glyph,
const QPointF & position,
qreal pixelSize ) const

Definition at line 118 of file qsgcurveglyphatlas.cpp.

References QSGCurveFillNode::appendTriangle(), QList< T >::at(), i, QRawFont::pixelSize(), position(), and QList< T >::size().

Referenced by QSGCurveGlyphNode::updateGeometry().

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

◆ addStroke()

void QSGCurveGlyphAtlas::addStroke ( QSGCurveStrokeNode * node,
glyph_t glyph,
const QPointF & position ) const

Definition at line 94 of file qsgcurveglyphatlas.cpp.

References QSGCurveStrokeNode::appendTriangle(), QList< T >::at(), i, position(), QList< T >::size(), and v1.

Referenced by QSGCurveGlyphNode::updateGeometry().

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

◆ fontSize()

qreal QSGCurveGlyphAtlas::fontSize ( ) const
inline

Definition at line 42 of file qsgcurveglyphatlas_p.h.

Referenced by QSGCurveGlyphNode::updateGeometry().

+ Here is the caller graph for this function:

◆ populate()

void QSGCurveGlyphAtlas::populate ( const QList< glyph_t > & glyphs)

Definition at line 31 of file qsgcurveglyphatlas.cpp.

References QList< T >::append(), QHash< Key, T >::contains(), Qt::FlatCap, QQuadPath::fromPainterPath(), QHash< Key, T >::insert(), isLine(), Qt::MiterJoin, QRawFont::pathForGlyph(), QSGCurveProcessor::processFill(), QSGCurveProcessor::processStroke(), QSGCurveProcessor::solveOverlaps(), and Qt::WindingFill.

Referenced by QSGCurveGlyphNode::updateGeometry().

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

The documentation for this class was generated from the following files: