diff options
author | Vojtech Bocek <vbocek@gmail.com> | 2014-01-29 18:37:19 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-02-07 19:37:13 +0100 |
commit | 1fc30fc77b5588c4b651085c21003aceb4ec5083 (patch) | |
tree | e8f522b1aa1150095bc0e440039c1a5b8205ab0c /gui/objects.hpp | |
parent | Expansion of vibrate options (diff) | |
download | android_bootable_recovery-1fc30fc77b5588c4b651085c21003aceb4ec5083.tar android_bootable_recovery-1fc30fc77b5588c4b651085c21003aceb4ec5083.tar.gz android_bootable_recovery-1fc30fc77b5588c4b651085c21003aceb4ec5083.tar.bz2 android_bootable_recovery-1fc30fc77b5588c4b651085c21003aceb4ec5083.tar.lz android_bootable_recovery-1fc30fc77b5588c4b651085c21003aceb4ec5083.tar.xz android_bootable_recovery-1fc30fc77b5588c4b651085c21003aceb4ec5083.tar.zst android_bootable_recovery-1fc30fc77b5588c4b651085c21003aceb4ec5083.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); |