[][src]Trait iced_audio::core::param::Param

pub trait Param {
    type ID;
    fn id(&self) -> Self::ID;
fn normal(&self) -> Normal;
fn default_normal(&self) -> Normal; }

A paramater that maps a range of values to a Normal, which is used by GUI widgets. It also contains a Normal for the default value of the parameter.

It stores a unique identifier of user supplied type ID. This can be an enum, u32, i32, String, etc. Each parameter must have a unique ID value!

Associated Types

type ID

A unique identifier of user supplied type ID. This can be an enum, u32, i32, String, etc. Each parameter must have a unique ID value!

Loading content...

Required methods

fn id(&self) -> Self::ID

returns the unique identifier of the parameter

fn normal(&self) -> Normal

returns the value of the parameter represented as a Normal

fn default_normal(&self) -> Normal

returns the default value of the parameter represented as a Normal

Loading content...

Implementors

impl<ID: Debug + Copy + Clone> Param for FloatParam<ID>[src]

type ID = ID

impl<ID: Debug + Copy + Clone> Param for IntParam<ID>[src]

type ID = ID

impl<ID: Debug + Copy + Clone> Param for LogDBParam<ID>[src]

type ID = ID

impl<ID: Debug + Copy + Clone> Param for OctaveParam<ID>[src]

type ID = ID

Loading content...