Trait embedded_graphics::style::WithStyle [−][src]
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; }
Add a style to an object
Required Methods
fn with_style(self, style: Style<C>) -> Self
Add a complete style to the object
fn with_stroke(self, stroke: Option<C>) -> Self
Set the stroke colour for the object
This can be a noop
fn with_stroke_width(self, width: u8) -> Self
Set the stroke width for the object
A stroke with a width of zero will not be rendered
fn with_fill(self, stroke: Option<C>) -> Self
Set the fill property of the object's style
This can be a noop
Implementors
impl<'a, C> WithStyle<C> for Font12x16<'a, C> where
C: PixelColor,impl<'a, C> WithStyle<C> for Font6x12<'a, C> where
C: PixelColor,impl<'a, C> WithStyle<C> for Font6x8<'a, C> where
C: PixelColor,impl<'a, C> WithStyle<C> for Font8x16<'a, C> where
C: PixelColor,impl<C> WithStyle<C> for Circle<C> where
C: PixelColor,impl<C> WithStyle<C> for Line<C> where
C: PixelColor,impl<C> WithStyle<C> for Rect<C> where
C: PixelColor,