examples

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 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 CountingButton

type CountingButton struct {
	hamdeck.BaseButton

	Flashing bool
	// contains filtered or unexported fields
}

func NewCountingButton

func NewCountingButton() *CountingButton

func (*CountingButton) Flash

func (b *CountingButton) Flash(flashOn bool)

func (*CountingButton) Image

func (b *CountingButton) Image(gc hamdeck.GraphicContext, redrawImage bool) image.Image

func (*CountingButton) Increase

func (b *CountingButton) Increase()

func (*CountingButton) Invalidate

func (b *CountingButton) Invalidate()

func (*CountingButton) Pressed

func (b *CountingButton) Pressed()

func (*CountingButton) Released

func (b *CountingButton) Released()

func (*CountingButton) Reset

func (b *CountingButton) Reset()

type HelloTextButton

type HelloTextButton struct {
	hamdeck.BaseButton
	// contains filtered or unexported fields
}

func NewHelloTextButton

func NewHelloTextButton() *HelloTextButton

func (*HelloTextButton) Image

func (b *HelloTextButton) Image(gc hamdeck.GraphicContext, redrawImages bool) image.Image

func (*HelloTextButton) Pressed

func (b *HelloTextButton) Pressed()

func (*HelloTextButton) Released

func (b *HelloTextButton) Released()

type PowerButton

type PowerButton struct {
	hamdeck.BaseButton
	// contains filtered or unexported fields
}

func NewPowerButton

func NewPowerButton(callback Switch) *PowerButton

func (*PowerButton) Image

func (b *PowerButton) Image(gc hamdeck.GraphicContext, redrawImages bool) image.Image

func (*PowerButton) Pressed

func (b *PowerButton) Pressed()

func (*PowerButton) Released

func (b *PowerButton) Released()

type Switch

type Switch func(on bool)

type ToggleBrightnessButton

type ToggleBrightnessButton struct {
	hamdeck.BaseButton
	// contains filtered or unexported fields
}

func NewToggleBrightnessButton

func NewToggleBrightnessButton(device hamdeck.Device, initialValue int, step int) *ToggleBrightnessButton

func (*ToggleBrightnessButton) Image

func (b *ToggleBrightnessButton) Image(gc hamdeck.GraphicContext, redrawImage bool) image.Image

func (*ToggleBrightnessButton) Pressed

func (b *ToggleBrightnessButton) Pressed()

func (*ToggleBrightnessButton) Released

func (b *ToggleBrightnessButton) Released()

Jump to

Keyboard shortcuts

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