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
AddPointInsert a new point.
Fields of AddPoint
i: usize | The index at which the point should be inserted. |
point: E | The new point. |
RemovePointRemove a point.
Fields of RemovePoint
i: usize | The index of the point that should be removed. |
MovePointMove 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]
E: EnvelopePoint,
pub fn update(self, envelope: &mut Vec<E>)[src]
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]
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]
E: EnvelopePoint,
E::X: Clone,
E::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> Debug for Event<E> where
E: EnvelopePoint,
E::X: Debug,
E::Y: Debug, [src]
E: EnvelopePoint,
E::X: Debug,
E::Y: Debug,