4#ifndef QPLATFORMSCREEN_P_H
5#define QPLATFORMSCREEN_P_H
18#include <QtGui/private/qtguiglobal_p.h>
20#include <QtCore/qpointer.h>
21#include <QtCore/qnativeinterface.h>
23#if defined(Q_OS_WIN32)
45#if QT_CONFIG(xcb) || defined(Q_QDOC)
49 virtual int virtualDesktopNumber()
const = 0;
53#if QT_CONFIG(vsp2) || defined(Q_QDOC)
54struct Q_GUI_EXPORT QVsp2Screen
58 virtual void setLayerBuffer(
int id,
int dmabufFd) = 0;
60 virtual void setLayerAlpha(
int id,
qreal alpha) = 0;
61 virtual bool removeLayer(
int id) = 0;
62 virtual void addBlendListener(
void (*callback)()) = 0;
66#if defined(Q_OS_WEBOS) || defined(Q_QDOC)
67struct Q_GUI_EXPORT QWebOSScreen
70 virtual int addLayer(
void *gbm_bo,
const QRectF &geometry) = 0;
71 virtual void setLayerBuffer(
int id,
void *gbm_bo) = 0;
72 virtual void setLayerGeometry(
int id,
const QRectF &geometry) = 0;
73 virtual void setLayerAlpha(
int id,
qreal alpha) = 0;
74 virtual bool removeLayer(
int id) = 0;
75 virtual void addFlipListener(
void (*callback)()) = 0;
79#if defined(Q_OS_WIN32) || defined(Q_QDOC)
83 virtual HMONITOR
handle()
const = 0;
87#if defined(Q_OS_UNIX) || defined(Q_CLANG_QDOC)
88struct Q_GUI_EXPORT QWaylandScreen
91 virtual wl_output *
output()
const = 0;
95#if defined(Q_OS_ANDROID) || defined(Q_QDOC)
96struct Q_GUI_EXPORT QAndroidScreen
99 virtual int displayId()
const = 0;
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QScreen class is used to query screen properties. \inmodule QtGui.
Combined button and popup list for selecting options.
#define QT_DECLARE_NATIVE_INTERFACE(...)
GLuint64 GLenum void * handle
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLfloat GLfloat GLfloat alpha
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
QT_BEGIN_NAMESPACE typedef uchar * output