pub struct TUI {
pub root: Container,
/* private fields */
}Fields§
§root: ContainerThe root container — all top-level children are added here.
Overlays are also managed through Container’s overlay stack.
Matches pi’s class TUI extends Container.
Implementations§
Source§impl TUI
impl TUI
pub fn new() -> Self
pub fn screen_mut(&mut self) -> &mut Screen
pub fn full_redraw_count(&self) -> usize
pub fn set_clear_on_shrink(&mut self, enabled: bool)
pub fn set_dimensions(&mut self, width: usize, height: usize)
pub fn get_dimensions(&self) -> (usize, usize)
pub fn request_render(&mut self)
pub fn is_dirty(&self) -> bool
pub fn show_overlay( &mut self, component: Box<dyn Component>, options: OverlayOptions, ) -> u64
pub fn hide_overlay(&mut self, id: u64)
pub fn pop_overlay(&mut self)
pub fn has_overlays(&self) -> bool
Sourcepub fn route_input(&mut self, key: &KeyEvent) -> bool
pub fn route_input(&mut self, key: &KeyEvent) -> bool
Route a keyboard event through the overlay input pipeline. Should be called BEFORE the application handles the key itself, so overlays get first crack at input.
Sourcepub fn route_paste(&mut self, text: &str) -> bool
pub fn route_paste(&mut self, text: &str) -> bool
Route a paste event to overlays or root.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TUI
impl !Send for TUI
impl !Sync for TUI
impl !UnwindSafe for TUI
impl Freeze for TUI
impl Unpin for TUI
impl UnsafeUnpin for TUI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more