summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbnativeinterface.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-03-01 13:01:43 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-03-01 13:29:02 (GMT)
commit53741ff1983a9d0085658b96743b125daaa5e680 (patch)
tree4140ea453c84c0436f8f1ba50a6cbebc556a01a9 /src/plugins/platforms/xcb/qxcbnativeinterface.h
parentccb623188369be7bf4b991ff8a1f81d27137984c (diff)
downloadQt-53741ff1983a9d0085658b96743b125daaa5e680.zip
Qt-53741ff1983a9d0085658b96743b125daaa5e680.tar.gz
Qt-53741ff1983a9d0085658b96743b125daaa5e680.tar.bz2
Lighthouse: Implement the new Native Interface api in the xcb plugin
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbnativeinterface.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbnativeinterface.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.h b/src/plugins/platforms/xcb/qxcbnativeinterface.h
index fb48833..9815381 100644
--- a/src/plugins/platforms/xcb/qxcbnativeinterface.h
+++ b/src/plugins/platforms/xcb/qxcbnativeinterface.h
@@ -8,13 +8,25 @@ class QXcbScreen;
class QXcbNativeInterface : public QPlatformNativeInterface
{
- void * nativeDisplayForWidget(QWidget *widget);
- void * eglDisplayForWidget(QWidget *widget);
- void * nativeConnectionForWidget(QWidget *widget);
- void * nativeScreenForWidget(QWidget *widget);
+public:
+ enum ResourceType {
+ Display,
+ EglDisplay,
+ Connection,
+ Screen,
+ GraphicsDevice
+ };
+
+ 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);
private:
- static QXcbScreen *screenForWidget(QWidget *widget);
+ static QXcbScreen *qPlatformScreenForWidget(QWidget *widget);
};
#endif // QXCBNATIVEINTERFACE_H