Type Alias State
pub type State<P> = Plain<P>;
Expand description
The internal state of a [Text
] widget.
Aliased Type§
pub struct State<P> { /* private fields */ }
Implementations
§impl<P> Plain<P>where
P: Paragraph,
impl<P> Plain<P>where
P: Paragraph,
pub fn update(&mut self, text: Text<&str, <P as Paragraph>::Font>) -> bool
pub fn update(&mut self, text: Text<&str, <P as Paragraph>::Font>) -> bool
Updates the plain [Paragraph
] to match the given [Text
], if needed.
Returns true if the [Paragraph
] changed.
pub fn align_y(&self) -> Vertical
pub fn align_y(&self) -> Vertical
Returns the vertical alignment of the [Paragraph
].
pub fn min_bounds(&self) -> Size
pub fn min_bounds(&self) -> Size
Returns the minimum boundaries that can fit the contents of the
[Paragraph
].
pub fn min_width(&self) -> f32
pub fn min_width(&self) -> f32
Returns the minimum width that can fit the contents of the
[Paragraph
].
pub fn min_height(&self) -> f32
pub fn min_height(&self) -> f32
Returns the minimum height that can fit the contents of the
[Paragraph
].