Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animated ¶
type Animated interface {
// Animate is called when the Button should start animating.
//
// It is expected that this function only exits if an error occurs or if the
// context is cancelled.
//
// The closure passed should be called with an image processed by
// StreamDeck#ProcessImage which should be done ahead of time before Animate
// is called.
Animate(context.Context, func(context.Context, []byte) error) error
}
Animated represents a Button that is animated.
type Button ¶
type Button interface {
Image() []byte
}
Button represents a button that can be displayed on a StreamDeck using a View.
type GIF ¶
type GIF struct {
// contains filtered or unexported fields
}
GIF represents an animated Button displaying a GIF
func NewGIF ¶
func NewGIF(sd *streamdeck.StreamDeck, gif *gif.GIF) *GIF
NewGIF returns a new animated Button that displays a GIF.
Click to show internal directories.
Click to hide internal directories.