Type Definition skia_safe::TextBlob

source ·
pub type TextBlob = RCHandle<SkTextBlob>;

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: &[u8], encoding: TextEncoding, font: &Font ) -> Option<TextBlob>

source

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

source

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

source

pub fn from_rsxform( text: &[u8], xform: &[RSXform], font: &Font, encoding: impl Into<Option<TextEncoding>> ) -> 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