modules

package
v0.0.0-...-e5ec26e Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterIconHandler

type CounterIconHandler struct {
	Count    int
	Running  bool
	Callback func(image image.Image)
}

func (*CounterIconHandler) IsRunning

func (c *CounterIconHandler) IsRunning() bool

func (*CounterIconHandler) SetRunning

func (c *CounterIconHandler) SetRunning(running bool)

func (*CounterIconHandler) Start

func (c *CounterIconHandler) Start(k api.Key, info api.StreamDeckInfo, callback func(image image.Image))

func (CounterIconHandler) Stop

func (c CounterIconHandler) Stop()

type CounterKeyHandler

type CounterKeyHandler struct{}

func (CounterKeyHandler) Key

func (CounterKeyHandler) Key(key api.Key, info api.StreamDeckInfo)

type GameHandler

type GameHandler struct {
	Running      bool
	Callback     func(image image.Image)
	CurrentImage image.Image
}

func NewGameHandler

func NewGameHandler() *GameHandler

func (*GameHandler) IsRunning

func (g *GameHandler) IsRunning() bool

func (*GameHandler) SetRunning

func (g *GameHandler) SetRunning(running bool)

func (*GameHandler) Start

func (g *GameHandler) Start(
	k api.Key,
	info api.StreamDeckInfo,
	callback func(image image.Image))

func (*GameHandler) Stop

func (g *GameHandler) Stop()

type GameKeyHandler

type GameKeyHandler struct {
	Action    models.Action
	GameState *GameState
}

func NewGameKeyHandler

func NewGameKeyHandler(action models.Action, state *GameState) *GameKeyHandler

func (GameKeyHandler) Key

func (g GameKeyHandler) Key(key api.Key, info api.StreamDeckInfo)

type GameState

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

func NewGameState

func NewGameState(solution int) *GameState

type GifIconHandler

type GifIconHandler struct {
	Running bool
	Lock    *semaphore.Weighted
	Quit    chan bool
}

func (*GifIconHandler) IsRunning

func (s *GifIconHandler) IsRunning() bool

func (*GifIconHandler) SetRunning

func (s *GifIconHandler) SetRunning(running bool)

func (*GifIconHandler) Start

func (s *GifIconHandler) Start(key api.Key, info api.StreamDeckInfo, callback func(image image.Image))

func (*GifIconHandler) Stop

func (s *GifIconHandler) Stop()

type IconStateHandler

type IconStateHandler struct {
	Running      bool
	Callback     func(image image.Image)
	State        bool
	Icon1        image.Image
	Icon2        image.Image
	CurrentImage image.Image
}

func (*IconStateHandler) IsRunning

func (c *IconStateHandler) IsRunning() bool

func (*IconStateHandler) LoadIcons

func (c *IconStateHandler) LoadIcons(k api.Key)

Both Icon Images must be loaded successfully If one of both is missing, no image will be loaded

func (*IconStateHandler) SetRunning

func (c *IconStateHandler) SetRunning(running bool)

func (*IconStateHandler) Start

func (c *IconStateHandler) Start(
	k api.Key,
	info api.StreamDeckInfo,
	callback func(image image.Image))

func (IconStateHandler) Stop

func (c IconStateHandler) Stop()

type IconStateKeyHandler

type IconStateKeyHandler struct{}

func (IconStateKeyHandler) Key

func (IconStateKeyHandler) Key(key api.Key, info api.StreamDeckInfo)

type TimeIconHandler

type TimeIconHandler struct {
	Running bool
	Quit    chan bool
}

func (*TimeIconHandler) IsRunning

func (t *TimeIconHandler) IsRunning() bool

func (*TimeIconHandler) SetRunning

func (t *TimeIconHandler) SetRunning(running bool)

func (*TimeIconHandler) Start

func (t *TimeIconHandler) Start(k api.Key, info api.StreamDeckInfo, callback func(image image.Image))

func (*TimeIconHandler) Stop

func (t *TimeIconHandler) Stop()

Jump to

Keyboard shortcuts

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