Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtGui/qscreen_platform.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2021 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QSCREEN_PLATFORM_H
0005 #define QSCREEN_PLATFORM_H
0006 
0007 //
0008 //  W A R N I N G
0009 //  -------------
0010 //
0011 // This file is part of the native interface APIs. Usage of
0012 // this API may make your code source and binary incompatible
0013 // with future versions of Qt.
0014 //
0015 
0016 #include <QtGui/qtguiglobal.h>
0017 
0018 #include <QtCore/qnativeinterface.h>
0019 #include <QtGui/qguiapplication.h>
0020 
0021 #if defined(Q_OS_WIN32)
0022 #include <QtGui/qwindowdefs_win.h>
0023 #endif
0024 
0025 #if QT_CONFIG(wayland)
0026 struct wl_output;
0027 #endif
0028 
0029 QT_BEGIN_NAMESPACE
0030 
0031 namespace QNativeInterface {
0032 
0033 #if defined(Q_OS_WIN32) || defined(Q_QDOC)
0034 struct Q_GUI_EXPORT QWindowsScreen
0035 {
0036     QT_DECLARE_NATIVE_INTERFACE(QWindowsScreen, 1, QScreen)
0037     virtual HMONITOR handle() const = 0;
0038 };
0039 #endif
0040 
0041 #if QT_CONFIG(wayland) || defined(Q_QDOC)
0042 struct Q_GUI_EXPORT QWaylandScreen
0043 {
0044     QT_DECLARE_NATIVE_INTERFACE(QWaylandScreen, 1, QScreen)
0045     virtual wl_output *output() const = 0;
0046 };
0047 #endif
0048 
0049 #if defined(Q_OS_ANDROID) || defined(Q_QDOC)
0050 struct Q_GUI_EXPORT QAndroidScreen
0051 {
0052     QT_DECLARE_NATIVE_INTERFACE(QAndroidScreen, 1, QScreen)
0053     virtual int displayId() const = 0;
0054 };
0055 #endif
0056 
0057 } // namespace QNativeInterface
0058 
0059 QT_END_NAMESPACE
0060 
0061 #endif