use crate::BoundingBox; pub trait DisplayPort { type Error; fn clear_region(&mut self, bounds: BoundingBox) -> Result<(), Self::Error>; fn draw_text( &mut self, text: &str, x: u16, y: u16, bounds: BoundingBox, ) -> Result<(), Self::Error>; fn draw_icon(&mut self, icon: &str, x: u16, y: u16) -> Result<(), Self::Error>; fn fill_background(&mut self, bounds: BoundingBox) -> Result<(), Self::Error>; fn flush(&mut self) -> Result<(), Self::Error>; }