(&mut self)
| 86 | } |
| 87 | } |
| 88 | fn paint(&mut self) { |
| 89 | Rectangle::with_center(self.latest_pos, Size::new(RECT_SIZE, RECT_SIZE)) |
| 90 | .into_styled(PrimitiveStyle::with_stroke(Rgb888::WHITE, 1)) |
| 91 | .draw(&mut self.disp) |
| 92 | .ok(); |
| 93 | } |
| 94 | fn unpaint(&mut self) { |
| 95 | Rectangle::with_center(self.latest_pos, Size::new(RECT_SIZE, RECT_SIZE)) |
| 96 | .into_styled(PrimitiveStyle::with_stroke(Rgb888::BLACK, 1)) |