Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtGui/qguiapplication_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 QGUIAPPLICATION_PLATFORM_H
0005 #define QGUIAPPLICATION_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 QT_CONFIG(xcb)
0022 typedef struct _XDisplay Display;
0023 struct xcb_connection_t;
0024 #endif
0025 
0026 #if QT_CONFIG(wayland)
0027 struct wl_display;
0028 struct wl_compositor;
0029 struct wl_seat;
0030 struct wl_keyboard;
0031 struct wl_pointer;
0032 struct wl_touch;
0033 #endif
0034 
0035 QT_BEGIN_NAMESPACE
0036 
0037 namespace QNativeInterface
0038 {
0039 
0040 #if QT_CONFIG(xcb) || defined(Q_QDOC)
0041 struct Q_GUI_EXPORT QX11Application
0042 {
0043     QT_DECLARE_NATIVE_INTERFACE(QX11Application, 1, QGuiApplication)
0044     virtual Display *display() const = 0;
0045     virtual xcb_connection_t *connection() const = 0;
0046 };
0047 #endif
0048 
0049 #if QT_CONFIG(wayland) || defined(Q_QDOC)
0050 struct Q_GUI_EXPORT QWaylandApplication
0051 {
0052     QT_DECLARE_NATIVE_INTERFACE(QWaylandApplication, 1, QGuiApplication)
0053     virtual wl_display *display() const = 0;
0054     virtual wl_compositor *compositor() const = 0;
0055     virtual wl_seat *seat() const = 0;
0056     virtual wl_keyboard *keyboard() const = 0;
0057     virtual wl_pointer *pointer() const = 0;
0058     virtual wl_touch *touch() const = 0;
0059     virtual uint lastInputSerial() const = 0;
0060     virtual wl_seat *lastInputSeat() const = 0;
0061 };
0062 #endif
0063 
0064 } // QNativeInterface
0065 
0066 QT_END_NAMESPACE
0067 
0068 #endif // QGUIAPPLICATION_PLATFORM_H