Enum nannou::ui::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, }, }
Expand description
The kinds of events that may be yielded by the EnvelopeEditor
.
Variants
Insert a new point.
Show fields
Fields of AddPoint
Remove a point.
Show fields
Fields of RemovePoint
i: usize
The index of the point that should be removed.
Move a point.
Show fields
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.
Implementations
Trait Implementations
impl<E> Clone for Event<E> where
E: Clone + EnvelopePoint,
<E as EnvelopePoint>::X: Clone,
<E as EnvelopePoint>::Y: Clone,
impl<E> Clone for Event<E> where
E: Clone + EnvelopePoint,
<E as EnvelopePoint>::X: Clone,
<E as EnvelopePoint>::Y: Clone,
impl<E> Debug for Event<E> where
E: Debug + EnvelopePoint,
<E as EnvelopePoint>::X: Debug,
<E as EnvelopePoint>::Y: Debug,
impl<E> Debug for Event<E> where
E: Debug + EnvelopePoint,
<E as EnvelopePoint>::X: Debug,
<E as EnvelopePoint>::Y: Debug,
impl<E> Copy for Event<E> where
E: Copy + EnvelopePoint,
<E as EnvelopePoint>::X: Copy,
<E as EnvelopePoint>::Y: Copy,
Auto Trait Implementations
impl<E> RefUnwindSafe for Event<E> where
E: RefUnwindSafe,
<E as EnvelopePoint>::X: RefUnwindSafe,
<E as EnvelopePoint>::Y: RefUnwindSafe,
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> Unpin for Event<E> where
E: Unpin,
<E as EnvelopePoint>::X: Unpin,
<E as EnvelopePoint>::Y: Unpin,
impl<E> UnwindSafe for Event<E> where
E: UnwindSafe,
<E as EnvelopePoint>::X: UnwindSafe,
<E as EnvelopePoint>::Y: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V