ui

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

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

Go to latest
Published: May 1, 2021 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllActiveFeatures = []featureName{
	featureTraceApplication,
	featureShowSerial,
	featureDemoWindow,
	featureSettings,
}

AllActiveFeatures is a list of all the currently supported features the application supports

View Source
var WindowSize = windowDimensions{800, 600}

WindowSize dictates the master windows initial oldWindow size vec2{int, int}

Functions

func RenderDemoWindow

func RenderDemoWindow() g.Widget

RenderDemoWindow shows the demo window as a reference while developing

func RenderShowSerials

func RenderShowSerials() g.Widget

RenderShowSerials shows serials of found supported software

func RenderTopMenuBar

func RenderTopMenuBar() g.Widget

RenderTopMenuBar returns a widget containing a table with all active features of the application

func RenderTraceApplication

func RenderTraceApplication() g.Widget

func ShowSettings

func ShowSettings()

Types

type Logstreamer

type Logstreamer struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

func NewLogstreamer

func NewLogstreamer(logger *log.Logger, prefix string, record bool) *Logstreamer

func NewLogstreamerForStderr

func NewLogstreamerForStderr(prefix string) *Logstreamer

func NewLogstreamerForStdout

func NewLogstreamerForStdout(prefix string) *Logstreamer

func NewLogstreamerForWriter

func NewLogstreamerForWriter(prefix string, writer io.Writer) *Logstreamer

func (*Logstreamer) Close

func (l *Logstreamer) Close() error

func (*Logstreamer) Flush

func (l *Logstreamer) Flush() error

func (*Logstreamer) FlushRecord

func (l *Logstreamer) FlushRecord() string

func (*Logstreamer) OutputLines

func (l *Logstreamer) OutputLines() error

func (*Logstreamer) Write

func (l *Logstreamer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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