[][src]Enum pizarra::draw_commands::DrawCommand

pub enum DrawCommand {
    Path {
        color: Color,
        commands: Vec<PathCommand>,
        thickness: f64,
    },
    Circle {
        center: Point,
        radius: f64,
        color: Color,
        thickness: f64,
    },
    Ellipse {
        bbox: [Point; 2],
        thickness: f64,
        color: Color,
    },
}

The draw command as returned by the shape: adds the color

Variants

Path

Fields of Path

color: Colorcommands: Vec<PathCommand>thickness: f64
Circle

Fields of Circle

center: Pointradius: f64color: Colorthickness: f64
Ellipse

Fields of Ellipse

bbox: [Point; 2]thickness: f64color: Color

Implementations

impl DrawCommand[src]

pub fn color(&self) -> Color[src]

Trait Implementations

impl Clone for DrawCommand[src]

impl Debug for DrawCommand[src]

impl PartialEq<DrawCommand> for DrawCommand[src]

impl StructuralPartialEq for DrawCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.