[][src]Trait embedded_graphics::primitives::Primitive

pub trait Primitive: Dimensions {
    type PointsIter: Iterator<Item = Point>;
    fn points(&self) -> Self::PointsIter;

    fn into_styled<C>(
        self,
        style: PrimitiveStyle<C>
    ) -> Styled<Self, PrimitiveStyle<C>>
    where
        C: PixelColor,
        Self: Sized
, { ... } }

Primitive trait

Associated Types

type PointsIter: Iterator<Item = Point>

Iterator over all points inside the primitive.

Loading content...

Required methods

fn points(&self) -> Self::PointsIter

Returns an iterator over all points inside the primitive.

Loading content...

Provided methods

fn into_styled<C>(
    self,
    style: PrimitiveStyle<C>
) -> Styled<Self, PrimitiveStyle<C>> where
    C: PixelColor,
    Self: Sized

Converts this primitive into a Styled.

Loading content...

Implementors

impl Primitive for Arc[src]

type PointsIter = Points

impl Primitive for Circle[src]

type PointsIter = Points

impl Primitive for Ellipse[src]

type PointsIter = Points

impl Primitive for Line[src]

type PointsIter = Points

impl Primitive for Rectangle[src]

type PointsIter = Points

impl Primitive for RoundedRectangle[src]

type PointsIter = Points

impl Primitive for Sector[src]

type PointsIter = Points

impl Primitive for Triangle[src]

type PointsIter = Points

impl<'a> Primitive for Polyline<'a>[src]

type PointsIter = Points<'a>

Loading content...