Documentation
¶
Index ¶
- type CountingButton
- func (b *CountingButton) Flash(flashOn bool)
- func (b *CountingButton) Image(gc hamdeck.GraphicContext, redrawImage bool) image.Image
- func (b *CountingButton) Increase()
- func (b *CountingButton) Invalidate()
- func (b *CountingButton) Pressed()
- func (b *CountingButton) Released()
- func (b *CountingButton) Reset()
- type HelloTextButton
- type PowerButton
- type Switch
- type ToggleBrightnessButton
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 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()
Click to show internal directories.
Click to hide internal directories.