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
qeglfsscreen_p.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 QEGLFSSCREEN_H
6#define QEGLFSSCREEN_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "qeglfsglobal_p.h"
20#include <QtCore/QPointer>
21
22#include <qpa/qplatformscreen.h>
23
25
26class QEglFSWindow;
27class QOpenGLContext;
28
29class Q_EGLFS_EXPORT QEglFSScreen : public QPlatformScreen
30{
31public:
32 QEglFSScreen(EGLDisplay display);
33 ~QEglFSScreen();
34
35 QRect geometry() const override;
36 virtual QRect rawGeometry() const;
37 int depth() const override;
38 QImage::Format format() const override;
39
40 QSizeF physicalSize() const override;
41 QDpi logicalDpi() const override;
42 QDpi logicalBaseDpi() const override;
43 Qt::ScreenOrientation nativeOrientation() const override;
44 Qt::ScreenOrientation orientation() const override;
45
46 QPlatformCursor *cursor() const override;
47
48 qreal refreshRate() const override;
49
50 QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
51
52 EGLSurface primarySurface() const { return m_surface; }
53
54 EGLDisplay display() const { return m_dpy; }
55
56 void handleCursorMove(const QPoint &pos);
57
58 QWindow *topLevelAt(const QPoint &point) const override;
59
60private:
61 void setPrimarySurface(EGLSurface surface);
62
63 EGLDisplay m_dpy;
64 EGLSurface m_surface;
65 QPlatformCursor *m_cursor;
66
67 friend class QEglFSWindow;
68};
69
70QT_END_NAMESPACE
71
72#endif // QEGLFSSCREEN_H
\inmodule QtSql
Combined button and popup list for selecting options.
#define Q_EGLFS_EXPORT