pub trait DisplayScheme: Scheme {
    fn info(&self) -> DisplayInfo;
    fn fb(&self) -> FrameBuffer<'_>;

    fn draw_pixel(&self, x: u32, y: u32, color: RgbColor) { ... }
    fn fill_rect(&self, rect: &Rectangle, color: RgbColor) { ... }
    fn clear(&self, color: RgbColor) { ... }
    fn need_flush(&self) -> bool { ... }
    fn flush(&self) -> Result<(), DeviceError> { ... }
}

Required Methods

Returns the framebuffer.

Provided Methods

Write pixel color.

Fill a given rectangle with color.

Clear the screen with color.

Whether need to flush the frambuffer to screen.

Flush framebuffer to screen.

Implementors