update sk_region bindings
This commit is contained in:
Родитель
3d60af454d
Коммит
55b012586f
|
@ -1132,22 +1132,32 @@ namespace SkiaSharp
|
|||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static sk_region_t sk_region_new2(sk_region_t r);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_contains(sk_region_t r, sk_region_t region);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_contains2(sk_region_t r, int x, int y);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_intersects(sk_region_t r, sk_region_t src);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_intersects(sk_region_t r, SKRectI rect);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_set(sk_region_t r, sk_region_t src);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_set_rect(sk_region_t r, ref SKRectI rect);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_set_path(sk_region_t r, sk_path_t t);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_op(sk_region_t r, int left, int top, int right, int bottom, SKRegionOperation op);
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public extern static bool sk_region_op2(sk_region_t r, sk_region_t src, SKRegionOperation op);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static SKRectI sk_region_get_bounds(sk_region_t r);
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "sk_path.h"
|
||||
#include "sk_patheffect.h"
|
||||
#include "sk_picture.h"
|
||||
#include "sk_region.h"
|
||||
#include "sk_shader.h"
|
||||
#include "sk_shader.h"
|
||||
#include "sk_stream.h"
|
||||
|
@ -47,6 +48,7 @@ void** KeepSkiaCSymbols ()
|
|||
(void*)sk_paint_new,
|
||||
(void*)sk_path_new,
|
||||
(void*)sk_picture_recorder_new,
|
||||
(void*)sk_region_new,
|
||||
(void*)sk_shader_ref,
|
||||
(void*)sk_surface_new_raster,
|
||||
(void*)sk_colortype_get_default_8888,
|
||||
|
|
Загрузка…
Ссылка в новой задаче