Skip to content

Commit

Permalink
Rectangle
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Sep 24, 2023
1 parent eb9be28 commit 72a626f
Show file tree
Hide file tree
Showing 33 changed files with 577 additions and 647 deletions.
Binary file modified build/cache/wic.json.gz
Binary file not shown.
6 changes: 4 additions & 2 deletions generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,8 @@
},
"exclude": [
"ID2D1Device",
"ID2D1Image"
"ID2D1Image",
"WICRect"
],
"rename": {
"WICProgressNotification": "ProgressNotificationEnum"
Expand Down Expand Up @@ -1678,7 +1679,8 @@
"tagPROPBAG2": "void",
"HPALETTE__": "void",
"HBITMAP__": "void",
"HICON__": "void"
"HICON__": "void",
"WICRect": "Silk.NET.Maths.Rectangle<int>"
},
{
"$include.commonTypeMap": "build/csharp_typemap.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,121 +252,121 @@ public readonly int CopyPalette(ref IWICPalette pIPalette)
}

/// <summary>To be documented.</summary>
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] Rect* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer)
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Rectangle<int>* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prc, cbStride, cbBufferSize, pbBuffer);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prc, cbStride, cbBufferSize, pbBuffer);
return ret;
}

/// <summary>To be documented.</summary>
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] Rect* prc, uint cbStride, uint cbBufferSize, ref byte pbBuffer)
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Rectangle<int>* prc, uint cbStride, uint cbBufferSize, ref byte pbBuffer)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
fixed (byte* pbBufferPtr = &pbBuffer)
{
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prc, cbStride, cbBufferSize, pbBufferPtr);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prc, cbStride, cbBufferSize, pbBufferPtr);
}
return ret;
}

/// <summary>To be documented.</summary>
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] Rect* prc, uint cbStride, uint cbBufferSize, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbBuffer)
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Rectangle<int>* prc, uint cbStride, uint cbBufferSize, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbBuffer)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
var pbBufferPtr = (byte*) SilkMarshal.StringToPtr(pbBuffer, NativeStringEncoding.UTF8);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prc, cbStride, cbBufferSize, pbBufferPtr);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prc, cbStride, cbBufferSize, pbBufferPtr);
SilkMarshal.Free((nint)pbBufferPtr);
return ret;
}

/// <summary>To be documented.</summary>
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Rect prc, uint cbStride, uint cbBufferSize, byte* pbBuffer)
public readonly unsafe int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Silk.NET.Maths.Rectangle<int> prc, uint cbStride, uint cbBufferSize, byte* pbBuffer)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
fixed (Rect* prcPtr = &prc)
fixed (Silk.NET.Maths.Rectangle<int>* prcPtr = &prc)
{
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prcPtr, cbStride, cbBufferSize, pbBuffer);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prcPtr, cbStride, cbBufferSize, pbBuffer);
}
return ret;
}

/// <summary>To be documented.</summary>
public readonly int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Rect prc, uint cbStride, uint cbBufferSize, ref byte pbBuffer)
public readonly int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Silk.NET.Maths.Rectangle<int> prc, uint cbStride, uint cbBufferSize, ref byte pbBuffer)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
fixed (Rect* prcPtr = &prc)
fixed (Silk.NET.Maths.Rectangle<int>* prcPtr = &prc)
{
fixed (byte* pbBufferPtr = &pbBuffer)
{
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prcPtr, cbStride, cbBufferSize, pbBufferPtr);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prcPtr, cbStride, cbBufferSize, pbBufferPtr);
}
}
return ret;
}

/// <summary>To be documented.</summary>
public readonly int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Rect prc, uint cbStride, uint cbBufferSize, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbBuffer)
public readonly int CopyPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Silk.NET.Maths.Rectangle<int> prc, uint cbStride, uint cbBufferSize, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbBuffer)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
fixed (Rect* prcPtr = &prc)
fixed (Silk.NET.Maths.Rectangle<int>* prcPtr = &prc)
{
var pbBufferPtr = (byte*) SilkMarshal.StringToPtr(pbBuffer, NativeStringEncoding.UTF8);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prcPtr, cbStride, cbBufferSize, pbBufferPtr);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, uint, byte*, int>)@this->LpVtbl[7])(@this, prcPtr, cbStride, cbBufferSize, pbBufferPtr);
SilkMarshal.Free((nint)pbBufferPtr);
}
return ret;
}

/// <summary>To be documented.</summary>
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] Rect* prcLock, uint flags, IWICBitmapLock** ppILock)
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Rectangle<int>* prcLock, uint flags, IWICBitmapLock** ppILock)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLock, flags, ppILock);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLock, flags, ppILock);
return ret;
}

/// <summary>To be documented.</summary>
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] Rect* prcLock, uint flags, ref IWICBitmapLock* ppILock)
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Rectangle<int>* prcLock, uint flags, ref IWICBitmapLock* ppILock)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
fixed (IWICBitmapLock** ppILockPtr = &ppILock)
{
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLock, flags, ppILockPtr);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLock, flags, ppILockPtr);
}
return ret;
}

/// <summary>To be documented.</summary>
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Rect prcLock, uint flags, IWICBitmapLock** ppILock)
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Silk.NET.Maths.Rectangle<int> prcLock, uint flags, IWICBitmapLock** ppILock)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
fixed (Rect* prcLockPtr = &prcLock)
fixed (Silk.NET.Maths.Rectangle<int>* prcLockPtr = &prcLock)
{
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLockPtr, flags, ppILock);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLockPtr, flags, ppILock);
}
return ret;
}

/// <summary>To be documented.</summary>
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Rect prcLock, uint flags, ref IWICBitmapLock* ppILock)
public readonly unsafe int Lock([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Silk.NET.Maths.Rectangle<int> prcLock, uint flags, ref IWICBitmapLock* ppILock)
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
int ret = default;
fixed (Rect* prcLockPtr = &prcLock)
fixed (Silk.NET.Maths.Rectangle<int>* prcLockPtr = &prcLock)
{
fixed (IWICBitmapLock** ppILockPtr = &ppILock)
{
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Rect*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLockPtr, flags, ppILockPtr);
ret = ((delegate* unmanaged[Stdcall]<IWICBitmap*, Silk.NET.Maths.Rectangle<int>*, uint, IWICBitmapLock**, int>)@this->LpVtbl[8])(@this, prcLockPtr, flags, ppILockPtr);
}
}
return ret;
Expand Down Expand Up @@ -420,15 +420,15 @@ public readonly int CopyPalette<TI0>(ComPtr<TI0> pIPalette) where TI0 : unmanage
}

/// <summary>To be documented.</summary>
public readonly unsafe int Lock<TI0>([Flow(Silk.NET.Core.Native.FlowDirection.In)] Rect* prcLock, uint flags, ref ComPtr<TI0> ppILock) where TI0 : unmanaged, IComVtbl<IWICBitmapLock>, IComVtbl<TI0>
public readonly unsafe int Lock<TI0>([Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Rectangle<int>* prcLock, uint flags, ref ComPtr<TI0> ppILock) where TI0 : unmanaged, IComVtbl<IWICBitmapLock>, IComVtbl<TI0>
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
// ComPtrOverloader
return @this->Lock(prcLock, flags, (IWICBitmapLock**) ppILock.GetAddressOf());
}

/// <summary>To be documented.</summary>
public readonly int Lock<TI0>([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Rect prcLock, uint flags, ref ComPtr<TI0> ppILock) where TI0 : unmanaged, IComVtbl<IWICBitmapLock>, IComVtbl<TI0>
public readonly int Lock<TI0>([Flow(Silk.NET.Core.Native.FlowDirection.In)] in Silk.NET.Maths.Rectangle<int> prcLock, uint flags, ref ComPtr<TI0> ppILock) where TI0 : unmanaged, IComVtbl<IWICBitmapLock>, IComVtbl<TI0>
{
var @this = (IWICBitmap*) Unsafe.AsPointer(ref Unsafe.AsRef(in this));
// ComPtrOverloader
Expand Down
Loading

0 comments on commit 72a626f

Please sign in to comment.