(&self, button: mouse::Button)
| 486 | } |
| 487 | } |
| 488 | |
| 489 | pub(crate) fn point_inside(&self, x: f32, y: f32) -> bool { |
| 490 | x >= 0.0 && y >= 0.0 && x <= self.bounds.width && y <= self.bounds.height |
| 491 | } |
| 492 | |
| 493 | pub(crate) fn cursor_inside(&self) -> bool { |
| 494 | self.point_inside(self.cursor_position.x, self.cursor_position.y) |
| 495 | } |