Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/scrollbar.h')
-rw-r--r--src/ui/scrollbar.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/ui/scrollbar.h b/src/ui/scrollbar.h
index 0689969..c8eccf9 100644
--- a/src/ui/scrollbar.h
+++ b/src/ui/scrollbar.h
@@ -89,17 +89,31 @@ protected:
/// 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();