|
|
|
|
|
|
static extern void Path_reset(IntPtr ptr); |
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|
[return: MarshalAs(UnmanagedType.U1)] |
|
|
|
static extern bool Path_contains(IntPtr ptr, float x, float y); |
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|
|
|
|
static extern unsafe void Path_getBounds(IntPtr ptr, float* rect); |
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|
[return: MarshalAs(UnmanagedType.U1)] |
|
|
|
static extern bool Path_op(IntPtr ptr, IntPtr path1, IntPtr path2, int operation); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|
[return: MarshalAs(UnmanagedType.U1)] |
|
|
|
[return: MarshalAs(UnmanagedType.U1)] |
|
|
|
static extern bool PathMeasure_nativeNextContour(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
public static extern void Vertices_dispose(IntPtr ptr); |
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|
[return: MarshalAs(UnmanagedType.U1)] |
|
|
|
public static extern unsafe bool Vertices_init(IntPtr ptr, |
|
|
|
int mode, |
|
|
|
float* positions, |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public int approximateBytesUsed => Picture_GetAllocationSize(_ptr); |
|
|
|
public ulong approximateBytesUsed => Picture_GetAllocationSize(_ptr); |
|
|
|
static extern int Picture_GetAllocationSize(IntPtr ptr); |
|
|
|
[return: MarshalAs(UnmanagedType.SysUInt)] |
|
|
|
static extern ulong Picture_GetAllocationSize(IntPtr ptr); |
|
|
|
|
|
|
|
delegate void Picture_toImageCallback(IntPtr callbackHandle, IntPtr result); |
|
|
|
|
|
|
|
|
|
|
static extern void PictureRecorder_dispose(IntPtr ptr); |
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|
[return: MarshalAs(UnmanagedType.U1)] |
|
|
|
static extern bool PictureRecorder_isRecording(IntPtr ptr); |
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|