From 87387bc38b7f2b260eb82e6a80779649a2379856 Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Thu, 30 Jan 2003 02:34:20 +0000 Subject: [PATCH] Add some overloads. svn path=/trunk/gtk-sharp/; revision=11043 --- ChangeLog | 2 ++ gtk/Window.custom | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index f45a556fb..2b8dfbd0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2003-01-29 Duncan Mak + * gtk/Window.custom: Add some overloads. + * api/gtk-api.xml: * sources/Gtk.metadata: * sources/Pango.metadata: Add some more metadata rules. diff --git a/gtk/Window.custom b/gtk/Window.custom index fd63f9ee5..69cc2fb6a 100755 --- a/gtk/Window.custom +++ b/gtk/Window.custom @@ -40,3 +40,23 @@ } } + public System.Drawing.Size SizeRequest { + get { + return new System.Drawing.Size ( + DefaultWidth, DefaultHeight); + } + set { + DefaultWidth = value.Width; + DefaultHeight = value.Height; + } + } + + public System.Drawing.Size Position { + get { + int x, y; + GetPosition (out x, out y); + + return new System.Drawing.Size ( + x, y); + } + }