pub struct ShapeTextLayout {
pub frame: Rect,
pub usable: Rect,
pub font_scale: f64,
pub height: f64,
pub overflow: bool,
pub lines: Vec<TextLineLayout>,
}Expand description
One shape’s text as the slide renderer lays it out, in points.
Rectangles are in slide coordinates for the shape’s unrotated frame, which
moves with the shape’s centre through any parent groups. Vertical text is
reported in its reading frame, the content box turned a quarter turn about
its centre, so height compares with usable.height in every direction.
Fields§
§frame: RectThe shape’s frame.
usable: RectThe text rectangle minus insets, scaled by the width factor, where lines wrap.
font_scale: f64The normal-autofit font scale the renderer applied, or 1.0.
height: f64The height of the laid-out text, paragraph spacing included.
overflow: boolWhether the text misses usable by the test normal autofit applies.
lines: Vec<TextLineLayout>Every laid-out line in paragraph order, after anchoring.
Trait Implementations§
Source§impl Clone for ShapeTextLayout
impl Clone for ShapeTextLayout
Source§impl Debug for ShapeTextLayout
impl Debug for ShapeTextLayout
Source§impl PartialEq for ShapeTextLayout
impl PartialEq for ShapeTextLayout
impl StructuralPartialEq for ShapeTextLayout
Auto Trait Implementations§
impl Freeze for ShapeTextLayout
impl RefUnwindSafe for ShapeTextLayout
impl Send for ShapeTextLayout
impl Sync for ShapeTextLayout
impl Unpin for ShapeTextLayout
impl UnsafeUnpin for ShapeTextLayout
impl UnwindSafe for ShapeTextLayout
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