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
QSGDistanceFieldGlyphCache Class Referenceabstract

#include <qsgadaptationlayer_p.h>

Inheritance diagram for QSGDistanceFieldGlyphCache:
Collaboration diagram for QSGDistanceFieldGlyphCache:

Classes

struct  GlyphData
struct  GlyphPosition
struct  Metrics
struct  TexCoord
struct  Texture

Public Member Functions

 QSGDistanceFieldGlyphCache (const QRawFont &font, int renderTypeQuality)
virtual ~QSGDistanceFieldGlyphCache ()
const QRawFontreferenceFont () const
qreal fontScale (qreal pixelSize) const
qreal distanceFieldRadius () const
int glyphCount () const
bool doubleGlyphResolution () const
int renderTypeQuality () const
Metrics glyphMetrics (glyph_t glyph, qreal pixelSize)
TexCoord glyphTexCoord (glyph_t glyph)
const TextureglyphTexture (glyph_t glyph)
void populate (const QVector< glyph_t > &glyphs)
void release (const QVector< glyph_t > &glyphs)
void update ()
void registerGlyphNode (QSGDistanceFieldGlyphConsumer *node)
void unregisterGlyphNode (QSGDistanceFieldGlyphConsumer *node)
virtual void processPendingGlyphs ()
virtual bool eightBitFormatIsAlphaSwizzled () const =0
virtual bool screenSpaceDerivativesSupported () const =0
virtual bool isActive () const

Protected Member Functions

virtual void requestGlyphs (const QSet< glyph_t > &glyphs)=0
virtual void storeGlyphs (const QList< QDistanceField > &glyphs)=0
virtual void referenceGlyphs (const QSet< glyph_t > &glyphs)=0
virtual void releaseGlyphs (const QSet< glyph_t > &glyphs)=0
void setGlyphsPosition (const QList< GlyphPosition > &glyphs)
void setGlyphsTexture (const QVector< glyph_t > &glyphs, const Texture &tex)
void markGlyphsToRender (const QVector< glyph_t > &glyphs)
void removeGlyph (glyph_t glyph)
void updateRhiTexture (QRhiTexture *oldTex, QRhiTexture *newTex, const QSize &newTexSize)
bool containsGlyph (glyph_t glyph)
GlyphDataglyphData (glyph_t glyph)
GlyphDataemptyData (glyph_t glyph)
int baseFontSize () const

Protected Attributes

bool m_doubleGlyphResolution
int m_renderTypeQuality
QRawFont m_referenceFont

Detailed Description

Definition at line 410 of file qsgadaptationlayer_p.h.

Constructor & Destructor Documentation

◆ QSGDistanceFieldGlyphCache()

QSGDistanceFieldGlyphCache::QSGDistanceFieldGlyphCache ( const QRawFont & font,
int renderTypeQuality )

Definition at line 32 of file qsgadaptationlayer.cpp.

◆ ~QSGDistanceFieldGlyphCache()

QSGDistanceFieldGlyphCache::~QSGDistanceFieldGlyphCache ( )
virtual

Definition at line 50 of file qsgadaptationlayer.cpp.

Member Function Documentation

◆ baseFontSize()

int QSGDistanceFieldGlyphCache::baseFontSize ( ) const
protected

Definition at line 54 of file qsgadaptationlayer.cpp.

◆ containsGlyph()

bool QSGDistanceFieldGlyphCache::containsGlyph ( glyph_t glyph)
inlineprotected

Definition at line 554 of file qsgadaptationlayer_p.h.

◆ distanceFieldRadius()

qreal QSGDistanceFieldGlyphCache::distanceFieldRadius ( ) const
inline

Definition at line 455 of file qsgadaptationlayer_p.h.

◆ doubleGlyphResolution()

bool QSGDistanceFieldGlyphCache::doubleGlyphResolution ( ) const
inline

Definition at line 460 of file qsgadaptationlayer_p.h.

◆ eightBitFormatIsAlphaSwizzled()

virtual bool QSGDistanceFieldGlyphCache::eightBitFormatIsAlphaSwizzled ( ) const
pure virtual

◆ emptyData()

QSGDistanceFieldGlyphCache::GlyphData & QSGDistanceFieldGlyphCache::emptyData ( glyph_t glyph)
protected

Definition at line 59 of file qsgadaptationlayer.cpp.

◆ fontScale()

qreal QSGDistanceFieldGlyphCache::fontScale ( qreal pixelSize) const
inline

Definition at line 451 of file qsgadaptationlayer_p.h.

◆ glyphCount()

int QSGDistanceFieldGlyphCache::glyphCount ( ) const
inline

Definition at line 459 of file qsgadaptationlayer_p.h.

◆ glyphData()

QSGDistanceFieldGlyphCache::GlyphData & QSGDistanceFieldGlyphCache::glyphData ( glyph_t glyph)
protected

Definition at line 67 of file qsgadaptationlayer.cpp.

◆ glyphMetrics()

QSGDistanceFieldGlyphCache::Metrics QSGDistanceFieldGlyphCache::glyphMetrics ( glyph_t glyph,
qreal pixelSize )

Definition at line 83 of file qsgadaptationlayer.cpp.

◆ glyphTexCoord()

QSGDistanceFieldGlyphCache::TexCoord QSGDistanceFieldGlyphCache::glyphTexCoord ( glyph_t glyph)
inline

Definition at line 537 of file qsgadaptationlayer_p.h.

◆ glyphTexture()

const QSGDistanceFieldGlyphCache::Texture * QSGDistanceFieldGlyphCache::glyphTexture ( glyph_t glyph)
inline

Definition at line 542 of file qsgadaptationlayer_p.h.

◆ isActive()

bool QSGDistanceFieldGlyphCache::isActive ( ) const
virtual

Reimplemented in QSGRhiDistanceFieldGlyphCache.

Definition at line 144 of file qsgadaptationlayer.cpp.

◆ markGlyphsToRender()

void QSGDistanceFieldGlyphCache::markGlyphsToRender ( const QVector< glyph_t > & glyphs)
protected

Definition at line 275 of file qsgadaptationlayer.cpp.

◆ populate()

void QSGDistanceFieldGlyphCache::populate ( const QVector< glyph_t > & glyphs)

Definition at line 97 of file qsgadaptationlayer.cpp.

◆ processPendingGlyphs()

void QSGDistanceFieldGlyphCache::processPendingGlyphs ( )
virtual

Definition at line 241 of file qsgadaptationlayer.cpp.

◆ referenceFont()

const QRawFont & QSGDistanceFieldGlyphCache::referenceFont ( ) const
inline

Definition at line 449 of file qsgadaptationlayer_p.h.

◆ referenceGlyphs()

virtual void QSGDistanceFieldGlyphCache::referenceGlyphs ( const QSet< glyph_t > & glyphs)
protectedpure virtual

◆ registerGlyphNode()

void QSGDistanceFieldGlyphCache::registerGlyphNode ( QSGDistanceFieldGlyphConsumer * node)
inline

Definition at line 472 of file qsgadaptationlayer_p.h.

◆ release()

void QSGDistanceFieldGlyphCache::release ( const QVector< glyph_t > & glyphs)

Definition at line 131 of file qsgadaptationlayer.cpp.

◆ releaseGlyphs()

virtual void QSGDistanceFieldGlyphCache::releaseGlyphs ( const QSet< glyph_t > & glyphs)
protectedpure virtual

◆ removeGlyph()

void QSGDistanceFieldGlyphCache::removeGlyph ( glyph_t glyph)
inlineprotected

Definition at line 547 of file qsgadaptationlayer_p.h.

◆ renderTypeQuality()

int QSGDistanceFieldGlyphCache::renderTypeQuality ( ) const
inline

Definition at line 461 of file qsgadaptationlayer_p.h.

◆ requestGlyphs()

virtual void QSGDistanceFieldGlyphCache::requestGlyphs ( const QSet< glyph_t > & glyphs)
protectedpure virtual

◆ screenSpaceDerivativesSupported()

virtual bool QSGDistanceFieldGlyphCache::screenSpaceDerivativesSupported ( ) const
pure virtual

◆ setGlyphsPosition()

void QSGDistanceFieldGlyphCache::setGlyphsPosition ( const QList< GlyphPosition > & glyphs)
protected

Definition at line 214 of file qsgadaptationlayer.cpp.

◆ setGlyphsTexture()

void QSGDistanceFieldGlyphCache::setGlyphsTexture ( const QVector< glyph_t > & glyphs,
const Texture & tex )
protected

Definition at line 246 of file qsgadaptationlayer.cpp.

◆ storeGlyphs()

virtual void QSGDistanceFieldGlyphCache::storeGlyphs ( const QList< QDistanceField > & glyphs)
protectedpure virtual

◆ unregisterGlyphNode()

void QSGDistanceFieldGlyphCache::unregisterGlyphNode ( QSGDistanceFieldGlyphConsumer * node)
inline

Definition at line 473 of file qsgadaptationlayer_p.h.

◆ update()

void QSGDistanceFieldGlyphCache::update ( )

Definition at line 149 of file qsgadaptationlayer.cpp.

◆ updateRhiTexture()

void QSGDistanceFieldGlyphCache::updateRhiTexture ( QRhiTexture * oldTex,
QRhiTexture * newTex,
const QSize & newTexSize )
protected

Definition at line 282 of file qsgadaptationlayer.cpp.

Member Data Documentation

◆ m_doubleGlyphResolution

bool QSGDistanceFieldGlyphCache::m_doubleGlyphResolution
protected

Definition at line 520 of file qsgadaptationlayer_p.h.

◆ m_referenceFont

QRawFont QSGDistanceFieldGlyphCache::m_referenceFont
protected

Definition at line 524 of file qsgadaptationlayer_p.h.

◆ m_renderTypeQuality

int QSGDistanceFieldGlyphCache::m_renderTypeQuality
protected

Definition at line 521 of file qsgadaptationlayer_p.h.


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