Struct panorama_tui::Terminal [−][src]
Fields
stdout: W
buffers: [Buffer; 2]
current: usize
viewport: Viewport
Implementations
impl<W: Write> Terminal<W>
[src]
pub fn new(stdout: W) -> Result<Self>
[src]
pub fn with_options(stdout: W, options: TerminalOptions) -> Result<Self>
[src]
pub fn pre_draw(&mut self) -> Result<()>
[src]
pub fn post_draw(&mut self) -> Result<()>
[src]
pub async fn draw<F, F2>(&mut self, f: F) -> Result<()> where
F: FnOnce(&mut Frame<'_, W>) -> F2,
F2: Future<Output = ()>,
[src]
F: FnOnce(&mut Frame<'_, W>) -> F2,
F2: Future<Output = ()>,
pub(crate) fn autoresize(&mut self) -> Result<()>
[src]
pub(crate) fn resize(&mut self, area: Rect) -> Result<()>
[src]
pub(crate) fn clear(&mut self) -> Result<()>
[src]
pub(crate) fn flush(&mut self) -> Result<()>
[src]
pub fn get_frame(&mut self) -> Frame<'_, W>
[src]
pub(crate) fn draw_backend<I>(&mut self, content: I) -> Result<()> where
I: Iterator<Item = (u16, u16, Cell)>,
[src]
I: Iterator<Item = (u16, u16, Cell)>,
pub fn current_buffer_mut(&mut self) -> &mut Buffer
[src]
pub fn show_cursor(&mut self) -> Result<()>
[src]
pub fn set_cursor(&mut self, x: u16, y: u16) -> Result<()>
[src]
pub fn size(&self) -> Result<Rect>
[src]
Auto Trait Implementations
impl<W> RefUnwindSafe for Terminal<W> where
W: RefUnwindSafe,
[src]
W: RefUnwindSafe,
impl<W> Send for Terminal<W> where
W: Send,
[src]
W: Send,
impl<W> Sync for Terminal<W> where
W: Sync,
[src]
W: Sync,
impl<W> Unpin for Terminal<W> where
W: Unpin,
[src]
W: Unpin,
impl<W> UnwindSafe for Terminal<W> where
W: UnwindSafe,
[src]
W: 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,
pub 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.
pub 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>,