| 1020 | return visibleRect.size.width - ptWorld.x; |
| 1021 | } |
| 1022 | float LayoutHelper::VisibleRect::getNodeTop(Node* pNode) |
| 1023 | { |
| 1024 | ax::Point ptLocal( |
| 1025 | 0, LayoutHelper::getNodeBottom(pNode) + pNode->getContentSize().height /* * pNode->getScaleY()*/); |
| 1026 | auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal); |
| 1027 | auto visibleRect = LayoutHelper::VisibleRect::getScreenVisibleRect(); |
| 1028 | |
| 1029 | return visibleRect.size.height - ptWorld.y; |
| 1030 | } |
| 1031 | |
| 1032 | void LayoutHelper::VisibleRect::setNodeLeft(Node* pNode, float left) |
| 1033 | { |
nothing calls this directly
no test coverage detected