Struct goxlr_profile_loader::components::context::Context
source · [−]pub struct Context { /* private fields */ }
Expand description
These have no special properties, they are literally just button colours..
Implementations
sourceimpl Context
impl Context
pub fn new(element_name: String) -> Self
pub fn parse_context(
&mut self,
attributes: &[OwnedAttribute]
) -> Result<(), ParseError>
pub fn write_context<W: Write>(
&self,
writer: &mut EventWriter<&mut W>
) -> Result<(), Error>
pub fn set_selected_effects(&mut self, selected_effects: Preset)
pub fn selected_effects(&self) -> Preset
pub fn selected_sample(&self) -> SampleBank
pub fn set_selected_sample(&mut self, selected_sample: SampleBank)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more