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

Method hasAncestor

src/ui/widget.cpp:484–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484bool Widget::hasAncestor(Widget* ancestor)
485{
486 for (Widget* widget=m_parent; widget; widget=widget->m_parent) {
487 if (widget == ancestor)
488 return true;
489 }
490 return false;
491}
492
493Widget* Widget::findChild(const char* id)
494{

Callers 1

onProcessMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected