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)
| 3047 | return self.find('below', tagOrId) |
| 3048 | |
| 3049 | def find_closest(self, x, y, halo=None, start=None): |
| 3050 | """Return item which is closest to pixel at X, Y. |
| 3051 | If several match take the top-most. |
| 3052 | All items closer than HALO are considered overlapping (all are |
| 3053 | closest). If START is specified the next below this tag is taken.""" |
| 3054 | return self.find('closest', x, y, halo, start) |
| 3055 | |
| 3056 | def find_enclosed(self, x1, y1, x2, y2): |
| 3057 | """Return all items in rectangle defined |