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

Function engine_inj_containsPoint

core/ui/UITextFieldEx.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static bool engine_inj_containsPoint(ax::Node* target, const ax::Vec2& worldPoint)
80{
81 ax::Point pt = target->convertToNodeSpace(worldPoint);
82
83 const Vec2& size = target->getContentSize();
84
85 ax::Rect rc(0, 0, size.width, size.height);
86
87 bool contains = (rc.containsPoint(pt));
88
89 // AXLOGD("check {:#x} coordinate:({}, {}), contains:{}", target, pt.x, pt.y, contains);
90 return contains;
91}
92
93static uint32_t engine_inj_c4b2dw(const Color4B& value)
94{

Callers

nothing calls this directly

Calls 3

convertToNodeSpaceMethod · 0.80
getContentSizeMethod · 0.45
containsPointMethod · 0.45

Tested by

no test coverage detected