Type StatusItem

type StatusItem struct {
	// contains filtered or unexported fields
}

StatusItem is one icon the application keeps in the system's status area: the menu bar on macOS, the notification area on Windows, the StatusNotifier host (the tray of most Linux desktops) elsewhere.

Methods

Remove#

func (item *StatusItem) Remove()

Remove takes the icon away. It is idempotent and, unlike the setters, may be called from any goroutine.

SetIcon#

func (item *StatusItem) SetIcon(icon StatusIcon) error

SetIcon replaces the icon. Like SetTooltip it must be called on the event-loop thread: from the startup callback, a window callback or a status click.

SetTooltip#

func (item *StatusItem) SetTooltip(tooltip string)

SetTooltip replaces the text shown while the pointer rests on the icon.