diff options
author | David Robillard <d@drobilla.net> | 2014-03-31 02:40:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-03-31 02:40:44 +0000 |
commit | 88b95838210411669973d956a5e84ead2c680d35 (patch) | |
tree | db591bdf6d99aa0abaa941183c3ef876043bcaaf /src/Configuration.hpp | |
parent | 1f22a1e6dce27a9ce1b4ccd434be371994ae14e6 (diff) | |
download | patchage-88b95838210411669973d956a5e84ead2c680d35.tar.gz patchage-88b95838210411669973d956a5e84ead2c680d35.tar.bz2 patchage-88b95838210411669973d956a5e84ead2c680d35.zip |
Save zoom and font size in configuration.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5351 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Configuration.hpp')
-rw-r--r-- | src/Configuration.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Configuration.hpp b/src/Configuration.hpp index 34b1595..1fc786b 100644 --- a/src/Configuration.hpp +++ b/src/Configuration.hpp @@ -51,8 +51,10 @@ public: void set_module_split(const std::string& name, bool split); bool get_module_split(const std::string& name, bool default_val) const; - float get_zoom() { return _zoom; } - void set_zoom(float zoom) { _zoom = zoom; } + float get_zoom() const { return _zoom; } + void set_zoom(float zoom) { _zoom = zoom; } + float get_font_size() const { return _font_size; } + void set_font_size(float font_size) { _font_size = font_size; } uint32_t get_port_color(PortType type) const { return _port_colors[type]; } void set_port_color(PortType type, uint32_t rgba) { @@ -81,6 +83,7 @@ private: Coord _window_location; Coord _window_size; float _zoom; + float _font_size; }; #endif // PATCHAGE_CONFIGURATION_HPP |