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
qeglfsemulatorscreen.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 QEGLFSEMULATORSCREEN_H
5#define QEGLFSEMULATORSCREEN_H
6
7#include <QtCore/QJsonObject>
8
10#include "private/qeglfsscreen_p.h"
11
13
15{
16public:
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;
28 Qt::ScreenOrientation orientation() const override;
29 QString name() const override;
30
31 uint id() const;
32
33private:
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
48
49#endif // QEGLFSEMULATORSCREEN_H
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
int depth() const override
Reimplement in subclass to return current depth of the screen.
qreal refreshRate() const override
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
QDpi logicalBaseDpi() const override
Reimplement to return the base logical DPI for the platform.
Qt::ScreenOrientation orientation() const override
Reimplement this function in subclass to return the current orientation of the screen,...
Qt::ScreenOrientation nativeOrientation() const override
Reimplement this function in subclass to return the native orientation of the screen,...
QString name() const override
QDpi logicalDpi() const override
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QRect rawGeometry() const override
QEglFSEmulatorScreen(const QJsonObject &screenDescription)
Format
The following image formats are available in Qt.
Definition qimage.h:41
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:208
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
ScreenOrientation
Definition qnamespace.h:271
QPair< qreal, qreal > QDpi
unsigned int uint
Definition qtypes.h:34
double qreal
Definition qtypes.h:187