71
[DllImport("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
72
static extern bool gtk_status_icon_get_geometry(IntPtr raw, out IntPtr screen, IntPtr area, out int orientation);
74
public bool GetGeometry(out Gdk.Screen screen, out Gdk.Rectangle area, out Gtk.Orientation orientation)
77
IntPtr native_area = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gdk.Rectangle)));
78
int native_orientation;
79
bool ret = gtk_status_icon_get_geometry(Handle, out native_screen, native_area, out native_orientation);
81
screen = GLib.Object.GetObject(native_screen) as Gdk.Screen;
82
area = Gdk.Rectangle.New (native_area);
83
orientation = (Gtk.Orientation) native_orientation;
86
area = Gdk.Rectangle.Zero;
87
orientation = Gtk.Orientation.Horizontal;
89
Marshal.FreeHGlobal (native_area);