Documentation ¶
Index ¶
- Constants
- func GetAppName() string
- func GetServerCaps() *glib.List
- func GetServerInfo(name, vendor, version, spec_version *string) bool
- func Init(app_name string) bool
- func IsInitted() bool
- func NotificationAddAction(notif *NotifyNotification, action, label string, callback NotifyActionCallback, ...)
- func NotificationClearActions(notif *NotifyNotification)
- func NotificationClearHints(notif *NotifyNotification)
- func NotificationClose(notif *NotifyNotification) *glib.Error
- func NotificationSetCategory(notif *NotifyNotification, category string)
- func NotificationSetHint(notif *NotifyNotification, key string, value interface{})
- func NotificationSetHintByte(notif *NotifyNotification, key string, value byte)
- func NotificationSetHintByteArray(notif *NotifyNotification, key string, value []byte, len uint32)
- func NotificationSetHintDouble(notif *NotifyNotification, key string, value float64)
- func NotificationSetHintInt32(notif *NotifyNotification, key string, value int32)
- func NotificationSetHintString(notif *NotifyNotification, key string, value string)
- func NotificationSetTimeout(notif *NotifyNotification, timeout int32)
- func NotificationSetUrgency(notif *NotifyNotification, urgency NotifyUrgency)
- func NotificationShow(notif *NotifyNotification) *glib.Error
- func NotificationUpdate(notif *NotifyNotification, summary, body, icon string) bool
- func UnInit()
- type NotifyActionCallback
- type NotifyNotification
- func (this *NotifyNotification) AddAction(action, label string, callback NotifyActionCallback, user_data interface{})
- func (this *NotifyNotification) ClearActions()
- func (this *NotifyNotification) ClearHints()
- func (this *NotifyNotification) Close() *glib.Error
- func (this *NotifyNotification) SetCategory(category string)
- func (this *NotifyNotification) SetHint(key string, value interface{})
- func (this *NotifyNotification) SetHintByte(key string, value byte)
- func (this *NotifyNotification) SetHintByteArray(key string, value []byte, len uint32)
- func (this *NotifyNotification) SetHintDouble(key string, value float64)
- func (this *NotifyNotification) SetHintInt32(key string, value int32)
- func (this *NotifyNotification) SetHintString(key string, value string)
- func (this *NotifyNotification) SetTimeout(timeout int32)
- func (this *NotifyNotification) SetUrgency(urgency NotifyUrgency)
- func (this *NotifyNotification) Show() *glib.Error
- func (this *NotifyNotification) Update(summary, body, icon string) bool
- type NotifyUrgency
Constants ¶
View Source
const ( NOTIFY_URGENCY_LOW = 0 NOTIFY_URGENCY_NORMAL = 1 NOTIFY_URGENCY_CRITICAL = 2 )
Variables ¶
This section is empty.
Functions ¶
func GetAppName ¶
func GetAppName() string
func GetServerCaps ¶
func GetServerInfo ¶
func NotificationAddAction ¶
func NotificationAddAction(notif *NotifyNotification, action, label string, callback NotifyActionCallback, user_data interface{})
FIXME: the C function is supposed to be allowing the user to pass another function than free
func NotificationClearActions ¶
func NotificationClearActions(notif *NotifyNotification)
func NotificationClearHints ¶
func NotificationClearHints(notif *NotifyNotification)
func NotificationClose ¶
func NotificationClose(notif *NotifyNotification) *glib.Error
func NotificationSetCategory ¶
func NotificationSetCategory(notif *NotifyNotification, category string)
func NotificationSetHint ¶
func NotificationSetHint(notif *NotifyNotification, key string, value interface{})
func NotificationSetHintByte ¶
func NotificationSetHintByte(notif *NotifyNotification, key string, value byte)
func NotificationSetHintByteArray ¶
func NotificationSetHintByteArray(notif *NotifyNotification, key string, value []byte, len uint32)
FIXME: implement
func NotificationSetHintDouble ¶
func NotificationSetHintDouble(notif *NotifyNotification, key string, value float64)
func NotificationSetHintInt32 ¶
func NotificationSetHintInt32(notif *NotifyNotification, key string, value int32)
func NotificationSetHintString ¶
func NotificationSetHintString(notif *NotifyNotification, key string, value string)
func NotificationSetTimeout ¶
func NotificationSetTimeout(notif *NotifyNotification, timeout int32)
func NotificationSetUrgency ¶
func NotificationSetUrgency(notif *NotifyNotification, urgency NotifyUrgency)
func NotificationShow ¶
func NotificationShow(notif *NotifyNotification) *glib.Error
func NotificationUpdate ¶
func NotificationUpdate(notif *NotifyNotification, summary, body, icon string) bool
Types ¶
type NotifyActionCallback ¶
type NotifyActionCallback func(*NotifyNotification, string, interface{})
type NotifyNotification ¶
type NotifyNotification struct {
// contains filtered or unexported fields
}
* Exported Types
func NotificationNew ¶
func NotificationNew(title, text, image string) *NotifyNotification
func (*NotifyNotification) AddAction ¶
func (this *NotifyNotification) AddAction(action, label string, callback NotifyActionCallback, user_data interface{})
func (*NotifyNotification) ClearActions ¶
func (this *NotifyNotification) ClearActions()
func (*NotifyNotification) ClearHints ¶
func (this *NotifyNotification) ClearHints()
func (*NotifyNotification) Close ¶
func (this *NotifyNotification) Close() *glib.Error
func (*NotifyNotification) SetCategory ¶
func (this *NotifyNotification) SetCategory(category string)
func (*NotifyNotification) SetHint ¶
func (this *NotifyNotification) SetHint(key string, value interface{})
func (*NotifyNotification) SetHintByte ¶
func (this *NotifyNotification) SetHintByte(key string, value byte)
func (*NotifyNotification) SetHintByteArray ¶
func (this *NotifyNotification) SetHintByteArray(key string, value []byte, len uint32)
func (*NotifyNotification) SetHintDouble ¶
func (this *NotifyNotification) SetHintDouble(key string, value float64)
func (*NotifyNotification) SetHintInt32 ¶
func (this *NotifyNotification) SetHintInt32(key string, value int32)
func (*NotifyNotification) SetHintString ¶
func (this *NotifyNotification) SetHintString(key string, value string)
func (*NotifyNotification) SetTimeout ¶
func (this *NotifyNotification) SetTimeout(timeout int32)
func (*NotifyNotification) SetUrgency ¶
func (this *NotifyNotification) SetUrgency(urgency NotifyUrgency)
func (*NotifyNotification) Show ¶
func (this *NotifyNotification) Show() *glib.Error
func (*NotifyNotification) Update ¶
func (this *NotifyNotification) Update(summary, body, icon string) bool
Member Functions
type NotifyUrgency ¶
type NotifyUrgency int
Click to show internal directories.
Click to hide internal directories.