shared

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SaverCreator

type SaverCreator func(ScreensaverOpts) (Screensaver, error)

type SaverInput

type SaverInput struct {
	Default     string
	Description string // TODO do i even want
}

type Screensaver

type Screensaver interface {
	Initialize(opts ScreensaverOpts) error
	SetInputs(map[string]string) error
	Update() error
	Inputs() map[string]SaverInput
	Clear()
}

type ScreensaverOpts

type ScreensaverOpts struct {
	Screensaver string
	Repository  string
	List        bool
	Style       tcell.Style
	Screen      tcell.Screen
	Savers      map[string]SaverCreator
	SaverArgs   []string
}

Jump to

Keyboard shortcuts

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