From abdccafa2db707acd833ef35372c1e24853f8902 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 28 Jul 2016 21:20:12 +0200 Subject: Updated header documentation. --- src/ui/widget.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.3