Enum nih_plug_vizia::widgets::RawParamEvent
source · pub enum RawParamEvent {
BeginSetParameter(ParamPtr),
SetParameterNormalized(ParamPtr, f32),
EndSetParameter(ParamPtr),
ParametersChanged,
}
Expand description
The same as ParamEvent
, but type erased. Use ParamEvent
as an easier way to construct
these if you are working with regular parameter objects.
Variants§
BeginSetParameter(ParamPtr)
Begin an automation gesture for a parameter.
SetParameterNormalized(ParamPtr, f32)
Set a parameter to a new normalized value. This needs to be surrounded by a matching
BeginSetParameter
and EndSetParameter
.
EndSetParameter(ParamPtr)
End an automation gesture for a parameter.
ParametersChanged
Sent by the wrapper to indicate that one or more parameter values have changed. Useful when using properties based on a parameter’s value that are computed inside of an event handler.
Trait Implementations§
source§impl Clone for RawParamEvent
impl Clone for RawParamEvent
source§fn clone(&self) -> RawParamEvent
fn clone(&self) -> RawParamEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RawParamEvent
impl Debug for RawParamEvent
source§impl<P: Param> From<ParamEvent<'_, P>> for RawParamEvent
impl<P: Param> From<ParamEvent<'_, P>> for RawParamEvent
source§fn from(event: ParamEvent<'_, P>) -> Self
fn from(event: ParamEvent<'_, P>) -> Self
Converts to this type from the input type.
impl Copy for RawParamEvent
Auto Trait Implementations§
impl !RefUnwindSafe for RawParamEvent
impl Send for RawParamEvent
impl Sync for RawParamEvent
impl Unpin for RawParamEvent
impl !UnwindSafe for RawParamEvent
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