MCPcopy Create free account
hub / github.com/endbasic/endbasic / get_info

Method get_info

web/src/canvas.rs:187–193  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

185 type ID = ImageData;
186
187 fn get_info(&self) -> RasterInfo {
188 RasterInfo {
189 size_pixels: self.size_pixels,
190 size_chars: self.font.chars_in_area(self.size_pixels),
191 glyph_size: self.font.glyph_size.into(),
192 }
193 }
194
195 fn set_draw_color(&mut self, color: RGB) {
196 self.set_fill_style_rgb(color);

Callers

nothing calls this directly

Calls 1

chars_in_areaMethod · 0.80

Tested by

no test coverage detected