pub enum Kind {
Show 15 variants
Original,
OriginalV2,
Mini,
Xl,
XlV2,
Mk2,
Mk2Scissor,
MiniMk2,
MiniDiscord,
Neo,
Pedal,
Plus,
MiniMk2Module,
Mk2Module,
XlV2Module,
}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
Mk2Scissor
Stream Deck Mk2 with Scissor Keys
MiniMk2
Stream Deck Mini Mk2
MiniDiscord
Stream Deck Mini Discord Edition
Neo
Stream Deck Neo
Pedal
Stream Deck Pedal
Plus
Stream Deck Plus
MiniMk2Module
Stream Deck Mini Mk2 Module
Mk2Module
Stream Deck Mk2 Module
XlV2Module
Stream Deck XL Module
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn from_vid_pid(vid: u16, pid: u16) -> Option<Kind>
pub fn from_vid_pid(vid: u16, pid: u16) -> Option<Kind>
Creates Kind variant from Vendor ID and Product ID
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 encoder_count(&self) -> u8
pub fn encoder_count(&self) -> u8
Amount of encoders/knobs the Stream Deck kind has
Sourcepub fn touchpoint_count(&self) -> u8
pub fn touchpoint_count(&self) -> u8
Amount of touch points the Stream Deck kind has
Sourcepub fn lcd_strip_size(&self) -> Option<(usize, usize)>
pub fn lcd_strip_size(&self) -> Option<(usize, usize)>
Size of the LCD strip on the device
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 lcd_image_format(&self) -> Option<ImageFormat>
pub fn lcd_image_format(&self) -> Option<ImageFormat>
Image format used by LCD screen, used for filling LCD
Sourcepub fn blank_image(&self) -> Vec<u8> ⓘ
pub fn blank_image(&self) -> Vec<u8> ⓘ
Returns blank image data appropriate for the Stream Deck kind