gui

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventErr

type EventErr struct {
	Event astilectron.Event
	// contains filtered or unexported fields
}

func NewEventErr

func NewEventErr(event astilectron.Event, cause error) *EventErr

func (*EventErr) Cause

func (err *EventErr) Cause() error

func (EventErr) Error

func (err EventErr) Error() string

func (*EventErr) Unwrap

func (err *EventErr) Unwrap() error

type GUI

type GUI struct {
	Quit     chan bool
	EventErr chan *EventErr
	// contains filtered or unexported fields
}

func New

func New(dir string, appName string) (*GUI, error)

func (*GUI) Build

func (gui *GUI) Build() error

func (*GUI) Close

func (gui *GUI) Close()

func (*GUI) HandleSignals

func (gui *GUI) HandleSignals()

func (*GUI) Notify

func (gui *GUI) Notify(item PromptItemInfo) error

func (*GUI) Wait

func (gui *GUI) Wait() error

type PromptItemInfo

type PromptItemInfo struct {
	Name string
	Url  string
}

Jump to

Keyboard shortcuts

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