Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item interface { Checked() bool SetIcon(img string) error SetTitle(title string) error SetEnabled(enabled bool) error SetVisible(visible bool) error SetChecked(checked bool) error SetCallback(callback func()) error AddItem(option ItemOption) (Item, error) AddItems(options ...ItemOption) ([]Item, error) }
type ItemOption ¶
type Tray ¶
type Tray interface { Run() SetIcon(icon string) error SetTitle(title string) error // not supported on Windows SetToolTip(toolTip string) error SetVisible(visible bool) error SetLeftClickCallback(callback func()) error // not supported on Linux SetRightClickCallback(callback func()) error // not supported on Linux AddItem(option ItemOption) (Item, error) AddItems(options ...ItemOption) ([]Item, error) Close() error }
func NewTray ¶
func NewTray(option TrayOption) (Tray, error)
type TrayOption ¶
type TrayOption struct { Icon string Title string // not supported on Windows ToolTip string Invisible bool LeftClickCallback func() // not supported on Linux RightClickCallback func() // not supported on Linux Children []ItemOption }
Click to show internal directories.
Click to hide internal directories.