MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ARRAY_START

Function ARRAY_START

Source/Node/AlignNode.cpp:320–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 if (getSize() != newSize) {
319 setSize(newSize);
320 ARRAY_START(Node, child, _children) {
321 if (auto alignChild = DoraAs<AlignNode>(child)) {
322 alignChild->setX(YGNodeLayoutGetLeft(alignChild->_yogaNode) + alignChild->getWidth() / 2.0f);
323 alignChild->setY(getHeight() - (YGNodeLayoutGetTop(alignChild->_yogaNode) + alignChild->getHeight() / 2.0f));
324 }
325 }
326 ARRAY_END
327 }
328 if (YGNodeGetParent(_yogaNode)) {

Callers

nothing calls this directly

Calls 6

YGNodeLayoutGetLeftFunction · 0.85
YGNodeLayoutGetTopFunction · 0.85
setXMethod · 0.45
getWidthMethod · 0.45
setYMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected