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

Function ygNodeGetFrame

valdi/src/valdi/runtime/Context/ViewNode.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 return yogaValue;
106}
107
108static Frame ygNodeGetFrame(YGNode* yogaNode, float offsetX) {
109 return Frame(sanitizeYogaValue(YGNodeLayoutGetLeft(yogaNode) + offsetX),
110 sanitizeYogaValue(YGNodeLayoutGetTop(yogaNode)),
111 sanitizeYogaValue(YGNodeLayoutGetWidth(yogaNode)),
112 sanitizeYogaValue(YGNodeLayoutGetHeight(yogaNode)));
113}
114

Callers 3

measureLayoutMethod · 0.85
updateCalculatedFrameMethod · 0.85
updateScrollStateMethod · 0.85

Calls 5

resolveYogaNodeFunction · 0.85
sanitizeYogaValueFunction · 0.85
dimensionMethod · 0.80
FrameClass · 0.50
positionMethod · 0.45

Tested by

no test coverage detected