示例#1
0
        protected virtual void OnRenderBackground(Gnome.CanvasBuf buf)
        {
            IntPtr native_buf = GLib.Marshaller.StructureToPtrAlloc(buf);

            gnomesharp_canvas_base_render_background(Handle, native_buf);
            buf = Gnome.CanvasBuf.New(native_buf);
            Marshal.FreeHGlobal(native_buf);
        }
示例#2
0
        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);
        }
 static void ReadNative(IntPtr native, ref Gnome.CanvasBuf target)
 {
     target = New(native);
 }