summaryrefslogtreecommitdiff
path: root/libs/canvas/container.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-06-22 11:41:05 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-22 11:41:05 -0400
commit6a5d805b383cd71bb1d0984964439c5ec08e9270 (patch)
treed551b417d1dbc026376207a94b4933a0b824797b /libs/canvas/container.cc
parentf0933bf00551ce998ca441aa5611d27702f6e590 (diff)
more canvas refactoring.
Remove Canvas::Layout, use Canvas::Container for the same purpose, move child-rendering into Item::render_children() so that it could theoretically be used by any derived type.
Diffstat (limited to 'libs/canvas/container.cc')
-rw-r--r--libs/canvas/container.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/canvas/container.cc b/libs/canvas/container.cc
index 4190437e6b..6aa265fd81 100644
--- a/libs/canvas/container.cc
+++ b/libs/canvas/container.cc
@@ -38,6 +38,12 @@ Container::Container (Item* parent, Duple const & p)
}
void
+Container::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
+{
+ Item::render_children (area, context);
+}
+
+void
Container::compute_bounding_box () const
{
_bounding_box = boost::none;