~ubuntu-branches/ubuntu/karmic/tomboy/karmic

« back to all changes in this revision

Viewing changes to TrayIcon/generated/TrayIcon.cs

  • Committer: Bazaar Package Importer
  • Author(s): Brandon Hale
  • Date: 2004-10-11 09:31:35 UTC
  • Revision ID: james.westby@ubuntu.com-20041011093135-00f2snu2ny5i6wto
Tags: upstream-0.2.0
ImportĀ upstreamĀ versionĀ 0.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This file was generated by the Gtk# code generator.
 
2
// Any changes made will be lost if regenerated.
 
3
 
 
4
namespace Egg {
 
5
 
 
6
        using System;
 
7
        using System.Collections;
 
8
        using System.Runtime.InteropServices;
 
9
 
 
10
#region Autogenerated code
 
11
        public class TrayIcon : Gtk.Plug {
 
12
 
 
13
                ~TrayIcon()
 
14
                {
 
15
                        Dispose();
 
16
                }
 
17
 
 
18
                protected TrayIcon(GLib.GType gtype) : base(gtype) {}
 
19
                public TrayIcon(IntPtr raw) : base(raw) {}
 
20
 
 
21
                [DllImport("libtrayicon")]
 
22
                static extern IntPtr egg_tray_icon_new(string name);
 
23
 
 
24
                public TrayIcon (string name) : base (IntPtr.Zero)
 
25
                {
 
26
                        if (GetType () != typeof (TrayIcon)) {
 
27
                                ArrayList vals = new ArrayList();
 
28
                                ArrayList names = new ArrayList();
 
29
                                names.Add ("name");
 
30
                                vals.Add (new GLib.Value (name));
 
31
                                CreateNativeObject ((string[])names.ToArray (typeof (string)), (GLib.Value[])vals.ToArray (typeof (GLib.Value)));
 
32
                                return;
 
33
                        }
 
34
                        Raw = egg_tray_icon_new(name);
 
35
                }
 
36
 
 
37
                [DllImport("libtrayicon")]
 
38
                static extern IntPtr egg_tray_icon_new_for_screen(IntPtr screen, string name);
 
39
 
 
40
                public TrayIcon (Gdk.Screen screen, string name) : base (IntPtr.Zero)
 
41
                {
 
42
                        if (GetType () != typeof (TrayIcon)) {
 
43
                                ArrayList vals = new ArrayList();
 
44
                                ArrayList names = new ArrayList();
 
45
                                names.Add ("screen");
 
46
                                vals.Add (new GLib.Value (screen));
 
47
                                names.Add ("name");
 
48
                                vals.Add (new GLib.Value (name));
 
49
                                CreateNativeObject ((string[])names.ToArray (typeof (string)), (GLib.Value[])vals.ToArray (typeof (GLib.Value)));
 
50
                                return;
 
51
                        }
 
52
                        Raw = egg_tray_icon_new_for_screen(screen.Handle, name);
 
53
                }
 
54
 
 
55
                [DllImport("libtrayicon")]
 
56
                static extern int egg_tray_icon_get_orientation(IntPtr raw);
 
57
 
 
58
 
 
59
                public Gtk.Orientation Orientation {
 
60
                        get  {
 
61
                                int raw_ret = egg_tray_icon_get_orientation(Handle);
 
62
                                Gtk.Orientation ret = (Gtk.Orientation)raw_ret;
 
63
                                return ret;
 
64
                        }
 
65
                }
 
66
 
 
67
                [DllImport("libtrayicon")]
 
68
                static extern uint egg_tray_icon_send_message(IntPtr raw, int timeout, string message, int len);
 
69
 
 
70
                public uint SendMessage(int timeout, string message) {
 
71
                        uint raw_ret = egg_tray_icon_send_message(Handle, timeout, message, message.Length);
 
72
                        uint ret = raw_ret;
 
73
                        return ret;
 
74
                }
 
75
 
 
76
                [DllImport("libtrayicon")]
 
77
                static extern IntPtr egg_tray_icon_get_type();
 
78
 
 
79
                public static new GLib.GType GType { 
 
80
                        get {
 
81
                                IntPtr raw_ret = egg_tray_icon_get_type();
 
82
                                GLib.GType ret = new GLib.GType(raw_ret);
 
83
                                return ret;
 
84
                        }
 
85
                }
 
86
 
 
87
                [DllImport("libtrayicon")]
 
88
                static extern void egg_tray_icon_cancel_message(IntPtr raw, uint id);
 
89
 
 
90
                public void CancelMessage(uint id) {
 
91
                        egg_tray_icon_cancel_message(Handle, id);
 
92
                }
 
93
 
 
94
 
 
95
                static TrayIcon ()
 
96
                {
 
97
                        GtkSharp.TrayIcon.ObjectManager.Initialize ();
 
98
                }
 
99
#endregion
 
100
        }
 
101
}