Merge branch 'path-fill-type'
This commit is contained in:
Коммит
f4306bd147
|
@ -1,6 +1,6 @@
|
|||
[submodule "skia"]
|
||||
path = skia
|
||||
url = git@github.com:mono/skia.git
|
||||
url=git@github.com:petergolde/skia.git
|
||||
[submodule "depot_tools"]
|
||||
path = depot_tools
|
||||
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
|
@ -133,6 +133,14 @@ namespace SkiaSharp
|
|||
CounterClockwise
|
||||
}
|
||||
|
||||
public enum SKPathFillType
|
||||
{
|
||||
Winding,
|
||||
EvenOdd,
|
||||
InverseWinding,
|
||||
InverseEvenOdd
|
||||
}
|
||||
|
||||
public enum SKColorType {
|
||||
Unknown,
|
||||
Rgba_8888,
|
||||
|
|
|
@ -31,7 +31,16 @@ namespace SkiaSharp
|
|||
|
||||
base.Dispose (disposing);
|
||||
}
|
||||
|
||||
|
||||
public SKPathFillType FillType {
|
||||
get {
|
||||
return SkiaApi.sk_path_get_filltype (Handle);
|
||||
}
|
||||
set {
|
||||
SkiaApi.sk_path_set_filltype (Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
public void MoveTo (float x, float y)
|
||||
{
|
||||
SkiaApi.sk_path_move_to (Handle, x, y);
|
||||
|
|
|
@ -288,9 +288,13 @@ namespace SkiaSharp
|
|||
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 bool sk_path_get_bounds(sk_path_t t, out SKRect rect);
|
||||
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static SKPathFillType sk_path_get_filltype (sk_path_t t);
|
||||
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_path_set_filltype (sk_path_t t, SKPathFillType filltype);
|
||||
|
||||
// SkMaskFilter
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_maskfilter_unref(sk_maskfilter_t t);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static sk_maskfilter_t sk_maskfilter_new_blur(SKBlurStyle style, float sigma);
|
||||
|
|
2
skia
2
skia
|
@ -1 +1 @@
|
|||
Subproject commit 135c8ca428342a2abfcd43f2d300f1f2e9ab03f4
|
||||
Subproject commit 45bdc31f6d735d23779b131c3e373047f2bbc8ac
|
Загрузка…
Ссылка в новой задаче