From 0676f9ddc982589e6990d6386bacaee34b487b2d Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 17 Apr 2003 18:08:51 +0000 Subject: [PATCH] Added IconFactory.custom file from mathias.hasselmann@gmx.de svn path=/trunk/gtk-sharp/; revision=13730 --- gtk/IconFactory.custom | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gtk/IconFactory.custom diff --git a/gtk/IconFactory.custom b/gtk/IconFactory.custom new file mode 100644 index 000000000..9e2e992df --- /dev/null +++ b/gtk/IconFactory.custom @@ -0,0 +1,18 @@ + [DllImport("libgtk-win32-2.0-0.dll")] + extern static void gtk_icon_size_lookup (IconSize size, out int width, out int height); + + /// Query icon dimensions + /// Queries dimensions for icons of the specified size. + public void LookupIconSize (IconSize size, out int width, out int height) + { + gtk_icon_size_lookup (size, out width, out height); + } + + /// Query icon dimensions + /// Queries dimensions for icons of the specified size. + public System.Drawing.Size LookupIconSize (IconSize size) + { + int width, height; + gtk_icon_size_lookup (size, out width, out height); + return new System.Drawing.Size(width, height); + }