ui

package
v0.0.0-...-4e4ff22 Latest Latest
Warning

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

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

Documentation

Overview

Package ui provides an interface for using aightreader with various different interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI interface {
	Start() error

	// Main must be called last from the program main function. Gio requires this
	// for cross platform purposes.
	Main()

	// ChooseDevice presents devices and requests the user chooses one. It blocks
	// until a choice is made. If no devices are available, it will block indefinitely
	// until one is available. The UI should periodically recheck for new devices
	// and rerender itself as necessary.
	ChooseDevice() device.Device
	// ChooseDeviceError raises an error on the ChooseDevice screen. It does not
	// block.
	ChooseDeviceError(error)
	// DidChooseDevice sets a callback for when the user chooses a new device.
	DidChooseDevice(func(device.Device) error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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