pub struct ParagraphLengths {
pub line_height: Option<f32>,
pub first_line_indent: f32,
pub rest_line_indent: f32,
pub grid: f32,
}Expand description
A paragraph style’s lengths resolved to pixels.
Fields§
§line_height: Option<f32>The line height the style asks for, None for the fonts’ own.
first_line_indent: f32The indent of the first line of each paragraph.
rest_line_indent: f32The indent of the other lines.
grid: f32Device pixels per pixel of the layout, finite and positive: line boxes round to whole device pixels, as Android’s do.
Trait Implementations§
Source§impl Clone for ParagraphLengths
impl Clone for ParagraphLengths
impl Copy for ParagraphLengths
Source§impl Debug for ParagraphLengths
impl Debug for ParagraphLengths
Auto Trait Implementations§
impl Forget for ParagraphLengths
impl Freeze for ParagraphLengths
impl Move for ParagraphLengths
impl RefUnwindSafe for ParagraphLengths
impl Send for ParagraphLengths
impl Sync for ParagraphLengths
impl Unpin for ParagraphLengths
impl UnsafeUnpin for ParagraphLengths
impl UnwindSafe for ParagraphLengths
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