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

Method offsetWidgets

src/ui/widget.cpp:1516–1527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1514}
1515
1516void Widget::offsetWidgets(int dx, int dy)
1517{
1518 m_updateRegion.offset(dx, dy);
1519 m_bounds.offset(dx, dy);
1520
1521 // Remove all paint messages for this widget.
1522 if (Manager* manager = this->manager())
1523 manager->removeMessagesFor(this, kPaintMessage);
1524
1525 for (auto child : m_children)
1526 child->offsetWidgets(dx, dy);
1527}
1528
1529} // namespace ui

Callers 1

onSetViewScrollMethod · 0.80

Calls 3

managerMethod · 0.95
removeMessagesForMethod · 0.80
offsetMethod · 0.45

Tested by

no test coverage detected