mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
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:
parent
5d6dc388f7
commit
a8bd6ecc4f
51 changed files with 442 additions and 637 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue