diff options
author | Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> | 2012-05-17 15:53:14 -0700 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-18 15:28:09 +0200 |
commit | 5672cbf1317bc266ac12c224b148d6d213c91779 (patch) | |
tree | 0e07269388b0da2b16b48b4fca21f2a83b0ee3ae /src/plugins/platforms/eglfs/qeglfscursor.h | |
parent | f3a0422acb6d92be26e30c604b7092a8bfd52b7b (diff) |
eglfs: Add support for cursor hotspots
Cursor information is now loaded from cursor.json.
Done-with: Johannes Zellner
Change-Id: I093cf8e944d495269973e777d0b444ae4ececee1
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfscursor.h')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfscursor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfscursor.h b/src/plugins/platforms/eglfs/qeglfscursor.h index a580404ab8..43f6b681a8 100644 --- a/src/plugins/platforms/eglfs/qeglfscursor.h +++ b/src/plugins/platforms/eglfs/qeglfscursor.h @@ -61,7 +61,7 @@ public: QPoint pos() const; void setPos(const QPoint &pos); - QRect cursorRect() const { return QRect(m_pos, m_cursor.size); } + QRect cursorRect() const; void render(); @@ -74,11 +74,12 @@ private: // cursor atlas information struct CursorAtlas { - CursorAtlas() : texture(0), cursorWidth(0), cursorHeight(0) { } + CursorAtlas() : cursorsPerRow(0), texture(0), cursorWidth(0), cursorHeight(0) { } + int cursorsPerRow; uint texture; int width, height; // width and height of the the atlas int cursorWidth, cursorHeight; // width and height of cursors inside the atlas - QPoint hotSpot; + QList<QPoint> hotSpots; } m_cursorAtlas; // current cursor information |