Add some overloads.

svn path=/trunk/gtk-sharp/; revision=11043
This commit is contained in:
Duncan Mak 2003-01-30 02:34:20 +00:00
parent 984d952967
commit 87387bc38b
2 changed files with 22 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2003-01-29 Duncan Mak <duncan@ximian.com> 2003-01-29 Duncan Mak <duncan@ximian.com>
* gtk/Window.custom: Add some overloads.
* api/gtk-api.xml: * api/gtk-api.xml:
* sources/Gtk.metadata: * sources/Gtk.metadata:
* sources/Pango.metadata: Add some more metadata rules. * sources/Pango.metadata: Add some more metadata rules.

View file

@ -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);
}
}