pub struct KittyScreen { /* private fields */ }Expand description
A Kitty presenter that remembers what it showed: each frame passes
every placement it wants on screen, and only the difference goes out.
Implementations§
Source§impl KittyScreen
impl KittyScreen
Sourcepub fn new(caps: &Capabilities) -> Self
pub fn new(caps: &Capabilities) -> Self
A screen for a fresh session on the terminal caps describes,
anchored and banded under a multiplexer.
Sourcepub fn repaint(&mut self)
pub fn repaint(&mut self)
Send everything again on the next frame, for a terminal that may have lost what it showed.
Sourcepub fn sends_everything(&self) -> bool
pub fn sends_everything(&self) -> bool
Whether the next frame sends everything, so the caller passes the pixels of every image it shows.
Trait Implementations§
Source§impl Debug for KittyScreen
impl Debug for KittyScreen
Auto Trait Implementations§
impl Forget for KittyScreen
impl Freeze for KittyScreen
impl Move for KittyScreen
impl RefUnwindSafe for KittyScreen
impl Send for KittyScreen
impl Sync for KittyScreen
impl Unpin for KittyScreen
impl UnsafeUnpin for KittyScreen
impl UnwindSafe for KittyScreen
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