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.
This commit is contained in:
Tim Mayberry 2017-04-01 23:02:49 +10:00
parent 265f52535a
commit c4e31fc322
6 changed files with 93 additions and 1 deletions

View file

@ -37,6 +37,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
{