2023-01-26 12:42:54 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2023-02-19 23:21:47 +08:00
|
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
|
|
//
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
2023-01-26 12:42:54 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
2023-01-11 16:36:08 +08:00
|
|
|
//go:build !darwin
|
|
|
|
// +build !darwin
|
|
|
|
|
|
|
|
package systray
|
|
|
|
|
2023-01-24 19:46:20 +08:00
|
|
|
// CreateMenu 创建托盘菜单, 如果托盘菜单是空, 把菜单项添加到托盘
|
|
|
|
// 该方法主动调用后 如果托盘菜单已创建则添加进去, 之后鼠标事件失效
|
2023-01-11 16:36:08 +08:00
|
|
|
//
|
2023-01-24 19:46:20 +08:00
|
|
|
// 仅MacOSX平台
|
2023-01-11 16:36:08 +08:00
|
|
|
func CreateMenu() {
|
|
|
|
}
|
|
|
|
|
2023-01-24 19:46:20 +08:00
|
|
|
// SetMenuNil 托盘菜单设置为nil, 如果托盘菜单不是空, 把菜单项设置为nil
|
|
|
|
// 该方法主动调用后 将移除托盘菜单, 之后鼠标事件生效
|
2023-01-11 16:36:08 +08:00
|
|
|
//
|
2023-01-24 19:46:20 +08:00
|
|
|
// 仅MacOSX平台
|
2023-01-11 16:36:08 +08:00
|
|
|
func SetMenuNil() {
|
|
|
|
}
|