MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / paint

Method paint

user/src/bin/gui_uart.rs:88–93  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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

Callers 2

move_rectMethod · 0.45
mainFunction · 0.45

Calls 1

drawMethod · 0.80

Tested by

no test coverage detected