qt6windows7/tests/manual/qglyphruns/glyphruninspector.h

32 lines
687 B
C
Raw Normal View History

2023-10-30 06:33:08 +08:00
// 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 GLYPHRUNINSPECTOR_H
#define GLYPHRUNINSPECTOR_H
#include <QWidget>
class QTextLayout;
class QTabWidget;
class SingleGlyphRun;
class GlyphRunInspector : public QWidget
{
Q_OBJECT
public:
explicit GlyphRunInspector(QWidget *parent = nullptr);
void updateLayout(QTextLayout *layout, int start, int length);
private slots:
void updateVisualizationForTab();
signals:
void updateBounds(const QRegion &region);
private:
QTabWidget *m_tabWidget;
QList<SingleGlyphRun *> m_content;
};
#endif // GLYPHRUNINSPECTOR_H