skia_safe::vertices

Type Alias Vertices

Source
pub type Vertices = RCHandle<SkVertices>;

Aliased Typeยง

struct Vertices(/* private fields */);

Implementationsยง

Sourceยง

impl Vertices

Source

pub const MAX_CUSTOM_ATTRIBUTES: usize = 8usize

Source

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

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