skia_safe

Type Alias TextBlobBuilder

Source
pub type TextBlobBuilder = Handle<SkTextBlobBuilder>;

Aliased Type§

struct TextBlobBuilder(/* private fields */);

Implementations§

Source§

impl TextBlobBuilder

Source

pub fn new() -> Self

Source

pub fn make(&mut self) -> Option<TextBlob>

Source

pub fn alloc_run( &mut self, font: &Font, count: usize, offset: impl Into<Point>, bounds: Option<&Rect>, ) -> &mut [GlyphId]

Source

pub fn alloc_run_pos_h( &mut self, font: &Font, count: usize, y: scalar, bounds: Option<&Rect>, ) -> (&mut [GlyphId], &mut [scalar])

Source

pub fn alloc_run_pos( &mut self, font: &Font, count: usize, bounds: Option<&Rect>, ) -> (&mut [GlyphId], &mut [Point])

Source

pub fn alloc_run_rsxform( &mut self, font: &Font, count: usize, ) -> (&mut [GlyphId], &mut [RSXform])

Source

pub fn alloc_run_text( &mut self, font: &Font, count: usize, offset: impl Into<Point>, text_byte_count: usize, bounds: Option<&Rect>, ) -> (&mut [GlyphId], &mut [u8], &mut [u32])

Source

pub fn alloc_run_text_pos_h( &mut self, font: &Font, count: usize, y: scalar, text_byte_count: usize, bounds: Option<&Rect>, ) -> (&mut [GlyphId], &mut [scalar], &mut [u8], &mut [u32])

Source

pub fn alloc_run_text_pos( &mut self, font: &Font, count: usize, text_byte_count: usize, bounds: Option<&Rect>, ) -> (&mut [GlyphId], &mut [Point], &mut [u8], &mut [u32])

Source

pub fn alloc_run_text_rsxform( &mut self, font: &Font, count: usize, text_byte_count: usize, bounds: Option<&Rect>, ) -> (&mut [GlyphId], &mut [RSXform], &mut [u8], &mut [u32])

Trait Implementations§

Source§

impl Debug for TextBlobBuilder

Source§

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

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

impl Send for TextBlobBuilder

Source§

impl Sync for TextBlobBuilder