| 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 QEGLFSEMULATORSCREEN_H |
| 5 |
#define QEGLFSEMULATORSCREEN_H |
| 6 |
|
| 7 |
#include <QtCore/QJsonObject> |
| 8 |
|
| 9 |
#include "qeglfsemulatorintegration.h" |
| 10 |
#include "private/qeglfsscreen_p.h" |
| 11 |
|
| 12 |
QT_BEGIN_NAMESPACE |
| 13 |
|
| 14 |
class QEglFSEmulatorScreen : public QEglFSScreen |
| 15 |
{ |
| 16 |
public: |
| 17 |
QEglFSEmulatorScreen(const QJsonObject &screenDescription); |
| 18 |
|
| 19 |
QRect geometry() const override; |
| 20 |
QRect rawGeometry() const override; |
| 21 |
int depth() const override; |
| 22 |
QImage::Format format() const override; |
| 23 |
QSizeF physicalSize() const override; |
| 24 |
QDpi logicalDpi() const override; |
| 25 |
QDpi logicalBaseDpi() const override; |
| 26 |
qreal refreshRate() const override; |
| 27 |
Qt::ScreenOrientation nativeOrientation() const override; |
| 28 |
Qt::ScreenOrientation orientation() const override; |
| 29 |
QString name() const override; |
| 30 |
|
| 31 |
uint id() const; |
| 32 |
|
| 33 |
private: |
| 34 |
void initFromJsonObject(const QJsonObject &description); |
| 35 |
|
| 36 |
QString m_description; |
| 37 |
QRect m_geometry; |
| 38 |
int m_depth; |
| 39 |
QImage::Format m_format; |
| 40 |
QSizeF m_physicalSize; |
| 41 |
float m_refreshRate; |
| 42 |
Qt::ScreenOrientation m_nativeOrientation; |
| 43 |
Qt::ScreenOrientation m_orientation; |
| 44 |
uint m_id; |
| 45 |
}; |
| 46 |
|
| 47 |
QT_END_NAMESPACE |
| 48 |
|
| 49 |
#endif // QEGLFSEMULATORSCREEN_H |