Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QEGLFSEMULATORSCREEN_H
6
#
define
QEGLFSEMULATORSCREEN_H
7
8
#
include
<
QtCore
/
QJsonObject
>
9
10
#
include
"qeglfsemulatorintegration.h"
11
#
include
"private/qeglfsscreen_p.h"
12
13
QT_BEGIN_NAMESPACE
14
15
class
QEglFSEmulatorScreen
:
public
QEglFSScreen
16
{
17
public
:
18
QEglFSEmulatorScreen
(
const
QJsonObject &screenDescription);
19
20
QRect
geometry
()
const
override
;
21
QRect
rawGeometry
()
const
override
;
22
int
depth
()
const
override
;
23
QImage
::
Format
format
()
const
override
;
24
QSizeF
physicalSize
()
const
override
;
25
QDpi
logicalDpi
()
const
override
;
26
QDpi
logicalBaseDpi
()
const
override
;
27
qreal
refreshRate
()
const
override
;
28
Qt
::
ScreenOrientation
nativeOrientation
()
const
override
;
29
Qt
::
ScreenOrientation
orientation
()
const
override
;
30
QString
name
()
const
override
;
31
32
uint
id
()
const
;
33
34
private
:
35
void
initFromJsonObject(
const
QJsonObject &description);
36
37
QString m_description;
38
QRect m_geometry;
39
int
m_depth;
40
QImage::Format m_format;
41
QSizeF m_physicalSize;
42
float
m_refreshRate;
43
Qt::ScreenOrientation m_nativeOrientation;
44
Qt::ScreenOrientation m_orientation;
45
uint m_id;
46
};
47
48
QT_END_NAMESPACE
49
50
#
endif
// QEGLFSEMULATORSCREEN_H
QEglFSEmulatorIntegration
Definition
qeglfsemulatorintegration.h:21
QEglFSEmulatorIntegration::screenInit
void screenInit() override
Definition
qeglfsemulatorintegration.cpp:48
QEglFSEmulatorIntegration::QEglFSEmulatorIntegration
QEglFSEmulatorIntegration()
Definition
qeglfsemulatorintegration.cpp:21
QEglFSEmulatorIntegration::getDisplays
PFNQGSGETDISPLAYSPROC getDisplays
Definition
qeglfsemulatorintegration.h:31
QEglFSEmulatorIntegration::setDisplay
PFNQGSSETDISPLAYPROC setDisplay
Definition
qeglfsemulatorintegration.h:32
QEglFSEmulatorIntegration::hasCapability
bool hasCapability(QPlatformIntegration::Capability cap) const override
Definition
qeglfsemulatorintegration.cpp:74
QEglFSEmulatorIntegration::usesDefaultScreen
bool usesDefaultScreen() override
Definition
qeglfsemulatorintegration.cpp:42
QEglFSEmulatorIntegration::createNativeWindow
EGLNativeWindowType createNativeWindow(QPlatformWindow *platformWindow, const QSize &size, const QSurfaceFormat &format) override
Definition
qeglfsemulatorintegration.cpp:86
QEglFSEmulatorIntegration::platformDestroy
void platformDestroy() override
Definition
qeglfsemulatorintegration.cpp:38
QEglFSEmulatorIntegration::platformInit
void platformInit() override
Definition
qeglfsemulatorintegration.cpp:34
QEglFSEmulatorScreen
Definition
qeglfsemulatorscreen.h:16
QEglFSEmulatorScreen::physicalSize
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
Definition
qeglfsemulatorscreen.cpp:38
QEglFSEmulatorScreen::id
uint id() const
Definition
qeglfsemulatorscreen.cpp:68
QEglFSEmulatorScreen::geometry
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
Definition
qeglfsemulatorscreen.cpp:18
QEglFSEmulatorScreen::depth
int depth() const override
Reimplement in subclass to return current depth of the screen.
Definition
qeglfsemulatorscreen.cpp:28
QEglFSEmulatorScreen::refreshRate
qreal refreshRate() const override
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
Definition
qeglfsemulatorscreen.cpp:53
QEglFSEmulatorScreen::logicalBaseDpi
QDpi logicalBaseDpi() const override
Reimplement to return the base logical DPI for the platform.
Definition
qeglfsemulatorscreen.cpp:48
QEglFSEmulatorScreen::orientation
Qt::ScreenOrientation orientation() const override
Reimplement this function in subclass to return the current orientation of the screen,...
Definition
qeglfsemulatorscreen.cpp:63
QEglFSEmulatorScreen::nativeOrientation
Qt::ScreenOrientation nativeOrientation() const override
Reimplement this function in subclass to return the native orientation of the screen,...
Definition
qeglfsemulatorscreen.cpp:58
QEglFSEmulatorScreen::name
QString name() const override
Definition
qeglfsemulatorscreen.cpp:73
QEglFSEmulatorScreen::logicalDpi
QDpi logicalDpi() const override
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
Definition
qeglfsemulatorscreen.cpp:43
QEglFSEmulatorScreen::format
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
Definition
qeglfsemulatorscreen.cpp:33
QEglFSEmulatorScreen::rawGeometry
QRect rawGeometry() const override
Definition
qeglfsemulatorscreen.cpp:23
QEglFSEmulatorScreen::QEglFSEmulatorScreen
QEglFSEmulatorScreen(const QJsonObject &screenDescription)
Definition
qeglfsemulatorscreen.cpp:11
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
void
typedef void(EGLAPIENTRYP PFNQGSSETDISPLAYPROC)(uint screen)
QByteArray
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
qtbase
src
plugins
platforms
eglfs
deviceintegration
eglfs_emu
qeglfsemulatorscreen.h
Generated on
for Qt by
1.18.0