[][src]Struct tui::terminal::Frame

pub struct Frame<'a, B: 'a> where
    B: Backend
{ /* fields omitted */ }

Represents a consistent terminal interface for rendering.

Methods

impl<'a, B> Frame<'a, B> where
    B: Backend
[src]

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

Terminal size, guaranteed not to change when rendering.

pub fn render<W>(&mut self, widget: &mut W, area: Rect) where
    W: Widget
[src]

Calls the draw method of a given widget on the current buffer

Auto Trait Implementations

impl<'a, B> Send for Frame<'a, B> where
    B: Send

impl<'a, B> Sync for Frame<'a, B> where
    B: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.