[−][src]Trait embedded_graphics::style::WithStyle
Add a style to an object
Required methods
fn style(self, style: Style<C>) -> Self
Add a complete style to the object
fn stroke(self, stroke: Option<C>) -> Self
Set the stroke colour for the object
This can be a noop
fn 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 fill(self, stroke: Option<C>) -> Self
Set the fill property of the object's style
This can be a noop
Implementors
impl<'a, C, Conf> WithStyle<C> for FontBuilder<'a, C, Conf> where
C: PixelColor,
[src]
C: PixelColor,
fn style(self, style: Style<C>) -> Self
[src]
fn stroke(self, color: Option<C>) -> Self
[src]
fn stroke_width(self, _width: u8) -> Self
[src]
fn fill(self, color: Option<C>) -> Self
[src]
impl<C> WithStyle<C> for Circle<C> where
C: PixelColor,
[src]
C: PixelColor,
fn style(self, style: Style<C>) -> Self
[src]
fn stroke(self, color: Option<C>) -> Self
[src]
fn stroke_width(self, width: u8) -> Self
[src]
fn fill(self, color: Option<C>) -> Self
[src]
impl<C> WithStyle<C> for Line<C> where
C: PixelColor,
[src]
C: PixelColor,
fn style(self, style: Style<C>) -> Self
[src]
fn stroke(self, color: Option<C>) -> Self
[src]
fn stroke_width(self, width: u8) -> Self
[src]
fn fill(self, color: Option<C>) -> Self
[src]
impl<C> WithStyle<C> for Rectangle<C> where
C: PixelColor,
[src]
C: PixelColor,
fn style(self, style: Style<C>) -> Self
[src]
fn stroke(self, color: Option<C>) -> Self
[src]
fn stroke_width(self, width: u8) -> Self
[src]
fn fill(self, color: Option<C>) -> Self
[src]
impl<C> WithStyle<C> for Triangle<C> where
C: PixelColor,
[src]
C: PixelColor,