platform

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysTray

type SysTray interface {
	// SetTitle sets the title of the tray menu
	SetTitle(title string)
	SetTooltip(tooltip string) error
	Show() error
	Hide() error
	Run() error
	Close()
	SetMenu(menu *menu.Menu) error
	SetIcons(lightModeIcon, darkModeIcon *options.SystemTrayIcon) error
	Update() error
	OnLeftClick(func())
	OnRightClick(func())
	OnLeftDoubleClick(func())
	OnRightDoubleClick(func())
	OnMenuClose(func())
	OnMenuOpen(func())
}

func NewSysTray

func NewSysTray() SysTray

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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