gui

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PowerOff command = iota
	PowerOn
	PowerToggle
	SetBrightness
	SetColorTemperature
)

PowerOff etc. are valid commands sent via App.ctrlChan, as controlCommand.command

Variables

This section is empty.

Functions

func Main

func Main(ctrl *huecontroller.Controller, selectLight int, selectGroup int, ctrlSingle bool, lightFilter, groupFilter string)

Main is called by cmd/root.go if huego-fe is invoked without command line arguments

Types

type App added in v0.0.10

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

App holds a huego-fe GUI instance's state and provides channels for decoupled UI->hueCtrl communication.

type C

type C = layout.Context

C is used as shorthand for layout.Context in layout functions below

type D

type D = layout.Dimensions

D is used as shorthand for layout.Dimensions in layout functions below

type UI added in v0.0.10

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

UI holds huego-fe GUI instance UI components

Jump to

Keyboard shortcuts

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