Enum conrod::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::X, y: E::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::X | The point's new x value. |
y: E::Y | The point's new y value. |
Methods
impl<E> Event<E> where
E: EnvelopePoint,
[src]
impl<E> Event<E> where
E: EnvelopePoint,
pub fn update(self, envelope: &mut Vec<E>)
[src]
pub fn update(self, envelope: &mut Vec<E>)
Update the given envelope
in accordance with the Event
.
Trait Implementations
impl<E: Copy> Copy for Event<E> where
E: EnvelopePoint,
E::X: Copy,
E::Y: Copy,
[src]
impl<E: Copy> Copy for Event<E> where
E: EnvelopePoint,
E::X: Copy,
E::Y: Copy,
impl<E: Clone> Clone for Event<E> where
E: EnvelopePoint,
E::X: Clone,
E::Y: Clone,
[src]
impl<E: Clone> Clone for Event<E> where
E: EnvelopePoint,
E::X: Clone,
E::Y: Clone,
fn clone(&self) -> Event<E>
[src]
fn clone(&self) -> Event<E>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<E: Debug> Debug for Event<E> where
E: EnvelopePoint,
E::X: Debug,
E::Y: Debug,
[src]
impl<E: Debug> Debug for Event<E> where
E: EnvelopePoint,
E::X: Debug,
E::Y: Debug,
Auto Trait Implementations
impl<E> Send for Event<E> where
E: Send,
<E as EnvelopePoint>::X: Send,
<E as EnvelopePoint>::Y: Send,
impl<E> Send for Event<E> where
E: Send,
<E as EnvelopePoint>::X: Send,
<E as EnvelopePoint>::Y: Send,
impl<E> Sync for Event<E> where
E: Sync,
<E as EnvelopePoint>::X: Sync,
<E as EnvelopePoint>::Y: Sync,
impl<E> Sync for Event<E> where
E: Sync,
<E as EnvelopePoint>::X: Sync,
<E as EnvelopePoint>::Y: Sync,