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

Function has_graphics

repl/src/lib.rs:66–68  ·  view source on GitHub ↗

Checks if the given `console` has graphics support.

(console: &dyn Console)

Source from the content-addressed store, hash-verified

64
65/// Checks if the given `console` has graphics support.
66fn has_graphics(console: &dyn Console) -> bool {
67 console.size_pixels().is_ok() && console.glyph_size().is_ok()
68}
69
70/// Prints the EndBASIC welcome message to the given console.
71pub fn print_welcome(console: &mut dyn Console) -> io::Result<()> {

Callers 1

print_welcomeFunction · 0.85

Calls 2

size_pixelsMethod · 0.45
glyph_sizeMethod · 0.45

Tested by

no test coverage detected