1 /* libnotify.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Notify", lower_case_cprefix = "notify_")]
5 [CCode (cheader_filename = "libnotify/notify.h")]
6 public class Notification : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Notification (string summary, string? body, string? icon, Gtk.Widget? attach);
9 public void add_action (string action, string label, owned Notify.ActionCallback callback);
10 public void attach_to_status_icon (Gtk.StatusIcon status_icon);
11 public void attach_to_widget (Gtk.Widget attach);
12 public void clear_actions ();
13 public void clear_hints ();
14 public bool close () throws GLib.Error;
15 public void set_category (string category);
16 public void set_geometry_hints (Gdk.Screen screen, int x, int y);
17 public void set_hint_byte (string key, uchar value);
18 public void set_hint_byte_array (string key, uchar[] value, size_t len);
19 public void set_hint_double (string key, double value);
20 public void set_hint_int32 (string key, int value);
21 public void set_hint_string (string key, string value);
22 public void set_icon_from_pixbuf (Gdk.Pixbuf icon);
23 public void set_timeout (int timeout);
24 public void set_urgency (Notify.Urgency urgency);
25 public bool show () throws GLib.Error;
26 public bool update (string summary, string body, string icon);
27 [CCode (has_construct_function = false)]
28 public Notification.with_status_icon (string summary, string body, string icon, Gtk.StatusIcon status_icon);
30 public Gtk.Widget attach_widget { owned get; set construct; }
32 public string body { owned get; set construct; }
34 public string icon_name { owned get; set construct; }
36 public Gtk.StatusIcon status_icon { owned get; set construct; }
38 public string summary { owned get; set construct; }
39 public virtual signal void closed ();
41 [CCode (cprefix = "NOTIFY_URGENCY_", has_type_id = "0", cheader_filename = "libnotify/notify.h")]
47 [CCode (cheader_filename = "libnotify/notify.h")]
48 public delegate void ActionCallback (Notify.Notification p1, string p2);
49 [CCode (cheader_filename = "libnotify/notify.h")]
50 public const int EXPIRES_DEFAULT;
51 [CCode (cheader_filename = "libnotify/notify.h")]
52 public const int EXPIRES_NEVER;
53 [CCode (cheader_filename = "libnotify/notify.h")]
54 public static unowned string get_app_name ();
55 [CCode (cheader_filename = "libnotify/notify.h")]
56 public static unowned GLib.List get_server_caps ();
57 [CCode (cheader_filename = "libnotify/notify.h")]
58 public static bool get_server_info (out unowned string ret_name, out unowned string ret_vendor, out unowned string ret_version, out unowned string ret_spec_version);
59 [CCode (cheader_filename = "libnotify/notify.h")]
60 public static bool init (string app_name);
61 [CCode (cheader_filename = "libnotify/notify.h")]
62 public static bool is_initted ();
63 [CCode (cheader_filename = "libnotify/notify.h")]
64 public static void uninit ();