| 61 | } |
| 62 | |
| 63 | static bool _containsTouchPoint(ax::Node* target, ax::Touch* touch) |
| 64 | { |
| 65 | assert(target != nullptr); |
| 66 | |
| 67 | ax::Point pt = target->convertTouchToNodeSpace(touch); |
| 68 | |
| 69 | const Vec2& size = target->getContentSize(); |
| 70 | |
| 71 | ax::Rect rc(0, 0, size.width, size.height); |
| 72 | |
| 73 | bool contains = (rc.containsPoint(pt)); |
| 74 | |
| 75 | // AXLOGD("check {:#x} coordinate:({}, {}), contains:{}", target, pt.x, pt.y, contains); |
| 76 | return contains; |
| 77 | } |
| 78 | |
| 79 | static bool engine_inj_containsPoint(ax::Node* target, const ax::Vec2& worldPoint) |
| 80 | { |
no test coverage detected