Gdk: Transform the out param of Rectangle.Union() to a return value.

Not only this is prettier but it's also aligned with the 2.12.x API.
This commit is contained in:
Andrés G. Aragoneses 2011-04-15 17:31:35 +02:00
parent 3ee97db664
commit db40040fdc

View file

@ -220,9 +220,11 @@ namespace Gdk {
[DllImport("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gdk_rectangle_union (ref Rectangle src1, ref Rectangle src2, out Rectangle dest); static extern void gdk_rectangle_union (ref Rectangle src1, ref Rectangle src2, out Rectangle dest);
public void Union (Gdk.Rectangle src, out Gdk.Rectangle dest) public Gdk.Rectangle Union (Gdk.Rectangle src)
{ {
Gdk.Rectangle dest;
gdk_rectangle_union (ref this, ref src, out dest); gdk_rectangle_union (ref this, ref src, out dest);
return dest;
} }
[DllImport("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]