diff options
author | Stijn Buys <ingar@osirion.org> | 2015-01-06 18:51:37 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2015-01-06 18:51:37 +0000 |
commit | 72ee43e9470c6fdbc6ed7ff92b85dfa5062c5762 (patch) | |
tree | 6474fa59066d5212dcd40e3d76652dce35565280 /src/ui/listitem.h | |
parent | 57d958d40af061e83aa99ca12e375e5345836ecd (diff) |
Added separate event handlers for mouse button clicks and mouse wheel movement.
Diffstat (limited to 'src/ui/listitem.h')
-rw-r--r-- | src/ui/listitem.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/ui/listitem.h b/src/ui/listitem.h index a0f4d5e..c2ccf6f 100644 --- a/src/ui/listitem.h +++ b/src/ui/listitem.h @@ -65,14 +65,21 @@ public: void select(); protected: - /// keypress event handler - virtual bool on_keypress(const int key, const unsigned int modifier); - - /// draw the button border + /** + * @brief mouseover event handler + * */ + virtual void on_mouseover(const math::Vector2f &cursor); + + /** + * @brief mouse button press event handler + * */ + virtual bool on_mousepress(const unsigned int button); + + /** + * @brief draw the button border + * */ virtual void draw_border(); - virtual void on_mouseover(const math::Vector2f &cursor); - virtual void draw(); private: |