1
0
Fork 0

Refer to ParamSlider for vizia param mapping docs

Instead of duplicating this everywhere.
This commit is contained in:
Robbert van der Helm 2022-11-10 15:32:39 +01:00
parent b93cd08dfa
commit 89af7e366f

View file

@ -22,12 +22,8 @@ pub struct ParamButton {
} }
impl ParamButton { impl ParamButton {
/// Creates a new [`ParamButton`] for the given parameter. To accommodate VIZIA's mapping system, /// Creates a new [`ParamButton`] for the given parameter. See
/// you'll need to provide a lens containing your `Params` implementation object (check out how /// [`ParamSlider`][super::ParamSlider] for more information on this function's arguments.
/// the `Data` struct is used in `gain_gui_vizia`) and a projection function that maps the
/// `Params` object to the parameter you want to display a widget for. Parameter changes are
/// handled by emitting [`ParamEvent`][super::ParamEvent]s which are automatically handled by
/// the VIZIA wrapper.
pub fn new<L, Params, P, FMap>( pub fn new<L, Params, P, FMap>(
cx: &mut Context, cx: &mut Context,
params: L, params: L,