Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-01-06 18:51:37 +0000
committerStijn Buys <ingar@osirion.org>2015-01-06 18:51:37 +0000
commit72ee43e9470c6fdbc6ed7ff92b85dfa5062c5762 (patch)
tree6474fa59066d5212dcd40e3d76652dce35565280 /src/ui/slider.h
parent57d958d40af061e83aa99ca12e375e5345836ecd (diff)
Added separate event handlers for mouse button clicks and mouse wheel movement.
Diffstat (limited to 'src/ui/slider.h')
-rw-r--r--src/ui/slider.h43
1 files changed, 33 insertions, 10 deletions
diff --git a/src/ui/slider.h b/src/ui/slider.h
index 70a57ac..2f71c39 100644
--- a/src/ui/slider.h
+++ b/src/ui/slider.h
@@ -74,30 +74,53 @@ public:
*/
void set_range(const float minimum, const float maximum);
- /// show the widget
+ /**
+ * @brief show the widget
+ * */
virtual void show();
protected:
- /// resize event handler
+ /**
+ * @brief resize event handler
+ * */
virtual void resize();
- /// draw event handler
+ /**
+ * @brief draw event handler
+ * */
virtual void draw();
- /// emit event handler
+ /**
+ * @brief emit event handler
+ * */
virtual bool on_emit(Widget *sender, const Event event, void *data=0);
- /// keypress event handler
- virtual bool on_keypress(const int key, const unsigned int modifier);
-
- /// keyrelease event handler
- virtual bool on_keyrelease(const int key, const unsigned int modifier);
+ /**
+ * @brief mouse button press event handler
+ * */
+ virtual bool on_mousepress(const unsigned int button);
+
+ /**
+ * @brief mouse button release event handler
+ * */
+ virtual bool on_mouserelease(const unsigned int button);
+ /**
+ * @brief mouseover event handler
+ * */
virtual void on_mouseover(const math::Vector2f &cursor);
- /// mouse movement handler
+ /**
+ * @brief mouse movement event handler
+ * */
virtual void on_mousemove(const math::Vector2f &cursor);
+
+ /**
+ * @brief mousehweel event handler
+ * */
+ virtual bool on_mousewheel(const math::Vector2f & direction);
+
private:
/// validate slider value
void validate();