42 #ifndef QTEXTUREGLYPHCACHE_P_H 43 #define QTEXTUREGLYPHCACHE_P_H 61 #include <private/qfontengineglyphcache_p.h> 63 #if defined(Q_OS_VXWORKS) && defined(m_type) 67 #ifndef QT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH 68 #define QT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH 256 84 m_w(0), m_h(0), m_cx(0), m_cy(0), m_currentRowHeight(0), m_subPixelPositionCount(0)
113 return w == 0 || h == 0;
119 void fillInPendingGlyphs();
121 virtual void createTextureData(
int width,
int height) = 0;
122 virtual void resizeTextureData(
int width,
int height) = 0;
126 virtual void fillTexture(
const Coord &coord,
glyph_t glyph,
QFixed subPixelPosition) = 0;
131 createTextureData(width, height);
136 resizeTextureData(width, height);
141 inline bool isNull()
const {
return m_h == 0; }
152 int calculateSubPixelPositionCount(
glyph_t)
const;
176 virtual int glyphMargin()
const;
177 virtual void createTextureData(
int width,
int height);
178 virtual void resizeTextureData(
int width,
int height);
virtual int maxTextureWidth() const
#define QT_END_NAMESPACE
This macro expands to.
QHash< GlyphAndSubPixelPosition, Coord > coords
const QImage & image() const
#define QT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH
The QHash class is a template class that provides a hash-table-based dictionary.
virtual int maxTextureHeight() const
uint qHash(const QTextureGlyphCache::GlyphAndSubPixelPosition &g)
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual int glyphPadding() const
static const QCssKnownValue positions[NumKnownPositionModes - 1]
The QImage class provides a hardware-independent image representation that allows direct access to th...
virtual ~QTextureGlyphCache()
int m_subPixelPositionCount
QImageTextureGlyphCache(QFontEngineGlyphCache::Type type, const QTransform &matrix)
void resizeCache(int width, int height)
bool operator==(const GlyphAndSubPixelPosition &other) const
GlyphAndSubPixelPosition(glyph_t g, QFixed spp)
QFontEngine * m_current_fontengine
void createCache(int width, int height)
virtual int glyphMargin() const
QHash< GlyphAndSubPixelPosition, Coord > m_pendingGlyphs
QTextureGlyphCache(QFontEngineGlyphCache::Type type, const QTransform &matrix)