pub struct TextProps {
pub layout: LayoutStyle,
pub text: Arc<str>,
pub style: Option<TextStyle>,
pub color: Option<Color>,
pub wrap: TextWrap,
pub overflow: TextOverflow,
pub align: TextAlign,
pub ink_overflow: TextInkOverflow,
}Fields§
§layout: LayoutStyle§text: Arc<str>§style: Option<TextStyle>§color: Option<Color>§wrap: TextWrap§overflow: TextOverflow§align: TextAlign§ink_overflow: TextInkOverflowPolicy for handling ink overflow when the line box is fixed (e.g. emoji/CJK fallback).
This is a mechanism-level escape hatch to avoid visual clipping when parents clip to
rounded corners or other shapes. Callers that want typography-driven layout should prefer
TextLineHeightPolicy::ExpandToFit instead.
Implementations§
Trait Implementations§
Source§impl IntoElement for TextProps
impl IntoElement for TextProps
fn into_element(self, id: GlobalElementId) -> AnyElement
Auto Trait Implementations§
impl Freeze for TextProps
impl RefUnwindSafe for TextProps
impl Send for TextProps
impl Sync for TextProps
impl Unpin for TextProps
impl UnsafeUnpin for TextProps
impl UnwindSafe for TextProps
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