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

Method draw_rect_filled

sdl/src/host.rs:553–556  ·  view source on GitHub ↗
(&mut self, xy: PixelsXY, size: SizeInPixels)

Source from the content-addressed store, hash-verified

551 }
552
553 fn draw_rect_filled(&mut self, xy: PixelsXY, size: SizeInPixels) -> io::Result<()> {
554 let rect = rect_origin_size(xy, size);
555 self.canvas.fill_rect(rect).map_err(string_error_to_io_error)
556 }
557
558 fn draw_tri(&mut self, x1y1: PixelsXY, x2y2: PixelsXY, x3y3: PixelsXY) -> io::Result<()> {
559 draw_tri(self, x1y1, x2y2, x3y3)

Callers 2

runFunction · 0.45
draw_logo_internalFunction · 0.45

Calls 1

rect_origin_sizeFunction · 0.85

Tested by

no test coverage detected