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

Method getBoundsOriginPoint

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

Source from the content-addressed store, hash-verified

1345 return Point(directionDependentFrame.x + getDirectionDependentTranslationX(),
1346 directionDependentFrame.y + _translationY);
1347}
1348
1349Point ViewNode::getDirectionAgnosticTransform() const {
1350 auto directionAgnosticFrame = getDirectionAgnosticFrame();
1351 return Point(directionAgnosticFrame.x + _translationX, directionAgnosticFrame.y + _translationY);
1352}
1353
1354Point ViewNode::getBoundsOriginPoint() const {
1355 if (isInScrollMode()) {
1356 return _scrollState->getDirectionDependentContentOffset();

Callers 2

TESTFunction · 0.80
getViewNodePointMethod · 0.80

Calls 2

PointClass · 0.50

Tested by 1

TESTFunction · 0.64