[][src]Enum bevy_prototype_lyon::basic_shapes::ShapeType

pub enum ShapeType {
    Triangle(Point, Point, Point),
    Quad(Point, Point, Point, Point),
    Rectangle {
        width: f32,
        height: f32,
    },
    RoundedRectangle {
        width: f32,
        height: f32,
        border_radius: f32,
    },
    Circle(f32),
    Ellipse {
        radius_x: f32,
        radius_y: f32,
    },
    Polyline {
        points: Vec<Point>,
        closed: bool,
    },
}

Basic shapes descriptors, used in primitive.

Variants

Triangle(Point, Point, Point)
Quad(Point, Point, Point, Point)
Rectangle

Fields of Rectangle

width: f32height: f32
RoundedRectangle

Fields of RoundedRectangle

width: f32height: f32border_radius: f32
Circle(f32)
Ellipse

Fields of Ellipse

radius_x: f32radius_y: f32
Polyline

Fields of Polyline

points: Vec<Point>closed: bool

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> Resource for T where
    T: 'static + Send + Sync

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,