Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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;
27 Qt::ScreenOrientation nativeOrientation() 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
47QT_END_NAMESPACE
48
49#endif // QEGLFSEMULATORSCREEN_H
bool hasCapability(QPlatformIntegration::Capability cap) const override
EGLNativeWindowType createNativeWindow(QPlatformWindow *platformWindow, const QSize &size, const QSurfaceFormat &format) override
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)
typedef void(EGLAPIENTRYP PFNQGSSETDISPLAYPROC)(uint screen)
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)