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

Method size_pixels

sdl/src/console.rs:173–179  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

171 }
172
173 fn size_pixels(&self) -> io::Result<SizeInPixels> {
174 self.request_tx.send(Request::SizePixels).expect("Channel must be alive");
175 match self.response_rx.recv().expect("Channel must be alive") {
176 Response::SizePixels(size) => Ok(size),
177 _ => panic!("Unexpected response type"),
178 }
179 }
180
181 fn glyph_size(&self) -> io::Result<SizeInPixels> {
182 self.request_tx.send(Request::GlyphSize).expect("Channel must be alive");

Calls 1

recvMethod · 0.80