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

#include <qtextureglyphcache_p.h>

+ Inheritance diagram for QImageTextureGlyphCache:
+ Collaboration diagram for QImageTextureGlyphCache:

Public Member Functions

 QImageTextureGlyphCache (QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color=QColor())
 
 ~QImageTextureGlyphCache ()
 
virtual void createTextureData (int width, int height) override
 
virtual void resizeTextureData (int width, int height) override
 
virtual void fillTexture (const Coord &c, glyph_t glyph, const QFixedPoint &subPixelPosition) override
 
const QImageimage () const
 
- Public Member Functions inherited from QTextureGlyphCache
 QTextureGlyphCache (QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color=QColor())
 
 ~QTextureGlyphCache ()
 
bool populate (QFontEngine *fontEngine, qsizetype numGlyphs, const glyph_t *glyphs, const QFixedPoint *positions, QPainter::RenderHints renderHints=QPainter::RenderHints(), bool includeGlyphCacheScale=false)
 
bool hasPendingGlyphs () const
 
void fillInPendingGlyphs ()
 
virtual int glyphPadding () const
 
virtual void beginFillTexture ()
 
virtual void endFillTexture ()
 
void createCache (int width, int height)
 
void resizeCache (int width, int height)
 
bool isNull () const
 
virtual int maxTextureWidth () const
 
virtual int maxTextureHeight () const
 
QImage textureMapForGlyph (glyph_t g, const QFixedPoint &subPixelPosition) const
 
- Public Member Functions inherited from QFontEngineGlyphCache
 QFontEngineGlyphCache (QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color=QColor())
 
virtual ~QFontEngineGlyphCache ()
 
QFontEngine::GlyphFormat glyphFormat () const
 
const QTransformtransform () const
 
const QColorcolor () const
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Additional Inherited Members

- Public Attributes inherited from QTextureGlyphCache
QHash< GlyphAndSubPixelPosition, Coordcoords
 
- Public Attributes inherited from QFontEngineGlyphCache
QFontEngine::GlyphFormat m_format
 
QTransform m_transform
 
QColor m_color
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 
- Protected Member Functions inherited from QTextureGlyphCache
int calculateSubPixelPositionCount (glyph_t) const
 
- Protected Attributes inherited from QTextureGlyphCache
QFontEnginem_current_fontengine
 
QHash< GlyphAndSubPixelPosition, Coordm_pendingGlyphs
 
int m_w
 
int m_h
 
int m_cx
 
int m_cy
 
int m_currentRowHeight
 

Detailed Description

Definition at line 139 of file qtextureglyphcache_p.h.

Constructor & Destructor Documentation

◆ QImageTextureGlyphCache()

QImageTextureGlyphCache::QImageTextureGlyphCache ( QFontEngine::GlyphFormat format,
const QTransform & matrix,
const QColor & color = QColor() )
inline

Definition at line 142 of file qtextureglyphcache_p.h.

◆ ~QImageTextureGlyphCache()

QImageTextureGlyphCache::~QImageTextureGlyphCache ( )

Definition at line 262 of file qtextureglyphcache.cpp.

Member Function Documentation

◆ createTextureData()

void QImageTextureGlyphCache::createTextureData ( int width,
int height )
overridevirtual

Implements QTextureGlyphCache.

Reimplemented in QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.

Definition at line 273 of file qtextureglyphcache.cpp.

References QImage::fill(), QFontEngine::Format_A32, QFontEngine::Format_A8, QImage::Format_Alpha8, QFontEngine::Format_ARGB, QImage::Format_ARGB32_Premultiplied, QImage::Format_Mono, QFontEngine::Format_Mono, QImage::Format_RGB32, and QFontEngineGlyphCache::m_format.

Referenced by QOpenGLTextureGlyphCache::createTextureData(), and QSGRhiTextureGlyphCache::createTextureData().

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

◆ fillTexture()

void QImageTextureGlyphCache::fillTexture ( const Coord & c,
glyph_t glyph,
const QFixedPoint & subPixelPosition )
overridevirtual

◆ image()

const QImage & QImageTextureGlyphCache::image ( ) const
inline

Definition at line 152 of file qtextureglyphcache_p.h.

Referenced by QOpenGLTextureGlyphCache::fillTexture(), QSGRhiTextureGlyphCache::fillTexture(), QOpenGLTextureGlyphCache::resizeTextureData(), QSGRhiTextureGlyphCache::resizeTextureData(), and QDirectFbTextureGlyphCache::sourceSurface().

+ Here is the caller graph for this function:

◆ resizeTextureData()

void QImageTextureGlyphCache::resizeTextureData ( int width,
int height )
overridevirtual

Implements QTextureGlyphCache.

Reimplemented in QOpenGLTextureGlyphCache, QDirectFbTextureGlyphCache, and QSGRhiTextureGlyphCache.

Definition at line 266 of file qtextureglyphcache.cpp.

References QImage::copy().

Referenced by QOpenGLTextureGlyphCache::resizeTextureData(), QDirectFbTextureGlyphCache::resizeTextureData(), and QSGRhiTextureGlyphCache::resizeTextureData().

+ 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: