pub struct ParagraphStyle;
Implementations§
Source§impl ParagraphStyle
impl ParagraphStyle
pub fn new() -> Self
pub fn strut_style(&self) -> &StrutStyle
pub fn set_strut_style(&mut self, _strut_style: StrutStyle) -> &mut Self
pub fn text_style(&self) -> &TextStyle
pub fn set_text_style(&mut self, _text_style: &TextStyle) -> &mut Self
pub fn text_direction(&self) -> TextDirection
pub fn set_text_direction(&mut self, _direction: TextDirection) -> &mut Self
pub fn text_align(&self) -> TextAlign
pub fn set_text_align(&mut self, _align: TextAlign) -> &mut Self
pub fn max_lines(&self) -> Option<usize>
pub fn set_max_lines(&mut self, _lines: impl Into<Option<usize>>) -> &mut Self
pub fn ellipsis(&self) -> &str
pub fn set_ellipsis(&mut self, _ellipsis: impl AsRef<str>) -> &mut Self
pub fn height(&self) -> f32
pub fn set_height(&mut self, _height: f32) -> &mut Self
pub fn text_height_behavior(&self) -> TextHeightBehavior
pub fn set_text_height_behavior(&mut self, _v: TextHeightBehavior) -> &mut Self
pub fn unlimited_lines(&self) -> bool
pub fn ellipsized(&self) -> bool
pub fn effective_align(&self) -> TextAlign
pub fn hinting_is_on(&self) -> bool
pub fn turn_hinting_off(&mut self) -> &mut Self
pub fn replace_tab_characters(&self) -> bool
pub fn set_replace_tab_characters(&mut self, _value: bool) -> &mut Self
Trait Implementations§
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 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