Enum nannou::ui::prelude::widget::envelope_editor::Event [] [src]

pub enum Event<E> where
    E: EnvelopePoint
{ AddPoint { i: usize, point: E, }, RemovePoint { i: usize, }, MovePoint { i: usize, x: <E as EnvelopePoint>::X, y: <E as EnvelopePoint>::Y, }, }

The kinds of events that may be yielded by the EnvelopeEditor.

Variants

Insert a new point.

Fields of AddPoint

The index at which the point should be inserted.

The new point.

Remove a point.

Fields of RemovePoint

The index of the point that should be removed.

Move a point.

Fields of MovePoint

The index of the point that should be moved.

The point's new x value.

The point's new y value.

Methods

impl<E> Event<E> where
    E: EnvelopePoint
[src]

[src]

Update the given envelope in accordance with the Event.

Trait Implementations

impl<E> Copy for Event<E> where
    E: Copy + EnvelopePoint,
    <E as EnvelopePoint>::X: Copy,
    <E as EnvelopePoint>::Y: Copy
[src]

impl<E> Clone for Event<E> where
    E: Clone + EnvelopePoint,
    <E as EnvelopePoint>::X: Clone,
    <E as EnvelopePoint>::Y: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E> Debug for Event<E> where
    E: Debug + EnvelopePoint,
    <E as EnvelopePoint>::X: Debug,
    <E as EnvelopePoint>::Y: Debug
[src]

[src]

Formats the value using the given formatter.