2003-11-05 21:40:52 +00:00
|
|
|
// Gdk.Window.custom - Gdk Window class customizations
|
|
|
|
//
|
|
|
|
// Author: Moritz Balz <ich@mbalz.de>
|
2004-02-12 18:45:19 +00:00
|
|
|
// Mike Kestner <mkestner@ximian.com>
|
2003-11-05 21:40:52 +00:00
|
|
|
//
|
|
|
|
// (c) 2003 Moritz Balz
|
2004-02-12 18:45:19 +00:00
|
|
|
// (c) 2004 Novell, Inc.
|
2003-11-05 21:40:52 +00:00
|
|
|
//
|
|
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
|
2004-02-12 18:45:19 +00:00
|
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
|
|
static extern IntPtr gdk_window_get_children(IntPtr raw);
|
|
|
|
|
|
|
|
public Window[] Children {
|
|
|
|
get {
|
|
|
|
IntPtr raw_ret = gdk_window_get_children(Handle);
|
|
|
|
if (raw_ret == IntPtr.Zero)
|
|
|
|
return new Window [0];
|
|
|
|
GLib.List list = new GLib.List(raw_ret);
|
|
|
|
Window[] result = new Window [list.Count];
|
|
|
|
for (int i = 0; i < list.Count; i++)
|
|
|
|
result [i] = list [i] as Window;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
|
|
static extern void gdk_window_set_icon_list(IntPtr raw, IntPtr pixbufs);
|
|
|
|
|
|
|
|
public Pixbuf[] IconList {
|
|
|
|
set {
|
|
|
|
GLib.List list = new GLib.List(IntPtr.Zero);
|
|
|
|
foreach (Pixbuf val in value)
|
|
|
|
list.Append (val.Handle);
|
|
|
|
gdk_window_set_icon_list(Handle, list.Handle);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
|
|
static extern IntPtr gdk_window_get_toplevels();
|
|
|
|
|
|
|
|
public static Window[] Toplevels {
|
|
|
|
get {
|
|
|
|
IntPtr raw_ret = gdk_window_get_toplevels();
|
|
|
|
if (raw_ret == IntPtr.Zero)
|
|
|
|
return new Window [0];
|
|
|
|
GLib.List list = new GLib.List(raw_ret);
|
|
|
|
Window[] result = new Window [list.Count];
|
|
|
|
for (int i = 0; i < list.Count; i++)
|
|
|
|
result [i] = list [i] as Window;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|