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
qscreen_platform.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QSCREEN_PLATFORM_H
5#define QSCREEN_PLATFORM_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is part of the native interface APIs. Usage of
12// this API may make your code source and binary incompatible
13// with future versions of Qt.
14//
15
16#include <QtGui/qtguiglobal.h>
17
18#include <QtCore/qnativeinterface.h>
19#include <QtGui/qguiapplication.h>
20
21#if defined(Q_OS_WIN32)
22#include <QtGui/qwindowdefs_win.h>
23#endif
24
25#if QT_CONFIG(wayland)
26struct wl_output;
27#endif
28
30
31namespace QNativeInterface {
32
33#if defined(Q_OS_WIN32) || defined(Q_QDOC)
34struct Q_GUI_EXPORT QWindowsScreen
35{
37 virtual HMONITOR handle() const = 0;
38};
39#endif
40
41#if QT_CONFIG(wayland) || defined(Q_QDOC)
42struct Q_GUI_EXPORT QWaylandScreen
43{
44 QT_DECLARE_NATIVE_INTERFACE(QWaylandScreen, 1, QScreen)
45 virtual wl_output *output() const = 0;
46};
47#endif
48
49#if defined(Q_OS_ANDROID) || defined(Q_QDOC)
50struct Q_GUI_EXPORT QAndroidScreen
51{
53 virtual int displayId() const = 0;
54};
55#endif
56
57} // namespace QNativeInterface
58
60
61#endif
Native interface to a screen.
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
Windows screen.
Combined button and popup list for selecting options.
#define QT_DECLARE_NATIVE_INTERFACE(...)
GLuint64 GLenum void * handle
QT_BEGIN_NAMESPACE typedef uchar * output