Struct tui_react::Terminal [−][src]
pub struct Terminal<B> where
B: Backend, {
pub backend: B,
// some fields omitted
}
Fields
backend: B
Implementations
impl<B> Terminal<B> where
B: Backend,
[src]
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]
&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
Auto Trait Implementations
impl<B> RefUnwindSafe for Terminal<B> where
B: RefUnwindSafe,
impl<B> RefUnwindSafe for Terminal<B> where
B: RefUnwindSafe,
impl<B> UnwindSafe for Terminal<B> where
B: UnwindSafe,
impl<B> UnwindSafe for Terminal<B> where
B: UnwindSafe,