Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenActionAPI/rust-elgato-streamdeck
/ functions
Functions
83 in github.com/OpenActionAPI/rust-elgato-streamdeck
⨍
Functions
83
◇
Types & classes
16
↓ 16 callers
Method
key_count
Amount of keys the Stream Deck kind has
src/info.rs:157
↓ 12 callers
Method
kind
Returns kind of the Stream Deck
src/lib.rs:139
↓ 8 callers
Method
lcd_image_format
Image format used by LCD screen, used for filling LCD
src/info.rs:278
↓ 6 callers
Function
convert_image_with_format
Converts image into image data depending on provided image format
src/images.rs:17
↓ 6 callers
Function
extract_str
Extracts string from byte array, removing \0 symbols
src/util.rs:44
↓ 6 callers
Function
get_feature_report
Performs get_feature_report on [HidDevice]
src/util.rs:7
↓ 5 callers
Method
read
Reads states and returns updates
src/lib.rs:675
↓ 5 callers
Function
send_feature_report
Performs send_feature_report on [HidDevice]
src/util.rs:20
↓ 4 callers
Method
set_button_image
Sets specified button's image, changes must be flushed with `.flush()` before they will appear on the device!
src/lib.rs:438
↓ 4 callers
Method
touchpoint_count
Amount of touch points the Stream Deck kind has
src/info.rs:201
↓ 4 callers
Method
write_image_data_reports
(&self, image_data: &[u8], parameters: WriteImageParameters, header_fn: T)
src/lib.rs:486
↓ 3 callers
Method
column_count
Amount of button columns the Stream Deck kind has
src/info.rs:180
↓ 3 callers
Method
encoder_count
Amount of encoders/knobs the Stream Deck kind has
src/info.rs:192
↓ 3 callers
Method
flush
Flushes the button's image to the device
src/lib.rs:460
↓ 3 callers
Method
lcd_strip_size
Size of the LCD strip on the device
src/info.rs:209
↓ 3 callers
Function
list_devices
Returns a list of devices as (Kind, Serial Number) that could be found using HidApi. WARNING:** To refresh the list, use [refresh_device_list]
src/lib.rs:56
↓ 3 callers
Function
read_data
Reads data from [HidDevice]. Blocking mode is used if timeout is specified
src/util.rs:25
↓ 3 callers
Method
vendor_id
Retrieves Vendor ID used by Elgato hardware
src/info.rs:135
↓ 2 callers
Method
clear_all_button_images
Sets blank images to every button, changes must be flushed with `.flush()` before they will appear on the device!
src/lib.rs:429
↓ 2 callers
Function
convert_image
Converts image into image data depending on provided kind of device
src/images.rs:12
↓ 2 callers
Function
flip_key_index
Flips key index horizontally, for use with Original v1 Stream Deck
src/util.rs:49
↓ 2 callers
Method
get_reader
Returns button state reader for this device
src/lib.rs:475
↓ 2 callers
Method
is_empty
Checks if there's data received or not
src/lib.rs:102
↓ 2 callers
Method
key_image_format
Image format used by the Stream Deck kind
src/info.rs:229
↓ 2 callers
Function
new_hidapi
Creates an instance of the HidApi Can be used if you don't want to link hidapi crate into your project
src/lib.rs:44
↓ 2 callers
Method
product_id
Retrieves Product ID of the Stream Deck
src/info.rs:113
↓ 2 callers
Function
read_button_states
Reads button states, empty vector if no data
src/util.rs:55
↓ 2 callers
Method
send_image
(&self, key: u8, image_data: &[u8])
src/lib.rs:274
↓ 2 callers
Method
set_brightness
Sets brightness of the device, value range is 0 - 100
src/lib.rs:252
↓ 2 callers
Method
set_touchpoint_color
Sets specified touch point's led strip color
src/lib.rs:445
↓ 2 callers
Method
write_lcd
Writes image data to Stream Deck device's lcd strip/screen as region. Only Stream Deck Plus supports writing LCD regions, for Stream Deck Neo use writ
src/lib.rs:320
↓ 2 callers
Method
write_lcd_fill
Writes image data to Stream Deck device's lcd strip/screen as full fill You can convert your images into proper image_data like this: ``` use elgato_
src/lib.rs:363
↓ 1 callers
Method
blank_image
Returns blank image data appropriate for the Stream Deck kind
src/info.rs:303
↓ 1 callers
Method
clear_button_image
Sets button's image to blank, changes must be flushed with `.flush()` before they will appear on the device!
src/lib.rs:423
↓ 1 callers
Function
convert_image_async
(kind: Kind, image: DynamicImage)
src/images.rs:62
↓ 1 callers
Function
is_vendor_familiar
Returns true for vendors IDs that are recognized by the library
src/info.rs:43
↓ 1 callers
Method
is_visual
Tells if the Stream Deck kind has a screen
src/info.rs:219
↓ 1 callers
Method
kind
Returns kind of the Stream Deck
src/asynchronous.rs:64
↓ 1 callers
Function
read_encoder_input
Reads encoder input
src/util.rs:100
↓ 1 callers
Method
read_input
Reads button states, awaits until there's data. Poll rate determines how often button state gets checked
src/asynchronous.rs:94
↓ 1 callers
Method
read_input
Reads all possible input from Stream Deck device
src/lib.rs:195
↓ 1 callers
Function
read_lcd_input
Reads lcd screen input
src/util.rs:80
↓ 1 callers
Method
row_count
Amount of button rows the Stream Deck kind has
src/info.rs:169
↓ 1 callers
Method
serial_number
Returns serial number of the device
src/lib.rs:154
↓ 1 callers
Function
write_data
Writes data to [HidDevice]
src/util.rs:39
↓ 1 callers
Method
write_image
Writes image data to Stream Deck device, changes must be flushed with `.flush()` before they will appear on the device!
src/asynchronous.rs:121
↓ 1 callers
Method
write_image
Writes image data to Stream Deck device, changes must be flushed with `.flush()` before they will appear on the device!
src/lib.rs:310
Method
clear_all_button_images
Sets blank images to every button, changes must be flushed with `.flush()` before they will appear on the device!
src/asynchronous.rs:155
Method
clear_button_image
Sets button's image to blank, changes must be flushed with `.flush()` before they will appear on the device!
src/asynchronous.rs:148
Method
connect
Attempts to connect to the device, can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime
src/asynchronous.rs:41
Method
connect
Attempts to connect to the device
src/lib.rs:125
Function
convert_image_with_format_async
(format: ImageFormat, image: DynamicImage)
src/images.rs:69
Method
default
()
src/info.rs:432
Method
firmware_version
Returns firmware version of the StreamDeck
src/asynchronous.rs:87
Method
firmware_version
Returns firmware version of the StreamDeck
src/lib.rs:175
Method
flush
Flushes the button's image to the device
src/asynchronous.rs:176
Method
fmt
(&self, f: &mut Formatter<'_>)
src/lib.rs:588
Method
for_key
(kind: Kind, image_data_len: usize)
src/lib.rs:525
Method
from
Wraps an already-opened [StreamDeck], allowing the caller to control which thread performs the HID open
src/asynchronous.rs:53
Method
from
(e: HidError)
src/lib.rs:596
Method
from_image
Converts image to image rect
src/images.rs:87
Method
from_image_async
(image: DynamicImage)
src/images.rs:106
Method
from_vid_pid
Creates [Kind] variant from Vendor ID and Product ID
src/info.rs:87
Method
get_reader
Returns button state reader for this device
src/asynchronous.rs:182
Method
key_layout
Key layout of the Stream Deck kind as (rows, columns)
src/info.rs:224
Function
list_devices_async
Returns a list of devices as (Kind, Serial Number) that could be found using HidApi, can be safely ran inside [multi_thread](tokio::runtime::Builder::
src/asynchronous.rs:26
Function
main
()
examples/async.rs:13
Function
main
()
examples/simple.rs:10
Method
manufacturer
Returns manufacturer string of the device
src/asynchronous.rs:69
Method
manufacturer
Returns manufacturer string of the device
src/lib.rs:144
Method
product
Returns product string of the device
src/asynchronous.rs:75
Method
product
Returns product string of the device
src/lib.rs:149
Method
read
Reads states and returns updates
src/asynchronous.rs:201
Function
refresh_device_list
Actually refreshes the device list
src/lib.rs:49
Function
refresh_device_list_async
Actually refreshes the device list, can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime
src/asynchronous.rs:18
Method
reset
Resets the device
src/asynchronous.rs:108
Method
reset
Resets the device
src/lib.rs:231
Method
serial_number
Returns serial number of the device
src/asynchronous.rs:81
Method
set_brightness
Sets brightness of the device, value range is 0 - 100
src/asynchronous.rs:114
Method
set_button_image
Sets specified button's image, changes must be flushed with `.flush()` before they will appear on the device!
src/asynchronous.rs:162
Method
set_touchpoint_color
Sets specified touch point's led strip color
src/asynchronous.rs:170
Method
write_lcd
Writes image data to Stream Deck device's lcd strip/screen as region. Only Stream Deck Plus supports writing LCD regions, for Stream Deck Neo use writ
src/asynchronous.rs:128
Method
write_lcd_fill
Writes image data to Stream Deck device's lcd strip/screen as full fill You can convert your images into proper image_data like this: ``` use elgato_
src/asynchronous.rs:141