mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
initial redesign of canvas scrolling to facilitate independent x- and y-axis scrolling of specific groups within the canvas.
This commit should cause no change in behaviour, but contains all the code and changes necessary for the next step
This commit is contained in:
parent
ee6c483d18
commit
97109672c7
11 changed files with 144 additions and 38 deletions
|
|
@ -147,6 +147,16 @@ Group::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
|||
--render_depth;
|
||||
}
|
||||
|
||||
void
|
||||
Group::scroll_to (Duple const& d)
|
||||
{
|
||||
Item::scroll_to (d);
|
||||
|
||||
for (list<Item*>::iterator i = _items.begin(); i != _items.end(); ) {
|
||||
(*i)->scroll_to (d);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Group::compute_bounding_box () const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue