pub struct PlacedRun {
pub font: FontId,
pub size: f32,
pub color: Color,
pub decoration: Option<Decoration>,
pub shadows: Vec<Shadow>,
pub glyphs: Vec<PlacedGlyph>,
pub rtl: bool,
pub bounds: Rect,
pub ink: Rect,
}Expand description
PlacedRun groups positioned glyphs sharing one font and paint style.
Fields§
§font: FontIdfont identifies the font within the paragraph’s FaceSet.
size: f32size is the font size in logical pixels.
color: Colorcolor is the glyph fill color.
decoration: Option<Decoration>decoration optionally adds a line relative to the run.
shadows: Vec<Shadow>shadows are painted back-to-front beneath the glyphs.
glyphs: Vec<PlacedGlyph>glyphs contains the run’s glyphs in visual order.
rtl: boolrtl indicates that logical text order runs from right to left.
bounds: Rectbounds is the paragraph-local advance box used for layout geometry.
ink: Rectink conservatively bounds visible glyph pixels in paragraph coordinates.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlacedRun
impl RefUnwindSafe for PlacedRun
impl Send for PlacedRun
impl Sync for PlacedRun
impl Unpin for PlacedRun
impl UnsafeUnpin for PlacedRun
impl UnwindSafe for PlacedRun
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