Struct tty_form::StaticText
source · [−]pub struct StaticText { /* private fields */ }Expand description
Static, unfocusable display text. May be formatted.
Examples
use tty_form::Form;
use tty_interface::Style;
let mut form = Form::default();
let mut text = form.add_compound_step().add_static_text();
text.set_text("Hello, world!");
text.set_style(Style::default().set_bold(true));Implementations
Trait Implementations
sourceimpl Control for StaticText
impl Control for StaticText
fn is_focusable(&self) -> bool
fn handle_input(&mut self, _key_event: KeyEvent)
fn get_help(&self) -> Option<String>
fn get_text(&self) -> (String, Option<u16>)
fn get_drawer(&self) -> Option<Vec<String>>
fn add_to_step(self, step: &mut CompoundStep)
Auto Trait Implementations
impl RefUnwindSafe for StaticText
impl Send for StaticText
impl Sync for StaticText
impl Unpin for StaticText
impl UnwindSafe for StaticText
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more