pub struct MixerEditorUiState {Show 17 fields
pub active_panel: MixerEditorPanel,
pub selected_bus_id: Option<u64>,
pub selected_effect_index: Option<usize>,
pub show_spectrum: bool,
pub show_rta: bool,
pub show_lissajous: bool,
pub spectrum_log_scale: bool,
pub show_automation: bool,
pub parameter_link_mode: bool,
pub solo_mode: bool,
pub snap_to_grid: bool,
pub grid_size_db: f32,
pub drag_source_bus: Option<u64>,
pub drag_target_bus: Option<u64>,
pub effect_drag_index: Option<usize>,
pub timeline_zoom: f32,
pub timeline_scroll: f32,
}Fields§
§active_panel: MixerEditorPanel§selected_bus_id: Option<u64>§selected_effect_index: Option<usize>§show_spectrum: bool§show_rta: bool§show_lissajous: bool§spectrum_log_scale: bool§show_automation: bool§parameter_link_mode: bool§solo_mode: bool§snap_to_grid: bool§grid_size_db: f32§drag_source_bus: Option<u64>§drag_target_bus: Option<u64>§effect_drag_index: Option<usize>§timeline_zoom: f32§timeline_scroll: f32Implementations§
Source§impl MixerEditorUiState
impl MixerEditorUiState
pub fn new() -> Self
pub fn select_bus(&mut self, id: u64)
pub fn select_effect(&mut self, bus_id: u64, effect_index: usize)
pub fn snap_gain_db(&self, gain_db: f32) -> f32
pub fn begin_drag(&mut self, source_bus: u64)
pub fn complete_drag(&mut self) -> Option<(u64, u64)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MixerEditorUiState
impl RefUnwindSafe for MixerEditorUiState
impl Send for MixerEditorUiState
impl Sync for MixerEditorUiState
impl Unpin for MixerEditorUiState
impl UnsafeUnpin for MixerEditorUiState
impl UnwindSafe for MixerEditorUiState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.