Skip to main content

WindowedDrawTarget

Trait WindowedDrawTarget 

Source
pub trait WindowedDrawTarget: DrawTarget {
    // Required method
    fn set_window(&mut self, area: &Rectangle) -> Result<(), Self::Error>;
}
Expand description

Capability trait for hardware display controllers (e.g. ST7789, ILI9341, SSD1306) supporting direct column/row address window setting (set_address_window). Allows rendering dirty regions by transmitting SPI/DMA transfers exclusively to the target sub-window instead of the full screen.

Required Methods§

Source

fn set_window(&mut self, area: &Rectangle) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§