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]
type Color: PixelColor[src]Color 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]
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
type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]type Color = Cfn draw_styled<D>(
&self,
style: &PrimitiveStyle<C>,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = C>, [src]