pub trait WithStyle<C>where
    C: PixelColor,
{ fn with_style(self, style: Style<C>) -> Self; fn with_stroke(self, stroke: Option<C>) -> Self; fn with_stroke_width(self, width: u8) -> Self; fn with_fill(self, stroke: Option<C>) -> Self; }
Expand description

Add a style to an object

Required Methods

Add a complete style to the object

Set the stroke colour for the object

This can be a noop

Set the stroke width for the object

A stroke with a width of zero will not be rendered

Set the fill property of the object’s style

This can be a noop

Implementors