MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / containsPoint

Method containsPoint

src/com/dtmilano/android/viewclient.py:1113–1116  ·  view source on GitHub ↗
(self, point: Tuple[int, int])

Source from the content-addressed store, hash-verified

1111 return list(set(l1) & set(l2))
1112
1113 def containsPoint(self, point: Tuple[int, int]) -> bool:
1114 (x, y) = point
1115 (X, Y, W, H) = self.getPositionAndSize()
1116 return (x >= X) and (x <= (X + W)) and ((y >= Y) and (y <= (Y + H)))
1117
1118 def add(self, child):
1119 """

Callers 3

Calls 1

getPositionAndSizeMethod · 0.95

Tested by 2