faststep 0.1.0

UIKit-inspired embedded UI framework built on embedded-graphics
Documentation
1
2
3
4
5
6
7
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);
}