[][src]Trait solstice_2d::Draw

pub trait Draw<V: Vertex, G: Geometry<V> + Clone + 'static> {
    pub fn draw(&mut self, geometry: G);
pub fn draw_with_transform<TX: Into<Transform3D>>(
        &mut self,
        geometry: G,
        transform: TX
    );
pub fn draw_with_color<C: Into<Color>>(&mut self, geometry: G, color: C);
pub fn draw_with_color_and_transform<C: Into<Color>, TX: Into<Transform3D>>(
        &mut self,
        geometry: G,
        color: C,
        transform: TX
    );
pub fn stroke(&mut self, geometry: G);
pub fn stroke_with_transform<TX: Into<Transform3D>>(
        &mut self,
        geometry: G,
        transform: TX
    );
pub fn stroke_with_color<C: Into<Color>>(&mut self, geometry: G, color: C);
pub fn stroke_with_color_and_transform<C: Into<Color>, TX: Into<Transform3D>>(
        &mut self,
        geometry: G,
        color: C,
        transform: TX
    );
pub fn image<T: Texture>(&mut self, geometry: G, texture: T);
pub fn image_with_color<T, C>(&mut self, geometry: G, texture: T, color: C)
    where
        T: Texture,
        C: Into<Color>
;
pub fn image_with_transform<T, TX>(
        &mut self,
        geometry: G,
        texture: T,
        transform: TX
    )
    where
        T: Texture,
        TX: Into<Transform3D>
;
pub fn image_with_color_and_transform<T, C, TX>(
        &mut self,
        geometry: G,
        texture: T,
        color: C,
        transform: TX
    )
    where
        T: Texture,
        C: Into<Color>,
        TX: Into<Transform3D>
; }

Required methods

pub fn draw(&mut self, geometry: G)[src]

pub fn draw_with_transform<TX: Into<Transform3D>>(
    &mut self,
    geometry: G,
    transform: TX
)
[src]

pub fn draw_with_color<C: Into<Color>>(&mut self, geometry: G, color: C)[src]

pub fn draw_with_color_and_transform<C: Into<Color>, TX: Into<Transform3D>>(
    &mut self,
    geometry: G,
    color: C,
    transform: TX
)
[src]

pub fn stroke(&mut self, geometry: G)[src]

pub fn stroke_with_transform<TX: Into<Transform3D>>(
    &mut self,
    geometry: G,
    transform: TX
)
[src]

pub fn stroke_with_color<C: Into<Color>>(&mut self, geometry: G, color: C)[src]

pub fn stroke_with_color_and_transform<C: Into<Color>, TX: Into<Transform3D>>(
    &mut self,
    geometry: G,
    color: C,
    transform: TX
)
[src]

pub fn image<T: Texture>(&mut self, geometry: G, texture: T)[src]

pub fn image_with_color<T, C>(&mut self, geometry: G, texture: T, color: C) where
    T: Texture,
    C: Into<Color>, 
[src]

pub fn image_with_transform<T, TX>(
    &mut self,
    geometry: G,
    texture: T,
    transform: TX
) where
    T: Texture,
    TX: Into<Transform3D>, 
[src]

pub fn image_with_color_and_transform<T, C, TX>(
    &mut self,
    geometry: G,
    texture: T,
    color: C,
    transform: TX
) where
    T: Texture,
    C: Into<Color>,
    TX: Into<Transform3D>, 
[src]

Loading content...

Implementors

impl<G, '_> Draw<Vertex2D, G> for DrawList<'_> where
    G: Geometry<Vertex2D> + Clone + 'static, 
[src]

impl<G, '_> Draw<Vertex3D, G> for DrawList<'_> where
    G: Geometry<Vertex3D> + Clone + 'static, 
[src]

Loading content...