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
QGlyphLayout Struct Reference

#include <qtextengine_p.h>

+ Inheritance diagram for QGlyphLayout:
+ Collaboration diagram for QGlyphLayout:

Public Member Functions

 QGlyphLayout ()
 
 QGlyphLayout (char *address, int totalGlyphs)
 
QGlyphLayout mid (int position, int n=-1) const
 
QFixed effectiveAdvance (int item) const
 
void clear (int first=0, int last=-1)
 
char * data ()
 
void copy (QGlyphLayout *other)
 
void grow (char *address, int totalGlyphs)
 

Public Attributes

QFixedPointoffsets
 
glyph_tglyphs
 
QFixedadvances
 
QGlyphJustificationjustifications
 
QGlyphAttributesattributes
 
int numGlyphs
 

Static Public Attributes

static constexpr qsizetype SpaceNeeded
 

Detailed Description

Definition at line 160 of file qtextengine_p.h.

Constructor & Destructor Documentation

◆ QGlyphLayout() [1/2]

QGlyphLayout::QGlyphLayout ( )
inline

Definition at line 174 of file qtextengine_p.h.

Referenced by QVarLengthGlyphLayoutArray::resize().

+ Here is the caller graph for this function:

◆ QGlyphLayout() [2/2]

QGlyphLayout::QGlyphLayout ( char * address,
int totalGlyphs )
inlineexplicit

Definition at line 176 of file qtextengine_p.h.

References advances, attributes, glyphs, and justifications.

Member Function Documentation

◆ clear()

void QGlyphLayout::clear ( int first = 0,
int last = -1 )
inline

Definition at line 207 of file qtextengine_p.h.

References advances, attributes, glyphs, justifications, numGlyphs, and SpaceNeeded.

Referenced by QTextEngine::LayoutData::LayoutData().

+ Here is the caller graph for this function:

◆ copy()

void QGlyphLayout::copy ( QGlyphLayout * other)

Definition at line 2746 of file qtextengine.cpp.

References QTextEngine::attributes(), glyphs, and Q_ASSERT.

Referenced by mid(), and QFontEngineMulti::stringToCMap().

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

◆ data()

char * QGlyphLayout::data ( )
inline

Definition at line 223 of file qtextengine_p.h.

References offsets.

◆ effectiveAdvance()

QFixed QGlyphLayout::effectiveAdvance ( int item) const
inline

Definition at line 204 of file qtextengine_p.h.

References advances, attributes, QGlyphAttributes::dontPrint, QFixed::fromFixed(), item, and justifications.

Referenced by QFontEngine::boundingBox(), QFontEngineFT::boundingBox(), QWindowsFontEngineDirectWrite::boundingBox(), QTextLine::cursorToX(), QTextLineItemIterator::getSelectionBounds(), QTextLineItemIterator::next(), QTextEngine::positionInLigature(), QTextEngine::shapeLine(), QFontEngine::tightBoundingBox(), and QTextLine::xToCursor().

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

◆ grow()

void QGlyphLayout::grow ( char * address,
int totalGlyphs )

Definition at line 2762 of file qtextengine.cpp.

◆ mid()

QGlyphLayout QGlyphLayout::mid ( int position,
int n = -1 ) const
inline

Definition at line 190 of file qtextengine_p.h.

References copy(), glyphs, and position().

Referenced by QFontEngineMulti::addOutlineToPath(), applyVisibilityRules(), QTextEngine::availableGlyphs(), QFontEngineMulti::boundingBox(), QFontEngineMulti::doKerning(), QTextLine::glyphRuns(), QTextItemInt::midItem(), QFontEngineMulti::recalcAdvances(), QTextEngine::shapedGlyphs(), and QFontEngineMulti::stringToCMap().

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

Member Data Documentation

◆ advances

◆ attributes

◆ glyphs

◆ justifications

◆ numGlyphs

int QGlyphLayout::numGlyphs

Definition at line 172 of file qtextengine_p.h.

Referenced by _hb_qt_font_get_glyph_h_advance(), _hb_qt_font_get_glyph_h_kerning(), QFontEngine::addBitmapFontToPath(), QFontEngineFT::addOutlineToPath(), QFontEngineBox::addOutlineToPath(), QFontEngine::addOutlineToPath(), QFontEngineMulti::addOutlineToPath(), QRawFont::advancesForGlyphIndexes(), QFontEngine::boundingBox(), QFontEngineFT::boundingBox(), QFontEngineBox::boundingBox(), QFontEngineMulti::boundingBox(), QWindowsFontEngineDirectWrite::boundingBox(), QFontEngineMulti::canRender(), clear(), QFontEngine::doKerning(), QFontEngineMulti::doKerning(), draw_text_item_win(), QTextEngine::elidedText(), QFontEngine::firstLeftBearing(), QWindowsFontEngine::getGlyphIndexes(), QFontEngine::getGlyphPositions(), QRawFont::glyphIndexesForChars(), QRawFont::glyphIndexesForString(), QTextLine::glyphRuns(), QFontMetrics::horizontalAdvance(), QFontMetricsF::horizontalAdvance(), QFontEngine::lastRightBearing(), QCoreTextFontEngine::loadAdvancesForGlyphs(), QCoreTextFontEngine::recalcAdvances(), QFontEngineBox::recalcAdvances(), QFontEngineMulti::recalcAdvances(), QFontEngineFT::recalcAdvances(), QWindowsFontEngine::recalcAdvances(), QWindowsFontEngineDirectWrite::recalcAdvances(), set(), QCoreTextFontEngine::stringToCMap(), QFontEngineFT::stringToCMap(), QFontEngineBox::stringToCMap(), QFontEngineMulti::stringToCMap(), QWindowsFontEngine::stringToCMap(), QWindowsFontEngineDirectWrite::stringToCMap(), and QFontEngine::tightBoundingBox().

◆ offsets

◆ SpaceNeeded

constexpr qsizetype QGlyphLayout::SpaceNeeded
staticconstexpr

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