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
AddPoint
Insert a new point.
Fields of AddPoint
i: usize | The index at which the point should be inserted. |
point: E | The new point. |
RemovePoint
Remove a point.
Fields of RemovePoint
i: usize | The index of the point that should be removed. |
MovePoint
Move a point.
Fields of MovePoint
i: usize | The index of the point that should be moved. |
x: <E as EnvelopePoint>::X | The point's new x value. |
y: <E as EnvelopePoint>::Y | The point's new y value. |
Methods
impl<E> Event<E> where
E: EnvelopePoint,
[src]
E: EnvelopePoint,
Trait Implementations
impl<E> Copy for Event<E> where
E: Copy + EnvelopePoint,
<E as EnvelopePoint>::X: Copy,
<E as EnvelopePoint>::Y: Copy,
[src]
E: Copy + EnvelopePoint,
<E as EnvelopePoint>::X: Copy,
<E as EnvelopePoint>::Y: Copy,
impl<E> Clone for Event<E> where
E: Clone + EnvelopePoint,
<E as EnvelopePoint>::X: Clone,
<E as EnvelopePoint>::Y: Clone,
[src]
E: Clone + EnvelopePoint,
<E as EnvelopePoint>::X: Clone,
<E as EnvelopePoint>::Y: Clone,
fn clone(&self) -> Event<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
E: Debug + EnvelopePoint,
<E as EnvelopePoint>::X: Debug,
<E as EnvelopePoint>::Y: Debug,