use winit::application::ApplicationHandler; use super::text::TextSpan; /// Trait that all renderer backends must implement. pub trait RendererBackend: ApplicationHandler { fn name(&self) -> &str; fn init(&mut self, width: i32, height: i32) -> bool; fn clear(&mut self); fn draw_text(&mut self, span: &TextSpan); fn present(&mut self); fn shutdown(&mut self); }