4#include <QtCore/qtextstream.h>
5#include <QtGui/qwindow.h>
6#include <QtGui/private/qguiapplication_p.h>
7#include <qpa/qwindowsysteminterface.h>
8#include <qpa/qplatformcursor.h>
10# include <QtOpenGL/private/qopenglcompositor_p.h>
21 m_surface(EGL_NO_SURFACE),
45 r.setHeight(
r.width());
50 qWarning(
"Invalid rotation %d specified in QT_QPA_EGLFS_ROTATION", rotation);
107void QEglFSScreen::setPrimarySurface(
EGLSurface surface)
147 if (enter &&
leave) {
179 qWarning(
"grabWindow: Not supported for non-composited OpenGL content. Use QQuickWindow::grabWindow() instead.");
194 if (
window->winId() == wid) {
223 for (
int i = windowCount - 1;
i >= 0;
i--) {
225 if (
window->isVisible() &&
window->geometry().contains(point))
virtual QSizeF physicalScreenSize() const
virtual Qt::ScreenOrientation nativeOrientation() const
virtual QImage::Format screenFormat() const
virtual QDpi logicalDpi() const
virtual qreal refreshRate() const
virtual QDpi logicalBaseDpi() const
virtual QPlatformCursor * createCursor(QPlatformScreen *screen) const
virtual int screenDepth() const
virtual Qt::ScreenOrientation orientation() const
void setPointerWindow(QWindow *pointerWindow)
QPointer< QWindow > pointerWindow()
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
void handleCursorMove(const QPoint &pos)
QWindow * topLevelAt(const QPoint &point) const override
Return the given top level window for a given position.
QEglFSScreen(EGLDisplay display)
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
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.
QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override
This function is called when Qt needs to be able to grab the content of a window.
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,...
QOpenGLCompositorBackingStore * backingStore()
static QPlatformIntegration * platformIntegration()
Format
The following image formats are available in Qt.
qsizetype size() const noexcept
bool isEmpty() const noexcept
A generic OpenGL-based compositor.
static QOpenGLCompositor * instance()
QList< QOpenGLCompositorWindow * > windows() const
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
QPixmap copy(int x, int y, int width, int height) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr QPoint topLeft() const noexcept
Returns the position of the rectangle's top-left corner.
bool contains(const QRect &r, bool proper=false) const noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
constexpr QSize size() const noexcept
Returns the size of the rectangle.
constexpr int width() const noexcept
Returns the width of the rectangle.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
static void handleLeaveEvent(QWindow *window)
static void handleEnterLeaveEvent(QWindow *enter, QWindow *leave, const QPointF &local=QPointF(), const QPointF &global=QPointF())
This method can be used to ensure leave and enter events are both in queue when moving from one QWind...
static void handleEnterEvent(QWindow *window, const QPointF &local=QPointF(), const QPointF &global=QPointF())
Combined button and popup list for selecting options.
QEglFSDeviceIntegration * qt_egl_device_integration()
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
QPair< qreal, qreal > QDpi
static QOpenGLCompositor * compositor
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLfloat GLfloat GLfloat GLfloat h
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept