diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/widget.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index a3994af..14bea7b 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h @@ -371,12 +371,16 @@ protected: /// called when the mouse enters the widget virtual void on_mouseover(const math::Vector2f &cursor); - /// called when a mouse button is pressed + /** + * @brief mouse button press event handler + * */ virtual bool on_mousepress(const unsigned int button); - - /// called when a mouse button is released + + /** + * @brief mouse button release event handler + * */ virtual bool on_mouserelease(const unsigned int button); - + /// called when the scrollwheel is used virtual bool on_mousewheel(const math::Vector2f & direction); |