Adding an overload to SkPath.AddRect.
This version takes a startIndex.
This commit is contained in:
Родитель
cf438de5bf
Коммит
54841dfaa6
|
@ -101,6 +101,14 @@ namespace SkiaSharp
|
|||
SkiaApi.sk_path_add_rect (Handle, ref rect, direction);
|
||||
}
|
||||
|
||||
public void AddRect (SKRect rect, SKPathDirection direction, uint startIndex)
|
||||
{
|
||||
if (startIndex > 3)
|
||||
throw new ArgumentOutOfRangeException ("startIndex", "startIndex must be 0 - 3");
|
||||
|
||||
SkiaApi.sk_path_add_rect_start (Handle, ref rect, direction, startIndex);
|
||||
}
|
||||
|
||||
public void AddOval (SKRect rect, SKPathDirection direction)
|
||||
{
|
||||
SkiaApi.sk_path_add_oval (Handle, ref rect, direction);
|
||||
|
|
|
@ -297,6 +297,8 @@ namespace SkiaSharp
|
|||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_path_add_rect(sk_path_t t, ref SKRect rect, SKPathDirection direction);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_path_add_rect_start(sk_path_t t, ref SKRect rect, SKPathDirection direction, uint startIndex);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_path_add_oval(sk_path_t t, ref SKRect rect, SKPathDirection direction);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_path_add_arc(sk_path_t t, ref SKRect rect, float startAngle, float sweepAngle);
|
||||
|
|
|
@ -106,6 +106,29 @@
|
|||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="AddRect">
|
||||
<MemberSignature Language="C#" Value="public void AddRect (SkiaSharp.SKRect rect, SkiaSharp.SKPathDirection direction, uint startIndex);" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddRect(valuetype SkiaSharp.SKRect rect, valuetype SkiaSharp.SKPathDirection direction, unsigned int32 startIndex) cil managed" />
|
||||
<MemberType>Method</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>1.49.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="rect" Type="SkiaSharp.SKRect" />
|
||||
<Parameter Name="direction" Type="SkiaSharp.SKPathDirection" />
|
||||
<Parameter Name="startIndex" Type="System.UInt32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="rect">The rectangle to add as a closed contour to the path</param>
|
||||
<param name="direction">The direction to wind the rectangle's contour.</param>
|
||||
<param name="startIndex">Initial point of the contour (initial moveTo), expressed as a corner index, starting in the upper-left position, clock-wise. Must be 0-3.</param>
|
||||
<summary>Add a closed rectangle contour to the path.</summary>
|
||||
<remarks>Add a closed rectangle contour to the path with an initial point of the contour (startIndex) expressed as a corner index.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Close">
|
||||
<MemberSignature Language="C#" Value="public void Close ();" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Close() cil managed" />
|
||||
|
|
2
skia
2
skia
|
@ -1 +1 @@
|
|||
Subproject commit 7d7ebdfdab9f1315b3c58fdc1dee487c2df40ac0
|
||||
Subproject commit 15d4e8e5cafdfd9432a43a6c3f834d391dbfc55e
|
Загрузка…
Ссылка в новой задаче