Skip to main content

DisplayDriverOps

Trait DisplayDriverOps 

Source
pub trait DisplayDriverOps: BaseDriverOps {
    // Required methods
    fn info(&self) -> DisplayInfo;
    fn fb(&self) -> FrameBuffer<'_>;
    fn need_flush(&self) -> bool;
    fn flush(&mut self) -> DevResult;
}
Expand description

Operations that require a graphics device driver to implement.

Required Methods§

Source

fn info(&self) -> DisplayInfo

Get the display information.

Source

fn fb(&self) -> FrameBuffer<'_>

Get the framebuffer.

Source

fn need_flush(&self) -> bool

Whether need to flush the framebuffer to the screen.

Source

fn flush(&mut self) -> DevResult

Flush framebuffer to the screen.

Implementors§