Documentation
¶
Index ¶
- Constants
- Variables
- type Menu
- func (m *Menu) AddCheckboxItem(title, tooltip string, checked bool) *MenuItem
- func (m *Menu) AddItem(title, tooltip string) *MenuItem
- func (m *Menu) AddQuitItem(title, tooltip string) *MenuItem
- func (m *Menu) AddSeparator()
- func (m *Menu) Run() error
- func (m *Menu) Start() error
- func (m *Menu) Stop() error
- func (m *Menu) Wait() error
- type MenuItem
- type MenuItemType
- type SystrayMenuItem
Constants ¶
View Source
const Version = "0.0.15"
Variables ¶
View Source
var DefaultIconData []byte
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu struct {
Title string
Tooltip string
Clicked chan *MenuItem // caller <- menu when items clicked
Exited chan struct{} // caller <- menu when menu has exited
// contains filtered or unexported fields
}
func (*Menu) AddCheckboxItem ¶
func (*Menu) AddQuitItem ¶
func (*Menu) AddSeparator ¶
func (m *Menu) AddSeparator()
type MenuItem ¶
type MenuItem struct {
Id int
Type MenuItemType
Title string
Tooltip string
// contains filtered or unexported fields
}
func (*MenuItem) AddCheckboxItem ¶
func (*MenuItem) AddQuitItem ¶
func (*MenuItem) AddSeparator ¶
func (i *MenuItem) AddSeparator()
type MenuItemType ¶
type MenuItemType int
const ( MenuItemClickable MenuItemType = iota MenuItemCheckbox MenuItemSeparator MenuItemQuit )
type SystrayMenuItem ¶
type SystrayMenuItem struct {
// contains filtered or unexported fields
}
func NewSystrayMenuItem ¶
func NewSystrayMenuItem(item *systray.MenuItem) *SystrayMenuItem
func (*SystrayMenuItem) AddSubMenuItem ¶
func (s *SystrayMenuItem) AddSubMenuItem(title, tooltip string) *SystrayMenuItem
func (*SystrayMenuItem) AddSubMenuItemCheckbox ¶
func (s *SystrayMenuItem) AddSubMenuItemCheckbox(title, tooltip string, checked bool) *SystrayMenuItem
func (*SystrayMenuItem) Clicked ¶
func (s *SystrayMenuItem) Clicked() chan struct{}
Click to show internal directories.
Click to hide internal directories.