![]() |
Qt 6.x
The Qt SDK
|
#include <qtextureglyphcache_p.h>
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 QImage & | image () const |
![]() | |
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 void | createTextureData (int width, int height)=0 |
virtual void | resizeTextureData (int width, int height)=0 |
virtual int | glyphPadding () const |
virtual void | beginFillTexture () |
virtual void | fillTexture (const Coord &coord, glyph_t glyph, const QFixedPoint &subPixelPosition)=0 |
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 |
![]() | |
QFontEngineGlyphCache (QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color=QColor()) | |
virtual | ~QFontEngineGlyphCache () |
QFontEngine::GlyphFormat | glyphFormat () const |
const QTransform & | transform () const |
const QColor & | color () const |
![]() | |
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 | |
Additional Inherited Members | |
![]() | |
QHash< GlyphAndSubPixelPosition, Coord > | coords |
![]() | |
QFontEngine::GlyphFormat | m_format |
QTransform | m_transform |
QColor | m_color |
![]() | |
QAtomicInt | ref |
![]() | |
int | calculateSubPixelPositionCount (glyph_t) const |
![]() | |
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 139 of file qtextureglyphcache_p.h.
|
inline |
Definition at line 142 of file qtextureglyphcache_p.h.
QImageTextureGlyphCache::~QImageTextureGlyphCache | ( | ) |
Definition at line 262 of file qtextureglyphcache.cpp.
|
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().
|
overridevirtual |
Implements QTextureGlyphCache.
Reimplemented in QOpenGLTextureGlyphCache, and QSGRhiTextureGlyphCache.
Definition at line 299 of file qtextureglyphcache.cpp.
References arg, base, QImage::bits(), QImage::bytesPerLine(), QPainter::CompositionMode_Source, QRect::contains(), d, QImage::format(), QFontEngine::Format_A32, QImage::Format_Alpha8, QFontEngine::Format_ARGB, QImage::Format_Grayscale8, QImage::Format_Mono, QFontEngine::Format_Mono, QString::fromLatin1(), QFontEngine::glyphMargin(), QImage::height(), QTextureGlyphCache::m_current_fontengine, QFontEngineGlyphCache::m_format, Q_ASSERT, qMin(), QImage::rect(), QSharedData::ref, QImage::save(), QImage::setPixel(), QTextureGlyphCache::textureMapForGlyph(), Qt::ThresholdDither, and QImage::width().
Referenced by QOpenGLTextureGlyphCache::fillTexture(), and QSGRhiTextureGlyphCache::fillTexture().
|
inline |
Definition at line 152 of file qtextureglyphcache_p.h.
Referenced by QOpenGLTextureGlyphCache::fillTexture(), QSGRhiTextureGlyphCache::fillTexture(), QOpenGLTextureGlyphCache::resizeTextureData(), QSGRhiTextureGlyphCache::resizeTextureData(), and QDirectFbTextureGlyphCache::sourceSurface().
|
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().