skia_safe::textlayout

Type Alias ParagraphStyle

Source
pub type ParagraphStyle = RefHandle<skia_textlayout_ParagraphStyle>;

Aliased Type§

struct ParagraphStyle(/* private fields */);

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) -> scalar

Source

pub fn set_height(&mut self, height: scalar) -> &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

Source

pub fn apply_rounding_hack(&self) -> bool

Source

pub fn set_apply_rounding_hack(&mut self, value: bool) -> &mut Self

Trait Implementations§

Source§

impl Clone for ParagraphStyle

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParagraphStyle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ParagraphStyle

Source§

fn default() -> Self

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

impl Send for ParagraphStyle

Source§

impl Sync for ParagraphStyle