pub struct Tui<E> { /* private fields */ }Implementations§
Source§impl<E: Send + 'static> Tui<E>
impl<E: Send + 'static> Tui<E>
pub fn new( name: impl Into<Cow<'static, str>>, version: impl Into<Cow<'static, str>>, accent: Color, ) -> Self
pub fn palette(self, palette: Palette) -> Self
pub fn words(self, words: Words) -> Self
pub fn hints(self, hints: impl IntoIterator<Item = Hint<'static>>) -> Self
pub fn min_size(self, width: u16, height: u16) -> Self
pub fn title(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn title_spans<T: Into<Cow<'static, str>>>( self, spans: impl IntoIterator<Item = (T, Style)>, ) -> Self
pub fn layout(self, layout: Layout) -> Self
pub fn head(self, head: Head) -> Self
pub fn role(self, name: impl Into<Cow<'static, str>>, style: Style) -> Self
pub fn monochrome(self, mono: bool) -> Self
pub fn group(self, label: impl Into<Label>) -> Self
pub fn group_keys(self, keys: &'static [Key]) -> Self
pub fn screen(self, label: impl Into<Label>, screen: impl Screen<E>) -> Self
pub fn show(self, shown: impl Fn(Item) -> bool) -> Self
pub fn overlay( self, section: Section, keys: &'static [Key], screen: impl Screen<E>, ) -> Self
pub fn app(self, screen: impl Screen<E>) -> Self
pub fn gate(self, screen: impl Screen<E>, shut: bool) -> Self
pub fn activities(self, words: Activities) -> Self
pub fn band(self, band: impl Band + 'static) -> Self
pub fn top_band(self, band: impl Band + 'static) -> Self
pub fn focus_keys(self, next: &'static [Key], previous: &'static [Key]) -> Self
pub fn help(self, help: Option<Help>) -> Self
pub fn quit(self, mode: Mode) -> Self
pub fn quit_window(self, window: Duration) -> Self
pub fn quit_keys(self, keys: &'static [Key]) -> Self
pub fn quit_sticky(self, sticky: bool) -> Self
pub fn quit_tone(self, tone: Said) -> Self
pub fn quit_hints(self, shown: bool) -> Self
pub fn stop_keys(self, keys: &'static [Key]) -> Self
pub fn through_keys(self, keys: &'static [Key]) -> Self
pub fn eager(self, eager: bool) -> Self
pub fn keep_facts(self, keep: bool) -> Self
pub fn lit_again(self, lit: bool) -> Self
pub fn hourglass_timing(self, delay: Duration, least: Duration) -> Self
pub fn version_fit(self, fit: bool) -> Self
pub fn modes(self, modes: Modes) -> Self
pub fn header_look(self, look: HeaderLook) -> Self
pub fn on_key( self, hook: impl FnMut(KeyEvent, &mut Cx<'_, E>) -> bool + 'static, ) -> Self
pub fn after_draw(self, hook: impl FnMut(Duration) + 'static) -> Self
pub fn set_palette(&mut self, palette: Palette)
pub fn set_words(&mut self, words: Words)
pub fn set_layout(&mut self, layout: Layout)
pub fn current_palette(&self) -> &Palette
pub fn current(&self) -> Option<usize>
pub fn names(&self) -> Vec<&str>
pub fn find<T: Screen<E>>(&self) -> Option<&T>
pub fn find_mut<T: Screen<E>>(&mut self) -> Option<&mut T>
pub fn sender(&self) -> Sender<Wake<E>>
pub fn waker(&self, screen: usize) -> Waker<E>
pub fn go(&mut self, screen: usize) -> bool
pub fn changed(&mut self, source: &str)
pub fn start(&mut self)
pub fn busy(&self) -> usize
pub fn key(&mut self, key: KeyEvent) -> Flow
pub fn paste(&mut self, text: &str)
pub fn mouse(&mut self, mouse: MouseEvent)
pub fn event(&mut self, screen: usize, event: E)
pub fn loaded(&mut self, screen: usize, generation: u64, event: E) -> bool
pub fn handle(&mut self, wake: Wake<E>) -> Flow
pub fn pump(&mut self)
pub fn settle(&mut self)
pub fn advance(&mut self, by: Duration) -> Flow
pub fn run(self) -> Result<()>
pub fn run_in(&mut self, term: &mut Term) -> Result<()>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for Tui<E>
impl<E> !Send for Tui<E>
impl<E> !Sync for Tui<E>
impl<E> !UnwindSafe for Tui<E>
impl<E> Freeze for Tui<E>
impl<E> Unpin for Tui<E>
impl<E> UnsafeUnpin for Tui<E>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more