public static Art.SVP FromVpath(Art.Vpath vpath) { IntPtr raw_ret = art_svp_from_vpath(vpath == null ? IntPtr.Zero : vpath.Handle); Art.SVP ret = Art.SVP.New(raw_ret); return(ret); }
public static Art.SVP VpathStroke(Art.Vpath vpath, Art.PathStrokeJoinType join, Art.PathStrokeCapType cap, double line_width, double miter_limit, double flatness) { IntPtr raw_ret = art_svp_vpath_stroke(vpath == null ? IntPtr.Zero : vpath.Handle, (int)join, (int)cap, line_width, miter_limit, flatness); Art.SVP ret = Art.SVP.New(raw_ret); return(ret); }
public void RequestRedrawSvp(Art.SVP svp) { IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); gnome_canvas_item_request_redraw_svp(Handle, native_svp); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); }
public void Svp(Art.SVP svp) { IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); art_render_svp(Handle, native_svp); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); }
public static byte GraySvpAa(Art.SVP svp, int x0, int y0, int x1, int y1, int rowstride) { byte buf; IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); art_gray_svp_aa(native_svp, x0, y0, x1, y1, out buf, rowstride); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); return(buf); }
public static Art.Uta FromSvp(Art.SVP svp) { IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); IntPtr raw_ret = art_uta_from_svp(native_svp); Art.Uta ret = raw_ret == IntPtr.Zero ? null : (Art.Uta)GLib.Opaque.GetOpaque(raw_ret, typeof(Art.Uta), false); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); return(ret); }
public static byte SvpAa(Art.SVP svp, int x0, int y0, int x1, int y1, uint fg_color, uint bg_color, int rowstride, Art.AlphaGamma alphagamma) { byte buf; IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); art_rgb_svp_aa(native_svp, x0, y0, x1, y1, fg_color, bg_color, out buf, rowstride, alphagamma == null ? IntPtr.Zero : alphagamma.Handle); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); return(buf); }
public void UpdateSvp(Art.SVP p_svp, Art.SVP new_svp) { IntPtr native_p_svp = GLib.Marshaller.StructureToPtrAlloc(p_svp); IntPtr native_new_svp = GLib.Marshaller.StructureToPtrAlloc(new_svp); gnome_canvas_update_svp(Handle, native_p_svp, native_new_svp); p_svp = Art.SVP.New(native_p_svp); Marshal.FreeHGlobal(native_p_svp); new_svp = Art.SVP.New(native_new_svp); Marshal.FreeHGlobal(native_new_svp); }
public static void RenderSvp(Gnome.CanvasBuf buf, Art.SVP svp, uint rgba) { IntPtr native_buf = GLib.Marshaller.StructureToPtrAlloc(buf); IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); gnome_canvas_render_svp(native_buf, native_svp, rgba); buf = Gnome.CanvasBuf.New(native_buf); Marshal.FreeHGlobal(native_buf); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); }
public Art.SVP RewindReap() { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr raw_ret = art_svp_writer_rewind_reap(this_as_native); Art.SVP ret = Art.SVP.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public Art.SVP RewindUncrossed(Art.WindRule rule) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr raw_ret = art_svp_rewind_uncrossed(this_as_native, (int)rule); Art.SVP ret = Art.SVP.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public void SvpUnion(Art.SVP svp) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); art_drect_svp_union(this_as_native, native_svp); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); }
public Art.SVP Minus(Art.SVP svp2) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_svp2 = GLib.Marshaller.StructureToPtrAlloc(svp2); IntPtr raw_ret = art_svp_minus(this_as_native, native_svp2); Art.SVP ret = Art.SVP.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); svp2 = Art.SVP.New(native_svp2); Marshal.FreeHGlobal(native_svp2); return(ret); }
protected virtual void Update(double[] affine, ref Art.SVP clip_path, int flags) { gnomesharp_canvas_item_base_update(Handle, affine, ref clip_path, flags); }
static extern void gnomesharp_canvas_item_base_update(IntPtr handle, double[] affine, ref Art.SVP clip_path, int flags);
static void ReadNative(IntPtr native, ref Art.SVP target) { target = New(native); }