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:
parent
3ee97db664
commit
db40040fdc
1 changed files with 3 additions and 1 deletions
|
@ -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)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue