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
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
4#ifndef QEGLFSSCREEN_H
5#define QEGLFSSCREEN_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qeglfsglobal_p.h"
19#include <QtCore/QPointer>
20
21#include <qpa/qplatformscreen.h>
22
24
25class QEglFSWindow;
26class QOpenGLContext;
27
29{
30public:
33
34 QRect geometry() const override;
35 virtual QRect rawGeometry() const;
36 int depth() const override;
37 QImage::Format format() const override;
38
39 QSizeF physicalSize() const override;
40 QDpi logicalDpi() const override;
41 QDpi logicalBaseDpi() const override;
43 Qt::ScreenOrientation orientation() const override;
44
45 QPlatformCursor *cursor() const override;
46
47 qreal refreshRate() const override;
48
49 QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
50
51 EGLSurface primarySurface() const { return m_surface; }
52
53 EGLDisplay display() const { return m_dpy; }
54
55 void handleCursorMove(const QPoint &pos);
56
57 QWindow *topLevelAt(const QPoint &point) const override;
58
59private:
60 void setPrimarySurface(EGLSurface surface);
61
62 EGLDisplay m_dpy;
63 EGLSurface m_surface;
64 QPlatformCursor *m_cursor;
65
66 friend class QEglFSWindow;
67};
68
70
71#endif // QEGLFSSCREEN_H
EGLSurface primarySurface() const
EGLDisplay display() const
Format
The following image formats are available in Qt.
Definition qimage.h:41
\inmodule QtGui
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QPlatformCursor class provides information about pointer device events (movement,...
The QPlatformScreen class provides an abstraction for visual displays.
virtual Qt::ScreenOrientation orientation() const
Reimplement this function in subclass to return the current orientation of the screen,...
virtual QRect geometry() const =0
Reimplement in subclass to return the pixel geometry of the screen.
virtual QPlatformCursor * cursor() const
Reimplement this function in subclass to return the cursor of the screen.
virtual Qt::ScreenOrientation nativeOrientation() const
Reimplement this function in subclass to return the native orientation of the screen,...
virtual QDpi logicalDpi() const
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
virtual QImage::Format format() const =0
Reimplement in subclass to return the image format which corresponds to the screen format.
virtual QPixmap grabWindow(WId window, int x, int y, int width, int height) const
This function is called when Qt needs to be able to grab the content of a window.
virtual int depth() const =0
Reimplement in subclass to return current depth of the screen.
virtual QDpi logicalBaseDpi() const
Reimplement to return the base logical DPI for the platform.
virtual QWindow * topLevelAt(const QPoint &point) const
Return the given top level window for a given position.
virtual QSizeF physicalSize() const
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
virtual qreal refreshRate() const
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:208
\inmodule QtGui
Definition qwindow.h:63
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
ScreenOrientation
Definition qnamespace.h:271
#define Q_EGLFS_EXPORT
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
QPair< qreal, qreal > QDpi
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLint GLsizei width
GLint y
double qreal
Definition qtypes.h:187