#[repr(C)]pub struct TessellatedGPUSvgNode {
pub vertex_index_buffer: VertexBuffer,
}
Fields§
§vertex_index_buffer: VertexBuffer
Implementations§
Source§impl TessellatedGPUSvgNode
impl TessellatedGPUSvgNode
Sourcepub fn new(node: &TessellatedSvgNode, gl: GlContextPtr) -> TessellatedGPUSvgNode
pub fn new(node: &TessellatedSvgNode, gl: GlContextPtr) -> TessellatedGPUSvgNode
Uploads the tesselated SVG node to GPU memory
Sourcepub fn draw(
&self,
texture: &mut Texture,
target_size: PhysicalSize<u32>,
color: ColorU,
transforms: StyleTransformVec,
) -> bool
pub fn draw( &self, texture: &mut Texture, target_size: PhysicalSize<u32>, color: ColorU, transforms: StyleTransformVec, ) -> bool
Draw the vertex buffer to the texture with the given color and transform
Trait Implementations§
Source§impl Debug for TessellatedGPUSvgNode
impl Debug for TessellatedGPUSvgNode
Source§impl PartialEq for TessellatedGPUSvgNode
impl PartialEq for TessellatedGPUSvgNode
Source§impl PartialOrd for TessellatedGPUSvgNode
impl PartialOrd for TessellatedGPUSvgNode
impl StructuralPartialEq for TessellatedGPUSvgNode
Auto Trait Implementations§
impl Freeze for TessellatedGPUSvgNode
impl RefUnwindSafe for TessellatedGPUSvgNode
impl !Send for TessellatedGPUSvgNode
impl !Sync for TessellatedGPUSvgNode
impl Unpin for TessellatedGPUSvgNode
impl UnwindSafe for TessellatedGPUSvgNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more