lots of tweaking and adding debug output including operator<</dump(ostream&) methods...
[ardour.git] / libs / canvas / root_group.cc
1 #include "canvas/root_group.h"
2 #include "canvas/canvas.h"
3
4 using namespace std;
5 using namespace ArdourCanvas;
6
7 RootGroup::RootGroup (Canvas* canvas)
8         : Group (canvas)
9 {
10 #ifdef CANVAS_DEBUG
11         name = "ROOT";
12 #endif  
13 }
14
15 void
16 RootGroup::compute_bounding_box () const
17 {
18         Group::compute_bounding_box ();
19
20         if (_bounding_box) {
21                 cerr << "!!!!! requesting canvas size " << _bounding_box.get() << endl;
22                 _canvas->request_size (Duple (_bounding_box.get().width (), _bounding_box.get().height ()));
23         }
24 }