skia_safe::textlayout

Type Alias StrutStyle

Source
pub type StrutStyle = Handle<skia_textlayout_StrutStyle>;

Aliased Type§

struct StrutStyle(/* private fields */);

Implementations§

Source§

impl StrutStyle

Source

pub fn new() -> Self

Source

pub fn font_families(&self) -> FontFamilies<'_>

Source

pub fn set_font_families(&mut self, families: &[impl AsRef<str>]) -> &mut Self

Source

pub fn font_style(&self) -> FontStyle

Source

pub fn set_font_style(&mut self, font_style: FontStyle) -> &mut Self

Source

pub fn font_size(&self) -> scalar

Source

pub fn set_font_size(&mut self, font_size: scalar) -> &mut Self

Source

pub fn set_height(&mut self, height: scalar) -> &mut Self

Source

pub fn height(&self) -> scalar

Source

pub fn set_leading(&mut self, leading: scalar) -> &mut Self

Source

pub fn leading(&self) -> scalar

Source

pub fn strut_enabled(&self) -> bool

Source

pub fn set_strut_enabled(&mut self, enabled: bool) -> &mut Self

Source

pub fn force_strut_height(&self) -> bool

Source

pub fn set_force_strut_height(&mut self, force_height: bool) -> &mut Self

Source

pub fn height_override(&self) -> bool

Source

pub fn set_height_override(&mut self, height_override: bool) -> &mut Self

Source

pub fn half_leading(&self) -> bool

Source

pub fn set_half_leading(&mut self, half_leading: bool) -> &mut Self

Trait Implementations§

Source§

impl Debug for StrutStyle

Source§

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

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

impl Default for StrutStyle

Source§

fn default() -> Self

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

impl Send for StrutStyle

Source§

impl Sync for StrutStyle