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

Method hitTest

core/ui/UIWidget.cpp:1030–1035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028}
1029
1030bool Widget::hitTest(const Vec2& pt, const Camera* camera, Vec3* p) const
1031{
1032 Rect rect;
1033 rect.size = getContentSize();
1034 return isScreenPointInRect(pt, camera, getWorldToNodeTransform(), rect, p);
1035}
1036
1037bool Widget::isClippingParentContainsPoint(const Vec2& pt)
1038{

Callers 1

Calls 1

isScreenPointInRectFunction · 0.85

Tested by

no test coverage detected