pub struct Fb {
pub fd: c_int,
pub ptr: *mut u8,
pub map_len: usize,
pub stride: usize,
pub bpp: usize,
pub xres: usize,
pub yres: usize,
/* private fields */
}Fields§
§fd: c_int§ptr: *mut u8§map_len: usize§stride: usize§bpp: usize§xres: usize§yres: usizeImplementations§
Source§impl Fb
impl Fb
pub fn open() -> Option<Fb>
Sourcepub fn present_rect(
&self,
buf: &[u8],
w: usize,
h: usize,
rect: &UpdateRegion,
waveform: u32,
)
pub fn present_rect( &self, buf: &[u8], w: usize, h: usize, rect: &UpdateRegion, waveform: u32, )
Blit and refresh an arbitrary rectangle, rather than present’s
full-width band.
Needed when a waveform must be kept off neighbouring pixels: a 1-bit waveform (A2/DU) drives every pixel in its update region to black or white, so a full-width band would flatten anything colourful sharing those rows. Bounding the region horizontally keeps the waveform on the animated area alone.
Sourcepub fn present(
&self,
buf: &[u8],
w: usize,
h: usize,
full: bool,
top: usize,
rh: usize,
waveform: u32,
)
pub fn present( &self, buf: &[u8], w: usize, h: usize, full: bool, top: usize, rh: usize, waveform: u32, )
Blit an RGB565 byte buffer to the framebuffer and trigger an e-ink
refresh. buf is w * h * 2 bytes, little-endian RGB565.
pub fn wait_for_update_complete(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Send for Fb
impl !Sync for Fb
impl Freeze for Fb
impl RefUnwindSafe for Fb
impl Unpin for Fb
impl UnsafeUnpin for Fb
impl UnwindSafe for Fb
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