Trait conrod::widget::envelope_editor::EnvelopePoint[][src]

pub trait EnvelopePoint: Clone + PartialEq {
    type X: Float + ToString;
    type Y: Float + ToString;
    fn get_x(&self) -> Self::X;
fn get_y(&self) -> Self::Y;
fn set_x(&mut self, _x: Self::X);
fn set_y(&mut self, _y: Self::Y);
fn new(_x: Self::X, _y: Self::Y) -> Self; fn get_curve(&self) -> f32 { ... }
fn set_curve(&mut self, _curve: f32) { ... } }

EnvPoint must be implemented for any type that is used as a 2D point within the EnvelopeEditor.

Associated Types

A value on the X-axis of the envelope.

A value on the Y-axis of the envelope.

Required Methods

Return the X value.

Return the Y value.

Set the X value.

Set the Y value.

Create a new EnvPoint.

Provided Methods

Return the bezier curve depth (-1. to 1.) for the next interpolation.

Set the bezier curve depth (-1. to 1.) for the next interpolation.

Implementors