![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtextureglyphcache_p.h>
Classes | |
| struct | GlyphAndSubPixelPosition |
| struct | Coord |
Public Member Functions | |
| QTextureGlyphCache (QFontEngine::GlyphFormat formatformat, const QTransform &matrixmatrix, const QColor &colorcolor=QColor()) | |
| ~QTextureGlyphCache () | |
| bool | populate (QFontEngine *fontEngine, qsizetype numGlyphsnumGlyphs, const glyph_t *glyphs, const QFixedPoint *positions, QPainter::RenderHints renderHints=QPainter::RenderHints(), bool includeGlyphCacheScale=false) |
| bool | hasPendingGlyphs () const |
| void | fillInPendingGlyphs () |
| virtual void | createTextureData (int widthwidth, int heightheight)=0 |
| virtual void | resizeTextureData (int widthwidth, int heightheight)=0 |
| virtual int | glyphPadding () const |
| virtual void | beginFillTexture () |
| virtual void | fillTexture (const Coord &coordcoord, glyph_t glyph, const QFixedPoint &subPixelPosition)=0 |
| virtual void | endFillTexture () |
| void | createCache (int widthwidth, int heightheight) |
| void | resizeCache (int widthwidth, int heightheight) |
| bool | isNull () const |
| virtual int | maxTextureWidth () const |
| virtual int | maxTextureHeight () const |
| QImage | textureMapForGlyph (glyph_t gg, const QFixedPoint &subPixelPosition) const |
| Public Member Functions inherited from QFontEngineGlyphCache | |
| QFontEngineGlyphCache (QFontEngine::GlyphFormat formatformat, const QTransform &matrixmatrix, const QColor &colorcolor=QColor()) | |
| virtual | ~QFontEngineGlyphCache () |
| QFontEngine::GlyphFormat | glyphFormat () const |
| const QTransform & | transform () const |
| const QColor & | color () 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. | |
| QSharedData & | operator= (const QSharedData &)=delete |
| ~QSharedData ()=default | |
Public Attributes | |
| QHash< GlyphAndSubPixelPosition, Coord > | coords |
| 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 | |
| int | calculateSubPixelPositionCount (glyph_t) const |
Protected Attributes | |
| QFontEngine * | m_current_fontengine |
| QHash< GlyphAndSubPixelPosition, Coord > | m_pendingGlyphs |
| int | m_w |
| int | m_h |
| int | m_cx |
| int | m_cy |
| int | m_currentRowHeight |
Definition at line 39 of file qtextureglyphcache_p.h.
|
inline |
Definition at line 42 of file qtextureglyphcache_p.h.
| QT_BEGIN_NAMESPACE QTextureGlyphCache::~QTextureGlyphCache | ( | ) |
Definition at line 18 of file qtextureglyphcache.cpp.
|
inlinevirtual |
Reimplemented in QSGRhiTextureGlyphCache.
Definition at line 91 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 22 of file qtextureglyphcache.cpp.
|
inline |
Definition at line 97 of file qtextureglyphcache_p.h.
|
pure virtual |
Implemented in QImageTextureGlyphCache, QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.
|
inlinevirtual |
Reimplemented in QSGRhiTextureGlyphCache.
Definition at line 95 of file qtextureglyphcache_p.h.
| void QTextureGlyphCache::fillInPendingGlyphs | ( | ) |
Definition at line 207 of file qtextureglyphcache.cpp.
|
pure virtual |
Implemented in QImageTextureGlyphCache, QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.
|
inlinevirtual |
Reimplemented in QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.
Definition at line 89 of file qtextureglyphcache_p.h.
|
inline |
Definition at line 84 of file qtextureglyphcache_p.h.
|
inline |
Definition at line 110 of file qtextureglyphcache_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.
Definition at line 114 of file qtextureglyphcache_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.
Definition at line 113 of file qtextureglyphcache_p.h.
| bool QTextureGlyphCache::populate | ( | QFontEngine * | fontEngine, |
| qsizetype | numGlyphs, | ||
| const glyph_t * | glyphs, | ||
| const QFixedPoint * | positions, | ||
| QPainter::RenderHints | renderHints = QPainter::RenderHints(), | ||
| bool | includeGlyphCacheScale = false ) |
Definition at line 60 of file qtextureglyphcache.cpp.
|
inline |
Definition at line 103 of file qtextureglyphcache_p.h.
|
pure virtual |
Implemented in QDirectFbTextureGlyphCache, QImageTextureGlyphCache, QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.
| QImage QTextureGlyphCache::textureMapForGlyph | ( | glyph_t | g, |
| const QFixedPoint & | subPixelPosition ) const |
Definition at line 247 of file qtextureglyphcache.cpp.
| QHash<GlyphAndSubPixelPosition, Coord> QTextureGlyphCache::coords |
Definition at line 112 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 121 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 128 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 126 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 127 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 125 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 122 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 124 of file qtextureglyphcache_p.h.