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

Method getParents

src/ui/widget.cpp:410–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410void Widget::getParents(bool ascendant, WidgetsList& parents)
411{
412 for (Widget* widget=this; widget; widget=widget->m_parent) {
413 // append parents in tail
414 if (ascendant)
415 parents.push_back(widget);
416 // append parents in head
417 else
418 parents.insert(parents.begin(), widget);
419 }
420}
421
422Widget* Widget::nextSibling()
423{

Callers 2

setFocusMethod · 0.80
setMouseMethod · 0.80

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected