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

Method getChildrenSpaceWidth

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

Source from the content-addressed store, hash-verified

1353 }
1354 return absolutePoint;
1355}
1356
1357Point ViewNode::convertSelfVisualToParentVisual(const Point& selfDirectionDependentVisual) const {
1358 auto parentDirectionDependentVisual = selfDirectionDependentVisual;
1359 parentDirectionDependentVisual += getDirectionDependentTransform();
1360 if (isInScrollMode()) {
1361 parentDirectionDependentVisual -= _scrollState->getDirectionDependentContentOffset();
1362 }
1363 return parentDirectionDependentVisual;

Callers 4

TEST_PFunction · 0.80
TESTFunction · 0.80
rebuildMethod · 0.80

Calls 1

isInScrollModeMethod · 0.45

Tested by 2

TEST_PFunction · 0.64
TESTFunction · 0.64