Type Definition skia_safe::TextBlobBuilder

source ·
pub type TextBlobBuilder = Handle<SkTextBlobBuilder>;

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