summaryrefslogtreecommitdiffstats
path: root/tests/manual/qglyphruns/singleglyphrun.h
blob: c400640335daf4f532bb0d9b67422ced64f8f855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#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