refactor Canvas so that all Items have children; add Container abstract base class; rename Group as "Layout" and retain only drawing semantics

This commit is contained in:
Paul Davis 2014-06-21 11:43:42 -04:00
parent 5d6dc388f7
commit a8bd6ecc4f
51 changed files with 442 additions and 637 deletions

View file

@ -28,13 +28,13 @@ using namespace std;
using namespace ArdourCanvas;
ScrollGroup::ScrollGroup (Canvas* c, ScrollSensitivity s)
: Group (c)
: Layout (c)
, _scroll_sensitivity (s)
{
}
ScrollGroup::ScrollGroup (Group* g, ScrollSensitivity s)
: Group (g)
ScrollGroup::ScrollGroup (Item* parent, ScrollSensitivity s)
: Layout (parent)
, _scroll_sensitivity (s)
{
}
@ -60,12 +60,10 @@ ScrollGroup::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
context->save ();
context->rectangle (self.x0, self.y0, self.width(), self.height());
context->clip ();
Group::render (area, context);
Layout::render (area, context);
context->restore ();
}
void