MCPcopy Create free account
hub / github.com/axmolengine/axmol / getNodeBottom

Method getNodeBottom

core/ui/LayoutHelper.cpp:1006–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004 return ptWorld.x;
1005}
1006float LayoutHelper::VisibleRect::getNodeBottom(Node* pNode)
1007{
1008 ax::Point ptLocal(0, LayoutHelper::getNodeBottom(pNode));
1009 auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal);
1010
1011 return ptWorld.y;
1012}
1013float LayoutHelper::VisibleRect::getNodeRight(Node* pNode)
1014{
1015 ax::Point ptLocal(LayoutHelper::getNodeLeft(pNode) + pNode->getContentSize().width /* * pNode->getScaleX()*/,

Callers

nothing calls this directly

Calls 3

getNodeBottomFunction · 0.85
convertToWorldSpaceMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected