Documentation ¶
Index ¶
Constants ¶
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct { *loader.ModuleBase // contains filtered or unexported fields }
type DamageNotifyEventHandler ¶
type DamageNotifyEventHandler struct {
// contains filtered or unexported fields
}
type StatusNotifierWatcher ¶
type StatusNotifierWatcher struct { PropsMu sync.RWMutex // dbusutil-gen: equal=nil RegisteredStatusNotifierItems strv.Strv IsStatusNotifierHostRegistered bool // dbusutil-gen: ignore ProtocolVersion int32 // contains filtered or unexported fields }
func (*StatusNotifierWatcher) GetInterfaceName ¶
func (*StatusNotifierWatcher) GetInterfaceName() string
func (*StatusNotifierWatcher) RegisterStatusNotifierHost ¶
func (snw *StatusNotifierWatcher) RegisterStatusNotifierHost(serviceName string) *dbus.Error
func (*StatusNotifierWatcher) RegisterStatusNotifierItem ¶
func (snw *StatusNotifierWatcher) RegisterStatusNotifierItem(sender dbus.Sender, serviceOrPath string) *dbus.Error
type TrayIcon ¶
type TrayIcon struct {
// contains filtered or unexported fields
}
type TrayManager ¶
type TrayManager struct { // 目前已有系统托盘窗口的id。 PropsMu sync.RWMutex // dbusutil-gen: equal=nil TrayIcons []uint32 // contains filtered or unexported fields }
TrayManager为系统托盘的管理器。
func NewTrayManager ¶
func NewTrayManager(service *dbusutil.Service) *TrayManager
func (*TrayManager) EnableNotification ¶
func (m *TrayManager) EnableNotification(win uint32, enable bool) *dbus.Error
EnableNotification设置对应id的窗口是否可以通知。
func (*TrayManager) GetInterfaceName ¶
func (*TrayManager) GetInterfaceName() string
func (*TrayManager) GetName ¶
func (m *TrayManager) GetName(win uint32) (string, *dbus.Error)
GetName返回传入的系统图标的窗口id的窗口名。
func (*TrayManager) Manage ¶
func (m *TrayManager) Manage() (bool, *dbus.Error)
Manage方法获取系统托盘图标的管理权。
Click to show internal directories.
Click to hide internal directories.