Type Alias Vertices
pub type Vertices = RCHandle<SkVertices>;
Aliased Type§
struct Vertices(/* private fields */);
Implementations
§impl RCHandle<SkVertices>
impl RCHandle<SkVertices>
pub const MAX_CUSTOM_ATTRIBUTES: usize = 8usize
pub fn new_copy( mode: SkVertices_VertexMode, positions: &[Point], texs: &[Point], colors: &[Color], indices: Option<&[u16]>, ) -> RCHandle<SkVertices>
pub fn unique_id(&self) -> u32
pub fn mode(&self) -> SkVertices_VertexMode
👎Deprecated since 0.29.0: will be removed without replacement
pub fn bounds(&self) -> &Rect
pub fn has_colors(&self) -> bool
👎Deprecated since 0.29.0: will be removed without replacement
pub fn has_tex_coords(&self) -> bool
👎Deprecated since 0.29.0: will be removed without replacement
pub fn has_bones(&self) -> bool
👎Deprecated since 0.29.0: returns false
pub fn has_indices(&self) -> bool
👎Deprecated since 0.29.0: will be removed without replacement
pub fn vertex_count(&self) -> usize
👎Deprecated since 0.29.0: will be removed without replacement
pub fn index_count(&self) -> usize
👎Deprecated since 0.29.0: will be removed without replacement
pub fn positions(&self) -> &[Point]
👎Deprecated since 0.29.0: will be removed without replacement
pub fn tex_coords(&self) -> Option<&[Point]>
👎Deprecated since 0.29.0: will be removed without replacement
pub fn colors(&self) -> Option<&[Color]>
👎Deprecated since 0.29.0: will be removed without replacement
pub fn bone_indices(&self) -> Option<&[[u32; 4]]>
👎Deprecated since 0.29.0: returns None
pub fn bone_weights(&self) -> Option<&[[u32; 4]]>
👎Deprecated since 0.29.0: returns None
pub fn indices(&self) -> Option<&[u16]>
👎Deprecated since 0.29.0: will be removed without replacement
pub fn is_volatile(&self) -> bool
👎Deprecated since 0.29.0: returns false
pub fn apply_bones(&self, _bones: &[Bone]) -> !
👎Deprecated since 0.29.0: removed without replacement
pub fn approximate_size(&self) -> usize
pub fn decode(_buffer: &[u8]) -> !
👎Deprecated since 0.31.0: removed without replacement
pub fn encode(&self) -> !
👎Deprecated since 0.31.0: removed without replacement
§impl<T> RCHandle<T>where
T: NativeRefCounted + NodeSubtype,
impl<T> RCHandle<T>where
T: NativeRefCounted + NodeSubtype,
pub fn as_base(&self) -> &RCHandle<<T as NodeSubtype>::Base>
pub fn as_base_mut(&mut self) -> &mut RCHandle<<T as NodeSubtype>::Base>
Trait Implementations
§impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.
impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.
§impl<N> Debug for RCHandle<N>where
N: NativeRefCounted,
RCHandle<N>: DebugAttributes,
impl<N> Debug for RCHandle<N>where
N: NativeRefCounted,
RCHandle<N>: DebugAttributes,
§impl<T> Deref for RCHandle<T>where
T: NativeRefCounted + NodeSubtype,
impl<T> Deref for RCHandle<T>where
T: NativeRefCounted + NodeSubtype,
§impl<T> DerefMut for RCHandle<T>where
T: NativeRefCounted + NodeSubtype,
impl<T> DerefMut for RCHandle<T>where
T: NativeRefCounted + NodeSubtype,
§impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
§impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
A reference counted handle is cheap to clone, so we do support a conversion
from a reference to a ref counter to an owned handle.
impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
A reference counted handle is cheap to clone, so we do support a conversion from a reference to a ref counter to an owned handle.