skia_safe

Type Alias TextBlob

Source
pub type TextBlob = RCHandle<SkTextBlob>;

Aliased Type§

struct TextBlob(/* private fields */);

Implementations§

Source§

impl TextBlob

Source

pub fn new(str: impl AsRef<str>, font: &Font) -> Option<Self>

Source

pub fn bounds(&self) -> &Rect

Source

pub fn unique_id(&self) -> u32

Source

pub fn get_intercepts( &self, bounds: [scalar; 2], paint: Option<&Paint>, ) -> Vec<scalar>

Source

pub fn from_str(str: impl AsRef<str>, font: &Font) -> Option<TextBlob>

Source

pub fn from_text(text: impl EncodedText, font: &Font) -> Option<TextBlob>

Source

pub fn from_pos_text_h( text: impl EncodedText, x_pos: &[scalar], const_y: scalar, font: &Font, ) -> Option<TextBlob>

Source

pub fn from_pos_text( text: impl EncodedText, pos: &[Point], font: &Font, ) -> Option<TextBlob>

Source

pub fn from_rsxform( text: impl EncodedText, xform: &[RSXform], font: &Font, ) -> Option<TextBlob>

Trait Implementations§

Source§

impl Debug for TextBlob

Source§

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

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

impl Send for TextBlob

Source§

impl Sync for TextBlob