Return item which is closest to pixel at X, Y. If several match take the top-most. All items closer than HALO are considered overlapping (all are closest). If START is specified the next below this tag is taken.
(self, x, y, halo=None, start=None)
| 3130 | return self.find('below', tagOrId) |
| 3131 | |
| 3132 | def find_closest(self, x, y, halo=None, start=None): |
| 3133 | """Return item which is closest to pixel at X, Y. |
| 3134 | If several match take the top-most. |
| 3135 | All items closer than HALO are considered overlapping (all are |
| 3136 | closest). If START is specified the next below this tag is taken.""" |
| 3137 | return self.find('closest', x, y, halo, start) |
| 3138 | |
| 3139 | def find_enclosed(self, x1, y1, x2, y2): |
| 3140 | """Return all items in rectangle defined |