[][src]Struct nannou::draw::primitive::arrow::Arrow

pub struct Arrow<S = Default> { /* fields omitted */ }

A path containing only two points - a start and end.

A triangle is drawn on the end to indicate direction.

Methods

impl<S> Arrow<S>[src]

pub fn weight(self, weight: f32) -> Self[src]

Short-hand for the stroke_weight method.

pub fn tolerance(self, tolerance: f32) -> Self[src]

Short-hand for the stroke_tolerance method.

pub fn start(self, start: Point2<S>) -> Self[src]

Specify the start point of the arrow.

pub fn end(self, end: Point2<S>) -> Self[src]

Specify the end point of the arrow.

pub fn points(self, start: Point2<S>, end: Point2<S>) -> Self[src]

Specify the start and end points of the arrow.

pub fn head_length(self, length: S) -> Self[src]

The length of the arrow head.

By default, this is equal to weight * 4.0.

This value will be clamped to the length of the line itself.

pub fn head_width(self, width: S) -> Self[src]

The width of the arrow head.

By default, this is equal to weight * 2.0.

Trait Implementations

impl<S: Clone> Clone for Arrow<S>[src]

impl<S: Debug> Debug for Arrow<S>[src]

impl<S> Default for Arrow<S> where
    S: Zero
[src]

impl<S> From<Arrow<S>> for Primitive<S>[src]

impl RenderPrimitive for Arrow<f32>[src]

impl<S> SetColor<f32> for Arrow<S>[src]

impl<S> SetOrientation<S> for Arrow<S>[src]

impl<S> SetPosition<S> for Arrow<S>[src]

impl<S> SetStroke for Arrow<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Arrow<S> where
    S: RefUnwindSafe

impl<S> Send for Arrow<S> where
    S: Send

impl<S> Sync for Arrow<S> where
    S: Sync

impl<S> Unpin for Arrow<S> where
    S: Unpin

impl<S> UnwindSafe for Arrow<S> where
    S: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<T> SetParameter for T

impl<T> SetParameter for T

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.

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