[][src]Trait valora::paint::Paint

pub trait Paint {
    fn paint(&self, canvas: &mut Canvas);

A trait for types which can be represented on a Canvas.

Required methods

fn paint(&self, canvas: &mut Canvas)

Paints self in the composition.

Loading content...


impl Paint for Ellipse[src]

impl Paint for Ngon[src]

impl Paint for Polygon[src]

impl Paint for World[src]

Draws a rectangle path covering the entire canvas.

impl<'_> Paint for &'_ Polygon[src]

impl<P> Paint for P where
    P: Iterator<Item = PathEvent> + Clone

impl<P: Paint> Paint for Filled<P>[src]

impl<P: Paint> Paint for Stroked<P>[src]

Loading content...