pub struct ParagraphStyle {
pub alignment: TextAlignment,
pub indent: f32,
pub spacing_before: f32,
pub spacing_after: f32,
pub direction: FlowDirection,
pub line_spacing: LineSpacing,
}Expand description
Paragraph-level layout style.
Governs alignment, indentation, vertical spacing around the paragraph, and base direction. Per CSS Text / Writing Modes.
Fields§
§alignment: TextAlignmentHorizontal alignment of lines within the paragraph.
indent: f32First-line indent in pixels.
spacing_before: f32Vertical space before the paragraph, in pixels.
spacing_after: f32Vertical space after the paragraph, in pixels.
direction: FlowDirectionBase flow direction for the paragraph.
line_spacing: LineSpacingLine spacing within the paragraph.
Trait Implementations§
Source§impl Clone for ParagraphStyle
impl Clone for ParagraphStyle
Source§fn clone(&self) -> ParagraphStyle
fn clone(&self) -> ParagraphStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParagraphStyle
impl Debug for ParagraphStyle
Auto Trait Implementations§
impl Freeze for ParagraphStyle
impl RefUnwindSafe for ParagraphStyle
impl Send for ParagraphStyle
impl Sync for ParagraphStyle
impl Unpin for ParagraphStyle
impl UnsafeUnpin for ParagraphStyle
impl UnwindSafe for ParagraphStyle
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