pub struct ParagraphStyle {
pub text_align: Option<TextAlign>,
pub text_direction: Option<TextDirection>,
pub max_lines: Option<i32>,
pub font_family: Option<String>,
pub font_size: Option<f64>,
pub height: Option<f64>,
pub text_height_behavior: Option<TextHeightBehavior>,
pub font_weight: Option<FontWeight>,
pub font_style: Option<FontStyle>,
pub ellipsis: Option<String>,
}Expand description
An opaque object that determines the configuration used by ParagraphBuilder to
position lines within a Paragraph of text.
The font fields (font_family, font_size, height, font_weight, font_style) are
the style for text that no pushed TextStyle covers.
Fields§
§text_align: Option<TextAlign>§text_direction: Option<TextDirection>§max_lines: Option<i32>§font_family: Option<String>§font_size: Option<f64>§height: Option<f64>§text_height_behavior: Option<TextHeightBehavior>§font_weight: Option<FontWeight>§font_style: Option<FontStyle>§ellipsis: Option<String>Implementations§
Source§impl ParagraphStyle
impl ParagraphStyle
Sourcepub fn new() -> ParagraphStyle
pub fn new() -> ParagraphStyle
Creates a new paragraph style with every field unset.
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
Source§impl PartialEq for ParagraphStyle
impl PartialEq for ParagraphStyle
impl StructuralPartialEq 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