diff options
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-x | src/ui/modelview.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ui/modelview.h b/src/ui/modelview.h index 89b6554..cb01dcb 100755 --- a/src/ui/modelview.h +++ b/src/ui/modelview.h @@ -7,6 +7,7 @@ #ifndef __INCLUDED_UI_MODELVIEW_H__ #define __INCLUDED_UI_MODELVIEW_H__ +#include "math/axis.h" #include "ui/widget.h" namespace ui @@ -57,11 +58,24 @@ protected: /// 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); + + virtual void on_mouseover(const math::Vector2f &cursor); + + /// mouse movement handler + virtual void on_mousemove(const math::Vector2f &cursor); private: std::string modelview_modelname; math::Color modelview_color; float modelview_zoom; + + math::Axis modelview_axis; + math::Vector2f modelview_cursor; + bool modelview_manip; + //math::Axis modelview_manipaxis; }; } |