(&mut self, xy: PixelsXY, size: SizeInPixels)
| 486 | } |
| 487 | |
| 488 | fn draw_rect_filled(&mut self, xy: PixelsXY, size: SizeInPixels) -> io::Result<()> { |
| 489 | let x1y1 = self.clamp_xy(xy); |
| 490 | let x2y2 = self.clip_x2y2(xy, size); |
| 491 | match x2y2 { |
| 492 | Some(x2y2) => self.fill(x1y1, x2y2), |
| 493 | _ => Ok(()), |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | fn draw_tri(&mut self, x1y1: PixelsXY, x2y2: PixelsXY, x3y3: PixelsXY) -> io::Result<()> { |
| 498 | self.without_sync(|self2| drawing::draw_tri(self2, x1y1, x2y2, x3y3)) |