Type Alias TextBlobBuilder

pub type TextBlobBuilder = Handle<SkTextBlobBuilder>;

Aliased Type§

struct TextBlobBuilder(/* private fields */);

Implementations

§

impl Handle<SkTextBlobBuilder>

pub fn new() -> Handle<SkTextBlobBuilder>

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

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

pub fn alloc_run_pos_h( &mut self, font: &Handle<SkFont>, count: usize, y: f32, bounds: Option<&Rect>, ) -> (&mut [u16], &mut [f32])

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

pub fn alloc_run_rsxform( &mut self, font: &Handle<SkFont>, count: usize, ) -> (&mut [u16], &mut [RSXform])

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

pub fn alloc_run_text_pos_h( &mut self, font: &Handle<SkFont>, count: usize, y: f32, text_byte_count: usize, bounds: Option<&Rect>, ) -> (&mut [u16], &mut [f32], &mut [u8], &mut [u32])

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

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

Trait Implementations

§

impl<N> AsRef<Handle<N>> for Handle<N>
where N: NativeDrop,

§

fn as_ref(&self) -> &Handle<N>

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<N> Clone for Handle<N>
where N: NativeDrop + NativeClone,

§

fn clone(&self) -> Handle<N>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Handle<SkTextBlobBuilder>

§

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

Formats the value using the given formatter. Read more
§

impl<N> Drop for Handle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> Hash for Handle<N>
where N: NativeDrop + NativeHash,

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<N> PartialEq for Handle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &Handle<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<N> RefWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap_ref(native: &N) -> &Handle<N>

§

fn wrap_mut(native: &mut N) -> &mut Handle<N>

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl<N> ValueWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap(native: N) -> Handle<N>
where N: NativeDrop,

§

fn unwrap(self) -> N

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl Send for Handle<SkTextBlobBuilder>

§

impl Sync for Handle<SkTextBlobBuilder>