Documentation
¶
Index ¶
- 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
- type Connection
- 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
- type DepracatedConfig
- type Field
- type Handler
- type IconHandler
- type Key
- type KeyHandler
- type Module
- type Page
- type StreamDeckInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect() (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) CommitConfig ¶
func (c *Connection) CommitConfig() error
func (*Connection) GetConfig ¶
func (c *Connection) GetConfig() (*Config, error)
func (*Connection) GetInfo ¶
func (c *Connection) GetInfo() ([]*StreamDeckInfo, error)
func (*Connection) GetModules ¶
func (c *Connection) GetModules() ([]*Module, error)
func (*Connection) PressButton ¶
func (c *Connection) PressButton(serial string, keyIndex int) error
func (*Connection) RegisterPageListener ¶
func (c *Connection) RegisterPageListener(cback func(string, int32)) error
func (*Connection) ReloadConfig ¶
func (c *Connection) ReloadConfig() error
func (*Connection) SetConfig ¶
func (c *Connection) SetConfig(config *Config) error
type DepracatedConfig ¶
type IconHandler ¶
type Key ¶
type Key struct { Icon string `json:"icon,omitempty"` SwitchPage int `json:"switch_page,omitempty"` Text string `json:"text,omitempty"` TextSize int `json:"text_size,omitempty"` TextAlignment string `json:"text_alignment,omitempty"` Keybind string `json:"keybind,omitempty"` Command string `json:"command,omitempty"` Brightness int `json:"brightness,omitempty"` Url string `json:"url,omitempty"` IconHandler string `json:"icon_handler,omitempty"` KeyHandler string `json:"key_handler,omitempty"` IconHandlerFields map[string]string `json:"icon_handler_fields,omitempty"` KeyHandlerFields map[string]string `json:"key_handler_fields,omitempty"` Buff image.Image `json:"-"` IconHandlerStruct IconHandler `json:"-"` KeyHandlerStruct KeyHandler `json:"-"` }
type KeyHandler ¶
type KeyHandler interface { Handler Key(key Key, info StreamDeckInfo) }
Click to show internal directories.
Click to hide internal directories.