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
A line’s worth of one font+size+color — exactly what one GlyphRun
display-list op carries.
Fields§
§font: FontId§size: f32§color: Color§decoration: Option<Decoration>§shadows: Vec<Shadow>§glyphs: Vec<PlacedGlyph>§rtl: boolThe run reads right-to-left: a glyph’s LOGICAL start is its visual
right edge (x + advance), its end the left (skparagraph’s
Run::leftToRight() from the bidi level).
bounds: RectParagraph-local ADVANCE box: x from the cursor, y from ascent/ descent. Decorations and selection geometry live here.
ink: RectParagraph-local INK bounds: the advance box widened by the font’s ink box (bearings, italic overhang, mark excursions) — what the renderer must treat as the run’s pixel extent (culling, layer sizing, the opacity-elision disjointness proof).
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