use embedded_graphics::{draw_target::DrawTarget, pixelcolor::Rgb565, primitives::Rectangle};
/// Drawing surface used by `faststep` widgets and overlays.
pub trait UiCanvas: DrawTarget<Color = Rgb565> {
/// Applies a dimming overlay over `area` using the given alpha.
fn dim_rect(&mut self, area: Rectangle, alpha: u8);
}