Skip to main content

GetParagraphStyle

Struct GetParagraphStyle 

Source
pub struct GetParagraphStyle<'a> { /* private fields */ }
Expand description

Dart TextStyle.getParagraphStyle named optionals.

Implementations§

Source§

impl GetParagraphStyle<'_>

Source

pub fn text_align(self, text_align: TextAlign) -> GetParagraphStyle<'_>

Source

pub fn text_direction( self, text_direction: TextDirection, ) -> GetParagraphStyle<'_>

Source

pub fn text_scaler(self, text_scaler: TextScaler) -> GetParagraphStyle<'_>

Source

pub fn ellipsis(self, ellipsis: impl Into<String>) -> GetParagraphStyle<'_>

Source

pub fn max_lines(self, max_lines: i32) -> GetParagraphStyle<'_>

Source

pub fn text_height_behavior( self, text_height_behavior: TextHeightBehavior, ) -> GetParagraphStyle<'_>

Source

pub fn font_family( self, font_family: impl Into<String>, ) -> GetParagraphStyle<'_>

Overrides the style’s fontFamily.

Source

pub fn font_size(self, font_size: f64) -> GetParagraphStyle<'_>

Overrides the style’s fontSize.

Source

pub fn font_weight(self, font_weight: FontWeight) -> GetParagraphStyle<'_>

Overrides the style’s fontWeight.

Source

pub fn font_style(self, font_style: FontStyle) -> GetParagraphStyle<'_>

Overrides the style’s fontStyle.

Source

pub fn height(self, height: f64) -> GetParagraphStyle<'_>

Overrides the style’s height.

Source

pub fn strut_style(self, strut_style: StrutStyle) -> GetParagraphStyle<'_>

The strut to lay the paragraph out with.

Source

pub fn build(self) -> ParagraphStyle

Dart getParagraphStyle returns a ui.ParagraphStyle.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>