MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / fill

Method fill

crates/virtual-machine/src/devices/framebuffer.rs:69–75  ·  view source on GitHub ↗

Fill the draw buffer with one RGBA colour (little-endian word).

(&mut self, color: u32)

Source from the content-addressed store, hash-verified

67 self.version
68 }
69
70 /// Both pixel planes (front then back) as one image; the bulk term of a
71 /// device snapshot, delta-compressed by the session like RAM.
72 pub fn plane_image(&self) -> Vec<u8> {
73 let mut buf = Vec::with_capacity(self.front.len() + self.back.len());
74 buf.extend_from_slice(&self.front);
75 buf.extend_from_slice(&self.back);
76 buf
77 }
78

Callers 15

uiMethod · 0.80
render_toolbarMethod · 0.80
uiMethod · 0.80
uiMethod · 0.80
uiMethod · 0.80
uiMethod · 0.80
uiMethod · 0.80
uiMethod · 0.80
render_textMethod · 0.80
uiMethod · 0.80
uiMethod · 0.80
uiMethod · 0.80

Calls 1

draw_bufferMethod · 0.80

Tested by

no test coverage detected