pub struct StyledTextProps {
pub layout: LayoutStyle,
pub rich: AttributedText,
pub style: Option<TextStyle>,
pub color: Option<Color>,
pub wrap: TextWrap,
pub overflow: TextOverflow,
pub align: TextAlign,
pub ink_overflow: TextInkOverflow,
}Fields§
§layout: LayoutStyle§rich: AttributedText§style: Option<TextStyle>§color: Option<Color>Base color for glyphs without a per-run override.
wrap: TextWrap§overflow: TextOverflow§align: TextAlign§ink_overflow: TextInkOverflowImplementations§
Source§impl StyledTextProps
impl StyledTextProps
pub fn new(rich: AttributedText) -> Self
Trait Implementations§
Source§impl Clone for StyledTextProps
impl Clone for StyledTextProps
Source§fn clone(&self) -> StyledTextProps
fn clone(&self) -> StyledTextProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyledTextProps
impl Debug for StyledTextProps
Source§impl IntoElement for StyledTextProps
impl IntoElement for StyledTextProps
fn into_element(self, id: GlobalElementId) -> AnyElement
Auto Trait Implementations§
impl Freeze for StyledTextProps
impl RefUnwindSafe for StyledTextProps
impl Send for StyledTextProps
impl Sync for StyledTextProps
impl Unpin for StyledTextProps
impl UnsafeUnpin for StyledTextProps
impl UnwindSafe for StyledTextProps
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