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

Method getNodeRight

core/ui/LayoutHelper.cpp:1013–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011 return ptWorld.y;
1012}
1013float LayoutHelper::VisibleRect::getNodeRight(Node* pNode)
1014{
1015 ax::Point ptLocal(LayoutHelper::getNodeLeft(pNode) + pNode->getContentSize().width /* * pNode->getScaleX()*/,
1016 0);
1017 auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal);
1018
1019 auto visibleRect = LayoutHelper::VisibleRect::getScreenVisibleRect();
1020 return visibleRect.size.width - ptWorld.x;
1021}
1022float LayoutHelper::VisibleRect::getNodeTop(Node* pNode)
1023{
1024 ax::Point ptLocal(

Callers

nothing calls this directly

Calls 4

getNodeLeftFunction · 0.85
convertToWorldSpaceMethod · 0.80
getContentSizeMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected