MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / hasChild

Method hasChild

src/ui/widget.cpp:477–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477bool Widget::hasChild(Widget* child)
478{
479 ASSERT_VALID_WIDGET(child);
480
481 return std::find(m_children.begin(), m_children.end(), child) != m_children.end();
482}
483
484bool Widget::hasAncestor(Widget* ancestor)
485{

Callers 1

setup_scrollbarsFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected