[][src]Struct quicksilver::graphics::ShapeRenderer

pub struct ShapeRenderer<'a> { /* fields omitted */ }

A way to render complex shapes using the lyon API

The ShapeRenderer has a color, transform, and z-ordering it applies to all incoming shapes. It outputs the shapes to a mutable Mesh reference, which can be a standalone mesh object or the one obtained by window.mesh()

Methods

impl<'a> ShapeRenderer<'a>[src]

pub fn new(mesh: &'a mut Mesh, color: Color) -> ShapeRenderer<'a>[src]

Create a shape renderer with a target mesh and an initial color

pub fn color(&self) -> Color[src]

Get the current color of the incoming shapes

pub fn set_color(&mut self, color: Color)[src]

Set the color of the incoming shapes

pub fn z(&self) -> f32[src]

Get the Z position of the incoming shapes

pub fn set_z(&mut self, z: f32)[src]

Set the Z position of the incoming shapes

pub fn transform(&self) -> Transform[src]

Get the transformation that will be applied to all incoming shapes

pub fn set_transform(&mut self, trans: Transform)[src]

Set the transformation that will be applied to all incoming shapes

Trait Implementations

impl<'a, Input> GeometryBuilder<Input> for ShapeRenderer<'a> where
    Color: VertexConstructor<Input, Vertex>, 
[src]

Auto Trait Implementations

impl<'a> !Send for ShapeRenderer<'a>

impl<'a> !Sync for ShapeRenderer<'a>

impl<'a> Unpin for ShapeRenderer<'a>

impl<'a> !UnwindSafe for ShapeRenderer<'a>

impl<'a> !RefUnwindSafe for ShapeRenderer<'a>

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Downcast for T where
    T: Any