pub struct ParamInfo {
pub id: ClapId,
pub flags: u32,
pub name: String,
pub module: String,
pub min_value: f64,
pub max_value: f64,
pub default_value: f64,
}Expand description
Describes a parameter.
Fields§
§id: ClapIdStable parameter identifier, it must never change.
flags: u32§name: StringThe display name. eg: “Volume”. This does not need to be unique. Do not include the module text in this. The host should concatenate/format the module + name in the case where showing the name alone would be too vague.
module: String§min_value: f64Minimum plain value. Must be finite.
max_value: f64Maximum plain value. Must be finite.
default_value: f64Default plain value. Must be in [min, max] range.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ParamInfo
Auto Trait Implementations§
impl Freeze for ParamInfo
impl RefUnwindSafe for ParamInfo
impl Send for ParamInfo
impl Sync for ParamInfo
impl Unpin for ParamInfo
impl UnwindSafe for ParamInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more