diff options
Diffstat (limited to 'libs/canvas/root_group.cc')
-rw-r--r-- | libs/canvas/root_group.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libs/canvas/root_group.cc b/libs/canvas/root_group.cc new file mode 100644 index 0000000000..a9e0aae77f --- /dev/null +++ b/libs/canvas/root_group.cc @@ -0,0 +1,23 @@ +#include "canvas/root_group.h" +#include "canvas/canvas.h" + +using namespace std; +using namespace ArdourCanvas; + +RootGroup::RootGroup (Canvas* canvas) + : Group (canvas) +{ +#ifdef CANVAS_DEBUG + name = "ROOT"; +#endif +} + +void +RootGroup::compute_bounding_box () const +{ + Group::compute_bounding_box (); + + if (_bounding_box) { + _canvas->request_size (Duple (_bounding_box.get().width (), _bounding_box.get().height ())); + } +} |