pub struct VirtualLcd { /* private fields */ }Implementations§
Source§impl VirtualLcd
impl VirtualLcd
pub fn new(config: LcdConfig) -> Result<Self>
pub fn config(&self) -> &LcdConfig
pub fn state(&self) -> &LcdState
pub fn pins(&self) -> &PinBank
pub fn visible_frame(&self) -> &Framebuffer
pub fn working_frame(&self) -> &Framebuffer
pub fn controller_model(&self) -> ControllerModel
pub fn set_window( &mut self, x: u16, y: u16, width: u16, height: u16, ) -> Result<()>
pub fn set_address_window( &mut self, x0: u16, y0: u16, x1: u16, y1: u16, ) -> Result<()>
pub fn write_pixels(&mut self, pixels: &[Color]) -> Result<()>
pub fn tick(&mut self) -> bool
pub fn time_until_ready(&self) -> Option<Duration>
pub fn has_pending_frame(&self) -> bool
Trait Implementations§
Source§impl Debug for VirtualLcd
impl Debug for VirtualLcd
Source§impl Lcd for VirtualLcd
impl Lcd for VirtualLcd
type Error = LcdError
fn init(&mut self) -> Result<()>
fn clear(&mut self, color: Color) -> Result<()>
fn draw_pixel(&mut self, x: u16, y: u16, color: Color) -> Result<()>
fn fill_rect( &mut self, x: u16, y: u16, width: u16, height: u16, color: Color, ) -> Result<()>
fn present(&mut self) -> Result<()>
Source§impl LcdBus for VirtualLcd
impl LcdBus for VirtualLcd
Auto Trait Implementations§
impl Freeze for VirtualLcd
impl RefUnwindSafe for VirtualLcd
impl Send for VirtualLcd
impl Sync for VirtualLcd
impl Unpin for VirtualLcd
impl UnsafeUnpin for VirtualLcd
impl UnwindSafe for VirtualLcd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more