[][src]Struct skia_bindings::SkVertices

#[repr(C)]
pub struct SkVertices {
    pub _base: SkNVRefCnt,
    pub fUniqueID: u32,
    pub fPositions: *mut SkPoint,
    pub fTexs: *mut SkPoint,
    pub fColors: *mut SkColor,
    pub fBoneIndices: *mut SkVertices_BoneIndices,
    pub fBoneWeights: *mut SkVertices_BoneWeights,
    pub fIndices: *mut u16,
    pub fBounds: SkRect,
    pub fVertexCnt: c_int,
    pub fIndexCnt: c_int,
    pub fIsVolatile: bool,
    pub fMode: SkVertices_VertexMode,
}

Fields

_base: SkNVRefCntfUniqueID: u32fPositions: *mut SkPointfTexs: *mut SkPointfColors: *mut SkColorfBoneIndices: *mut SkVertices_BoneIndicesfBoneWeights: *mut SkVertices_BoneWeightsfIndices: *mut u16fBounds: SkRectfVertexCnt: c_intfIndexCnt: c_intfIsVolatile: boolfMode: SkVertices_VertexMode

Methods

impl SkVertices[src]

pub unsafe fn MakeCopy(
    mode: SkVertices_VertexMode,
    vertexCount: c_int,
    positions: *const SkPoint,
    texs: *const SkPoint,
    colors: *const SkColor,
    boneIndices: *const SkVertices_BoneIndices,
    boneWeights: *const SkVertices_BoneWeights,
    indexCount: c_int,
    indices: *const u16,
    isVolatile: bool
) -> sk_sp<SkVertices>
[src]

pub unsafe fn applyBones(
    &self,
    bones: *const SkVertices_Bone,
    boneCount: c_int
) -> sk_sp<SkVertices>
[src]

pub unsafe fn approximateSize(&self) -> usize[src]

pub unsafe fn Decode(buffer: *const c_void, length: usize) -> sk_sp<SkVertices>[src]

pub unsafe fn encode(&self) -> sk_sp<SkData>[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]