pub struct Text {
pub text: Lines,
pub on_key: KeyHandler,
pub on_mouse: MouseHandler,
}Expand description
A component that displays text.
Text renders the Lines passed into it.
Fields§
§text: Lines§on_key: KeyHandler§on_mouse: MouseHandlerImplementations§
Source§impl Text
impl Text
pub fn new(text: Lines, on_key: KeyHandler, on_mouse: MouseHandler) -> Any
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Text
impl !RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl !UnwindSafe for Text
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