Type Definition skia_safe::vertices::Vertices

source ·
pub type Vertices = RCHandle<SkVertices>;

Implementations§

source§

impl Vertices

source

pub fn new_copy( mode: VertexMode, positions: &[Point], texs: &[Point], colors: &[Color], indices: Option<&[u16]> ) -> Vertices

source

pub const MAX_CUSTOM_ATTRIBUTES: usize = 8usize

source

pub fn unique_id(&self) -> u32

source

pub fn mode(&self) -> VertexMode

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn bounds(&self) -> &Rect

source

pub fn has_colors(&self) -> bool

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn has_tex_coords(&self) -> bool

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn has_bones(&self) -> bool

👎Deprecated since 0.29.0: returns false
source

pub fn has_indices(&self) -> bool

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn vertex_count(&self) -> usize

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn index_count(&self) -> usize

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn positions(&self) -> &[Point]

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn tex_coords(&self) -> Option<&[Point]>

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn colors(&self) -> Option<&[Color]>

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn bone_indices(&self) -> Option<&[BoneIndices]>

👎Deprecated since 0.29.0: returns None
source

pub fn bone_weights(&self) -> Option<&[BoneWeights]>

👎Deprecated since 0.29.0: returns None
source

pub fn indices(&self) -> Option<&[u16]>

👎Deprecated since 0.29.0: will be removed without replacement
source

pub fn is_volatile(&self) -> bool

👎Deprecated since 0.29.0: returns false
source

pub fn apply_bones(&self, _bones: &[Bone]) -> !

👎Deprecated since 0.29.0: removed without replacement
source

pub fn approximate_size(&self) -> usize

source

pub fn decode(_buffer: &[u8]) -> !

👎Deprecated since 0.31.0: removed without replacement
source

pub fn encode(&self) -> !

👎Deprecated since 0.31.0: removed without replacement

Trait Implementations§

source§

impl Debug for Vertices

source§

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

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

impl Send for Vertices

source§

impl Sync for Vertices