Struct broot::kitty::KittyImageRenderer
source · pub struct KittyImageRenderer { /* private fields */ }
Expand description
The image renderer, with knowledge of the console cells dimensions, and built only on a compatible terminal
Implementations§
source§impl KittyImageRenderer
impl KittyImageRenderer
sourcepub fn new(options: &KittyImageRendererOptions) -> Option<Self>
pub fn new(options: &KittyImageRendererOptions) -> Option<Self>
Called only once (at most) by the KittyManager
sourcepub fn print(
&mut self,
w: &mut W,
src: &DynamicImage,
area: &Area,
bg: Color
) -> Result<usize, ProgramError>
pub fn print( &mut self, w: &mut W, src: &DynamicImage, area: &Area, bg: Color ) -> Result<usize, ProgramError>
Clean the area, then print the dynamicImage and return the KittyImageId for later removal from screen
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for KittyImageRenderer
impl Send for KittyImageRenderer
impl Sync for KittyImageRenderer
impl Unpin for KittyImageRenderer
impl UnwindSafe for KittyImageRenderer
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