diff options
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-x | src/ui/modelview.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/modelview.h b/src/ui/modelview.h index 1fbb4d9..c9855db 100755 --- a/src/ui/modelview.h +++ b/src/ui/modelview.h @@ -33,6 +33,14 @@ public: /// print modelview description virtual void print(const size_t indent) const; + + /** + * @brief set the zoom out factor + * @param zoom the new zoom factor + * The zoom factor will be clamped to the range [1.0-10.0] + * 1.0 is not zoomed out, 10.0 is zoomed out by a factor of 10 + */ + void set_zoom(const float zoom); protected: /// draw the widget @@ -41,9 +49,13 @@ protected: /// draw border void draw_border(); + /// keypress event handler + virtual bool on_keypress(const int key, const unsigned int modifier); + private: std::string modelview_modelname; math::Color modelview_color; + float modelview_zoom; }; } |