rsvg2 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +35 -0
- data/Rakefile +69 -0
- data/ext/rsvg2/depend +6 -0
- data/ext/rsvg2/extconf.rb +89 -0
- data/ext/rsvg2/rbrsvg.c +206 -0
- data/ext/rsvg2/rbrsvgdimensiondata.c +194 -0
- data/ext/rsvg2/rbrsvghandle.c +496 -0
- data/ext/rsvg2/rsvg2.def +2 -0
- data/ext/rsvg2/rsvg2.h +70 -0
- data/extconf.rb +49 -0
- data/lib/2.0/rsvg2.so +0 -0
- data/lib/2.1/rsvg2.so +0 -0
- data/lib/2.2/rsvg2.so +0 -0
- data/lib/rsvg2.rb +33 -0
- data/sample/svg-viewer.rb +44 -0
- data/sample/svg2.rb +60 -0
- data/test/rsvg2-test-utils.rb +23 -0
- data/test/run-test.rb +49 -0
- data/test/test-handle.rb +91 -0
- data/vendor/local/bin/croco-0.6-config +87 -0
- data/vendor/local/bin/csslint-0.6.exe +0 -0
- data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
- data/vendor/local/bin/librsvg-2-2.dll +0 -0
- data/vendor/local/bin/rsvg-convert.exe +0 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-additional-sel.h +98 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-attr-sel.h +74 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-cascade.h +74 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-declaration.h +136 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-doc-handler.h +298 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-enc-handler.h +94 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-fonts.h +315 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-input.h +174 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-num.h +127 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-om-parser.h +98 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-parser.h +128 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-parsing-location.h +70 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-prop-list.h +80 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-pseudo.h +64 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-rgb.h +94 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-sel-eng.h +110 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-selector.h +95 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-simple-sel.h +130 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-statement.h +440 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-string.h +76 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-style.h +339 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-stylesheet.h +102 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-term.h +190 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-tknzr.h +115 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-token.h +212 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-utils.h +246 -0
- data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +17 -0
- data/vendor/local/include/libcroco-0.6/libcroco/libcroco.h +44 -0
- data/vendor/local/include/librsvg-2.0/librsvg/librsvg-enum-types.h +24 -0
- data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +28 -0
- data/vendor/local/include/librsvg-2.0/librsvg/rsvg-cairo.h +42 -0
- data/vendor/local/include/librsvg-2.0/librsvg/rsvg.h +264 -0
- data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
- data/vendor/local/lib/libcroco-0.6.a +0 -0
- data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
- data/vendor/local/lib/libcroco-0.6.la +41 -0
- data/vendor/local/lib/librsvg-2.a +0 -0
- data/vendor/local/lib/librsvg-2.dll.a +0 -0
- data/vendor/local/lib/librsvg-2.la +41 -0
- data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +11 -0
- data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +15 -0
- data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +754 -0
- data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +113 -0
- data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/index.html +109 -0
- data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +582 -0
- data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +337 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +203 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +240 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +642 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +517 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +164 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +670 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1102 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +265 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +380 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +205 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +421 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +141 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +503 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +346 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +246 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +240 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1408 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +137 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +384 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +158 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +304 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +312 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +428 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +334 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +80 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +511 -0
- data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1420 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +55 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +55 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +43 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +47 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +46 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +39 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +54 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +53 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +100 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +323 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +88 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +106 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +57 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +38 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +94 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +360 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +484 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +154 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +142 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +57 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
- data/vendor/local/share/license/libcroco/AUTHORS +13 -0
- data/vendor/local/share/license/libcroco/COPYING +481 -0
- data/vendor/local/share/license/libcroco/COPYING.LIB +481 -0
- data/vendor/local/share/license/librsvg/AUTHORS +1 -0
- data/vendor/local/share/license/librsvg/COPYING +340 -0
- data/vendor/local/share/license/librsvg/COPYING.LIB +482 -0
- data/vendor/local/share/man/man1/rsvg-convert.1 +55 -0
- metadata +209 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
#ifndef LIBCROCO_VERSION_NUMBER
|
2
|
+
#define LIBCROCO_VERSION_NUMBER 608
|
3
|
+
#endif
|
4
|
+
|
5
|
+
#ifndef LIBCROCO_VERSION
|
6
|
+
#define LIBCROCO_VERSION "0.6.8"
|
7
|
+
#endif
|
8
|
+
|
9
|
+
#ifndef G_DISABLE_CHECKS
|
10
|
+
#if 0
|
11
|
+
#define G_DISABLE_CHECKS 0
|
12
|
+
#endif
|
13
|
+
#endif
|
14
|
+
|
15
|
+
#ifndef CROCO_HAVE_LIBXML2
|
16
|
+
#define CROCO_HAVE_LIBXML2 (1)
|
17
|
+
#endif
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/*
|
2
|
+
* This file is part of The Croco Library
|
3
|
+
*
|
4
|
+
* Copyright (C) 2002-2003 Dodji Seketeli <dodji@seketeli.org>
|
5
|
+
*
|
6
|
+
* This program is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of version 2.1 of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation.
|
9
|
+
*
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
* GNU General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General Public License
|
16
|
+
* along with this program; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
18
|
+
* USA
|
19
|
+
*/
|
20
|
+
|
21
|
+
#ifndef __LIBCROCO_H__
|
22
|
+
#define __LIBCROCO_H__
|
23
|
+
|
24
|
+
#include "libcroco-config.h"
|
25
|
+
|
26
|
+
#include "cr-utils.h"
|
27
|
+
#include "cr-pseudo.h"
|
28
|
+
#include "cr-term.h"
|
29
|
+
#include "cr-attr-sel.h"
|
30
|
+
#include "cr-simple-sel.h"
|
31
|
+
#include "cr-selector.h"
|
32
|
+
#include "cr-enc-handler.h"
|
33
|
+
#include "cr-doc-handler.h"
|
34
|
+
#include "cr-input.h"
|
35
|
+
#include "cr-parser.h"
|
36
|
+
#include "cr-statement.h"
|
37
|
+
#include "cr-stylesheet.h"
|
38
|
+
#include "cr-om-parser.h"
|
39
|
+
#include "cr-prop-list.h"
|
40
|
+
#include "cr-sel-eng.h"
|
41
|
+
#include "cr-style.h"
|
42
|
+
#include "cr-string.h"
|
43
|
+
|
44
|
+
#endif /*__LIBCROCO_H__*/
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
|
5
|
+
#warning "Including <librsvg/librsvg-enum-types.h> directly is deprecated."
|
6
|
+
#endif
|
7
|
+
|
8
|
+
#ifndef __LIBRSVG_ENUM_TYPES_H__
|
9
|
+
#define __LIBRSVG_ENUM_TYPES_H__
|
10
|
+
|
11
|
+
#include <glib-object.h>
|
12
|
+
|
13
|
+
G_BEGIN_DECLS
|
14
|
+
/* enumerations from "rsvg.h" */
|
15
|
+
GType rsvg_error_get_type (void);
|
16
|
+
#define RSVG_TYPE_ERROR (rsvg_error_get_type())
|
17
|
+
GType rsvg_handle_flags_get_type (void);
|
18
|
+
#define RSVG_TYPE_HANDLE_FLAGS (rsvg_handle_flags_get_type())
|
19
|
+
G_END_DECLS
|
20
|
+
|
21
|
+
#endif /* __LIBRSVG_ENUM_TYPES_H__ */
|
22
|
+
|
23
|
+
|
24
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
|
2
|
+
#warning "Including <librsvg/librsvg-features.h> directly is deprecated."
|
3
|
+
#endif
|
4
|
+
|
5
|
+
#ifndef LIBRSVG_FEATURES_H
|
6
|
+
#define LIBRSVG_FEATURES_H
|
7
|
+
|
8
|
+
#define LIBRSVG_MAJOR_VERSION (2)
|
9
|
+
#define LIBRSVG_MINOR_VERSION (40)
|
10
|
+
#define LIBRSVG_MICRO_VERSION (6)
|
11
|
+
#define LIBRSVG_VERSION "2.40.6"
|
12
|
+
|
13
|
+
#define LIBRSVG_CHECK_VERSION(major,minor,micro) \
|
14
|
+
(LIBRSVG_MAJOR_VERSION > (major) || \
|
15
|
+
(LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION > (minor)) || \
|
16
|
+
(LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION == (minor) && LIBRSVG_MICRO_VERSION >= (micro)))
|
17
|
+
|
18
|
+
#ifndef __GI_SCANNER__
|
19
|
+
#define LIBRSVG_HAVE_SVGZ (TRUE)
|
20
|
+
#define LIBRSVG_HAVE_CSS (TRUE)
|
21
|
+
|
22
|
+
#define LIBRSVG_CHECK_FEATURE(FEATURE) (defined(LIBRSVG_HAVE_##FEATURE) && LIBRSVG_HAVE_##FEATURE)
|
23
|
+
#endif
|
24
|
+
|
25
|
+
extern const guint librsvg_major_version, librsvg_minor_version, librsvg_micro_version;
|
26
|
+
extern const char librsvg_version[];
|
27
|
+
|
28
|
+
#endif
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
|
+
/* vim: set sw=4 sts=4 ts=4 expandtab: */
|
3
|
+
/*
|
4
|
+
rsvg-cairo.h: SAX-based renderer for SVG files using cairo
|
5
|
+
|
6
|
+
Copyright (C) 2005 Red Hat, Inc.
|
7
|
+
|
8
|
+
This program is free software; you can redistribute it and/or
|
9
|
+
modify it under the terms of the GNU Library General Public License as
|
10
|
+
published by the Free Software Foundation; either version 2 of the
|
11
|
+
License, or (at your option) any later version.
|
12
|
+
|
13
|
+
This program is distributed in the hope that it will be useful,
|
14
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
Library General Public License for more details.
|
17
|
+
|
18
|
+
You should have received a copy of the GNU Library General Public
|
19
|
+
License along with this program; if not, write to the
|
20
|
+
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
21
|
+
Boston, MA 02111-1307, USA.
|
22
|
+
|
23
|
+
Author: Carl Worth <cworth@cworth.org>
|
24
|
+
*/
|
25
|
+
|
26
|
+
#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
|
27
|
+
#warning "Including <librsvg/rsvg-cairo.h> directly is deprecated."
|
28
|
+
#endif
|
29
|
+
|
30
|
+
#ifndef RSVG_CAIRO_H
|
31
|
+
#define RSVG_CAIRO_H
|
32
|
+
|
33
|
+
#include <cairo.h>
|
34
|
+
|
35
|
+
G_BEGIN_DECLS
|
36
|
+
|
37
|
+
gboolean rsvg_handle_render_cairo (RsvgHandle * handle, cairo_t * cr);
|
38
|
+
gboolean rsvg_handle_render_cairo_sub (RsvgHandle * handle, cairo_t * cr, const char *id);
|
39
|
+
|
40
|
+
G_END_DECLS
|
41
|
+
|
42
|
+
#endif
|
@@ -0,0 +1,264 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
|
+
/* vim: set sw=4 sts=4 ts=4 expandtab: */
|
3
|
+
/*
|
4
|
+
rsvg.h: SAX-based renderer for SVG files into a GdkPixbuf.
|
5
|
+
|
6
|
+
Copyright (C) 2000 Eazel, Inc.
|
7
|
+
|
8
|
+
This program is free software; you can redistribute it and/or
|
9
|
+
modify it under the terms of the GNU Library General Public License as
|
10
|
+
published by the Free Software Foundation; either version 2 of the
|
11
|
+
License, or (at your option) any later version.
|
12
|
+
|
13
|
+
This program is distributed in the hope that it will be useful,
|
14
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
Library General Public License for more details.
|
17
|
+
|
18
|
+
You should have received a copy of the GNU Library General Public
|
19
|
+
License along with this program; if not, write to the
|
20
|
+
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
21
|
+
Boston, MA 02111-1307, USA.
|
22
|
+
|
23
|
+
Author: Raph Levien <raph@artofcode.com>
|
24
|
+
*/
|
25
|
+
|
26
|
+
#ifndef RSVG_H
|
27
|
+
#define RSVG_H
|
28
|
+
|
29
|
+
#define __RSVG_RSVG_H_INSIDE__
|
30
|
+
|
31
|
+
#include <glib-object.h>
|
32
|
+
#include <gio/gio.h>
|
33
|
+
|
34
|
+
#include <gdk-pixbuf/gdk-pixbuf.h>
|
35
|
+
|
36
|
+
G_BEGIN_DECLS
|
37
|
+
|
38
|
+
#if defined(RSVG_DISABLE_DEPRECATION_WARNINGS) || !GLIB_CHECK_VERSION (2, 31, 0)
|
39
|
+
#define RSVG_DEPRECATED
|
40
|
+
#define RSVG_DEPRECATED_FOR(f)
|
41
|
+
#else
|
42
|
+
#define RSVG_DEPRECATED G_DEPRECATED
|
43
|
+
#define RSVG_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f)
|
44
|
+
#endif
|
45
|
+
|
46
|
+
#define RSVG_TYPE_HANDLE (rsvg_handle_get_type ())
|
47
|
+
#define RSVG_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RSVG_TYPE_HANDLE, RsvgHandle))
|
48
|
+
#define RSVG_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RSVG_TYPE_HANDLE, RsvgHandleClass))
|
49
|
+
#define RSVG_IS_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RSVG_TYPE_HANDLE))
|
50
|
+
#define RSVG_IS_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RSVG_TYPE_HANDLE))
|
51
|
+
#define RSVG_HANDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RSVG_TYPE_HANDLE, RsvgHandleClass))
|
52
|
+
|
53
|
+
GType rsvg_handle_get_type (void);
|
54
|
+
|
55
|
+
/**
|
56
|
+
* RsvgError:
|
57
|
+
* @RSVG_ERROR_FAILED: the request failed
|
58
|
+
*
|
59
|
+
* An enumeration representing possible errors
|
60
|
+
*/
|
61
|
+
typedef enum {
|
62
|
+
RSVG_ERROR_FAILED
|
63
|
+
} RsvgError;
|
64
|
+
|
65
|
+
#define RSVG_ERROR (rsvg_error_quark ())
|
66
|
+
GQuark rsvg_error_quark (void) G_GNUC_CONST;
|
67
|
+
|
68
|
+
/**
|
69
|
+
* RsvgHandle:
|
70
|
+
*
|
71
|
+
* The #RsvgHandle is an object representing the parsed form of a SVG
|
72
|
+
*/
|
73
|
+
typedef struct _RsvgHandle RsvgHandle;
|
74
|
+
typedef struct RsvgHandlePrivate RsvgHandlePrivate;
|
75
|
+
typedef struct _RsvgHandleClass RsvgHandleClass;
|
76
|
+
typedef struct _RsvgDimensionData RsvgDimensionData;
|
77
|
+
typedef struct _RsvgPositionData RsvgPositionData;
|
78
|
+
|
79
|
+
/**
|
80
|
+
* RsvgHandleClass:
|
81
|
+
* @parent: parent class
|
82
|
+
*
|
83
|
+
* Class structure for #RsvgHandle
|
84
|
+
*/
|
85
|
+
struct _RsvgHandleClass {
|
86
|
+
GObjectClass parent;
|
87
|
+
|
88
|
+
/*< private >*/
|
89
|
+
gpointer _abi_padding[15];
|
90
|
+
};
|
91
|
+
|
92
|
+
struct _RsvgHandle {
|
93
|
+
GObject parent;
|
94
|
+
|
95
|
+
/*< private >*/
|
96
|
+
|
97
|
+
RsvgHandlePrivate *priv;
|
98
|
+
|
99
|
+
gpointer _abi_padding[15];
|
100
|
+
};
|
101
|
+
|
102
|
+
/**
|
103
|
+
* RsvgDimensionData:
|
104
|
+
* @width: SVG's width, in pixels
|
105
|
+
* @height: SVG's height, in pixels
|
106
|
+
* @em: em
|
107
|
+
* @ex: ex
|
108
|
+
*/
|
109
|
+
struct _RsvgDimensionData {
|
110
|
+
int width;
|
111
|
+
int height;
|
112
|
+
gdouble em;
|
113
|
+
gdouble ex;
|
114
|
+
};
|
115
|
+
|
116
|
+
/**
|
117
|
+
* RsvgPositionData:
|
118
|
+
* @x: position on the x axis
|
119
|
+
* @y: position on the y axis
|
120
|
+
*
|
121
|
+
* Position of an SVG fragment.
|
122
|
+
*/
|
123
|
+
struct _RsvgPositionData {
|
124
|
+
int x;
|
125
|
+
int y;
|
126
|
+
};
|
127
|
+
|
128
|
+
void rsvg_cleanup (void);
|
129
|
+
|
130
|
+
void rsvg_set_default_dpi (double dpi);
|
131
|
+
void rsvg_set_default_dpi_x_y (double dpi_x, double dpi_y);
|
132
|
+
|
133
|
+
void rsvg_handle_set_dpi (RsvgHandle * handle, double dpi);
|
134
|
+
void rsvg_handle_set_dpi_x_y (RsvgHandle * handle, double dpi_x, double dpi_y);
|
135
|
+
|
136
|
+
RsvgHandle *rsvg_handle_new (void);
|
137
|
+
gboolean rsvg_handle_write (RsvgHandle * handle, const guchar * buf,
|
138
|
+
gsize count, GError ** error);
|
139
|
+
gboolean rsvg_handle_close (RsvgHandle * handle, GError ** error);
|
140
|
+
GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle * handle);
|
141
|
+
GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle * handle, const char *id);
|
142
|
+
|
143
|
+
const char *rsvg_handle_get_base_uri (RsvgHandle * handle);
|
144
|
+
void rsvg_handle_set_base_uri (RsvgHandle * handle, const char *base_uri);
|
145
|
+
|
146
|
+
void rsvg_handle_get_dimensions (RsvgHandle * handle, RsvgDimensionData * dimension_data);
|
147
|
+
|
148
|
+
gboolean rsvg_handle_get_dimensions_sub (RsvgHandle * handle, RsvgDimensionData * dimension_data, const char *id);
|
149
|
+
gboolean rsvg_handle_get_position_sub (RsvgHandle * handle, RsvgPositionData * position_data, const char *id);
|
150
|
+
|
151
|
+
gboolean rsvg_handle_has_sub (RsvgHandle * handle, const char *id);
|
152
|
+
|
153
|
+
/* GIO APIs */
|
154
|
+
|
155
|
+
/**
|
156
|
+
* RsvgHandleFlags:
|
157
|
+
* @RSVG_HANDLE_FLAGS_NONE: none
|
158
|
+
* @RSVG_HANDLE_FLAG_UNLIMITED: Allow any SVG XML without size limitations.
|
159
|
+
* For security reasons, this should only be used for trusted input!
|
160
|
+
* Since: 2.40.3
|
161
|
+
* @RSVG_HANDLE_FLAG_KEEP_IMAGE_DATA: Keeps the image data when loading images,
|
162
|
+
* for use by cairo when painting to e.g. a PDF surface. This will make the
|
163
|
+
* resulting PDF file smaller and faster.
|
164
|
+
* Since: 2.40.3
|
165
|
+
*/
|
166
|
+
typedef enum /*< flags >*/
|
167
|
+
{
|
168
|
+
RSVG_HANDLE_FLAGS_NONE = 0,
|
169
|
+
RSVG_HANDLE_FLAG_UNLIMITED = 1 << 0,
|
170
|
+
RSVG_HANDLE_FLAG_KEEP_IMAGE_DATA = 1 << 1
|
171
|
+
} RsvgHandleFlags;
|
172
|
+
|
173
|
+
RsvgHandle *rsvg_handle_new_with_flags (RsvgHandleFlags flags);
|
174
|
+
|
175
|
+
void rsvg_handle_set_base_gfile (RsvgHandle *handle,
|
176
|
+
GFile *base_file);
|
177
|
+
|
178
|
+
gboolean rsvg_handle_read_stream_sync (RsvgHandle *handle,
|
179
|
+
GInputStream *stream,
|
180
|
+
GCancellable *cancellable,
|
181
|
+
GError **error);
|
182
|
+
|
183
|
+
RsvgHandle *rsvg_handle_new_from_gfile_sync (GFile *file,
|
184
|
+
RsvgHandleFlags flags,
|
185
|
+
GCancellable *cancellable,
|
186
|
+
GError **error);
|
187
|
+
|
188
|
+
RsvgHandle *rsvg_handle_new_from_stream_sync (GInputStream *input_stream,
|
189
|
+
GFile *base_file,
|
190
|
+
RsvgHandleFlags flags,
|
191
|
+
GCancellable *cancellable,
|
192
|
+
GError **error);
|
193
|
+
|
194
|
+
RsvgHandle *rsvg_handle_new_from_data (const guint8 * data, gsize data_len, GError ** error);
|
195
|
+
RsvgHandle *rsvg_handle_new_from_file (const gchar * file_name, GError ** error);
|
196
|
+
|
197
|
+
/* BEGIN deprecated APIs. Do not use! */
|
198
|
+
|
199
|
+
#ifndef __GI_SCANNER__
|
200
|
+
|
201
|
+
RSVG_DEPRECATED_FOR(g_type_init)
|
202
|
+
void rsvg_init (void);
|
203
|
+
RSVG_DEPRECATED
|
204
|
+
void rsvg_term (void);
|
205
|
+
|
206
|
+
RSVG_DEPRECATED_FOR(g_object_unref)
|
207
|
+
void rsvg_handle_free (RsvgHandle * handle);
|
208
|
+
|
209
|
+
/**
|
210
|
+
* RsvgSizeFunc:
|
211
|
+
* @width: (out): the width of the SVG
|
212
|
+
* @height: (out): the height of the SVG
|
213
|
+
* @user_data: user data
|
214
|
+
*
|
215
|
+
* Function to let a user of the library specify the SVG's dimensions
|
216
|
+
*
|
217
|
+
* Deprecated: Set up a cairo matrix and use rsvg_handle_render_cairo() instead.
|
218
|
+
*/
|
219
|
+
typedef /* RSVG_DEPRECATED */ void (*RsvgSizeFunc) (gint * width, gint * height, gpointer user_data);
|
220
|
+
|
221
|
+
RSVG_DEPRECATED
|
222
|
+
void rsvg_handle_set_size_callback (RsvgHandle * handle,
|
223
|
+
RsvgSizeFunc size_func,
|
224
|
+
gpointer user_data, GDestroyNotify user_data_destroy);
|
225
|
+
|
226
|
+
/* GdkPixbuf convenience API */
|
227
|
+
|
228
|
+
RSVG_DEPRECATED
|
229
|
+
GdkPixbuf *rsvg_pixbuf_from_file (const gchar * file_name, GError ** error);
|
230
|
+
RSVG_DEPRECATED
|
231
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar * file_name,
|
232
|
+
double x_zoom, double y_zoom, GError ** error);
|
233
|
+
RSVG_DEPRECATED
|
234
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar * file_name, gint width, gint height,
|
235
|
+
GError ** error);
|
236
|
+
RSVG_DEPRECATED
|
237
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar * file_name,
|
238
|
+
gint max_width, gint max_height, GError ** error);
|
239
|
+
RSVG_DEPRECATED
|
240
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar * file_name,
|
241
|
+
double x_zoom,
|
242
|
+
double y_zoom,
|
243
|
+
gint max_width, gint max_height, GError ** error);
|
244
|
+
|
245
|
+
RSVG_DEPRECATED
|
246
|
+
const char *rsvg_handle_get_title (RsvgHandle * handle);
|
247
|
+
RSVG_DEPRECATED
|
248
|
+
const char *rsvg_handle_get_desc (RsvgHandle * handle);
|
249
|
+
RSVG_DEPRECATED
|
250
|
+
const char *rsvg_handle_get_metadata (RsvgHandle * handle);
|
251
|
+
|
252
|
+
#endif /* !__GI_SCANNER__ */
|
253
|
+
|
254
|
+
/* END deprecated APIs. */
|
255
|
+
|
256
|
+
G_END_DECLS
|
257
|
+
|
258
|
+
#include "librsvg-enum-types.h"
|
259
|
+
#include "librsvg-features.h"
|
260
|
+
#include "rsvg-cairo.h"
|
261
|
+
|
262
|
+
#undef __RSVG_RSVG_H_INSIDE__
|
263
|
+
|
264
|
+
#endif /* RSVG_H */
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# libcroco-0.6.la - a libtool library file
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2
|
3
|
+
#
|
4
|
+
# Please DO NOT delete this file!
|
5
|
+
# It is necessary for linking the library.
|
6
|
+
|
7
|
+
# The name that we can dlopen(3).
|
8
|
+
dlname='../bin/libcroco-0.6-3.dll'
|
9
|
+
|
10
|
+
# Names of this library.
|
11
|
+
library_names='libcroco-0.6.dll.a'
|
12
|
+
|
13
|
+
# The name of the static archive.
|
14
|
+
old_library='libcroco-0.6.a'
|
15
|
+
|
16
|
+
# Linker flags that can not go in dependency_libs.
|
17
|
+
inherited_linker_flags=''
|
18
|
+
|
19
|
+
# Libraries that this one depends upon.
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/rcairo.win64/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/rsvg2/vendor/local/lib /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libglib-2.0.la -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libiconv.la -lpthread /home/vagrant/rcairo.win64/vendor/local/lib/libxml2.la -lz -lws2_32'
|
21
|
+
|
22
|
+
# Names of additional weak libraries provided by this library
|
23
|
+
weak_library_names=''
|
24
|
+
|
25
|
+
# Version information for libcroco-0.6.
|
26
|
+
current=3
|
27
|
+
age=0
|
28
|
+
revision=1
|
29
|
+
|
30
|
+
# Is this an already installed library?
|
31
|
+
installed=yes
|
32
|
+
|
33
|
+
# Should we warn about portability when linking against -modules?
|
34
|
+
shouldnotlink=no
|
35
|
+
|
36
|
+
# Files to dlopen/dlpreopen
|
37
|
+
dlopen=''
|
38
|
+
dlpreopen=''
|
39
|
+
|
40
|
+
# Directory that this library needs to be installed in:
|
41
|
+
libdir='/home/vagrant/ruby-gnome2.win64/rsvg2/vendor/local/lib'
|