mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 16:15:40 +00:00
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
|
@ -220,9 +220,11 @@ namespace Gdk {
|
|||
[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);
|
||||
|
||||
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);
|
||||
return dest;
|
||||
}
|
||||
|
||||
[DllImport("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
|
|
Loading…
Reference in a new issue