mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
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:
parent
265f52535a
commit
c4e31fc322
6 changed files with 93 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue