summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfshooks.h
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>2012-05-26 11:52:06 -0700
committerQt by Nokia <qt-info@nokia.com>2012-06-01 15:22:49 +0200
commit5933205cfcd73481cb0645fa6183103063fe3e0d (patch)
tree708107118253121ed325557abc93c893f0f144ca /src/plugins/platforms/eglfs/qeglfshooks.h
parentbae1613c4c3d8c38b90ed2ba5c1b149e1bc87987 (diff)
eglfs: implement hardware cursor for the raspberry-pi
The cursor is rendered on a dispmanx layer and moved around. This approach saves us from having to update the underlying window each time the cursor moves. Dispmanx layers cannot be moved to negative coords. As a result, currently it is not possible to move to a location less than the hostpot. A future commit will fix this problem. Change-Id: Ida5ee961d03a6929860c515e503482756a4913ed Reviewed-by: Johannes Zellner <johannes.zellner@nokia.com> Reviewed-by: Andy Nichols <andy.nichols@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfshooks.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfshooks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfshooks.h b/src/plugins/platforms/eglfs/qeglfshooks.h
index c6ea209a6f..22ba77149d 100644
--- a/src/plugins/platforms/eglfs/qeglfshooks.h
+++ b/src/plugins/platforms/eglfs/qeglfshooks.h
@@ -47,6 +47,9 @@
QT_BEGIN_NAMESPACE
+class QEglFSCursor;
+class QEglFSScreen;
+
class QEglFSHooks
{
public:
@@ -57,6 +60,7 @@ public:
virtual EGLNativeWindowType createNativeWindow(const QSize &size);
virtual void destroyNativeWindow(EGLNativeWindowType window);
virtual bool hasCapability(QPlatformIntegration::Capability cap) const;
+ virtual QEglFSCursor *createCursor(QEglFSScreen *screen) const;
};
#ifdef EGLFS_PLATFORM_HOOKS