actionhandlers

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainedAction

type ChainedAction struct {
	// contains filtered or unexported fields
}

func NewChainedAction

func NewChainedAction(actions []streamdeck.ButtonActionHandler) *ChainedAction

func NewEmptyChainedAction

func NewEmptyChainedAction() *ChainedAction

func (*ChainedAction) AddAction

func (act *ChainedAction) AddAction(newaction streamdeck.ButtonActionHandler)

func (*ChainedAction) Pressed

func (act *ChainedAction) Pressed(btn streamdeck.Button)

type ColourChangeAction

type ColourChangeAction struct {
	NewColour color.Color
}

func NewColourChangeAction

func NewColourChangeAction(newColour color.Color) *ColourChangeAction

func (*ColourChangeAction) Pressed

func (action *ColourChangeAction) Pressed(btn streamdeck.Button)

type CustomAction

type CustomAction struct {
	// contains filtered or unexported fields
}

func NewCustomAction

func NewCustomAction(handler func(streamdeck.Button)) *CustomAction

func NewEmptyCustomAction

func NewEmptyCustomAction() *CustomAction

func (*CustomAction) Pressed

func (action *CustomAction) Pressed(btn streamdeck.Button)

func (*CustomAction) SetHandler

func (action *CustomAction) SetHandler(f func(streamdeck.Button))

type ExecAction

type ExecAction struct {
	Command *exec.Cmd
}

func NewExecAction

func NewExecAction(command *exec.Cmd) *ExecAction

func (*ExecAction) Pressed

func (action *ExecAction) Pressed(btn streamdeck.Button)

type NumberPrintAction

type NumberPrintAction struct {
	Number int
}

func NewNumberPrintAction

func NewNumberPrintAction(number int) *NumberPrintAction

func (*NumberPrintAction) Pressed

func (npa *NumberPrintAction) Pressed(btn streamdeck.Button)

type TextLabelChangeAction

type TextLabelChangeAction struct {
	NewLabel string
}

func NewTextLabelChangeAction

func NewTextLabelChangeAction(newLabel string) *TextLabelChangeAction

func (*TextLabelChangeAction) Pressed

func (action *TextLabelChangeAction) Pressed(btn streamdeck.Button)

type TextPrintAction

type TextPrintAction struct {
	Label string
}

func NewTextPrintAction

func NewTextPrintAction(label string) *TextPrintAction

func (*TextPrintAction) Pressed

func (action *TextPrintAction) Pressed(btn streamdeck.Button)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL