MCPcopy Create free account
hub / github.com/Snapchat/Valdi / YGNodeNewWithConfig

Function YGNodeNewWithConfig

third-party/yoga/src/yoga/YGNode.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24YGNodeRef YGNodeNewWithConfig(const YGConfigConstRef config) {
25 auto* node = new yoga::Node{resolveRef(config)};
26 yoga::assertFatal(
27 config != nullptr, "Tried to construct YGNode with null config");
28 Event::publish<Event::NodeAllocation>(node, {config});
29
30 return node;
31}
32
33YGNodeRef YGNodeClone(YGNodeConstRef oldNodeRef) {
34 auto oldNode = resolveRef(oldNodeRef);

Callers 9

createNodeMethod · 0.85
makeNodeMethod · 0.85
makeNodeMethod · 0.85
makeNodeMethod · 0.85
makeNodeMethod · 0.85
makeNodeMethod · 0.85
makeNodeMethod · 0.85
YGNodeNewFunction · 0.85
FlexboxNodeMethod · 0.85

Calls 2

assertFatalFunction · 0.85
resolveRefFunction · 0.50

Tested by 6

makeNodeMethod · 0.68
makeNodeMethod · 0.68
makeNodeMethod · 0.68
makeNodeMethod · 0.68
makeNodeMethod · 0.68
makeNodeMethod · 0.68