summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbnativeinterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbnativeinterface.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbnativeinterface.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.h b/src/plugins/platforms/xcb/qxcbnativeinterface.h
new file mode 100644
index 0000000..fb48833
--- /dev/null
+++ b/src/plugins/platforms/xcb/qxcbnativeinterface.h
@@ -0,0 +1,20 @@
+#ifndef QXCBNATIVEINTERFACE_H
+#define QXCBNATIVEINTERFACE_H
+
+#include <QtGui/QPlatformNativeInterface>
+
+class QWidget;
+class QXcbScreen;
+
+class QXcbNativeInterface : public QPlatformNativeInterface
+{
+ void * nativeDisplayForWidget(QWidget *widget);
+ void * eglDisplayForWidget(QWidget *widget);
+ void * nativeConnectionForWidget(QWidget *widget);
+ void * nativeScreenForWidget(QWidget *widget);
+
+private:
+ static QXcbScreen *screenForWidget(QWidget *widget);
+};
+
+#endif // QXCBNATIVEINTERFACE_H