[−][src]Struct tui_react::Terminal
Fields
backend: B
Methods
impl<B> Terminal<B> where
B: Backend,
[src]
B: Backend,
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]
&mut self,
component: &mut C,
props: impl Borrow<C::Props>
) -> Result<()> where
C: ToplevelComponent,
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]
B: Backend,
impl<B> Drop for Terminal<B> where
B: Backend,
[src]
B: Backend,
Auto Trait Implementations
impl<B> RefUnwindSafe for Terminal<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for Terminal<B> where
B: Send,
B: Send,
impl<B> Sync for Terminal<B> where
B: Sync,
B: Sync,
impl<B> Unpin for Terminal<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for Terminal<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,