diff options
author | Dees Troy <dees_troy@teamw.in> | 2014-02-07 19:39:53 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-02-07 19:39:53 +0100 |
commit | e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd (patch) | |
tree | a8f5b7c167c0f365dec2735c11717e09c781a9b7 /gui/objects.hpp | |
parent | Merge "Expansion of vibrate options" into android-4.4 (diff) | |
parent | Implement mouse cursor (diff) | |
download | android_bootable_recovery-e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd.tar android_bootable_recovery-e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd.tar.gz android_bootable_recovery-e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd.tar.bz2 android_bootable_recovery-e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd.tar.lz android_bootable_recovery-e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd.tar.xz android_bootable_recovery-e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd.tar.zst android_bootable_recovery-e492e27d77ad0c033fc0f55d7a5ffe18752ac7bd.zip |
Diffstat (limited to 'gui/objects.hpp')
-rw-r--r-- | gui/objects.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp index 1053113bd..e8110b016 100644 --- a/gui/objects.hpp +++ b/gui/objects.hpp @@ -978,6 +978,31 @@ protected: int lineW; }; +class MouseCursor : public RenderObject +{ +public: + MouseCursor(int posX, int posY); + virtual ~MouseCursor(); + + virtual int Render(void); + virtual int Update(void); + virtual int SetRenderPos(int x, int y, int w = 0, int h = 0); + + void Move(int deltaX, int deltaY); + void GetPos(int& x, int& y); + void LoadData(xml_node<>* node); + void ResetData(int resX, int resY); + +private: + int m_resX; + int m_resY; + bool m_moved; + float m_speedMultiplier; + COLOR m_color; + Resource *m_image; + bool m_present; +}; + // Helper APIs bool LoadPlacement(xml_node<>* node, int* x, int* y, int* w = NULL, int* h = NULL, RenderObject::Placement* placement = NULL); |