Struct nih_plug_vizia::widgets::PeakMeter
source · pub struct PeakMeter;
Expand description
A simple horizontal peak meter.
TODO: There are currently no styling options at all TODO: Vertical peak meter, this is just a proof of concept to fit the gain GUI example.
Implementations§
Trait Implementations§
source§impl View for PeakMeter
impl View for PeakMeter
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 build<F>(self, cx: &mut Context, content: F) -> Handle<'_, Self>where F: FnOnce(&mut Context),
fn event(&mut self, cx: &mut EventContext<'_>, event: &mut Event)
fn draw(&self, cx: &mut DrawContext<'_>, canvas: &mut Canvas<OpenGl>)
Auto Trait Implementations§
impl RefUnwindSafe for PeakMeter
impl Send for PeakMeter
impl Sync for PeakMeter
impl Unpin for PeakMeter
impl UnwindSafe for PeakMeter
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