This commit is contained in:
TylerFlick 2016-10-24 15:07:27 -07:00
Родитель 3d60af454d
Коммит 55b012586f
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -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,