Trait embedded_graphics::primitives::StyledDrawable[][src]

pub trait StyledDrawable<S> {
    type Color: PixelColor;
    type Output;
    fn draw_styled<D>(
        &self,
        style: &S,
        target: &mut D
    ) -> Result<Self::Output, D::Error>
    where
        D: DrawTarget<Color = Self::Color>
; }
Expand description

Styled drawable.

Associated Types

type Color: PixelColor[src]

Color type.

type Output[src]

Output type.

Required methods

fn draw_styled<D>(
    &self,
    style: &S,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = Self::Color>, 
[src]

Draws the primitive using the given style.

Implementors

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Arc[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Circle[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Ellipse[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Line[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Polyline<'_>[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Rectangle[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for RoundedRectangle[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Sector[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]

impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Triangle[src]

type Color = C

type Output = ()

fn draw_styled<D>(
    &self,
    style: &PrimitiveStyle<C>,
    target: &mut D
) -> Result<Self::Output, D::Error> where
    D: DrawTarget<Color = C>, 
[src]