Trait nannou::draw::primitive::polygon::SetPolygon[][src]

pub trait SetPolygon<S>: Sized {
    fn polygon_options_mut(&mut self) -> &mut PolygonOptions<S>;

    fn no_fill(self) -> Self { ... }
fn stroke_color<C>(self, color: C) -> Self
    where
        C: IntoLinSrgba<ColorScalar>
, { ... }
fn polygon_options(self, opts: PolygonOptions<S>) -> Self { ... } }

A trait implemented for all polygon draw primitives.

Required methods

fn polygon_options_mut(&mut self) -> &mut PolygonOptions<S>[src]

Access to the polygon builder parameters.

Loading content...

Provided methods

fn no_fill(self) -> Self[src]

Specify no fill color and in turn no fill tessellation for the polygon.

fn stroke_color<C>(self, color: C) -> Self where
    C: IntoLinSrgba<ColorScalar>, 
[src]

Specify a color to use for stroke tessellation.

Stroke tessellation will only be performed if this method or one of the SetStroke methods are called.

fn polygon_options(self, opts: PolygonOptions<S>) -> Self[src]

Specify the whole set of polygon options.

Loading content...

Implementors

impl<S> SetPolygon<S> for Ellipse<S>[src]

impl<S> SetPolygon<S> for Quad<S>[src]

impl<S> SetPolygon<S> for Rect<S>[src]

impl<S> SetPolygon<S> for Tri<S>[src]

impl<S> SetPolygon<S> for PolygonInit<S>[src]

impl<S> SetPolygon<S> for PolygonOptions<S>[src]

Loading content...