[−][src]Trait conrod_core::widget::envelope_editor::EnvelopePoint
EnvPoint
must be implemented for any type that is used as a 2D point within the
EnvelopeEditor.
Associated Types
type X: Float + ToString
A value on the X-axis of the envelope.
type Y: Float + ToString
A value on the Y-axis of the envelope.
Required methods
fn get_x(&self) -> Self::X
Return the X value.
fn get_y(&self) -> Self::Y
Return the Y value.
fn set_x(&mut self, _x: Self::X)
Set the X value.
fn set_y(&mut self, _y: Self::Y)
Set the Y value.
fn new(_x: Self::X, _y: Self::Y) -> Self
Create a new EnvPoint.
Provided methods
fn get_curve(&self) -> f32
Return the bezier curve depth (-1. to 1.) for the next interpolation.
fn set_curve(&mut self, _curve: f32)
Set the bezier curve depth (-1. to 1.) for the next interpolation.
Implementors
impl EnvelopePoint for Point
[src]
type X = Scalar
type Y = Scalar
fn get_x(&self) -> Scalar
[src]
Return the X value.
fn get_y(&self) -> Scalar
[src]
Return the Y value.
fn set_x(&mut self, x: Scalar)
[src]
Return the X value.
fn set_y(&mut self, y: Scalar)
[src]
Return the Y value.
fn new(x: Scalar, y: Scalar) -> Point
[src]
Create a new Envelope Point.