rlvgl_core/renderer.rs
1use crate::widget::{Color, Rect};
2
3/// Target-agnostic drawing interface.
4///
5/// Renderers are supplied to widgets during the draw phase. Implementations
6/// may target a physical display, an off-screen buffer or a simulator window.
7pub trait Renderer {
8 fn fill_rect(&mut self, rect: Rect, color: Color);
9 fn draw_text(&mut self, position: (i32, i32), text: &str, color: Color);
10}