Trait kernel_hal::drivers::scheme::DisplayScheme
source · [−]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
fn info(&self) -> DisplayInfo
fn fb(&self) -> FrameBuffer<'_>
fn fb(&self) -> FrameBuffer<'_>
Returns the framebuffer.
Provided Methods
fn draw_pixel(&self, x: u32, y: u32, color: RgbColor)
fn draw_pixel(&self, x: u32, y: u32, color: RgbColor)
Write pixel color.
fn need_flush(&self) -> bool
fn need_flush(&self) -> bool
Whether need to flush the frambuffer to screen.
fn flush(&self) -> Result<(), DeviceError>
fn flush(&self) -> Result<(), DeviceError>
Flush framebuffer to screen.