MCPcopy Create free account
hub / github.com/axmolengine/axmol / copyClonedWidgetChildren

Method copyClonedWidgetChildren

core/ui/UIWidget.cpp:1281–1293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1279}
1280
1281void Widget::copyClonedWidgetChildren(Widget* model)
1282{
1283 auto& modelChildren = model->getChildren();
1284
1285 for (auto&& subWidget : modelChildren)
1286 {
1287 Widget* child = dynamic_cast<Widget*>(subWidget);
1288 if (child)
1289 {
1290 addChild(child->clone());
1291 }
1292 }
1293}
1294
1295void Widget::copySpecialProperties(Widget* /*model*/) {}
1296

Callers 1

cloneMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected