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
qfontengineglyphcache_p.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 QFONTENGINEGLYPHCACHE_P_H
5#define QFONTENGINEGLYPHCACHE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qshareddata.h>
19#include <QtGui/private/qtguiglobal_p.h>
20#include "QtCore/qatomic.h"
21#include <QtCore/qvarlengtharray.h>
22#include "private/qfont_p.h"
23#include "private/qfontengine_p.h"
24
25
26
28
29class Q_GUI_EXPORT QFontEngineGlyphCache: public QSharedData
30{
31public:
33 : m_format(format)
34 , m_transform(matrix)
35 , m_color(color)
36 {
38 }
39
40 virtual ~QFontEngineGlyphCache();
41
42 QFontEngine::GlyphFormat glyphFormat() const { return m_format; }
43 const QTransform &transform() const { return m_transform; }
44 const QColor &color() const { return m_color; }
45
49};
50typedef QHash<void *, QList<QFontEngineGlyphCache *> > GlyphPointerHash;
51typedef QHash<int, QList<QFontEngineGlyphCache *> > GlyphIntHash;
52
54
55#endif
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
QFontEngineGlyphCache(QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color=QColor())
const QTransform & transform() const
QFontEngine::GlyphFormat m_format
QFontEngine::GlyphFormat glyphFormat() const
const QColor & color() const
\inmodule QtCore
Definition qshareddata.h:19
The QTransform class specifies 2D transformations of a coordinate system.
Definition qtransform.h:20
Combined button and popup list for selecting options.
QHash< void *, QList< QFontEngineGlyphCache * > > GlyphPointerHash
QHash< int, QList< QFontEngineGlyphCache * > > GlyphIntHash
GLuint color
[2]
GLint GLsizei GLsizei GLenum format
GLuint GLenum matrix
#define Q_ASSERT(cond)
Definition qrandom.cpp:47