Qt 4.8
|
#include <qtextureglyphcache_p.h>
Classes | |
struct | Coord |
struct | GlyphAndSubPixelPosition |
Public Functions | |
void | createCache (int width, int height) |
virtual void | createTextureData (int width, int height)=0 |
void | fillInPendingGlyphs () |
virtual void | fillTexture (const Coord &coord, glyph_t glyph, QFixed subPixelPosition)=0 |
virtual int | glyphMargin () const |
virtual int | glyphPadding () const |
bool | isNull () const |
virtual int | maxTextureHeight () const |
virtual int | maxTextureWidth () const |
bool | populate (QFontEngine *fontEngine, int numGlyphs, const glyph_t *glyphs, const QFixedPoint *positions) |
QTextureGlyphCache (QFontEngineGlyphCache::Type type, const QTransform &matrix) | |
void | resizeCache (int width, int height) |
virtual void | resizeTextureData (int width, int height)=0 |
QFixed | subPixelPositionForX (QFixed x) const |
QImage | textureMapForGlyph (glyph_t g, QFixed subPixelPosition) const |
virtual | ~QTextureGlyphCache () |
Public Functions inherited from QFontEngineGlyphCache | |
Type | cacheType () const |
QFontEngineGlyphCache (const QTransform &matrix, Type type) | |
virtual | ~QFontEngineGlyphCache () |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Public Variables | |
QHash< GlyphAndSubPixelPosition, Coord > | coords |
Public Variables inherited from QFontEngineGlyphCache | |
QTransform | m_transform |
QFontEngineGlyphCache::Type | m_type |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Protected Functions | |
int | calculateSubPixelPositionCount (glyph_t) const |
Protected Variables | |
QFontEngine * | m_current_fontengine |
int | m_currentRowHeight |
int | m_cx |
int | m_cy |
int | m_h |
QHash< GlyphAndSubPixelPosition, Coord > | m_pendingGlyphs |
int | m_subPixelPositionCount |
int | m_w |
Additional Inherited Members | |
Public Types inherited from QFontEngineGlyphCache | |
enum | Type { Raster_RGBMask, Raster_A8, Raster_Mono } |
Definition at line 79 of file qtextureglyphcache_p.h.
|
inline |
Definition at line 82 of file qtextureglyphcache_p.h.
|
inlinevirtual |
Definition at line 87 of file qtextureglyphcache_p.h.
|
protected |
Definition at line 68 of file qtextureglyphcache.cpp.
Referenced by populate().
|
inline |
Definition at line 128 of file qtextureglyphcache_p.h.
Referenced by fillInPendingGlyphs().
|
pure virtual |
Implemented in QImageTextureGlyphCache, and QGLTextureGlyphCache.
void QTextureGlyphCache::fillInPendingGlyphs | ( | ) |
Definition at line 259 of file qtextureglyphcache.cpp.
Referenced by QGL2PaintEngineExPrivate::drawCachedGlyphs(), and QRasterPaintEngine::drawCachedGlyphs().
|
pure virtual |
Implemented in QImageTextureGlyphCache, and QGLTextureGlyphCache.
Referenced by fillInPendingGlyphs().
|
inlinevirtual |
Reimplemented in QImageTextureGlyphCache.
Definition at line 123 of file qtextureglyphcache_p.h.
Referenced by QImageTextureGlyphCache::fillTexture(), populate(), and textureMapForGlyph().
|
inlinevirtual |
Reimplemented in QGLTextureGlyphCache.
Definition at line 124 of file qtextureglyphcache_p.h.
Referenced by populate().
|
inline |
Definition at line 141 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::createTextureData(), and fillInPendingGlyphs().
|
inlinevirtual |
Reimplemented in QGLTextureGlyphCache.
Definition at line 145 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::maxTextureHeight(), and populate().
|
inlinevirtual |
Reimplemented in QGLTextureGlyphCache.
Definition at line 144 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::maxTextureWidth(), and populate().
bool QTextureGlyphCache::populate | ( | QFontEngine * | fontEngine, |
int | numGlyphs, | ||
const glyph_t * | glyphs, | ||
const QFixedPoint * | positions | ||
) |
Definition at line 120 of file qtextureglyphcache.cpp.
Referenced by QGL2PaintEngineExPrivate::drawCachedGlyphs(), and QRasterPaintEngine::drawCachedGlyphs().
|
inline |
Definition at line 134 of file qtextureglyphcache_p.h.
Referenced by fillInPendingGlyphs().
|
pure virtual |
Implemented in QImageTextureGlyphCache, and QGLTextureGlyphCache.
Definition at line 103 of file qtextureglyphcache.cpp.
Referenced by QGL2PaintEngineExPrivate::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), and populate().
Definition at line 296 of file qtextureglyphcache.cpp.
Referenced by calculateSubPixelPositionCount(), QGLTextureGlyphCache::fillTexture(), and QImageTextureGlyphCache::fillTexture().
QHash<GlyphAndSubPixelPosition, Coord> QTextureGlyphCache::coords |
Definition at line 143 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::clear(), QGL2PaintEngineExPrivate::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), and populate().
|
protected |
Definition at line 154 of file qtextureglyphcache_p.h.
Referenced by calculateSubPixelPositionCount(), populate(), and textureMapForGlyph().
|
protected |
Definition at line 161 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::clear(), and populate().
|
protected |
Definition at line 159 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::clear(), and populate().
|
protected |
Definition at line 160 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::clear(), and populate().
|
protected |
Definition at line 158 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::clear(), fillInPendingGlyphs(), and QGLTextureGlyphCache::setContext().
|
protected |
Definition at line 155 of file qtextureglyphcache_p.h.
Referenced by fillInPendingGlyphs(), and populate().
|
protected |
Definition at line 162 of file qtextureglyphcache_p.h.
Referenced by populate(), and subPixelPositionForX().
|
protected |
Definition at line 157 of file qtextureglyphcache_p.h.
Referenced by QGLTextureGlyphCache::clear(), fillInPendingGlyphs(), and populate().