Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgopenvgfontglyphcache.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGOPENVGFONTGLYPHCACHE_H
5#define QSGOPENVGFONTGLYPHCACHE_H
6
7#include <QtGui/QGlyphRun>
8#include <QtCore/QSet>
9#include <VG/openvg.h>
10
12
14
16{
17public:
20
23
24private:
25 QHash<QRawFont, QSGOpenVGFontGlyphCache *> m_caches;
26};
27
29{
30public:
33
34 const QSGOpenVGFontGlyphCacheManager *manager() const { return m_manager; }
35 const QRawFont &referenceFont() const { return m_referenceFont; }
36 int glyphCount() const { return m_glyphCount; }
37
38 void populate(const QVector<quint32> &glyphs);
39 void release(const QVector<quint32> &glyphs);
40
41 VGFont font() { return m_font; }
42
43private:
44 void requestGlyphs(const QSet<quint32> &glyphs);
45 void referenceGlyphs(const QSet<quint32> &glyphs);
46 void releaseGlyphs(const QSet<quint32> &glyphs);
47
49 QRawFont m_referenceFont;
50 int m_glyphCount;
51
52 VGFont m_font;
53 QHash<quint32, int> m_glyphReferences;
54};
55
56
58
59#endif // QSGOPENVGFONTGLYPHCACHE_H
The QRawFont class provides access to a single physical instance of a font.
Definition qrawfont.h:24
void insertCache(const QRawFont &font, QSGOpenVGFontGlyphCache *cache)
const QSGOpenVGFontGlyphCacheManager * manager() const
void populate(const QVector< quint32 > &glyphs)
QSGOpenVGFontGlyphCache(QSGOpenVGFontGlyphCacheManager *manager, const QRawFont &font)
const QRawFont & referenceFont() const
QCache< int, Employee > cache
[0]
Combined button and popup list for selecting options.
sem release()