Documentation ¶
Index ¶
Constants ¶
View Source
const (
DPI_AWARENESS_CONTEXT_SYSTEM_AWARE = ^uintptr(1)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WinTray ¶
type WinTray struct {
// contains filtered or unexported fields
}
WinTray provides a single icon in the system tray. A separate goroutine is used for running all of the API functions
func (*WinTray) AddMenuItem ¶
AddMenuItem adds an item to the menu that will invoke the provided function when selected.
func (*WinTray) AddMenuSeparator ¶
AddMenuSeparator inserts a menu separator after the last item.
func (*WinTray) Close ¶
func (w *WinTray) Close()
Close removes the icon and shuts down the event loop.
func (*WinTray) SetIconFromBytes ¶
SetIconFromBytes reads an ICO file from a byte array.
func (*WinTray) ShowNotification ¶
ShowNotification displays a balloon notification with the provided message and title.
Click to show internal directories.
Click to hide internal directories.