summaryrefslogtreecommitdiff
path: root/libs/canvas/container.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2017-04-01 23:02:49 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-06-26 08:40:47 +1000
commitc4e31fc32273a84c0436f32fce742ae21718b03c (patch)
tree3fac41d0063c4dc43112e1a65b43ede9b03f72aa /libs/canvas/container.cc
parent265f52535a73d996de0e6a61a5b30070c6226cf8 (diff)
Add an optional ArdourCanvas::Item::prepare_for_render interface
Called when an item has requested a redraw and intersects with visible canvas area. Also add Canvas::prepare_for_render that will call Item::prepare_for_render for items visible on the canvas.
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 78598d5118..71085a8257 100644
--- a/libs/canvas/container.cc
+++ b/libs/canvas/container.cc
@@ -38,6 +38,12 @@ Container::Container (Item* parent, Duple const & p)
}
void
+Container::prepare_for_render (Rect const & area) const
+{
+ Item::prepare_for_render_children (area);
+}
+
+void
Container::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
{
Item::render_children (area, context);