Struct nannou::draw::primitive::polygon::PolygonOptions [−][src]
pub struct PolygonOptions {
pub position: Properties,
pub orientation: Properties,
pub no_fill: bool,
pub stroke_color: Option<LinSrgba>,
pub color: Option<LinSrgba>,
pub stroke: Option<StrokeOptions>,
}
Expand description
The set of options shared by all polygon types.
Fields
position: Properties
orientation: Properties
no_fill: bool
stroke_color: Option<LinSrgba>
color: Option<LinSrgba>
stroke: Option<StrokeOptions>
Trait Implementations
Returns the “default value” for a type. Read more
Access to the polygon builder parameters.
Specify no fill color and in turn no fill tessellation for the polygon.
Specify a color to use for stroke tessellation. Read more
Specify the whole set of polygon options.
Auto Trait Implementations
impl RefUnwindSafe for PolygonOptions
impl Send for PolygonOptions
impl Sync for PolygonOptions
impl Unpin for PolygonOptions
impl UnwindSafe for PolygonOptions
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more