menu

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIcon added in v0.5.8

func GetIcon() []byte

GetIcon returns the embedded icon used for the "enabled" ("on") menu.

Types

type Menu struct {
	PatternName string
	AboutInfo   string
	// contains filtered or unexported fields
}
func (m *Menu) Add(name string, msg string)

Add will create a menu item with the provided name displayed and will send the provided msg over the IPC client.

func (m *Menu) Show(ctx context.Context, log *zerolog.Logger, sockPath string) error

Show will display the menu in the system tray and block until quit or parent is canceled.

Jump to

Keyboard shortcuts

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