diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-04 13:44:57 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-04 13:44:57 +0000 |
commit | 7a75ef50dcf1955739969b47ff88c6fce9c3843a (patch) | |
tree | ae5db0e3315abc8c9066deb3b1e79f5ae48c8775 /src/ui/modelview.h | |
parent | 75906b43ecb9a04fdab365bd8b1a00fbdbc66918 (diff) |
modelview widget rotation manipulation
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; }; } |