Test whether the mouse event occurred on the figure. Returns ------- bool, {}
(self, mouseevent)
| 291 | "use the `get_figure` method.")) |
| 292 | |
| 293 | def contains(self, mouseevent): |
| 294 | """ |
| 295 | Test whether the mouse event occurred on the figure. |
| 296 | |
| 297 | Returns |
| 298 | ------- |
| 299 | bool, {} |
| 300 | """ |
| 301 | if self._different_canvas(mouseevent): |
| 302 | return False, {} |
| 303 | inside = self.bbox.contains(mouseevent.x, mouseevent.y) |
| 304 | return inside, {} |
| 305 | |
| 306 | def get_window_extent(self, renderer=None): |
| 307 | # docstring inherited |
nothing calls this directly
no test coverage detected