pub enum LaunchkeyCommand {
SetDrumDAWMode(bool),
SetPadMode(PadMode),
SetEncoderMode(EncoderMode),
SetFaderMode(FaderMode),
SetButtonBrightness {
launch_key_button: LaunchKeyButton,
brightness: Brightness,
},
SetPadColor {
pad_in_mode: PadInMode,
mode: LEDMode,
color_palette_index: ColorPaletteIndex,
},
SetPadCustomColor {
pad_in_mode: PadInMode,
color: Color,
},
SetScreenTextGlobal {
target: GlobalDisplayTarget,
arrangement: Arrangement,
},
SetScreenTextContextual {
target: ContextualDisplayTarget,
text: String,
},
SendScreenBitmap {
target: GlobalDisplayTarget,
bitmap: Box<LaunchkeyBitmap>,
},
}
Expand description
Represents a high-level Launchkey command that can be converted into a MIDI message. These are used to control pads, buttons, displays, and other device features.
Variants§
SetDrumDAWMode(bool)
SetPadMode(PadMode)
SetEncoderMode(EncoderMode)
SetFaderMode(FaderMode)
SetButtonBrightness
SetPadColor
SetPadCustomColor
SetScreenTextGlobal
SetScreenTextContextual
SendScreenBitmap
Trait Implementations§
Source§impl Clone for LaunchkeyCommand
impl Clone for LaunchkeyCommand
Source§fn clone(&self) -> LaunchkeyCommand
fn clone(&self) -> LaunchkeyCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LaunchkeyCommand
impl RefUnwindSafe for LaunchkeyCommand
impl Send for LaunchkeyCommand
impl Sync for LaunchkeyCommand
impl Unpin for LaunchkeyCommand
impl UnwindSafe for LaunchkeyCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more