MCPcopy Index your code
hub / github.com/endbasic/endbasic / draw_rect_filled

Method draw_rect_filled

std/src/gfx/lcd/buffered/mod.rs:488–495  ·  view source on GitHub ↗
(&mut self, xy: PixelsXY, size: SizeInPixels)

Source from the content-addressed store, hash-verified

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))

Callers 6

execMethod · 0.45
move_pixelsMethod · 0.45

Calls 3

clamp_xyMethod · 0.80
clip_x2y2Method · 0.80
fillMethod · 0.80

Tested by 4