[][src]Struct tui_react::Terminal

pub struct Terminal<B> where
    B: Backend
{ pub backend: B, // some fields omitted }

Fields

backend: B

Methods

impl<B> Terminal<B> where
    B: Backend
[src]

pub fn new(backend: B) -> Result<Terminal<B>>[src]

pub fn current_buffer_mut(&mut self) -> &mut Buffer[src]

pub fn reconcile_and_flush(&mut self) -> Result<()>[src]

pub fn resize(&mut self, area: Rect) -> Result<()>[src]

pub fn autoresize(&mut self) -> Result<()>[src]

pub fn pre_render(&mut self) -> Result<Rect>[src]

Get ready for rendering and return the maximum display size as Rect

pub fn post_render(&mut self) -> Result<()>[src]

pub fn render<C>(
    &mut self,
    component: &mut C,
    props: impl Borrow<C::Props>
) -> Result<()> where
    C: ToplevelComponent
[src]

pub fn hide_cursor(&mut self) -> Result<()>[src]

pub fn show_cursor(&mut self) -> Result<()>[src]

pub fn get_cursor(&mut self) -> Result<(u16, u16)>[src]

pub fn set_cursor(&mut self, x: u16, y: u16) -> Result<()>[src]

pub fn clear(&mut self) -> Result<()>[src]

pub fn size(&self) -> Result<Rect>[src]

Trait Implementations

impl<B: Debug> Debug for Terminal<B> where
    B: Backend
[src]

impl<B> Drop for Terminal<B> where
    B: Backend
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.