summaryrefslogtreecommitdiff
path: root/libs/canvas/root_group.cc
blob: a9e0aae77fcf8973f05bcdb47add1bc262808a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 ()));
	}
}