diff options
Diffstat (limited to 'tests/manual/qglyphruns/singleglyphrun.h')
-rw-r--r-- | tests/manual/qglyphruns/singleglyphrun.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/manual/qglyphruns/singleglyphrun.h b/tests/manual/qglyphruns/singleglyphrun.h new file mode 100644 index 0000000000..138d820ad4 --- /dev/null +++ b/tests/manual/qglyphruns/singleglyphrun.h @@ -0,0 +1,30 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef SINGLEGLYPHRUN_H +#define SINGLEGLYPHRUN_H + +#include <QWidget> +#include <QGlyphRun> + +namespace Ui { +class SingleGlyphRun; +} + +class SingleGlyphRun : public QWidget +{ + Q_OBJECT + +public: + explicit SingleGlyphRun(QWidget *parent = nullptr); + ~SingleGlyphRun(); + + void updateGlyphRun(const QGlyphRun &glyphRun); + QRegion bounds() const { return m_bounds; } + +private: + Ui::SingleGlyphRun *ui; + QRegion m_bounds; +}; + +#endif // SINGLEGLYPHRUN_H |