Documentation ¶
Index ¶
- Constants
- Variables
- type Daemon
- type DamageNotifyEventHandler
- type StatusNotifierWatcher
- func (v *StatusNotifierWatcher) GetExportedMethods() dbusutil.ExportedMethods
- func (*StatusNotifierWatcher) GetInterfaceName() string
- func (snw *StatusNotifierWatcher) RegisterStatusNotifierHost(serviceName string) *dbus.Error
- func (snw *StatusNotifierWatcher) RegisterStatusNotifierItem(sender dbus.Sender, serviceOrPath string) *dbus.Error
- type TrayIcon
- type TrayManager
- func (m *TrayManager) EnableNotification(win uint32, enabled bool) *dbus.Error
- func (v *TrayManager) GetExportedMethods() dbusutil.ExportedMethods
- func (*TrayManager) GetInterfaceName() string
- func (m *TrayManager) GetName(win uint32) (name string, busErr *dbus.Error)
- func (m *TrayManager) Manage() (ok bool, busErr *dbus.Error)
Constants ¶
View Source
const ( OpcodeSystemTrayRequestDock uint32 = iota OpcodeSystemTrayBeginMessage OpcodeSystemTrayCancelMessage )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct { *loader.ModuleBase // contains filtered or unexported fields }
func (*Daemon) GetDependencies ¶
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) GetExportedMethods ¶
func (v *StatusNotifierWatcher) GetExportedMethods() dbusutil.ExportedMethods
func (*StatusNotifierWatcher) GetInterfaceName ¶
func (*StatusNotifierWatcher) GetInterfaceName() string
func (*StatusNotifierWatcher) RegisterStatusNotifierHost ¶
func (snw *StatusNotifierWatcher) RegisterStatusNotifierHost(serviceName string) *dbus.Error
func (*StatusNotifierWatcher) RegisterStatusNotifierItem ¶
type TrayIcon ¶
type TrayIcon struct {
// contains filtered or unexported fields
}
func NewTrayIcon ¶
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, enabled bool) *dbus.Error
EnableNotification设置对应id的窗口是否可以通知。
func (*TrayManager) GetExportedMethods ¶
func (v *TrayManager) GetExportedMethods() dbusutil.ExportedMethods
func (*TrayManager) GetInterfaceName ¶
func (*TrayManager) GetInterfaceName() string
Click to show internal directories.
Click to hide internal directories.