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
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.

◆ fillTexture()

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

Implements QTextureGlyphCache.

Reimplemented in QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.

Definition at line 299 of file qtextureglyphcache.cpp.

◆ image()

const QImage & QImageTextureGlyphCache::image ( ) const
inline

Definition at line 152 of file qtextureglyphcache_p.h.

◆ resizeTextureData()

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

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