presets

package
v0.0.0-...-51c700d Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearPresets

func ClearPresets(eventsForLauchpad chan common.ALight, guiButtons chan common.ALight, presets map[string]Preset)

ClearPresets is used to un-select all presets.

func GetPresetNumber

func GetPresetNumber(X int, Y int) string

func LoadPresets

func LoadPresets() map[string]Preset

func RefreshPresets

func RefreshPresets(eventsForLauchpad chan common.ALight, guiButtons chan common.ALight, presets map[string]Preset)

RefeshPresets is used to refresh the view of presets.

func SavePresets

func SavePresets(presets map[string]Preset)

Types

type Preset

type Preset struct {
	State       bool   `json:"state"`
	Selected    bool   `json:"-"`
	Label       string `json:"label"`
	ButtonColor string `json:"buttoncolor"`
}

Jump to

Keyboard shortcuts

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