Struct conrod::EnvelopeEditor
[−]
[src]
pub struct EnvelopeEditor<'a, E: 'a, F> where E: EnvelopePoint {
// some fields omitted
}
Used for editing a series of 2D Points on a cartesian (X, Y) plane within some given range. Useful for things such as oscillator/automation envelopes or any value series represented periodically.
Methods
impl<'a, E, F> EnvelopeEditor<'a, E, F> where E: EnvelopePoint
fn point_radius(self, radius: f64) -> EnvelopeEditor<'a, E, F>
Set the radius of the envelope point circle.
fn line_width(self, width: f64) -> EnvelopeEditor<'a, E, F>
Set the width of the envelope lines.
fn value_font_size(self, size: FontSize) -> EnvelopeEditor<'a, E, F>
Set the font size for the displayed values.
fn skew_y(self, skew: f32) -> EnvelopeEditor<'a, E, F>
Set the value skewing for the envelope's y-axis. This is useful for displaying exponential ranges such as frequency.
fn new(env: &'a mut Vec<E>, min_x: E, max_x: E, min_y: E, max_y: E) -> EnvelopeEditor<'a, E, F>
Construct an EnvelopeEditor widget.
fn react(self, reaction: F) -> EnvelopeEditor<'a, E, F>
Set the reaction for the EnvelopeEditor.
fn set<C>(self, ui_id: UiId, ui: &mut Ui<C>) where C: CharacterCache, E: EnvelopePoint, E: Float, E: Float, F: FnMut(&mut Vec<E>, usize)
After building the EnvelopeEditor, use this method to set its current state into the given
Ui
. It will use this state for rendering the next time ui.draw(graphics)
is called.