Struct requestty_ui::widgets::Text [−][src]
pub struct Text<S> {
pub text: S,
// some fields omitted
}Expand description
Fields
text: SThe text to render.
If this is changed, the updated text is not guaranteed to be rendered. If the text is
changed, force_recompute should be called.
Implementations
The computed lines are cached between renders, and are only recomputed if the layout changes. This will force a recomputation even if the layout is the same. This is useful if you need to change the text.
Trait Implementations
Renders the Text moving to the next line after its done. This can trigger a recomputation.
In case the text cannot be fully rendered, layout.render_region is used to determine the
lines which are rendered.
Calculates the height the text will take. This can trigger a recomputation.
Returns the location of the first character
This widget does not handle any events
Auto Trait Implementations
impl<S> RefUnwindSafe for Text<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Text<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more