Documentation
¶
Index ¶
- Constants
- func DrawProgressBar(img image.Image, label string, x, y, h, w, progress float64) (image.Image, error)
- func DrawProgressBarWithAccent(img image.Image, label string, x, y, h, w, progress float64, hex string) (image.Image, error)
- func DrawText(img image.Image, text string, options DrawTextOptions) (image.Image, error)
- func FindXDoToolKeybindString(code int) string
- func HexColor(hex string) color.RGBA
- func LayerImages(x, y int, images ...image.Image) (image.Image, error)
- func ParseXDoToolKeybindString(keybind string) ([]int, error)
- func ResizeImage(img image.Image, keySize int) image.Image
- func ResizeImageWH(img image.Image, width int, height int) image.Image
- func SubImage(img image.Image, x0, y0, x1, y1 int) image.Image
- type BackgroundHandler
- type Config
- type ConfigV3
- type Connection
- func (c *Connection) Close()
- func (c *Connection) CommitConfig() error
- func (c *Connection) GetConfig() (*ConfigV3, error)
- func (c *Connection) GetHandlerExample(serial string, keyConfig KeyConfigV3) (image.Image, error)
- func (c *Connection) GetInfo() ([]*StreamDeckInfoV1, error)
- func (c *Connection) GetKnobHandlerExample(serial string, knobConfig KnobConfigV3) (image.Image, error)
- func (c *Connection) GetModules() ([]*Module, error)
- func (c *Connection) GetObsFields() ([]*Field, 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 *ConfigV3) error
- func (c *Connection) SetPage(serial string, page int) error
- type Deck
- type DeckV3
- func (d *DeckV3) GetKeyGridBackground() string
- func (d *DeckV3) GetKeyGridBackgroundBuff() []image.Image
- func (d *DeckV3) GetKeyGridBackgroundHandler() KeyGridBackgroundHandler
- func (d *DeckV3) GetKeyGridBackgroundHandlerFields() map[string]any
- func (d *DeckV3) GetTouchPanelBackground() string
- func (d *DeckV3) GetTouchPanelBackgroundBuff() []image.Image
- func (d *DeckV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
- func (d *DeckV3) GetTouchPanelBackgroundHandlerFields() map[string]any
- func (d *DeckV3) SetKeyGridBackgroundBuff(img []image.Image)
- func (d *DeckV3) SetKeyGridBackgroundHandler(handler KeyGridBackgroundHandler)
- func (d *DeckV3) SetTouchPanelBackgroundBuff(img []image.Image)
- func (d *DeckV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
- type DepracatedConfig
- type DrawTextOptions
- type Field
- type FieldType
- type Handler
- type IConn
- type IContext
- type IconHandler
- type InputEvent
- type InputEventType
- type InputHandler
- type Key
- type KeyBackgrounder
- type KeyConfigV3
- func (kc *KeyConfigV3) GetKeyBackground() string
- func (kc *KeyConfigV3) GetKeyBackgroundBuff() image.Image
- func (kc *KeyConfigV3) GetKeyBackgroundHandler() KeyGridBackgroundHandler
- func (kc *KeyConfigV3) GetKeyBackgroundHandlerFields() map[string]any
- func (kc *KeyConfigV3) SetKeyBackgroundBuff(img image.Image)
- func (kc *KeyConfigV3) SetKeyBackgroundHandler(handler KeyGridBackgroundHandler)
- type KeyGridBackgroundHandler
- type KeyGridBackgrounder
- type KeyHandler
- type KeyV3
- func (k *KeyV3) GetKeyBackground() string
- func (k *KeyV3) GetKeyBackgroundBuff() image.Image
- func (k *KeyV3) GetKeyBackgroundHandler() KeyGridBackgroundHandler
- func (k *KeyV3) GetKeyBackgroundHandlerFields() map[string]any
- func (k *KeyV3) SetKeyBackgroundBuff(img image.Image)
- func (k *KeyV3) SetKeyBackgroundHandler(handler KeyGridBackgroundHandler)
- type KnobActionV3
- type KnobConfigV3
- func (kc *KnobConfigV3) GetTouchPanelBackground() string
- func (kc *KnobConfigV3) GetTouchPanelBackgroundBuff() image.Image
- func (kc *KnobConfigV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
- func (kc *KnobConfigV3) GetTouchPanelBackgroundHandlerFields() map[string]any
- func (kc *KnobConfigV3) SetTouchPanelBackgroundBuff(img image.Image)
- func (kc *KnobConfigV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
- type KnobOrTouchHandler
- type KnobV3
- func (k *KnobV3) GetTouchPanelBackground() string
- func (k *KnobV3) GetTouchPanelBackgroundBuff() image.Image
- func (k *KnobV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
- func (k *KnobV3) GetTouchPanelBackgroundHandlerFields() map[string]any
- func (k *KnobV3) SetTouchPanelBackgroundBuff(img image.Image)
- func (k *KnobV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
- type LcdBackgrounder
- type LcdHandler
- type LcdSegmentBackgrounder
- type Module
- type ObsConnectionInfoV2
- type Page
- type PageV3
- func (p *PageV3) GetKeyGridBackground() string
- func (p *PageV3) GetKeyGridBackgroundBuff() []image.Image
- func (p *PageV3) GetKeyGridBackgroundHandler() KeyGridBackgroundHandler
- func (p *PageV3) GetKeyGridBackgroundHandlerFields() map[string]any
- func (p *PageV3) GetTouchPanelBackground() string
- func (p *PageV3) GetTouchPanelBackgroundBuff() []image.Image
- func (p *PageV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
- func (p *PageV3) GetTouchPanelBackgroundHandlerFields() map[string]any
- func (p *PageV3) SetKeyGridBackgroundBuff(img []image.Image)
- func (p *PageV3) SetKeyGridBackgroundHandler(handler KeyGridBackgroundHandler)
- func (p *PageV3) SetTouchPanelBackgroundBuff(img []image.Image)
- func (p *PageV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
- type StreamDeckInfo
- type StreamDeckInfoV1
- type TouchPanelBackgroundHandler
- type VerticalAlignment
- type VisualHandler
Constants ¶
View Source
const BorderClearance = 10
Variables ¶
This section is empty.
Functions ¶
func DrawProgressBar ¶ added in v2.0.11
func DrawProgressBarWithAccent ¶ added in v2.0.11
func FindXDoToolKeybindString ¶ added in v2.0.4
func LayerImages ¶ added in v2.0.12
func ParseXDoToolKeybindString ¶ added in v2.0.4
Types ¶
type BackgroundHandler ¶ added in v2.0.15
type BackgroundHandler interface {
VisualHandler
Start(fields map[string]any, info StreamDeckInfoV1, callback func(images []image.Image))
StartIndividual(fields map[string]any, info StreamDeckInfoV1, callback func(img image.Image))
}
type ConfigV3 ¶
type ConfigV3 struct {
Modules []string `json:"modules,omitempty"`
Decks []DeckV3 `json:"decks"`
ObsConnectionInfo ObsConnectionInfoV2 `json:"obs_connection_info,omitempty"`
}
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() (*ConfigV3, error)
func (*Connection) GetHandlerExample ¶
func (c *Connection) GetHandlerExample(serial string, keyConfig KeyConfigV3) (image.Image, error)
func (*Connection) GetInfo ¶
func (c *Connection) GetInfo() ([]*StreamDeckInfoV1, error)
func (*Connection) GetKnobHandlerExample ¶ added in v2.0.1
func (c *Connection) GetKnobHandlerExample(serial string, knobConfig KnobConfigV3) (image.Image, error)
func (*Connection) GetModules ¶
func (c *Connection) GetModules() ([]*Module, error)
func (*Connection) GetObsFields ¶
func (c *Connection) GetObsFields() ([]*Field, 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 *ConfigV3) error
type DeckV3 ¶
type DeckV3 struct {
Serial string `json:"serial"`
Pages []PageV3 `json:"pages"`
TouchPanelBackground string `json:"touch_panel_background"`
TouchPanelBackgroundBuff []image.Image `json:"-"`
TouchPanelBackgroundHandler TouchPanelBackgroundHandler `json:"-"`
TouchPanelBackgroundHandlerFields map[string]any `json:"touch_panel_background_handler_fields"`
KeyGridBackground string `json:"key_grid_background"`
KeyGridBackgroundBuff []image.Image `json:"-"`
KeyGridBackgroundHandler KeyGridBackgroundHandler `json:"-"`
KeyGridBackgroundHandlerFields map[string]any `json:"key_grid_background_handler_fields"`
}
func (*DeckV3) GetKeyGridBackground ¶ added in v2.0.14
func (*DeckV3) GetKeyGridBackgroundBuff ¶ added in v2.0.14
func (*DeckV3) GetKeyGridBackgroundHandler ¶ added in v2.0.15
func (d *DeckV3) GetKeyGridBackgroundHandler() KeyGridBackgroundHandler
func (*DeckV3) GetKeyGridBackgroundHandlerFields ¶ added in v2.0.15
func (*DeckV3) GetTouchPanelBackground ¶ added in v2.0.13
func (*DeckV3) GetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (*DeckV3) GetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (d *DeckV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
func (*DeckV3) GetTouchPanelBackgroundHandlerFields ¶ added in v2.0.15
func (*DeckV3) SetKeyGridBackgroundBuff ¶ added in v2.0.14
func (*DeckV3) SetKeyGridBackgroundHandler ¶ added in v2.0.15
func (d *DeckV3) SetKeyGridBackgroundHandler(handler KeyGridBackgroundHandler)
func (*DeckV3) SetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (*DeckV3) SetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (d *DeckV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
type DepracatedConfig ¶
type DrawTextOptions ¶ added in v2.0.10
type DrawTextOptions struct {
FontSize int64
VerticalAlignment VerticalAlignment
FontFace string
Colour string
}
type IContext ¶ added in v2.0.10
type IContext interface {
SetRGB(r, g, b float64)
SetHexColor(color string)
SetFontFace(font font.Face)
WordWrap(text string, width float64) []string
DrawStringWrapped(s string, x, y, ax, ay, width, lineSpacing float64, align gg.Align)
Image() image.Image
MeasureMultilineString(text string, lineSpacing float64) (float64, float64)
Width() int
Height() int
}
type IconHandler ¶
type IconHandler interface {
VisualHandler
Start(key KeyConfigV3, info StreamDeckInfoV1, callback func(image image.Image))
}
type InputEvent ¶
type InputEvent struct {
EventType InputEventType
RotateNotches uint8
}
type InputEventType ¶
type InputEventType uint8
const ( KNOB_CCW InputEventType = iota KNOB_CW KNOB_PRESS SCREEN_SHORT_TAP SCREEN_LONG_TAP )
type InputHandler ¶ added in v2.0.15
type InputHandler interface {
Handler
}
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 KeyBackgrounder ¶ added in v2.0.15
type KeyBackgrounder interface {
GetKeyBackground() string
GetKeyBackgroundBuff() image.Image
SetKeyBackgroundBuff(img image.Image)
GetKeyBackgroundHandler() KeyGridBackgroundHandler
SetKeyBackgroundHandler(handler KeyGridBackgroundHandler)
GetKeyBackgroundHandlerFields() map[string]any
}
type KeyConfigV3 ¶
type KeyConfigV3 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"`
FontFace string `json:"font_face,omitempty"`
TextColour string `json:"text_colour,omitempty"`
Keybind string `json:"keybind,omitempty"`
Command string `json:"command,omitempty"`
Brightness int `json:"brightness,omitempty"`
Url string `json:"url,omitempty"`
KeyHold int `json:"key_hold,omitempty"`
ObsCommand string `json:"obs_command,omitempty"`
ObsCommandParams map[string]string `json:"obs_command_params,omitempty"`
IconHandler string `json:"icon_handler,omitempty"`
KeyHandler string `json:"key_handler,omitempty"`
IconHandlerFields map[string]any `json:"icon_handler_fields,omitempty"`
KeyHandlerFields map[string]any `json:"key_handler_fields,omitempty"`
IconHandlerStruct IconHandler `json:"-"`
KeyHandlerStruct KeyHandler `json:"-"`
KeyBackground string `json:"background"`
KeyBackgroundBuff image.Image `json:"-"`
KeyBackgroundHandler KeyGridBackgroundHandler `json:"-"`
KeyBackgroundHandlerFields map[string]any `json:"key_background_handler_fields"`
}
func (*KeyConfigV3) GetKeyBackground ¶ added in v2.0.15
func (kc *KeyConfigV3) GetKeyBackground() string
func (*KeyConfigV3) GetKeyBackgroundBuff ¶ added in v2.0.15
func (kc *KeyConfigV3) GetKeyBackgroundBuff() image.Image
func (*KeyConfigV3) GetKeyBackgroundHandler ¶ added in v2.0.15
func (kc *KeyConfigV3) GetKeyBackgroundHandler() KeyGridBackgroundHandler
func (*KeyConfigV3) GetKeyBackgroundHandlerFields ¶ added in v2.0.15
func (kc *KeyConfigV3) GetKeyBackgroundHandlerFields() map[string]any
func (*KeyConfigV3) SetKeyBackgroundBuff ¶ added in v2.0.15
func (kc *KeyConfigV3) SetKeyBackgroundBuff(img image.Image)
func (*KeyConfigV3) SetKeyBackgroundHandler ¶ added in v2.0.15
func (kc *KeyConfigV3) SetKeyBackgroundHandler(handler KeyGridBackgroundHandler)
type KeyGridBackgroundHandler ¶ added in v2.0.15
type KeyGridBackgroundHandler interface {
BackgroundHandler
}
type KeyGridBackgrounder ¶ added in v2.0.14
type KeyGridBackgrounder interface {
GetKeyGridBackground() string
GetKeyGridBackgroundBuff() []image.Image
SetKeyGridBackgroundBuff(img []image.Image)
GetKeyGridBackgroundHandler() KeyGridBackgroundHandler
SetKeyGridBackgroundHandler(handler KeyGridBackgroundHandler)
GetKeyGridBackgroundHandlerFields() map[string]any
}
type KeyHandler ¶
type KeyHandler interface {
InputHandler
Key(key KeyConfigV3, info StreamDeckInfoV1)
}
type KeyV3 ¶
type KeyV3 struct {
Application map[string]*KeyConfigV3 `json:"application,omitempty"`
ActiveBuff image.Image `json:"-"`
ActiveIconHandlerStruct *IconHandler `json:"-"`
ActiveKeyHandlerStruct *KeyHandler `json:"-"`
ActiveApplication string `json:"-"`
KeyBackground string `json:"background"`
KeyBackgroundBuff image.Image `json:"-"`
KeyBackgroundHandler KeyGridBackgroundHandler `json:"-"`
KeyBackgroundHandlerFields map[string]any `json:"key_background_handler_fields"`
}
func (*KeyV3) GetKeyBackground ¶ added in v2.0.15
func (*KeyV3) GetKeyBackgroundBuff ¶ added in v2.0.15
func (*KeyV3) GetKeyBackgroundHandler ¶ added in v2.0.15
func (k *KeyV3) GetKeyBackgroundHandler() KeyGridBackgroundHandler
func (*KeyV3) GetKeyBackgroundHandlerFields ¶ added in v2.0.15
func (*KeyV3) SetKeyBackgroundBuff ¶ added in v2.0.15
func (*KeyV3) SetKeyBackgroundHandler ¶ added in v2.0.15
func (k *KeyV3) SetKeyBackgroundHandler(handler KeyGridBackgroundHandler)
type KnobActionV3 ¶
type KnobActionV3 struct {
SwitchPage int `json:"switch_page,omitempty"`
Keybind string `json:"keybind,omitempty"`
Command string `json:"command,omitempty"`
Brightness int `json:"brightness,omitempty"`
Url string `json:"url,omitempty"`
ObsCommand string `json:"obs_command,omitempty"`
ObsCommandParams map[string]string `json:"obs_command_params,omitempty"`
}
type KnobConfigV3 ¶
type KnobConfigV3 struct {
Icon string `json:"icon,omitempty"`
Text string `json:"text,omitempty"`
TextSize int `json:"text_size,omitempty"`
TextAlignment string `json:"text_alignment,omitempty"`
FontFace string `json:"font_face,omitempty"`
TextColour string `json:"text_colour,omitempty"`
LcdHandler string `json:"lcd_handler,omitempty"`
KnobOrTouchHandler string `json:"knob_or_touch_handler,omitempty"`
LcdHandlerStruct LcdHandler `json:"-"`
KnobOrTouchHandlerStruct KnobOrTouchHandler `json:"-"`
LcdHandlerFields map[string]any `json:"lcd_handler_fields,omitempty"`
KnobOrTouchHandlerFields map[string]any `json:"knob_or_touch_handler_fields,omitempty"`
KnobPressAction KnobActionV3 `json:"knob_press_action,omitempty"`
KnobTurnUpAction KnobActionV3 `json:"knob_turn_up_action,omitempty"`
KnobTurnDownAction KnobActionV3 `json:"knob_turn_down_action,omitempty"`
TouchPanelBackground string `json:"touch_panel_background"`
TouchPanelBackgroundBuff image.Image `json:"-"`
TouchPanelBackgroundHandler TouchPanelBackgroundHandler `json:"-"`
TouchPanelBackgroundHandlerFields map[string]any `json:"touch_panel_background_handler_fields"`
}
func (*KnobConfigV3) GetTouchPanelBackground ¶ added in v2.0.13
func (kc *KnobConfigV3) GetTouchPanelBackground() string
func (*KnobConfigV3) GetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (kc *KnobConfigV3) GetTouchPanelBackgroundBuff() image.Image
func (*KnobConfigV3) GetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (kc *KnobConfigV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
func (*KnobConfigV3) GetTouchPanelBackgroundHandlerFields ¶ added in v2.0.15
func (kc *KnobConfigV3) GetTouchPanelBackgroundHandlerFields() map[string]any
func (*KnobConfigV3) SetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (kc *KnobConfigV3) SetTouchPanelBackgroundBuff(img image.Image)
func (*KnobConfigV3) SetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (kc *KnobConfigV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
type KnobOrTouchHandler ¶
type KnobOrTouchHandler interface {
InputHandler
Input(key KnobConfigV3, info StreamDeckInfoV1, event InputEvent)
}
type KnobV3 ¶
type KnobV3 struct {
Application map[string]*KnobConfigV3 `json:"application,omitempty"`
ActiveBuff image.Image `json:"-"`
ActiveApplication string `json:"-"`
TouchPanelBackground string `json:"touch_panel_background"`
TouchPanelBackgroundBuff image.Image `json:"-"`
TouchPanelBackgroundHandler TouchPanelBackgroundHandler `json:"-"`
TouchPanelBackgroundHandlerFields map[string]any `json:"touch_panel_background_handler_fields"`
}
func (*KnobV3) GetTouchPanelBackground ¶ added in v2.0.13
func (*KnobV3) GetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (*KnobV3) GetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (k *KnobV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
func (*KnobV3) GetTouchPanelBackgroundHandlerFields ¶ added in v2.0.15
func (*KnobV3) SetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (*KnobV3) SetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (k *KnobV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
type LcdBackgrounder ¶ added in v2.0.14
type LcdBackgrounder interface {
GetTouchPanelBackground() string
GetTouchPanelBackgroundBuff() []image.Image
SetTouchPanelBackgroundBuff(img []image.Image)
GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
GetTouchPanelBackgroundHandlerFields() map[string]any
}
type LcdHandler ¶
type LcdHandler interface {
VisualHandler
Start(key KnobConfigV3, info StreamDeckInfoV1, callback func(image image.Image))
}
type LcdSegmentBackgrounder ¶ added in v2.0.15
type LcdSegmentBackgrounder interface {
GetTouchPanelBackground() string
GetTouchPanelBackgroundBuff() image.Image
SetTouchPanelBackgroundBuff(img image.Image)
GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
GetTouchPanelBackgroundHandlerFields() map[string]any
}
type Module ¶
type Module struct {
Name string `json:"name,omitempty"`
NewIcon func() IconHandler `json:"-"`
NewKey func() KeyHandler `json:"-"`
NewLcd func() LcdHandler `json:"-"`
NewKnobOrTouch func() KnobOrTouchHandler `json:"-"`
NewKeyGridBackground func() KeyGridBackgroundHandler `json:"-"`
NewTouchPanelBackgroundHandler func() TouchPanelBackgroundHandler `json:"-"`
IconFields []Field `json:"icon_fields,omitempty"`
KeyFields []Field `json:"key_fields,omitempty"`
LcdFields []Field `json:"lcd_fields,omitempty"`
KnobOrTouchFields []Field `json:"knob_or_touch_fields,omitempty"`
LinkedFields []Field `json:"linked_fields,omitempty"`
KeyGridBackgroundFields []Field `json:"key_grid_background_fields"`
TouchPanelBackgroundFields []Field `json:"touch_panel_background_fields"`
IsIcon bool `json:"is_icon,omitempty"`
IsKey bool `json:"is_key,omitempty"`
IsLcd bool `json:"is_lcd,omitempty"`
IsKnob bool `json:"is_knob,omitempty"`
IsLinkedHandlers bool `json:"is_linked_handlers,omitempty"`
IsKeyGridBackground bool `json:"is_key_grid_background"`
IsTouchPanelBackground bool `json:"is_touch_panel_background"`
Linked bool `json:"linked,omitempty"`
}
type ObsConnectionInfoV2 ¶
type PageV3 ¶
type PageV3 struct {
Keys []KeyV3 `json:"keys"`
Knobs []KnobV3 `json:"knobs"`
TouchPanelBackground string `json:"touch_panel_background"`
TouchPanelBackgroundBuff []image.Image `json:"-"`
TouchPanelBackgroundHandler TouchPanelBackgroundHandler `json:"-"`
TouchPanelBackgroundHandlerFields map[string]any `json:"touch_panel_background_handler_fields"`
KeyGridBackground string `json:"key_grid_background"`
KeyGridBackgroundBuff []image.Image `json:"-"`
KeyGridBackgroundHandler KeyGridBackgroundHandler `json:"-"`
KeyGridBackgroundHandlerFields map[string]any `json:"key_grid_background_handler_fields"`
}
func (*PageV3) GetKeyGridBackground ¶ added in v2.0.14
func (*PageV3) GetKeyGridBackgroundBuff ¶ added in v2.0.14
func (*PageV3) GetKeyGridBackgroundHandler ¶ added in v2.0.15
func (p *PageV3) GetKeyGridBackgroundHandler() KeyGridBackgroundHandler
func (*PageV3) GetKeyGridBackgroundHandlerFields ¶ added in v2.0.15
func (*PageV3) GetTouchPanelBackground ¶ added in v2.0.13
func (*PageV3) GetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (*PageV3) GetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (p *PageV3) GetTouchPanelBackgroundHandler() TouchPanelBackgroundHandler
func (*PageV3) GetTouchPanelBackgroundHandlerFields ¶ added in v2.0.15
func (*PageV3) SetKeyGridBackgroundBuff ¶ added in v2.0.14
func (*PageV3) SetKeyGridBackgroundHandler ¶ added in v2.0.15
func (p *PageV3) SetKeyGridBackgroundHandler(handler KeyGridBackgroundHandler)
func (*PageV3) SetTouchPanelBackgroundBuff ¶ added in v2.0.13
func (*PageV3) SetTouchPanelBackgroundHandler ¶ added in v2.0.15
func (p *PageV3) SetTouchPanelBackgroundHandler(handler TouchPanelBackgroundHandler)
type StreamDeckInfo ¶
type StreamDeckInfoV1 ¶
type StreamDeckInfoV1 struct {
Cols int `json:"cols,omitempty"`
Rows int `json:"rows,omitempty"`
IconSize int `json:"icon_size,omitempty"`
Page int `json:"page"`
Serial string `json:"serial,omitempty"`
Name string `json:"name,omitempty"`
Connected bool `json:"connected"`
LastConnected time.Time `json:"last_connected,omitempty"`
LastDisconnected time.Time `json:"last_disconnected,omitempty"`
LcdWidth int `json:"lcd_width,omitempty"`
LcdHeight int `json:"lcd_height,omitempty"`
LcdCols int `json:"lcd_cols,omitempty"`
KnobCols int `json:"knob_cols,omitempty"`
PaddingX int `json:"padding_x"`
PaddingY int `json:"padding_y"`
}
type TouchPanelBackgroundHandler ¶ added in v2.0.15
type TouchPanelBackgroundHandler interface {
BackgroundHandler
}
type VerticalAlignment ¶ added in v2.0.10
type VerticalAlignment string
TODO replace use of gg with native font.Drawer
const ( Top VerticalAlignment = "TOP" Center VerticalAlignment = "CENTER" Bottom VerticalAlignment = "BOTTOM" )
type VisualHandler ¶ added in v2.0.15
Source Files
¶
Click to show internal directories.
Click to hide internal directories.