ParagraphStyle

Struct ParagraphStyle 

Source
pub struct ParagraphStyle;

Implementations§

Source§

impl ParagraphStyle

Source

pub fn new() -> Self

Source

pub fn strut_style(&self) -> &StrutStyle

Source

pub fn set_strut_style(&mut self, _strut_style: StrutStyle) -> &mut Self

Source

pub fn text_style(&self) -> &TextStyle

Source

pub fn set_text_style(&mut self, _text_style: &TextStyle) -> &mut Self

Source

pub fn text_direction(&self) -> TextDirection

Source

pub fn set_text_direction(&mut self, _direction: TextDirection) -> &mut Self

Source

pub fn text_align(&self) -> TextAlign

Source

pub fn set_text_align(&mut self, _align: TextAlign) -> &mut Self

Source

pub fn max_lines(&self) -> Option<usize>

Source

pub fn set_max_lines(&mut self, _lines: impl Into<Option<usize>>) -> &mut Self

Source

pub fn ellipsis(&self) -> &str

Source

pub fn set_ellipsis(&mut self, _ellipsis: impl AsRef<str>) -> &mut Self

Source

pub fn height(&self) -> f32

Source

pub fn set_height(&mut self, _height: f32) -> &mut Self

Source

pub fn text_height_behavior(&self) -> TextHeightBehavior

Source

pub fn set_text_height_behavior(&mut self, _v: TextHeightBehavior) -> &mut Self

Source

pub fn unlimited_lines(&self) -> bool

Source

pub fn ellipsized(&self) -> bool

Source

pub fn effective_align(&self) -> TextAlign

Source

pub fn hinting_is_on(&self) -> bool

Source

pub fn turn_hinting_off(&mut self) -> &mut Self

Source

pub fn replace_tab_characters(&self) -> bool

Source

pub fn set_replace_tab_characters(&mut self, _value: bool) -> &mut Self

Trait Implementations§

Source§

impl Default for ParagraphStyle

Source§

fn default() -> ParagraphStyle

Returns the “default value” for a type. Read more

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.