1
// This file was generated by the Gtk# code generator.
2
// Any changes made will be lost if regenerated.
7
using System.Collections;
8
using System.Runtime.InteropServices;
10
#region Autogenerated code
11
public class TrayIcon : Gtk.Plug {
18
protected TrayIcon(GLib.GType gtype) : base(gtype) {}
19
public TrayIcon(IntPtr raw) : base(raw) {}
21
[DllImport("libtrayicon")]
22
static extern IntPtr egg_tray_icon_new(string name);
24
public TrayIcon (string name) : base (IntPtr.Zero)
26
if (GetType () != typeof (TrayIcon)) {
27
ArrayList vals = new ArrayList();
28
ArrayList names = new ArrayList();
30
vals.Add (new GLib.Value (name));
31
CreateNativeObject ((string[])names.ToArray (typeof (string)), (GLib.Value[])vals.ToArray (typeof (GLib.Value)));
34
Raw = egg_tray_icon_new(name);
37
[DllImport("libtrayicon")]
38
static extern IntPtr egg_tray_icon_new_for_screen(IntPtr screen, string name);
40
public TrayIcon (Gdk.Screen screen, string name) : base (IntPtr.Zero)
42
if (GetType () != typeof (TrayIcon)) {
43
ArrayList vals = new ArrayList();
44
ArrayList names = new ArrayList();
46
vals.Add (new GLib.Value (screen));
48
vals.Add (new GLib.Value (name));
49
CreateNativeObject ((string[])names.ToArray (typeof (string)), (GLib.Value[])vals.ToArray (typeof (GLib.Value)));
52
Raw = egg_tray_icon_new_for_screen(screen.Handle, name);
55
[DllImport("libtrayicon")]
56
static extern int egg_tray_icon_get_orientation(IntPtr raw);
59
public Gtk.Orientation Orientation {
61
int raw_ret = egg_tray_icon_get_orientation(Handle);
62
Gtk.Orientation ret = (Gtk.Orientation)raw_ret;
67
[DllImport("libtrayicon")]
68
static extern uint egg_tray_icon_send_message(IntPtr raw, int timeout, string message, int len);
70
public uint SendMessage(int timeout, string message) {
71
uint raw_ret = egg_tray_icon_send_message(Handle, timeout, message, message.Length);
76
[DllImport("libtrayicon")]
77
static extern IntPtr egg_tray_icon_get_type();
79
public static new GLib.GType GType {
81
IntPtr raw_ret = egg_tray_icon_get_type();
82
GLib.GType ret = new GLib.GType(raw_ret);
87
[DllImport("libtrayicon")]
88
static extern void egg_tray_icon_cancel_message(IntPtr raw, uint id);
90
public void CancelMessage(uint id) {
91
egg_tray_icon_cancel_message(Handle, id);
97
GtkSharp.TrayIcon.ObjectManager.Initialize ();