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

Method draw_rect_filled

std/src/console/graphics.rs:771–778  ·  view source on GitHub ↗
(&mut self, x1y1: PixelsXY, x2y2: PixelsXY)

Source from the content-addressed store, hash-verified

769 }
770
771 fn draw_rect_filled(&mut self, x1y1: PixelsXY, x2y2: PixelsXY) -> io::Result<()> {
772 self.raster_ops.set_draw_color(self.fg_color);
773 match rect_points(x1y1, x2y2) {
774 Some((xy, size)) => self.raster_ops.draw_rect_filled(xy, size)?,
775 None => self.raster_ops.draw_line(x1y1, x2y2)?,
776 }
777 self.present_canvas()
778 }
779
780 fn draw_tri(&mut self, x1y1: PixelsXY, x2y2: PixelsXY, x3y3: PixelsXY) -> io::Result<()> {
781 if !tri_points(x1y1, x2y2, x3y3) {

Callers 4

draw_cursorMethod · 0.45
open_lineMethod · 0.45
raw_write_wrappedMethod · 0.45
clearMethod · 0.45

Calls 4

rect_pointsFunction · 0.85
set_draw_colorMethod · 0.45
draw_lineMethod · 0.45
present_canvasMethod · 0.45

Tested by

no test coverage detected