iced_audio 0.13.0

An extension to the Iced GUI library with useful widgets for audio applications
Documentation
/// Moved status for the virtual sliders.
///
/// This allows tracking the virtual slider actual movements
/// thus preventing some events from unnecessary being emitted.
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
pub enum SliderStatus {
    Moved,
    #[default]
    Unchanged,
}

impl SliderStatus {
    /// Sets the slider as moved.
    pub(crate) fn moved(&mut self) {
        *self = SliderStatus::Moved;
    }

    /// Whether the slider was moved.
    pub(crate) fn was_moved(self) -> bool {
        matches!(self, SliderStatus::Moved)
    }
}