MCPcopy Create free account
hub / github.com/JacquesLucke/code_autocomplete / contains

Method contains

graphics.py:96–97  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

94 return [self.left, self.top]
95
96 def contains(self, x, y):
97 return self.left <= x <= self.right and self.top >= y >= self.bottom
98
99 def get_inset_rectangle(self, border):
100 return Rectangle(self.left + border, self.top - border, self.width - 2*border, self.height - 2*border)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected