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

#include <qopengltextureglyphcache_p.h>

Inheritance diagram for QOpenGLTextureGlyphCache:
Collaboration diagram for QOpenGLTextureGlyphCache:

Public Types

enum  FilterMode { Nearest , Linear }

Public Member Functions

 QOpenGLTextureGlyphCache (QFontEngine::GlyphFormat glyphFormat, const QTransform &matrix, const QColor &color=QColor())
 ~QOpenGLTextureGlyphCache ()
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
virtual int glyphPadding () const override
virtual int maxTextureWidth () const override
virtual int maxTextureHeight () const override
GLuint texture () const
int width () const
int height () const
void setPaintEnginePrivate (QOpenGL2PaintEngineExPrivate *p)
const QOpenGLContextGroupcontextGroup () const
int serialNumber () const
FilterMode filterMode () const
void setFilterMode (FilterMode m)
void clear ()
QOpenGL2PaintEngineExPrivatepaintEnginePrivate () const
Public Member Functions inherited from QImageTextureGlyphCache
 QImageTextureGlyphCache (QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color=QColor())
 ~QImageTextureGlyphCache ()
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 void beginFillTexture ()
virtual void endFillTexture ()
void createCache (int width, int height)
void resizeCache (int width, int height)
bool isNull () 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 74 of file qopengltextureglyphcache_p.h.

Member Enumeration Documentation

◆ FilterMode

Enumerator
Nearest 
Linear 

Definition at line 112 of file qopengltextureglyphcache_p.h.

Constructor & Destructor Documentation

◆ QOpenGLTextureGlyphCache()

QOpenGLTextureGlyphCache::QOpenGLTextureGlyphCache ( QFontEngine::GlyphFormat glyphFormat,
const QTransform & matrix,
const QColor & color = QColor() )

Definition at line 20 of file qopengltextureglyphcache.cpp.

◆ ~QOpenGLTextureGlyphCache()

QOpenGLTextureGlyphCache::~QOpenGLTextureGlyphCache ( )

Definition at line 51 of file qopengltextureglyphcache.cpp.

Member Function Documentation

◆ clear()

void QOpenGLTextureGlyphCache::clear ( )

Definition at line 437 of file qopengltextureglyphcache.cpp.

◆ contextGroup()

const QOpenGLContextGroup * QOpenGLTextureGlyphCache::contextGroup ( ) const
inline

Definition at line 108 of file qopengltextureglyphcache_p.h.

◆ createTextureData()

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

Reimplemented from QImageTextureGlyphCache.

Definition at line 66 of file qopengltextureglyphcache.cpp.

◆ fillTexture()

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

Reimplemented from QImageTextureGlyphCache.

Definition at line 388 of file qopengltextureglyphcache.cpp.

◆ filterMode()

FilterMode QOpenGLTextureGlyphCache::filterMode ( ) const
inline

Definition at line 116 of file qopengltextureglyphcache_p.h.

◆ glyphPadding()

int QOpenGLTextureGlyphCache::glyphPadding ( ) const
overridevirtual

Reimplemented from QTextureGlyphCache.

Definition at line 408 of file qopengltextureglyphcache.cpp.

◆ height()

int QOpenGLTextureGlyphCache::height ( ) const
inline

Definition at line 100 of file qopengltextureglyphcache_p.h.

◆ maxTextureHeight()

int QOpenGLTextureGlyphCache::maxTextureHeight ( ) const
overridevirtual

Reimplemented from QTextureGlyphCache.

Definition at line 425 of file qopengltextureglyphcache.cpp.

◆ maxTextureWidth()

int QOpenGLTextureGlyphCache::maxTextureWidth ( ) const
overridevirtual

Reimplemented from QTextureGlyphCache.

Definition at line 416 of file qopengltextureglyphcache.cpp.

◆ paintEnginePrivate()

QOpenGL2PaintEngineExPrivate * QOpenGLTextureGlyphCache::paintEnginePrivate ( ) const
inline

Definition at line 121 of file qopengltextureglyphcache_p.h.

◆ resizeTextureData()

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

Reimplemented from QImageTextureGlyphCache.

Definition at line 240 of file qopengltextureglyphcache.cpp.

◆ serialNumber()

int QOpenGLTextureGlyphCache::serialNumber ( ) const
inline

Definition at line 110 of file qopengltextureglyphcache_p.h.

◆ setFilterMode()

void QOpenGLTextureGlyphCache::setFilterMode ( FilterMode m)
inline

Definition at line 117 of file qopengltextureglyphcache_p.h.

◆ setPaintEnginePrivate()

void QOpenGLTextureGlyphCache::setPaintEnginePrivate ( QOpenGL2PaintEngineExPrivate * p)
inline

Definition at line 106 of file qopengltextureglyphcache_p.h.

◆ texture()

GLuint QOpenGLTextureGlyphCache::texture ( ) const
inline

Definition at line 89 of file qopengltextureglyphcache_p.h.

◆ width()

int QOpenGLTextureGlyphCache::width ( ) const
inline

Definition at line 95 of file qopengltextureglyphcache_p.h.


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