diff --git a/rsvg/Handle.custom b/rsvg/Handle.custom deleted file mode 100644 index 439fe5b71..000000000 --- a/rsvg/Handle.custom +++ /dev/null @@ -1,25 +0,0 @@ -// Rsvg.Handle.custom - Rsvg Handle class customizations -// -// Copyright (C) 2005 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - -[Obsolete ("Replaced by SizeCallback property")] -public void SetSizeCallback (Rsvg.SizeFunc size_func, IntPtr user_data, IntPtr user_data_destroy) -{ - SizeCallback = size_func; -} diff --git a/rsvg/Makefile.am b/rsvg/Makefile.am deleted file mode 100644 index e7d40d3cf..000000000 --- a/rsvg/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -if ENABLE_RSVG -pkg = rsvg -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = rsvg-sharp-2.0.pc -else -pkg = -endif - -INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml ../gtk/gtk-api.xml ../art/art-api.xml -METADATA = Rsvg.metadata -SYMBOLS = -references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll ../gtk/gtk-sharp.dll ../art/art-sharp.dll - -sources = \ - Tool.cs - -customs = \ - Handle.custom \ - Pixbuf.custom \ - State.custom - -add_dist = rsvg-sharp-2.0.pc.in - -include ../Makefile.include - diff --git a/rsvg/Pixbuf.custom b/rsvg/Pixbuf.custom deleted file mode 100644 index 8a4aee9f8..000000000 --- a/rsvg/Pixbuf.custom +++ /dev/null @@ -1,45 +0,0 @@ -// Rsvg.Pixbuf.custom - Rsvg Pixbuf class customizations -// -// Author: John Luke -// -// Copyright (C) 2004 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - public static Gdk.Pixbuf LoadFromResource (string resource) - { - if (resource == null) - throw new ArgumentNullException ("resource"); - - System.IO.Stream s = System.Reflection.Assembly.GetCallingAssembly ().GetManifestResourceStream (resource); - if (s == null) - throw new ArgumentException ("resource must be a valid resource name of 'assembly'."); - - return LoadFromStream (s); - } - - public static Gdk.Pixbuf LoadFromStream (System.IO.Stream input) - { - Handle loader = new Handle (); - byte [] buffer = new byte [8192]; - int n; - while ((n = input.Read (buffer, 0, 8192)) != 0) - loader.Write (buffer, (uint) n); - - loader.Close (); - return loader.Pixbuf; - } diff --git a/rsvg/Rsvg.metadata b/rsvg/Rsvg.metadata deleted file mode 100644 index 18aecc4dc..000000000 --- a/rsvg/Rsvg.metadata +++ /dev/null @@ -1,10 +0,0 @@ - - - 1 - false - 1 - 1 - 1 - 1 - 1 - diff --git a/rsvg/State.custom b/rsvg/State.custom deleted file mode 100644 index c9240dedb..000000000 --- a/rsvg/State.custom +++ /dev/null @@ -1,55 +0,0 @@ -// Rsvg.State.custom - Rsvg State class customizations -// -// Author: Mike Kestner -// -// Copyright (c) 2005 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - - [Obsolete ("Replaced by Fill property.")] - public Rsvg.PaintServer fill { - get { - return _fill == IntPtr.Zero ? null : new Rsvg.PaintServer(_fill); - } - set { _fill = value == null ? IntPtr.Zero : value.Handle; } - } - - [Obsolete ("Replaced by Stroke property.")] - public Rsvg.PaintServer stroke { - get { - return _stroke == IntPtr.Zero ? null : new Rsvg.PaintServer(_stroke); - } - set { _stroke = value == null ? IntPtr.Zero : value.Handle; } - } - - [Obsolete ("Replaced by Dash property.")] - public Art.VpathDash dash { - get { - return _dash == IntPtr.Zero ? null : new Art.VpathDash(_dash); - } - set { _dash = value == null ? IntPtr.Zero : value.Handle; } - } - - [Obsolete ("Replaced by SavePixbuf property.")] - public Gdk.Pixbuf save_pixbuf { - get { - return GLib.Object.GetObject(_save_pixbuf) as Gdk.Pixbuf; - } - set { _save_pixbuf = value == null ? IntPtr.Zero : value.Handle; } - } - diff --git a/rsvg/Tool.cs b/rsvg/Tool.cs deleted file mode 100644 index 736096d4d..000000000 --- a/rsvg/Tool.cs +++ /dev/null @@ -1,116 +0,0 @@ -// rsvg/Tool.cs - Rsvg Tool class -// -// Author: Charles Iliya Krempeaux -// Mike Kestner -// -// Copyright (C) 2003 Reptile Consulting & Services Ltd. -// Copyright (C) 2003 Charles Iliya Krempeaux. -// Copyright (C) 2005 Novell, Inc. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - - -namespace Rsvg { - - using System; - using System.Runtime.InteropServices; - - public class Tool { - - [DllImport("rsvg-2")] - static extern IntPtr rsvg_pixbuf_from_file (IntPtr file_name, out IntPtr error); - - [DllImport("rsvg-2")] - static extern IntPtr rsvg_pixbuf_from_file_at_zoom (IntPtr file_name, double x_zoom, double y_zoom, out IntPtr error); - - [DllImport("rsvg-2")] - static extern IntPtr rsvg_pixbuf_from_file_at_size (IntPtr file_name, int width, int height, out IntPtr error); - - [DllImport("rsvg-2")] - static extern IntPtr rsvg_pixbuf_from_file_at_max_size (IntPtr file_name, int max_width, int max_height, out IntPtr error); - - [DllImport("rsvg-2")] - static extern IntPtr rsvg_pixbuf_from_file_at_zoom_with_max (IntPtr file_name, double x_zoom, double y_zoom, int max_width, int max_height, out IntPtr error); - - - public static Gdk.Pixbuf PixbufFromFile (string file_name) - { - IntPtr error = IntPtr.Zero; - IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (file_name); - IntPtr raw_pixbuf = rsvg_pixbuf_from_file(native_filename, out error); - GLib.Marshaller.Free (native_filename); - - if (IntPtr.Zero != error) - throw new GLib.GException (error); - - return GLib.Object.GetObject (raw_pixbuf, true) as Gdk.Pixbuf; - } - - public static Gdk.Pixbuf PixbufFromFileAtZoom (string file_name, double x_zoom, double y_zoom) - { - IntPtr error = IntPtr.Zero; - IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (file_name); - IntPtr raw_pixbuf = rsvg_pixbuf_from_file_at_zoom (native_filename, x_zoom, y_zoom, out error); - GLib.Marshaller.Free (native_filename); - - if (IntPtr.Zero != error) - throw new GLib.GException (error); - - return GLib.Object.GetObject (raw_pixbuf, true) as Gdk.Pixbuf; - } - - public static Gdk.Pixbuf PixbufFromFileAtSize(string file_name, int width, int height) - { - IntPtr error = IntPtr.Zero; - IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (file_name); - IntPtr raw_pixbuf = rsvg_pixbuf_from_file_at_size (native_filename, width, height, out error); - GLib.Marshaller.Free (native_filename); - - if (IntPtr.Zero != error) - throw new GLib.GException (error); - - return GLib.Object.GetObject (raw_pixbuf, true) as Gdk.Pixbuf; - } - - public static Gdk.Pixbuf PixbufFromFileAtMaxSize(string file_name, int max_width, int max_height) - { - IntPtr error = IntPtr.Zero; - IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (file_name); - IntPtr raw_pixbuf = rsvg_pixbuf_from_file_at_max_size (native_filename, max_width, max_height, out error); - GLib.Marshaller.Free (native_filename); - - if (IntPtr.Zero != error) - throw new GLib.GException (error); - - return GLib.Object.GetObject (raw_pixbuf, true) as Gdk.Pixbuf; - } - - public static Gdk.Pixbuf PixbufFromFileAtZoomWithMaxSize(string file_name, double x_zoom, double y_zoom, int max_width, int max_height) - { - IntPtr error = IntPtr.Zero; - IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (file_name); - IntPtr raw_pixbuf = rsvg_pixbuf_from_file_at_zoom_with_max (native_filename, x_zoom, y_zoom, max_width, max_height, out error); - GLib.Marshaller.Free (native_filename); - - if (IntPtr.Zero != error) - throw new GLib.GException (error); - - return GLib.Object.GetObject (raw_pixbuf, true) as Gdk.Pixbuf; - } - } -} - - diff --git a/rsvg/rsvg-api.raw b/rsvg/rsvg-api.raw deleted file mode 100644 index d591ee591..000000000 --- a/rsvg/rsvg-api.raw +++ /dev/null @@ -1,687 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/rsvg/rsvg-sharp-2.0.pc.in b/rsvg/rsvg-sharp-2.0.pc.in deleted file mode 100644 index feea8fd97..000000000 --- a/rsvg/rsvg-sharp-2.0.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=${pcfiledir}/../.. -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -gapidir=${prefix}/share/gapi-2.0 - - -Name: Rsvg# -Description: Rsvg# - librsvg .NET Binding -Version: @VERSION@ -Cflags: -I:${gapidir}/rsvg-api.xml -Libs: -r:${libdir}/mono/@PACKAGE_VERSION@/rsvg-sharp.dll diff --git a/rsvg/rsvg-sharp.dll.config.in b/rsvg/rsvg-sharp.dll.config.in deleted file mode 100644 index 0980d3a28..000000000 --- a/rsvg/rsvg-sharp.dll.config.in +++ /dev/null @@ -1,3 +0,0 @@ - - -