pub struct GetParagraphStyle<'a> { /* private fields */ }Expand description
Dart TextStyle.getParagraphStyle named optionals.
Implementations§
Source§impl GetParagraphStyle<'_>
impl GetParagraphStyle<'_>
pub fn text_align(self, text_align: TextAlign) -> GetParagraphStyle<'_>
pub fn text_direction( self, text_direction: TextDirection, ) -> GetParagraphStyle<'_>
pub fn text_scaler(self, text_scaler: TextScaler) -> GetParagraphStyle<'_>
pub fn ellipsis(self, ellipsis: impl Into<String>) -> GetParagraphStyle<'_>
pub fn max_lines(self, max_lines: i32) -> GetParagraphStyle<'_>
pub fn text_height_behavior( self, text_height_behavior: TextHeightBehavior, ) -> GetParagraphStyle<'_>
Sourcepub fn font_family(
self,
font_family: impl Into<String>,
) -> GetParagraphStyle<'_>
pub fn font_family( self, font_family: impl Into<String>, ) -> GetParagraphStyle<'_>
Overrides the style’s fontFamily.
Sourcepub fn font_size(self, font_size: f64) -> GetParagraphStyle<'_>
pub fn font_size(self, font_size: f64) -> GetParagraphStyle<'_>
Overrides the style’s fontSize.
Sourcepub fn font_weight(self, font_weight: FontWeight) -> GetParagraphStyle<'_>
pub fn font_weight(self, font_weight: FontWeight) -> GetParagraphStyle<'_>
Overrides the style’s fontWeight.
Sourcepub fn font_style(self, font_style: FontStyle) -> GetParagraphStyle<'_>
pub fn font_style(self, font_style: FontStyle) -> GetParagraphStyle<'_>
Overrides the style’s fontStyle.
Sourcepub fn height(self, height: f64) -> GetParagraphStyle<'_>
pub fn height(self, height: f64) -> GetParagraphStyle<'_>
Overrides the style’s height.
Sourcepub fn strut_style(self, strut_style: StrutStyle) -> GetParagraphStyle<'_>
pub fn strut_style(self, strut_style: StrutStyle) -> GetParagraphStyle<'_>
The strut to lay the paragraph out with.
Sourcepub fn build(self) -> ParagraphStyle
pub fn build(self) -> ParagraphStyle
Dart getParagraphStyle returns a ui.ParagraphStyle.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetParagraphStyle<'a>
impl<'a> !Send for GetParagraphStyle<'a>
impl<'a> !Sync for GetParagraphStyle<'a>
impl<'a> !UnwindSafe for GetParagraphStyle<'a>
impl<'a> Forget for GetParagraphStyle<'a>
impl<'a> Freeze for GetParagraphStyle<'a>where
&'a TextStyle: Freeze,
*const TextScaler is !null: Freeze,
PhantomData<TextScaler>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
impl<'a> Move for GetParagraphStyle<'a>
impl<'a> Unpin for GetParagraphStyle<'a>
impl<'a> UnsafeUnpin for GetParagraphStyle<'a>where
&'a TextStyle: UnsafeUnpin,
*const TextScaler is !null: UnsafeUnpin,
PhantomData<TextScaler>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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