mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
make inclusion/exclusion of hidden children optional in Item::add_child_bounding_boxes
This commit is contained in:
parent
5672419fff
commit
f66f7ba136
2 changed files with 3 additions and 3 deletions
|
|
@ -295,7 +295,7 @@ protected:
|
||||||
/* our items, from lowest to highest in the stack */
|
/* our items, from lowest to highest in the stack */
|
||||||
std::list<Item*> _items;
|
std::list<Item*> _items;
|
||||||
|
|
||||||
void add_child_bounding_boxes() const;
|
void add_child_bounding_boxes (bool include_hidden = false) const;
|
||||||
void render_children (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const;
|
void render_children (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const;
|
||||||
|
|
||||||
Duple scroll_offset() const;
|
Duple scroll_offset() const;
|
||||||
|
|
|
||||||
|
|
@ -817,7 +817,7 @@ Item::render_children (Rect const & area, Cairo::RefPtr<Cairo::Context> context)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Item::add_child_bounding_boxes() const
|
Item::add_child_bounding_boxes (bool include_hidden) const
|
||||||
{
|
{
|
||||||
boost::optional<Rect> self;
|
boost::optional<Rect> self;
|
||||||
Rect bbox;
|
Rect bbox;
|
||||||
|
|
@ -830,7 +830,7 @@ Item::add_child_bounding_boxes() const
|
||||||
|
|
||||||
for (list<Item*>::const_iterator i = _items.begin(); i != _items.end(); ++i) {
|
for (list<Item*>::const_iterator i = _items.begin(); i != _items.end(); ++i) {
|
||||||
|
|
||||||
if (!(*i)->visible()) {
|
if (!(*i)->visible() && !include_hidden) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue