pub struct ParagraphStyle {
pub align: TextAlign,
pub direction: Option<TextDirection>,
pub preserve_trailing_whitespace: bool,
pub max_lines: Option<u32>,
pub ellipsis: Option<String>,
}Expand description
ParagraphStyle controls layout behavior for a complete paragraph.
Fields§
§align: TextAlignalign controls horizontal line alignment.
direction: Option<TextDirection>direction sets the bidirectional base direction.
None infers it from the first strong character. Set it explicitly for
neutral text such as digits and punctuation.
preserve_trailing_whitespace: boolpreserve_trailing_whitespace includes trailing spaces in line widths.
max_lines: Option<u32>max_lines limits the number of laid-out lines.
ellipsis: Option<String>ellipsis replaces omitted content at the visual end of a truncated 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
Source§impl Default for ParagraphStyle
impl Default for ParagraphStyle
Source§fn default() -> ParagraphStyle
fn default() -> ParagraphStyle
Returns the “default value” for a type. Read more
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