We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd934ff commit d2d25eeCopy full SHA for d2d25ee
streamdeck.go
@@ -21,6 +21,7 @@ type Button interface {
21
ButtonDisplay
22
}
23
24
+// ButtonDecorator represents a way to modify the button image, for example to add a highlight or an "on/off" hint
25
type ButtonDecorator interface {
26
Apply(image.Image) image.Image
27
@@ -54,6 +55,7 @@ func (sd *StreamDeck) AddButton(btnIndex int, b Button) {
54
55
sd.updateButton(b)
56
57
58
+// SetDecorator imposes a ButtonDecorator onto a given button
59
func (sd *StreamDeck) SetDecorator(btnIndex int, d ButtonDecorator) {
60
sd.decorators[btnIndex] = d
61
// If there's a button there, update it
0 commit comments