Trait nih_plug_vizia::widgets::ParamButtonExt
source · pub trait ParamButtonExt {
// Required methods
fn disable_scroll_wheel(self) -> Self;
fn for_bypass(self) -> Self;
fn with_label(self, value: impl Into<String>) -> Self;
}
Expand description
Extension methods for ParamButton
handles.
Required Methods§
sourcefn disable_scroll_wheel(self) -> Self
fn disable_scroll_wheel(self) -> Self
Don’t respond to scroll wheel events. Useful when this button is used as part of a scrolling view.
sourcefn for_bypass(self) -> Self
fn for_bypass(self) -> Self
Change the colors scheme for a bypass button. This simply adds the bypass
class.
sourcefn with_label(self, value: impl Into<String>) -> Self
fn with_label(self, value: impl Into<String>) -> Self
Change the label used for the button. If this is not set, then the parameter’s name will be used.