Struct nih_plug_vizia::widgets::ParamButton
source · pub struct ParamButton { /* private fields */ }
Expand description
Implementations§
source§impl ParamButton
impl ParamButton
source§impl ParamButton
impl ParamButton
sourcepub fn new<L, Params, P, FMap>(
cx: &mut Context,
params: L,
params_to_param: FMap
) -> Handle<'_, Self>where
L: Lens<Target = Params> + Clone,
Params: 'static,
P: Param + 'static,
FMap: Fn(&Params) -> &P + Copy + 'static,
pub fn new<L, Params, P, FMap>( cx: &mut Context, params: L, params_to_param: FMap ) -> Handle<'_, Self>where L: Lens<Target = Params> + Clone, Params: 'static, P: Param + 'static, FMap: Fn(&Params) -> &P + Copy + 'static,
Creates a new ParamButton
for the given parameter. See
ParamSlider
for more information on this function’s arguments.
Trait Implementations§
source§impl View for ParamButton
impl View for ParamButton
source§fn element(&self) -> Option<&'static str>
fn element(&self) -> Option<&'static str>
The name of the view. This is used in css: to style every single one of a given view, you
specify the element name.
fn event(&mut self, cx: &mut EventContext<'_>, event: &mut Event)
fn build<F>(self, cx: &mut Context, content: F) -> Handle<'_, Self>where F: FnOnce(&mut Context),
fn draw(&self, cx: &mut DrawContext<'_>, canvas: &mut Canvas<OpenGl>)
Auto Trait Implementations§
impl !RefUnwindSafe for ParamButton
impl Send for ParamButton
impl Sync for ParamButton
impl Unpin for ParamButton
impl !UnwindSafe for ParamButton
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