pub struct Terminal<B>where
B: Backend,{
pub backend: B,
/* private fields */
}
Fields§
§backend: B
Implementations§
source§impl<B> Terminal<B>where
B: Backend,
impl<B> Terminal<B>where
B: Backend,
pub fn new(backend: B) -> Result<Terminal<B>>
pub fn current_buffer_mut(&mut self) -> &mut Buffer
pub fn reconcile_and_flush(&mut self) -> Result<()>
pub fn resize(&mut self, area: Rect) -> Result<()>
pub fn autoresize(&mut self) -> Result<()>
sourcepub fn pre_render(&mut self) -> Result<Rect>
pub fn pre_render(&mut self) -> Result<Rect>
Get ready for rendering and return the maximum display size as Rect
pub fn post_render(&mut self) -> Result<()>
pub fn render<C>(
&mut self,
component: &mut C,
props: impl Borrow<C::Props>
) -> Result<()>where
C: ToplevelComponent,
pub fn hide_cursor(&mut self) -> Result<()>
pub fn show_cursor(&mut self) -> Result<()>
pub fn get_cursor(&mut self) -> Result<(u16, u16)>
pub fn set_cursor(&mut self, x: u16, y: u16) -> Result<()>
pub fn clear(&mut self) -> Result<()>
pub fn size(&self) -> Result<Rect>
Trait Implementations§
Auto Trait Implementations§
impl<B> RefUnwindSafe for Terminal<B>where
B: RefUnwindSafe,
impl<B> Send for Terminal<B>where
B: Send,
impl<B> Sync for Terminal<B>where
B: Sync,
impl<B> Unpin for Terminal<B>where
B: Unpin,
impl<B> UnwindSafe for Terminal<B>where
B: UnwindSafe,
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