ui

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBigText

func NewBigText(text string) *canvas.Text

Types

type ConsoleUI

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

func (*ConsoleUI) Exit

func (ui *ConsoleUI) Exit()

func (*ConsoleUI) Fatal

func (*ConsoleUI) Fatal(exitCode int, message string)

func (*ConsoleUI) Init

func (ui *ConsoleUI) Init(conf *config.Configuration) chan bool

func (*ConsoleUI) Message

func (*ConsoleUI) Message(message string)

func (*ConsoleUI) PowerMode

func (*ConsoleUI) PowerMode(mode string)

func (*ConsoleUI) Run

func (ui *ConsoleUI) Run()

func (*ConsoleUI) Speed

func (ui *ConsoleUI) Speed(speed float32)

func (*ConsoleUI) Temperature

func (ui *ConsoleUI) Temperature(temp float32)

type FyneUI

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

func (*FyneUI) Exit

func (ui *FyneUI) Exit()

func (*FyneUI) Fatal

func (*FyneUI) Fatal(exitCode int, message string)

func (*FyneUI) Init

func (ui *FyneUI) Init(config *config.Configuration) chan bool

func (*FyneUI) Message

func (*FyneUI) Message(message string)

func (*FyneUI) PowerMode

func (ui *FyneUI) PowerMode(mode string)

func (*FyneUI) Run

func (ui *FyneUI) Run()

func (*FyneUI) Speed

func (ui *FyneUI) Speed(speed float32)

func (*FyneUI) Temperature

func (ui *FyneUI) Temperature(temp float32)

type NoUI

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

func (*NoUI) Exit

func (ui *NoUI) Exit()

func (*NoUI) Fatal

func (*NoUI) Fatal(exitCode int, message string)

func (*NoUI) Init

func (ui *NoUI) Init(config *config.Configuration) chan bool

func (*NoUI) Message

func (*NoUI) Message(string)

func (*NoUI) PowerMode

func (*NoUI) PowerMode(mode string)

func (*NoUI) Run

func (ui *NoUI) Run()

func (*NoUI) Speed

func (*NoUI) Speed(float32)

func (*NoUI) Temperature

func (*NoUI) Temperature(float32)

type UI

type UI interface {
	Init(config *config.Configuration) chan bool
	Run()
	Exit()
	Message(string)
	Fatal(exitCode int, message string)
	Temperature(temp float32)
	Speed(speed float32)
	PowerMode(mode string)
}

func CreateUI

func CreateUI(uiType string) UI

Jump to

Keyboard shortcuts

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