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
Required methods
fn draw_styled<D>(
&self,
style: &S,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = Self::Color>, [src]
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]
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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Circle[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Ellipse[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Line[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Polyline<'_>[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Rectangle[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for RoundedRectangle[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Sector[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,
impl<C: PixelColor> StyledDrawable<PrimitiveStyle<C>> for Triangle[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]
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>,