Trait embedded_graphics::primitives::StyledDrawable
source · [−]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
type Color: PixelColor
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>,
fn draw_styled<D>(
&self,
style: &S,
target: &mut D
) -> Result<Self::Output, D::Error> where
D: DrawTarget<Color = Self::Color>,
Draws the primitive using the given style.