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

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]

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: Clone> Clone for Event<E> where E: EnvelopePoint,
        E::X: Clone,
        E::Y: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.