[][src]Struct kiss3d_conrod::widget::envelope_editor::EnvelopeEditor

pub struct EnvelopeEditor<'a, E> where
    E: EnvelopePoint + 'a, 
{ pub skew_y_range: f32, // 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.

Fields

skew_y_range: f32

The value skewing for the envelope's y-axis. This is useful for displaying exponential ranges such as frequency.

Methods

impl<'a, E> EnvelopeEditor<'a, E> where
    E: EnvelopePoint
[src]

pub fn new(
    env: &'a [E],
    min_x: E::X,
    max_x: E::X,
    min_y: E::Y,
    max_y: E::Y
) -> Self
[src]

Construct an EnvelopeEditor widget.

pub fn label_font_id(self, font_id: Id) -> Self[src]

Specify the font used for displaying the label.

pub fn point_radius(self, point_radius: Scalar) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

pub fn line_thickness(self, line_thickness: Scalar) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

pub fn value_font_size(self, value_font_size: FontSize) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

pub fn skew_y(self, skew_y: f32) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

pub fn enabled(self, enabled: bool) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

Trait Implementations

impl<'a, E> Borderable for EnvelopeEditor<'a, E> where
    E: EnvelopePoint
[src]

fn border(self, border: Scalar) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

fn border_color(self, border_color: Color) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, E> Colorable for EnvelopeEditor<'a, E> where
    E: EnvelopePoint
[src]

fn color(self, color: Color) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, E> Labelable<'a> for EnvelopeEditor<'a, E> where
    E: EnvelopePoint
[src]

fn label(self, label: &'a str) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

fn label_color(self, label_color: Color) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, E> Common for EnvelopeEditor<'a, E> where
    E: EnvelopePoint + 'a, 
[src]

impl<'a, E> Widget for EnvelopeEditor<'a, E> where
    E: EnvelopePoint
[src]

type State = State

State to be stored within the Uis widget cache. Read more

type Style = Style

Every widget is required to have its own associated Style type. This type is intended to contain high-level styling information for the widget that can be optionally specified by a user of the widget. Read more

type Event = Vec<Event<E>>

The type of event yielded by the widget, returned via the Widget::set function. Read more

fn update(self, args: UpdateArgs<Self>) -> Self::Event[src]

Update the EnvelopeEditor in accordance to the latest input and call the given react function if necessary.

Auto Trait Implementations

impl<'a, E> Send for EnvelopeEditor<'a, E> where
    E: Sync,
    <E as EnvelopePoint>::X: Send,
    <E as EnvelopePoint>::Y: Send

impl<'a, E> Sync for EnvelopeEditor<'a, E> where
    E: Sync,
    <E as EnvelopePoint>::X: Sync,
    <E as EnvelopePoint>::Y: Sync

impl<'a, E> Unpin for EnvelopeEditor<'a, E> where
    <E as EnvelopePoint>::X: Unpin,
    <E as EnvelopePoint>::Y: Unpin

impl<'a, E> UnwindSafe for EnvelopeEditor<'a, E> where
    E: RefUnwindSafe,
    <E as EnvelopePoint>::X: UnwindSafe,
    <E as EnvelopePoint>::Y: UnwindSafe

impl<'a, E> RefUnwindSafe for EnvelopeEditor<'a, E> where
    E: RefUnwindSafe,
    <E as EnvelopePoint>::X: RefUnwindSafe,
    <E as EnvelopePoint>::Y: RefUnwindSafe

Blanket Implementations

impl<W> Positionable for W where
    W: Widget
[src]

impl<W> Sizeable for W where
    W: Widget
[src]

fn get_x_dimension(&Self, &Ui) -> Dimension[src]

We attempt to retrieve the x Dimension for the widget via the following:

  • Check for specified value at maybe_x_dimension
  • Otherwise, use the default returned by Widget::default_x_dimension.

fn get_y_dimension(&Self, &Ui) -> Dimension[src]

We attempt to retrieve the y Dimension for the widget via the following:

  • Check for specified value at maybe_y_dimension
  • Otherwise, use the default returned by Widget::default_y_dimension.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]