Skip to main content

UiCanvas

Trait UiCanvas 

Source
pub trait UiCanvas: DrawTarget<Color = Rgb565> {
    // Required method
    fn dim_rect(&mut self, area: Rectangle, alpha: u8);
}
Expand description

Drawing surface used by faststep widgets and overlays.

Required Methods§

Source

fn dim_rect(&mut self, area: Rectangle, alpha: u8)

Applies a dimming overlay over area using the given alpha.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§