pub struct EvaluatedText {
pub content: String,
pub font_family: Option<String>,
pub font_size: f32,
pub fill: Paint,
pub line_height: f32,
pub letter_spacing: f32,
pub font_weight: u16,
pub text_align: TextAlign,
pub strokes: Vec<TextStroke>,
pub shadows: Vec<TextShadow>,
pub animators: Vec<SampledAnimator>,
}Expand description
A text node’s sampled text and the style it inherits.
Fields§
§content: StringThe text; may be empty.
font_family: Option<String>The family it draws in.
font_size: f32Font size, a fraction of the picture’s shorter side; positive.
fill: PaintWhat paints the glyphs, a gradient over the text’s layout box.
line_height: f32Baseline-to-baseline distance in font sizes.
letter_spacing: f32Space after each character, a fraction of the font size.
font_weight: u16The weight its faces are matched by.
text_align: TextAlignHow lines align in the content width.
strokes: Vec<TextStroke>Bands around the glyphs, innermost first.
shadows: Vec<TextShadow>Shadows of the glyphs and strokes, the first on top.
animators: Vec<SampledAnimator>The node’s text animators at the layout’s picture time.
Trait Implementations§
Source§impl Clone for EvaluatedText
impl Clone for EvaluatedText
Source§impl Debug for EvaluatedText
impl Debug for EvaluatedText
Source§impl PartialEq for EvaluatedText
impl PartialEq for EvaluatedText
impl StructuralPartialEq for EvaluatedText
Auto Trait Implementations§
impl Freeze for EvaluatedText
impl RefUnwindSafe for EvaluatedText
impl Send for EvaluatedText
impl Sync for EvaluatedText
impl Unpin for EvaluatedText
impl UnsafeUnpin for EvaluatedText
impl UnwindSafe for EvaluatedText
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