Struct intuitive::components::Text
source · 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: MouseHandler
Implementations§
source§impl Text
impl Text
pub fn new(text: Lines, on_key: KeyHandler, on_mouse: MouseHandler) -> Any
Trait Implementations§
Auto Trait Implementations§
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