pub struct TextLayoutReport {
pub font_size: f32,
pub layout: CanvasRect,
pub lines: Vec<LineReport>,
pub words: Vec<WordReport>,
pub clusters: Vec<ClusterReport>,
}Expand description
A text’s layout on a canvas, rectangles in fractions of the canvas, before the clip’s transform: no animator states, no tracking or pushing, at the fitted size and after the clamp.
Fields§
§font_size: f32The base size drawn, a fraction of the canvas’s shorter side.
layout: CanvasRectThe layout box, as crate::TextBounds::layout.
lines: Vec<LineReport>Lines, top to bottom.
words: Vec<WordReport>UAX #29 words holding a letter or digit, in order.
clusters: Vec<ClusterReport>Grapheme clusters in logical order.
Trait Implementations§
Source§impl Clone for TextLayoutReport
impl Clone for TextLayoutReport
Source§impl Debug for TextLayoutReport
impl Debug for TextLayoutReport
Source§impl PartialEq for TextLayoutReport
impl PartialEq for TextLayoutReport
impl StructuralPartialEq for TextLayoutReport
Auto Trait Implementations§
impl Forget for TextLayoutReport
impl Freeze for TextLayoutReportwhere
*const u8 is !null: Freeze,
PhantomData<LineReport>: Freeze,
PhantomData<WordReport>: Freeze,
PhantomData<ClusterReport>: Freeze,
impl Move for TextLayoutReport
impl RefUnwindSafe for TextLayoutReport
impl Send for TextLayoutReportwhere
RawVecInner: Send,
impl Sync for TextLayoutReportwhere
RawVecInner: Sync,
impl Unpin for TextLayoutReport
impl UnsafeUnpin for TextLayoutReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<LineReport>: UnsafeUnpin,
PhantomData<WordReport>: UnsafeUnpin,
PhantomData<ClusterReport>: UnsafeUnpin,
impl UnwindSafe for TextLayoutReportwhere
RawVecInner: UnwindSafe,
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