src/gui/text/qfontengineglyphcache_p.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    73 QT_BEGIN_NAMESPACE
    73 QT_BEGIN_NAMESPACE
    74 
    74 
    75 class QFontEngineGlyphCache
    75 class QFontEngineGlyphCache
    76 {
    76 {
    77 public:
    77 public:
    78     QFontEngineGlyphCache(const QTransform &matrix) : m_transform(matrix) { }
       
    79 
       
    80     enum Type {
    78     enum Type {
    81         Raster_RGBMask,
    79         Raster_RGBMask,
    82         Raster_A8,
    80         Raster_A8,
    83         Raster_Mono
    81         Raster_Mono
    84     };
    82     };
    85 
    83 
       
    84     QFontEngineGlyphCache(const QTransform &matrix, Type type) : m_transform(matrix), m_type(type) { }
       
    85 
    86     virtual ~QFontEngineGlyphCache() { }
    86     virtual ~QFontEngineGlyphCache() { }
    87 
    87 
       
    88     Type cacheType() const { return m_type; }
       
    89 
    88     QTransform m_transform;
    90     QTransform m_transform;
       
    91     QFontEngineGlyphCache::Type m_type;
    89 };
    92 };
    90 typedef QHash<void *, QList<QFontEngineGlyphCache *> > GlyphPointerHash;
    93 typedef QHash<void *, QList<QFontEngineGlyphCache *> > GlyphPointerHash;
    91 typedef QHash<int, QList<QFontEngineGlyphCache *> > GlyphIntHash;
    94 typedef QHash<int, QList<QFontEngineGlyphCache *> > GlyphIntHash;
    92 
    95 
    93 QT_END_NAMESPACE
    96 QT_END_NAMESPACE