tray

package
v0.0.0-...-1b113c7 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MenuItem struct {
	*systray.MenuItem
	Cancel        context.CancelFunc
	Kill          func()
	EmulateAction string        `json:"actions"`
	Title         string        `json:"title"`
	Timer         time.Duration `json:"timer"`
	Repeat        int           `json:"repeat"`
	Silent        bool          `json:"silent"`
}

MenuItem tray menu item

func (m *MenuItem) Run()

Run the action

func (m *MenuItem) Settings()

Settings - open the settings

type Tray

type Tray struct {
	Items []*MenuItem
}

Tray items

var (
	This Tray
)

func (*Tray) Exit

func (t *Tray) Exit(mi *systray.MenuItem)

Exit the app

func (*Tray) OnReady

func (t *Tray) OnReady()

OnReady - start app

func (*Tray) Update

func (t *Tray) Update()

Update - update app menu

Jump to

Keyboard shortcuts

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