Example #1
0
// SetTitle sets the systray tooltip to display on mouse hover of the tray icon,
// only available on Mac and Windows.
func SetTooltip(tooltip string) {
	t, err := syscall.UTF16PtrFromString(tooltip)
	if err != nil {
		panic(err)
	}

	C.setTooltip((*C.wchar_t)(unsafe.Pointer(t)))

}
Example #2
0
// SetTitle sets the systray tooltip to display on mouse hover of the tray icon,
// only available on Mac and Windows.
func SetTooltip(tooltip string) {
	C.setTooltip(C.CString(tooltip))
}