Versions in this module Expand all Collapse all v1 v1.0.1 Dec 15, 2021 Changes in this version type Field + Values []string v1.0.0 Sep 12, 2021 Changes in this version + func DrawText(currentImage image.Image, text string, fontSize int, fontAlignment string) (image.Image, error) + func ResizeImage(img image.Image, keySize int) image.Image + type Config struct + Decks []Deck + Modules []string + type Connection struct + func Connect() (*Connection, error) + func (c *Connection) Close() + func (c *Connection) CommitConfig() error + func (c *Connection) GetConfig() (*Config, error) + func (c *Connection) GetInfo() ([]*StreamDeckInfo, error) + func (c *Connection) GetModules() ([]*Module, error) + func (c *Connection) PressButton(serial string, keyIndex int) error + func (c *Connection) RegisterPageListener(cback func(string, int32)) error + func (c *Connection) ReloadConfig() error + func (c *Connection) SetConfig(config *Config) error + func (c *Connection) SetPage(serial string, page int) error + type Deck struct + Pages []Page + Serial string + type DepracatedConfig struct + Modules []string + Pages []Page + type Field struct + FileTypes []string + Name string + Title string + Type string + type Handler interface + type IconHandler interface + IsRunning func() bool + SetRunning func(running bool) + Start func(key Key, info StreamDeckInfo, callback func(image image.Image)) + Stop func() + type Key struct + Brightness int + Buff image.Image + Command string + Icon string + IconHandler string + IconHandlerFields map[string]string + IconHandlerStruct IconHandler + KeyHandler string + KeyHandlerFields map[string]string + KeyHandlerStruct KeyHandler + Keybind string + SwitchPage int + Text string + TextAlignment string + TextSize int + Url string + type KeyHandler interface + Key func(key Key, info StreamDeckInfo) + type Module struct + IconFields []Field + IsIcon bool + IsKey bool + KeyFields []Field + Name string + type Page []Key + type StreamDeckInfo struct + Cols int + IconSize int + Page int + Rows int + Serial string