Documentation
¶
Index ¶
- Constants
- func GetAppName() string
- func Init(appName string) error
- func IsInitted() bool
- func SetAppName(appName string)
- func Uninit()
- type NotifyNotification
- func (v *NotifyNotification) Close() error
- func (v *NotifyNotification) SetAppName(appName string)
- func (v *NotifyNotification) SetCategory(category string)
- func (v *NotifyNotification) SetImageFromPixbuf(pixbuf *gdk.Pixbuf)
- func (v *NotifyNotification) SetTimeout(timeout int)
- func (v *NotifyNotification) SetUrgency(urgency NotifyUrgency)
- func (v *NotifyNotification) Show() error
- func (v *NotifyNotification) Update(summary, body, icon string) error
- type NotifyUrgency
Constants ¶
const ( NOTIFY_EXPIRES_DEFAULT = -1 NOTIFY_EXPIRES_NEVER = 0 )
Default timeouts
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init is a wrapper around notify_init() and must be called before any other Libnotify calls and is used to initialize everything necessary.
Types ¶
type NotifyNotification ¶
NotifyNotification is a representation of NotifyNotification.
func NotifyNotificationNew ¶
func NotifyNotificationNew(summary, body, icon string) (*NotifyNotification, error)
NotifyNotificationNew is a wrapper around notify_notification_new().
func (*NotifyNotification) Close ¶
func (v *NotifyNotification) Close() error
Close is a wrapper around notify_notification_close().
func (*NotifyNotification) SetAppName ¶
func (v *NotifyNotification) SetAppName(appName string)
SetAppName is a wrapper around notify_notification_set_app_name().
func (*NotifyNotification) SetCategory ¶
func (v *NotifyNotification) SetCategory(category string)
SetCategory is a wrapper around notify_notification_set_category().
func (*NotifyNotification) SetImageFromPixbuf ¶
func (v *NotifyNotification) SetImageFromPixbuf(pixbuf *gdk.Pixbuf)
SetImageFromPixbuf is a wrapper around notify_notification_set_image_from_pixbuf().
func (*NotifyNotification) SetTimeout ¶
func (v *NotifyNotification) SetTimeout(timeout int)
SetTimeout is a wrapper around notify_notification_set_timeout(). You can use NOTIFY_EXPIRES_DEFAULT or NOTIFY_EXPIRES_NEVER, either specific specific timeout amount in milliseconds.
func (*NotifyNotification) SetUrgency ¶
func (v *NotifyNotification) SetUrgency(urgency NotifyUrgency)
SetUrgency is a wrapper around notify_notification_set_urgency().
func (*NotifyNotification) Show ¶
func (v *NotifyNotification) Show() error
Show is a wrapper around notify_notification_show().
func (*NotifyNotification) Update ¶
func (v *NotifyNotification) Update(summary, body, icon string) error
Update is a wrapper around notify_notification_update().
type NotifyUrgency ¶
type NotifyUrgency int
NotifyUrgency is a representation of Libnotify's NotifyUrgency.
const ( NOTIFY_URGENCY_LOW NotifyUrgency = C.NOTIFY_URGENCY_LOW NOTIFY_URGENCY_NORMAL NotifyUrgency = C.NOTIFY_URGENCY_NORMAL NOTIFY_URGENCY_CRITICAL NotifyUrgency = C.NOTIFY_URGENCY_CRITICAL )