buttons

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColourButton

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

func NewColourButton

func NewColourButton(colour color.Color) *ColourButton

func (*ColourButton) GetButtonIndex

func (btn *ColourButton) GetButtonIndex() int

func (*ColourButton) GetImageForButton

func (btn *ColourButton) GetImageForButton() image.Image

func (*ColourButton) Pressed

func (btn *ColourButton) Pressed()

func (*ColourButton) RegisterUpdateHandler

func (btn *ColourButton) RegisterUpdateHandler(f func(streamdeck.Button))

func (*ColourButton) SetActionHandler

func (btn *ColourButton) SetActionHandler(a streamdeck.ButtonActionHandler)

func (*ColourButton) SetButtonIndex

func (btn *ColourButton) SetButtonIndex(btnIndex int)

func (*ColourButton) SetColour

func (btn *ColourButton) SetColour(colour color.Color)

type ImageFileButton

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

func NewImageFileButton

func NewImageFileButton(filePath string) (*ImageFileButton, error)

func (*ImageFileButton) GetButtonIndex

func (btn *ImageFileButton) GetButtonIndex() int

func (*ImageFileButton) GetImageForButton

func (btn *ImageFileButton) GetImageForButton() image.Image

func (*ImageFileButton) Pressed

func (btn *ImageFileButton) Pressed()

func (*ImageFileButton) RegisterUpdateHandler

func (btn *ImageFileButton) RegisterUpdateHandler(f func(streamdeck.Button))

func (*ImageFileButton) SetActionHandler

func (btn *ImageFileButton) SetActionHandler(a streamdeck.ButtonActionHandler)

func (*ImageFileButton) SetButtonIndex

func (btn *ImageFileButton) SetButtonIndex(btnIndex int)

func (*ImageFileButton) SetFilePath

func (btn *ImageFileButton) SetFilePath(filePath string) error

type TextButton

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

func NewTextButton

func NewTextButton(label string) *TextButton

func NewTextButtonWithColours

func NewTextButtonWithColours(label string, textColour color.Color, backgroundColour color.Color) *TextButton

func (*TextButton) GetButtonIndex

func (btn *TextButton) GetButtonIndex() int

func (*TextButton) GetImageForButton

func (btn *TextButton) GetImageForButton() image.Image

func (*TextButton) Pressed

func (btn *TextButton) Pressed()

func (*TextButton) RegisterUpdateHandler

func (btn *TextButton) RegisterUpdateHandler(f func(streamdeck.Button))

func (*TextButton) SetActionHandler

func (btn *TextButton) SetActionHandler(a streamdeck.ButtonActionHandler)

func (*TextButton) SetBackgroundColor

func (btn *TextButton) SetBackgroundColor(backgroundColour color.Color)

func (*TextButton) SetButtonIndex

func (btn *TextButton) SetButtonIndex(btnIndex int)

func (*TextButton) SetText

func (btn *TextButton) SetText(label string)

func (*TextButton) SetTextColour

func (btn *TextButton) SetTextColour(textColour color.Color)

Jump to

Keyboard shortcuts

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