#ifndef QXCBNATIVEINTERFACE_H #define QXCBNATIVEINTERFACE_H #include class QWidget; class QXcbScreen; class QXcbNativeInterface : public QPlatformNativeInterface { public: enum ResourceType { Display, EglDisplay, Connection, Screen, GraphicsDevice, EglContext }; void *nativeResourceForWidget(const QByteArray &resourceString, QWidget *widget); void *displayForWidget(QWidget *widget); void *eglDisplayForWidget(QWidget *widget); void *connectionForWidget(QWidget *widget); void *screenForWidget(QWidget *widget); void *graphicsDeviceForWidget(QWidget *widget); void *eglContextForWidget(QWidget *widget); private: static QXcbScreen *qPlatformScreenForWidget(QWidget *widget); }; #endif // QXCBNATIVEINTERFACE_H