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

Method getNodeLeft

core/ui/LayoutHelper.cpp:1000–1005  ·  view source on GitHub ↗

visual screen

Source from the content-addressed store, hash-verified

998
999/// visual screen
1000float LayoutHelper::VisibleRect::getNodeLeft(Node* pNode)
1001{
1002 ax::Point ptLocal(LayoutHelper::getNodeLeft(pNode), 0);
1003 auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal);
1004 return ptWorld.x;
1005}
1006float LayoutHelper::VisibleRect::getNodeBottom(Node* pNode)
1007{
1008 ax::Point ptLocal(0, LayoutHelper::getNodeBottom(pNode));

Callers

nothing calls this directly

Calls 3

getNodeLeftFunction · 0.85
convertToWorldSpaceMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected