| 1265 | } |
| 1266 | |
| 1267 | void LayoutHelper::VisibleRect::setNodeNormalizedPositionX(ax::Node* pNode, float ratio) |
| 1268 | { |
| 1269 | AX_ASSERT(pNode); |
| 1270 | ax::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); |
| 1271 | ax::Point ptWorld(visibleRect.size.width * ratio + visibleRect.origin.x, 0); |
| 1272 | auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); |
| 1273 | pNode->setPositionX(ptLocal.x); |
| 1274 | } |
| 1275 | |
| 1276 | void LayoutHelper::VisibleRect::setNodeNormalizedPositionY(ax::Node* pNode, float ratio) |
| 1277 | { |
nothing calls this directly
no test coverage detected