Trait zcore_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) -> DeviceResult { ... }
}
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) -> DeviceResult
fn flush(&self) -> DeviceResult
Flush framebuffer to screen.
Implementors
impl DisplayScheme for UefiDisplay
impl DisplayScheme for MockDisplay
Available on crate feature
mock
only.impl<'a> DisplayScheme for VirtIoGpu<'a>
Available on crate feature
virtio
only.