path: root/src/gui/PatchCanvas.hpp
diff options
authorDavid Robillard <>2010-02-26 04:39:25 +0000
committerDavid Robillard <>2010-02-26 04:39:25 +0000
commit624e0d3ecd8149acdb3a44ece08dccd3337b3300 (patch)
tree630b251f8f9289d1126fb1f2c4eff697689a7efd /src/gui/PatchCanvas.hpp
parent7f748d6f5d25d81a7703fa5f3e4c6015ab40a0c5 (diff)
Add center parameter to FlowCanvas::Canvas::arrange with default value true
(eqivalent default behaviour to API pre-r2496). Add FlowCanvas::Canvas::move_contents_to to allow apps to move canvas contents to a given location (e.g. the origin or the center), keeping their relative distances the same. This commit preserves centering by default with the option to arrange in the top left, but applications shouldn't assume anything about the origin of coordinates (i.e. applications should manually scroll to where items exist when loading a set of items with coordinates, not simply assume they are centered about a particular location). git-svn-id: a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchCanvas.hpp')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/PatchCanvas.hpp b/src/gui/PatchCanvas.hpp
index e4cfd1a8..9aa0eacf 100644
--- a/src/gui/PatchCanvas.hpp
+++ b/src/gui/PatchCanvas.hpp
@@ -61,7 +61,7 @@ public:
virtual ~PatchCanvas() {}
void build();
- void arrange(bool use_length_hints);
+ void arrange(bool use_length_hints, bool center);
void show_human_names(bool show);
void show_port_names(bool show);
bool show_port_names() const { return _show_port_names; }