예제 #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)))

}
예제 #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))
}