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
qeglfskmsscreen_p.h
Go to the documentation of this file.
1// Copyright (C) 2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// Copyright (C) 2016 The Qt Company Ltd.
3// Copyright (C) 2016 Pelagicore AG
4// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
5
6#ifndef QEGLFSKMSSCREEN_H
7#define QEGLFSKMSSCREEN_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include "private/qeglfsscreen_p.h"
21#include <QtCore/QList>
22#include <QtCore/QMutex>
23
24#include <QtKmsSupport/private/qkmsdevice_p.h>
25#include <QtGui/private/qedidparser_p.h>
26
28
29class QEglFSKmsDevice;
31
33{
34public:
35 QEglFSKmsScreen(QEglFSKmsDevice *device, const QKmsOutput &output, bool headless = false);
37
38 void setVirtualPosition(const QPoint &pos);
39
40 QRect rawGeometry() const override;
41
42 int depth() const override;
43 QImage::Format format() const override;
44
45 QSizeF physicalSize() const override;
46 QDpi logicalDpi() const override;
47 QDpi logicalBaseDpi() const override;
49 Qt::ScreenOrientation orientation() const override;
50
51 QString name() const override;
52
53 QString manufacturer() const override;
54 QString model() const override;
55 QString serialNumber() const override;
56
57 qreal refreshRate() const override;
58
59 QList<QPlatformScreen *> virtualSiblings() const override { return m_siblings; }
60 void setVirtualSiblings(QList<QPlatformScreen *> sl) { m_siblings = sl; }
61
62 QList<QPlatformScreen::Mode> modes() const override;
63
64 int currentMode() const override;
65 int preferredMode() const override;
66
67 QEglFSKmsDevice *device() const { return m_device; }
68
69 virtual void waitForFlip();
70
71 QKmsOutput &output() { return m_output; }
72 void restoreMode();
73
74 SubpixelAntialiasingType subpixelAntialiasingTypeHint() const override;
75
78
79 bool isCursorOutOfRange() const { return m_cursorOutOfRange; }
80 void setCursorOutOfRange(bool b) { m_cursorOutOfRange = b; }
81
82 virtual void pageFlipped(unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec);
83protected:
85
90
91 QList<QPlatformScreen *> m_siblings;
92
94
96
98};
99
101
102#endif
IOBluetoothDevice * device
QList< QPlatformScreen * > virtualSiblings() const override
Returns a list of all the platform screens that are part of the same virtual desktop.
void setCursorOutOfRange(bool b)
void setVirtualSiblings(QList< QPlatformScreen * > sl)
QEglFSKmsInterruptHandler * m_interruptHandler
QKmsOutput & output()
QList< QPlatformScreen * > m_siblings
QEglFSKmsDevice * device() const
bool isCursorOutOfRange() const
QEglFSKmsDevice * m_device
PowerState m_powerState
virtual QRect rawGeometry() const
QDpi logicalBaseDpi() const override
Reimplement to return the base logical DPI for the platform.
qreal refreshRate() const override
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
QDpi logicalDpi() const override
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
Qt::ScreenOrientation orientation() const override
Reimplement this function in subclass to return the current orientation of the screen,...
int depth() const override
Reimplement in subclass to return current depth of the screen.
Qt::ScreenOrientation nativeOrientation() const override
Reimplement this function in subclass to return the native orientation of the screen,...
Format
The following image formats are available in Qt.
Definition qimage.h:41
virtual void setPowerState(PowerState state)
Sets the power state for this screen.
virtual PowerState powerState() const
Returns the current power state.
virtual QString manufacturer() const
Reimplement this function in subclass to return the manufacturer of this screen.
virtual int preferredMode() const
Reimplement this function in subclass to return the preferred mode index from the modes list.
virtual QList< Mode > modes() const
Reimplement this function in subclass to return the list of modes for this screen.
virtual SubpixelAntialiasingType subpixelAntialiasingTypeHint() const
Returns a hint about this screen's subpixel layout structure.
virtual QString name() const
virtual QString serialNumber() const
Reimplement this function in subclass to return the serial number of this screen.
virtual int currentMode() const
Reimplement this function in subclass to return the index of the current mode from the modes list.
virtual QString model() const
Reimplement this function in subclass to return the model of this screen.
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:208
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
else opt state
[0]
Combined button and popup list for selecting options.
ScreenOrientation
Definition qnamespace.h:271
#define Q_EGLFS_EXPORT
QPair< qreal, qreal > QDpi
GLboolean GLboolean GLboolean b
double qreal
Definition qtypes.h:187
QT_BEGIN_NAMESPACE typedef uchar * output