| 1274 | } |
| 1275 | |
| 1276 | void LayoutHelper::VisibleRect::setNodeNormalizedPositionY(ax::Node* pNode, float ratio) |
| 1277 | { |
| 1278 | AX_ASSERT(pNode); |
| 1279 | ax::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); |
| 1280 | |
| 1281 | ax::Point ptWorld(0, visibleRect.size.height * ratio + visibleRect.origin.y); |
| 1282 | auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); |
| 1283 | pNode->setPositionY(ptLocal.y); |
| 1284 | } |
| 1285 | void LayoutHelper::VisibleRect::setNodeNormalizedPosition(Node* pNode, const ax::Point& ratio) |
| 1286 | { |
| 1287 | AX_ASSERT(pNode); |
nothing calls this directly
no test coverage detected