diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-24 03:00:25 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-24 03:00:25 +0100 |
| commit | f005d76468dc4c6a368b6f1f6eca69da25214e80 (patch) | |
| tree | 14a70c7fb9a58be9083dbd7492ecd94d030c18a9 /Backends/VkvgBackend/src/NativeMethods.cs | |
| parent | 362d83b9556355b1d3dfb6cb892896ed33371521 (diff) | |
default Crow.CairoBackend ok
Diffstat (limited to 'Backends/VkvgBackend/src/NativeMethods.cs')
| -rw-r--r-- | Backends/VkvgBackend/src/NativeMethods.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Backends/VkvgBackend/src/NativeMethods.cs b/Backends/VkvgBackend/src/NativeMethods.cs index d96eab8f..fcaf4620 100644 --- a/Backends/VkvgBackend/src/NativeMethods.cs +++ b/Backends/VkvgBackend/src/NativeMethods.cs @@ -4,8 +4,9 @@ using System; using System.Runtime.InteropServices; +using Drawing2D; -namespace Crow.Drawing +namespace Crow.VkvgBackend { internal static class NativeMethods { @@ -142,6 +143,8 @@ namespace Crow.Drawing [DllImport (libvkvg, CallingConvention = CallingConvention.Cdecl)] internal static extern void vkvg_set_dash (IntPtr ctx, float[] dashes, uint dashCount, float offset); + [DllImport (libvkvg, CallingConvention = CallingConvention.Cdecl)] + internal static extern void vkvg_path_extents (IntPtr ctx, out float x1, out float y1, out float x2, out float y2); //void vkvg_set_dash (VkvgContext ctx, const float* dashes, uint32_t num_dashes, float offset); //void vkvg_get_dash (VkvgContext ctx, const float* dashes, uint32_t* num_dashes, float* offset |