1
0
Fork 0

Fix some spelling errors

This commit is contained in:
George Atkinson 2022-09-21 17:32:24 +01:00
parent eb33a55fcc
commit ec79bb36be

View file

@ -7,7 +7,7 @@ use super::util::{self, ModifiersExt};
use super::RawParamEvent; use super::RawParamEvent;
/// When shift+dragging a parameter, one pixel dragged corresponds to this much change in the /// When shift+dragging a parameter, one pixel dragged corresponds to this much change in the
/// noramlized parameter. /// normalized parameter.
const GRANULAR_DRAG_MULTIPLIER: f32 = 0.1; const GRANULAR_DRAG_MULTIPLIER: f32 = 0.1;
/// A slider that integrates with NIH-plug's [`Param`] types. Use the /// A slider that integrates with NIH-plug's [`Param`] types. Use the
@ -36,7 +36,7 @@ pub struct ParamSlider {
/// What style to use for the slider. /// What style to use for the slider.
style: ParamSliderStyle, style: ParamSliderStyle,
/// Will be set to `true` when the field gets Alt+Click'ed which will replae the label with a /// Will be set to `true` when the field gets Alt+Click'ed which will replace the label with a
/// text box. /// text box.
text_input_active: bool, text_input_active: bool,
@ -48,7 +48,7 @@ pub struct ParamSlider {
pub enum ParamSliderStyle { pub enum ParamSliderStyle {
/// Visualize the offset from the default value for continuous parameters with a default value /// Visualize the offset from the default value for continuous parameters with a default value
/// at around half of its range, fill the bar from the left for discrete parameters and /// at around half of its range, fill the bar from the left for discrete parameters and
/// continous parameters without centered default values. /// continuous parameters without centered default values.
Centered, Centered,
/// Always fill the bar starting from the left. /// Always fill the bar starting from the left.
FromLeft, FromLeft,
@ -78,7 +78,7 @@ impl ParamSlider {
/// handled by emitting [`ParamEvent`][super::ParamEvent]s which are automatically handled by /// handled by emitting [`ParamEvent`][super::ParamEvent]s which are automatically handled by
/// the VIZIA wrapper. /// the VIZIA wrapper.
/// ///
/// See [`ParamSliderExt`] for additonal options. /// See [`ParamSliderExt`] for additional options.
pub fn new<L, Params, P, F>(cx: &mut Context, params: L, params_to_param: F) -> Handle<Self> pub fn new<L, Params, P, F>(cx: &mut Context, params: L, params_to_param: F) -> Handle<Self>
where where
L: Lens<Target = Params> + Clone, L: Lens<Target = Params> + Clone,