aboutsummaryrefslogtreecommitdiffstatsci
path: root/Backends/VkvgBackend/src/Pattern.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-24 03:00:25 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-24 03:00:25 +0100
commitf005d76468dc4c6a368b6f1f6eca69da25214e80 (patch)
tree14a70c7fb9a58be9083dbd7492ecd94d030c18a9 /Backends/VkvgBackend/src/Pattern.cs
parent362d83b9556355b1d3dfb6cb892896ed33371521 (diff)
default Crow.CairoBackend ok
Diffstat (limited to 'Backends/VkvgBackend/src/Pattern.cs')
-rw-r--r--Backends/VkvgBackend/src/Pattern.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/Backends/VkvgBackend/src/Pattern.cs b/Backends/VkvgBackend/src/Pattern.cs
index b25e26b2..6c2918f0 100644
--- a/Backends/VkvgBackend/src/Pattern.cs
+++ b/Backends/VkvgBackend/src/Pattern.cs
@@ -3,11 +3,14 @@
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System;
-namespace Crow.Drawing
+using Drawing2D;
+
+namespace Crow.VkvgBackend
{
- public class Pattern : IDisposable
+ public class Pattern : IPattern
{
protected IntPtr handle = IntPtr.Zero;
+ public IntPtr Handle => handle;
#region CTORS & DTOR
protected Pattern(IntPtr handle)
@@ -39,17 +42,16 @@ namespace Crow.Drawing
}
public uint References() => NativeMethods.vkvg_pattern_get_reference_count(handle);
- public IntPtr Handle => handle;
public Extend Extend
{
+ get => NativeMethods.vkvg_pattern_get_extend(handle);
set { NativeMethods.vkvg_pattern_set_extend(handle, value); }
- get { return NativeMethods.vkvg_pattern_get_extend(handle); }
}
public Filter Filter
{
+ get => NativeMethods.vkvg_pattern_get_filter(handle);
set { NativeMethods.vkvg_pattern_set_filter(handle, value); }
- get { return NativeMethods.vkvg_pattern_get_filter(handle); }
}
#region IDisposable implementation