Enum elgato_streamdeck::info::Kind
source · pub enum Kind {
Original,
OriginalV2,
Mini,
Xl,
XlV2,
Mk2,
MiniMk2,
Pedal,
}Expand description
Enum describing kinds of Stream Decks out there
Variants
Original
First revision of original Stream Deck
OriginalV2
Second revision of original Stream Deck
Mini
Stream Deck Mini
Xl
First revision of Stream Deck XL
XlV2
Second revision of Stream Deck XL
Mk2
Stream Deck Mk2
MiniMk2
Stream Deck Mini Mk2
Pedal
Stream Deck Pedal
Implementations
sourceimpl Kind
impl Kind
sourcepub fn product_id(&self) -> u16
pub fn product_id(&self) -> u16
Retrieves Product ID of the Stream Deck
sourcepub fn column_count(&self) -> u8
pub fn column_count(&self) -> u8
Amount of button columns the Stream Deck kind has
sourcepub fn key_layout(&self) -> (u8, u8)
pub fn key_layout(&self) -> (u8, u8)
Key layout of the Stream Deck kind as (rows, columns)
sourcepub fn key_image_format(&self) -> ImageFormat
pub fn key_image_format(&self) -> ImageFormat
Image format used by the Stream Deck kind
sourcepub fn blank_image(&self) -> Vec<u8>
pub fn blank_image(&self) -> Vec<u8>
Returns blank image data appropriate for the Stream Deck kind
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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