rsvg2 2.2.5-x86-mingw32 → 3.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/rsvg2/extconf.rb +1 -1
- data/ext/rsvg2/rbrsvg.c +2 -15
- data/ext/rsvg2/rbrsvghandle.c +44 -197
- data/ext/rsvg2/rsvg2.h +13 -19
- 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 +26 -11
- data/sample/svg-viewer.rb +2 -2
- data/test/rsvg2-test-utils.rb +11 -0
- data/test/test-handle.rb +4 -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/librsvg-2.0/librsvg/librsvg-features.h +2 -2
- 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 +2 -2
- 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 +2 -2
- data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +2 -2
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +724 -1039
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +32 -29
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +19 -16
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +16 -13
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +17 -14
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +20 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +15 -12
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +22 -17
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +23 -18
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +36 -31
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +85 -80
- 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 +4 -4
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +28 -31
- 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 +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +15 -15
- 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 +59 -55
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +190 -247
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +239 -336
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +70 -95
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +37 -77
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +104 -314
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
- metadata +4 -7
- 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/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
data/sample/svg-viewer.rb
CHANGED
@@ -27,11 +27,11 @@ window = Gtk::Window.new
|
|
27
27
|
window.set_default_size(width, height)
|
28
28
|
area = Gtk::DrawingArea.new
|
29
29
|
|
30
|
-
window.signal_connect(
|
30
|
+
window.signal_connect(:destroy) do
|
31
31
|
Gtk.main_quit
|
32
32
|
end
|
33
33
|
|
34
|
-
area.signal_connect(
|
34
|
+
area.signal_connect(:expose_event) do |widget, event|
|
35
35
|
context = widget.window.create_cairo_context
|
36
36
|
window_width, window_height = widget.window.size
|
37
37
|
context.scale(window_width.to_f / width, window_height.to_f / height)
|
data/test/rsvg2-test-utils.rb
CHANGED
@@ -20,4 +20,15 @@ require "test/unit/notify"
|
|
20
20
|
require "fileutils"
|
21
21
|
|
22
22
|
module RSVG2TestUtils
|
23
|
+
def later_version?(major, minor, micro=nil)
|
24
|
+
micro ||= 0
|
25
|
+
(RSVG::BUILD_VERSION <=> [major, minor, micro]) >= 0
|
26
|
+
end
|
27
|
+
|
28
|
+
def only_rsvg_version(major, minor, micro=nil)
|
29
|
+
micro ||= 0
|
30
|
+
unless later_version?(major, minor, micro)
|
31
|
+
omit("Require librsvg >= #{major}.#{minor}.#{micro}")
|
32
|
+
end
|
33
|
+
end
|
23
34
|
end
|
data/test/test-handle.rb
CHANGED
@@ -15,6 +15,8 @@
|
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
17
|
class TestHandle < Test::Unit::TestCase
|
18
|
+
include RSVG2TestUtils
|
19
|
+
|
18
20
|
sub_test_case ".new_from_file" do
|
19
21
|
sub_test_case "options" do
|
20
22
|
def setup
|
@@ -68,12 +70,14 @@ class TestHandle < Test::Unit::TestCase
|
|
68
70
|
end
|
69
71
|
|
70
72
|
def test_no_option
|
73
|
+
only_rsvg_version(2, 40, 3)
|
71
74
|
assert_raise(RSVG::Error::Failed) do
|
72
75
|
RSVG::Handle.new_from_file(@large_svg_path)
|
73
76
|
end
|
74
77
|
end
|
75
78
|
|
76
79
|
def test_unlimited
|
80
|
+
only_rsvg_version(2, 40, 3)
|
77
81
|
handle = RSVG::Handle.new_from_file(@large_svg_path,
|
78
82
|
:flags => :flag_unlimited)
|
79
83
|
assert_equal([0, 0, 0.0, 0.0],
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -7,8 +7,8 @@
|
|
7
7
|
|
8
8
|
#define LIBRSVG_MAJOR_VERSION (2)
|
9
9
|
#define LIBRSVG_MINOR_VERSION (40)
|
10
|
-
#define LIBRSVG_MICRO_VERSION (
|
11
|
-
#define LIBRSVG_VERSION "2.40.
|
10
|
+
#define LIBRSVG_MICRO_VERSION (9)
|
11
|
+
#define LIBRSVG_VERSION "2.40.9"
|
12
12
|
|
13
13
|
#define LIBRSVG_CHECK_VERSION(major,minor,micro) \
|
14
14
|
(LIBRSVG_MAJOR_VERSION > (major) || \
|
Binary file
|
Binary file
|
Binary file
|
@@ -14,10 +14,10 @@ library_names='libcroco-0.6.dll.a'
|
|
14
14
|
old_library='libcroco-0.6.a'
|
15
15
|
|
16
16
|
# Linker flags that can not go in dependency_libs.
|
17
|
-
inherited_linker_flags=''
|
17
|
+
inherited_linker_flags=' -pthread'
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/rsvg2/vendor/local/lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/rsvg2/vendor/local/lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la /home/vagrant/rcairo.win32/vendor/local/lib/libxml2.la -lz -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
Binary file
|
Binary file
|
@@ -17,7 +17,7 @@ old_library='librsvg-2.a'
|
|
17
17
|
inherited_linker_flags=' -pthread'
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/rsvg2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib /home/vagrant/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib/libgdk_pixbuf-2.0.la -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la -ldnsapi -liphlpapi /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpangocairo-1.0.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpangoft2-1.0.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libharfbuzz.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpangowin32-1.0.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpango-1.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgthread-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la /home/vagrant/rcairo.win32/vendor/local/lib/libcairo.la /home/vagrant/rcairo.win32/vendor/local/lib/libpixman-1.la /home/vagrant/rcairo.win32/vendor/local/lib/libfontconfig.la /home/vagrant/rcairo.win32/vendor/local/lib/libfreetype.la -lgdi32 -lmsimg32 /home/vagrant/rcairo.win32/vendor/local/lib/libpng16.la /home/vagrant/ruby-gnome2.win32/rsvg2/vendor/local/lib/libcroco-0.6.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/rsvg2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib /home/vagrant/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib/libgdk_pixbuf-2.0.la -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la -ldnsapi -liphlpapi /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpangocairo-1.0.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpangoft2-1.0.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libharfbuzz.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpangowin32-1.0.la /home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/libpango-1.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgthread-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la /home/vagrant/rcairo.win32/vendor/local/lib/libcairo.la -lpthread /home/vagrant/rcairo.win32/vendor/local/lib/libpixman-1.la /home/vagrant/rcairo.win32/vendor/local/lib/libfontconfig.la /home/vagrant/rcairo.win32/vendor/local/lib/libfreetype.la -lgdi32 -lmsimg32 /home/vagrant/rcairo.win32/vendor/local/lib/libpng16.la /home/vagrant/ruby-gnome2.win32/rsvg2/vendor/local/lib/libcroco-0.6.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la /home/vagrant/rcairo.win32/vendor/local/lib/libxml2.la -lz -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -25,7 +25,7 @@ weak_library_names=''
|
|
25
25
|
# Version information for librsvg-2.
|
26
26
|
current=42
|
27
27
|
age=40
|
28
|
-
revision=
|
28
|
+
revision=9
|
29
29
|
|
30
30
|
# Is this an already installed library?
|
31
31
|
installed=yes
|
@@ -678,7 +678,7 @@ from #GIOErrorEnum are also possible.</doc>
|
|
678
678
|
<constant name="MAJOR_VERSION" value="2" c:type="LIBRSVG_MAJOR_VERSION">
|
679
679
|
<type name="gint" c:type="gint"/>
|
680
680
|
</constant>
|
681
|
-
<constant name="MICRO_VERSION" value="
|
681
|
+
<constant name="MICRO_VERSION" value="9" c:type="LIBRSVG_MICRO_VERSION">
|
682
682
|
<type name="gint" c:type="gint"/>
|
683
683
|
</constant>
|
684
684
|
<constant name="MINOR_VERSION" value="40" c:type="LIBRSVG_MINOR_VERSION">
|
@@ -695,7 +695,7 @@ from #GIOErrorEnum are also possible.</doc>
|
|
695
695
|
<type name="gint" c:type="int"/>
|
696
696
|
</field>
|
697
697
|
</record>
|
698
|
-
<constant name="VERSION" value="2.40.
|
698
|
+
<constant name="VERSION" value="2.40.9" c:type="LIBRSVG_VERSION">
|
699
699
|
<type name="utf8" c:type="gchar*"/>
|
700
700
|
</constant>
|
701
701
|
<function name="cleanup" c:identifier="rsvg_cleanup" version="2.36">
|
@@ -2,28 +2,34 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>
|
5
|
+
<title>RsvgHandle</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="RSVG Libary Reference Manual">
|
8
8
|
<link rel="up" href="rsvg.html" title="Part I. API Reference">
|
9
9
|
<link rel="prev" href="rsvg.html" title="Part I. API Reference">
|
10
10
|
<link rel="next" href="rsvg-Using-RSVG-with-GIO.html" title="Using RSVG with GIO">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<
|
17
|
-
<a
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<td
|
24
|
-
<
|
25
|
-
|
26
|
-
</
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="rsvg.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="rsvg.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">RSVG Libary Reference Manual</th>
|
21
|
+
<td><a accesskey="n" href="rsvg-Using-RSVG-with-GIO.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#RsvgHandle.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#RsvgHandle.description" class="shortcut">Description</a>
|
27
|
+
|
|
28
|
+
<a href="#RsvgHandle.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
+
|
|
30
|
+
<a href="#RsvgHandle.properties" class="shortcut">Properties</a>
|
31
|
+
</td></tr>
|
32
|
+
</table>
|
27
33
|
<div class="refentry">
|
28
34
|
<a name="RsvgHandle"></a><div class="titlepage"></div>
|
29
35
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -31,1047 +37,858 @@
|
|
31
37
|
<h2><span class="refentrytitle"><a name="RsvgHandle.top_of_page"></a>RsvgHandle</span></h2>
|
32
38
|
<p>RsvgHandle — Create and manipulate SVG objects</p>
|
33
39
|
</td>
|
34
|
-
<td
|
40
|
+
<td valign="top" align="right"></td>
|
35
41
|
</tr></table></div>
|
42
|
+
<div class="refsynopsisdiv">
|
43
|
+
<a name="RsvgHandle.synopsis"></a><h2>Synopsis</h2>
|
44
|
+
<a name="RsvgError"></a><pre class="synopsis">enum <a class="link" href="RsvgHandle.html#RsvgError-enum" title="enum RsvgError">RsvgError</a>;
|
45
|
+
#define <a class="link" href="RsvgHandle.html#RSVG-ERROR:CAPS" title="RSVG_ERROR">RSVG_ERROR</a>
|
46
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> <a class="link" href="RsvgHandle.html#rsvg-error-quark" title="rsvg_error_quark ()">rsvg_error_quark</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
47
|
+
<a class="link" href="RsvgHandle.html#RsvgHandle-struct" title="RsvgHandle">RsvgHandle</a>;
|
48
|
+
typedef <a class="link" href="RsvgHandle.html#RsvgHandlePrivate" title="RsvgHandlePrivate">RsvgHandlePrivate</a>;
|
49
|
+
struct <a class="link" href="RsvgHandle.html#RsvgHandleClass" title="struct RsvgHandleClass">RsvgHandleClass</a>;
|
50
|
+
struct <a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData">RsvgDimensionData</a>;
|
51
|
+
struct <a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData">RsvgPositionData</a>;
|
52
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-cleanup" title="rsvg_cleanup ()">rsvg_cleanup</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
53
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi" title="rsvg_set_default_dpi ()">rsvg_set_default_dpi</a> (<em class="parameter"><code><span class="type">double</span> dpi</code></em>);
|
54
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi-x-y" title="rsvg_set_default_dpi_x_y ()">rsvg_set_default_dpi_x_y</a> (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
|
55
|
+
<em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);
|
56
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi" title="rsvg_handle_set_dpi ()">rsvg_handle_set_dpi</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
57
|
+
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);
|
58
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi-x-y" title="rsvg_handle_set_dpi_x_y ()">rsvg_handle_set_dpi_x_y</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
59
|
+
<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
|
60
|
+
<em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);
|
61
|
+
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new" title="rsvg_handle_new ()">rsvg_handle_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
62
|
+
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-with-flags" title="rsvg_handle_new_with_flags ()">rsvg_handle_new_with_flags</a> (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);
|
63
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()">rsvg_handle_write</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
64
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
|
65
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
|
66
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
67
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-close" title="rsvg_handle_close ()">rsvg_handle_close</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
68
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
69
|
+
const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-base-uri" title="rsvg_handle_get_base_uri ()">rsvg_handle_get_base_uri</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
|
70
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-base-uri" title="rsvg_handle_set_base_uri ()">rsvg_handle_set_base_uri</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
71
|
+
<em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>);
|
72
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions" title="rsvg_handle_get_dimensions ()">rsvg_handle_get_dimensions</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
73
|
+
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>);
|
74
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions-sub" title="rsvg_handle_get_dimensions_sub ()">rsvg_handle_get_dimensions_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
75
|
+
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>,
|
76
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);
|
77
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-get-position-sub" title="rsvg_handle_get_position_sub ()">rsvg_handle_get_position_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
78
|
+
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>,
|
79
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);
|
80
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-has-sub" title="rsvg_handle_has_sub ()">rsvg_handle_has_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
81
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);
|
82
|
+
const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-title" title="rsvg_handle_get_title ()">rsvg_handle_get_title</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
|
83
|
+
const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-desc" title="rsvg_handle_get_desc ()">rsvg_handle_get_desc</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
|
84
|
+
const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-metadata" title="rsvg_handle_get_metadata ()">rsvg_handle_get_metadata</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
|
85
|
+
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-data" title="rsvg_handle_new_from_data ()">rsvg_handle_new_from_data</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
|
86
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> data_len</code></em>,
|
87
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
88
|
+
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()">rsvg_handle_new_from_file</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
89
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
90
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="RsvgHandle.html#rsvg-error-get-type" title="rsvg_error_get_type ()">rsvg_error_get_type</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
91
|
+
#define <a class="link" href="RsvgHandle.html#RSVG-TYPE-ERROR:CAPS" title="RSVG_TYPE_ERROR">RSVG_TYPE_ERROR</a>
|
92
|
+
|
93
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-init" title="rsvg_init ()">rsvg_init</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
94
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-term" title="rsvg_term ()">rsvg_term</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
95
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-free" title="rsvg_handle_free ()">rsvg_handle_free</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
|
96
|
+
<span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-size-callback" title="rsvg_handle_set_size_callback ()">rsvg_handle_set_size_callback</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
97
|
+
<em class="parameter"><code><span class="type">RsvgSizeFunc</span> size_func</code></em>,
|
98
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
99
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> user_data_destroy</code></em>);
|
100
|
+
</pre>
|
101
|
+
</div>
|
102
|
+
<div class="refsect1">
|
103
|
+
<a name="RsvgHandle.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
104
|
+
<pre class="synopsis">
|
105
|
+
GEnum
|
106
|
+
+----RsvgError
|
107
|
+
</pre>
|
108
|
+
<pre class="synopsis">
|
109
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
110
|
+
+----RsvgHandle
|
111
|
+
</pre>
|
112
|
+
</div>
|
36
113
|
<div class="refsect1">
|
37
|
-
<a name="RsvgHandle.
|
38
|
-
<
|
114
|
+
<a name="RsvgHandle.properties"></a><h2>Properties</h2>
|
115
|
+
<pre class="synopsis">
|
116
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--base-uri" title='The "base-uri" property'>base-uri</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct
|
117
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--desc" title='The "desc" property'>desc</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
|
118
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--dpi-x" title='The "dpi-x" property'>dpi-x</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct
|
119
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--dpi-y" title='The "dpi-y" property'>dpi-y</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct
|
120
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--em" title='The "em" property'>em</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read
|
121
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--ex" title='The "ex" property'>ex</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read
|
122
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--flags" title='The "flags" property'>flags</a>" <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> : Read / Write / Construct Only
|
123
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--height" title='The "height" property'>height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read
|
124
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--metadata" title='The "metadata" property'>metadata</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
|
125
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--title" title='The "title" property'>title</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
|
126
|
+
"<a class="link" href="RsvgHandle.html#RsvgHandle--width" title='The "width" property'>width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read
|
127
|
+
</pre>
|
128
|
+
</div>
|
129
|
+
<div class="refsect1">
|
130
|
+
<a name="RsvgHandle.description"></a><h2>Description</h2>
|
131
|
+
<p>
|
132
|
+
librsvg is a component used within software applications to enable
|
133
|
+
support for SVG-format scalable graphics. In contrast to raster
|
134
|
+
formats, scalable vector graphics provide users and artists a way
|
135
|
+
to create, view, and provide imagery that is not limited to the
|
136
|
+
pixel or dot density that an output device is capable of.
|
137
|
+
</p>
|
138
|
+
<p>
|
139
|
+
Many software developers use the librsvg library to render
|
140
|
+
SVG graphics. It is lightweight and portable.
|
141
|
+
</p>
|
142
|
+
</div>
|
143
|
+
<div class="refsect1">
|
144
|
+
<a name="RsvgHandle.details"></a><h2>Details</h2>
|
145
|
+
<div class="refsect2">
|
146
|
+
<a name="RsvgError-enum"></a><h3>enum RsvgError</h3>
|
147
|
+
<pre class="programlisting">typedef enum {
|
148
|
+
RSVG_ERROR_FAILED
|
149
|
+
} RsvgError;
|
150
|
+
</pre>
|
151
|
+
<p>
|
152
|
+
An enumeration representing possible errors
|
153
|
+
</p>
|
154
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
39
155
|
<colgroup>
|
40
|
-
<col
|
41
|
-
<col
|
156
|
+
<col align="left" valign="top">
|
157
|
+
<col>
|
42
158
|
</colgroup>
|
43
|
-
<tbody>
|
44
|
-
<
|
45
|
-
<td
|
46
|
-
<td class="function_name"><a class="link" href="RsvgHandle.html#RSVG-ERROR:CAPS" title="RSVG_ERROR">RSVG_ERROR</a></td>
|
47
|
-
</tr>
|
48
|
-
<tr>
|
49
|
-
<td class="function_type">
|
50
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>
|
51
|
-
</td>
|
52
|
-
<td class="function_name">
|
53
|
-
<a class="link" href="RsvgHandle.html#rsvg-error-quark" title="rsvg_error_quark ()">rsvg_error_quark</a> <span class="c_punctuation">()</span>
|
54
|
-
</td>
|
55
|
-
</tr>
|
56
|
-
<tr>
|
57
|
-
<td class="function_type">
|
58
|
-
<span class="returnvalue">void</span>
|
59
|
-
</td>
|
60
|
-
<td class="function_name">
|
61
|
-
<a class="link" href="RsvgHandle.html#rsvg-cleanup" title="rsvg_cleanup ()">rsvg_cleanup</a> <span class="c_punctuation">()</span>
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<tr>
|
65
|
-
<td class="function_type">
|
66
|
-
<span class="returnvalue">void</span>
|
67
|
-
</td>
|
68
|
-
<td class="function_name">
|
69
|
-
<a class="link" href="RsvgHandle.html#rsvg-set-default-dpi" title="rsvg_set_default_dpi ()">rsvg_set_default_dpi</a> <span class="c_punctuation">()</span>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
<tr>
|
73
|
-
<td class="function_type">
|
74
|
-
<span class="returnvalue">void</span>
|
75
|
-
</td>
|
76
|
-
<td class="function_name">
|
77
|
-
<a class="link" href="RsvgHandle.html#rsvg-set-default-dpi-x-y" title="rsvg_set_default_dpi_x_y ()">rsvg_set_default_dpi_x_y</a> <span class="c_punctuation">()</span>
|
78
|
-
</td>
|
79
|
-
</tr>
|
80
|
-
<tr>
|
81
|
-
<td class="function_type">
|
82
|
-
<span class="returnvalue">void</span>
|
83
|
-
</td>
|
84
|
-
<td class="function_name">
|
85
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi" title="rsvg_handle_set_dpi ()">rsvg_handle_set_dpi</a> <span class="c_punctuation">()</span>
|
86
|
-
</td>
|
87
|
-
</tr>
|
88
|
-
<tr>
|
89
|
-
<td class="function_type">
|
90
|
-
<span class="returnvalue">void</span>
|
91
|
-
</td>
|
92
|
-
<td class="function_name">
|
93
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi-x-y" title="rsvg_handle_set_dpi_x_y ()">rsvg_handle_set_dpi_x_y</a> <span class="c_punctuation">()</span>
|
94
|
-
</td>
|
95
|
-
</tr>
|
96
|
-
<tr>
|
97
|
-
<td class="function_type">
|
98
|
-
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
|
99
|
-
</td>
|
100
|
-
<td class="function_name">
|
101
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-new" title="rsvg_handle_new ()">rsvg_handle_new</a> <span class="c_punctuation">()</span>
|
102
|
-
</td>
|
103
|
-
</tr>
|
104
|
-
<tr>
|
105
|
-
<td class="function_type">
|
106
|
-
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
|
107
|
-
</td>
|
108
|
-
<td class="function_name">
|
109
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-new-with-flags" title="rsvg_handle_new_with_flags ()">rsvg_handle_new_with_flags</a> <span class="c_punctuation">()</span>
|
110
|
-
</td>
|
111
|
-
</tr>
|
112
|
-
<tr>
|
113
|
-
<td class="function_type">
|
114
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
115
|
-
</td>
|
116
|
-
<td class="function_name">
|
117
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()">rsvg_handle_write</a> <span class="c_punctuation">()</span>
|
118
|
-
</td>
|
119
|
-
</tr>
|
120
|
-
<tr>
|
121
|
-
<td class="function_type">
|
122
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
123
|
-
</td>
|
124
|
-
<td class="function_name">
|
125
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-close" title="rsvg_handle_close ()">rsvg_handle_close</a> <span class="c_punctuation">()</span>
|
126
|
-
</td>
|
127
|
-
</tr>
|
128
|
-
<tr>
|
129
|
-
<td class="function_type">const <span class="returnvalue">char</span> *
|
130
|
-
</td>
|
131
|
-
<td class="function_name">
|
132
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-get-base-uri" title="rsvg_handle_get_base_uri ()">rsvg_handle_get_base_uri</a> <span class="c_punctuation">()</span>
|
133
|
-
</td>
|
134
|
-
</tr>
|
135
|
-
<tr>
|
136
|
-
<td class="function_type">
|
137
|
-
<span class="returnvalue">void</span>
|
138
|
-
</td>
|
139
|
-
<td class="function_name">
|
140
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-set-base-uri" title="rsvg_handle_set_base_uri ()">rsvg_handle_set_base_uri</a> <span class="c_punctuation">()</span>
|
141
|
-
</td>
|
142
|
-
</tr>
|
143
|
-
<tr>
|
144
|
-
<td class="function_type">
|
145
|
-
<span class="returnvalue">void</span>
|
146
|
-
</td>
|
147
|
-
<td class="function_name">
|
148
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions" title="rsvg_handle_get_dimensions ()">rsvg_handle_get_dimensions</a> <span class="c_punctuation">()</span>
|
149
|
-
</td>
|
150
|
-
</tr>
|
151
|
-
<tr>
|
152
|
-
<td class="function_type">
|
153
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
154
|
-
</td>
|
155
|
-
<td class="function_name">
|
156
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions-sub" title="rsvg_handle_get_dimensions_sub ()">rsvg_handle_get_dimensions_sub</a> <span class="c_punctuation">()</span>
|
157
|
-
</td>
|
158
|
-
</tr>
|
159
|
-
<tr>
|
160
|
-
<td class="function_type">
|
161
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
162
|
-
</td>
|
163
|
-
<td class="function_name">
|
164
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-get-position-sub" title="rsvg_handle_get_position_sub ()">rsvg_handle_get_position_sub</a> <span class="c_punctuation">()</span>
|
165
|
-
</td>
|
166
|
-
</tr>
|
167
|
-
<tr>
|
168
|
-
<td class="function_type">
|
169
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
170
|
-
</td>
|
171
|
-
<td class="function_name">
|
172
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-has-sub" title="rsvg_handle_has_sub ()">rsvg_handle_has_sub</a> <span class="c_punctuation">()</span>
|
173
|
-
</td>
|
174
|
-
</tr>
|
175
|
-
<tr>
|
176
|
-
<td class="function_type">const <span class="returnvalue">char</span> *
|
177
|
-
</td>
|
178
|
-
<td class="function_name">
|
179
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-get-title" title="rsvg_handle_get_title ()">rsvg_handle_get_title</a> <span class="c_punctuation">()</span>
|
180
|
-
</td>
|
181
|
-
</tr>
|
182
|
-
<tr>
|
183
|
-
<td class="function_type">const <span class="returnvalue">char</span> *
|
184
|
-
</td>
|
185
|
-
<td class="function_name">
|
186
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-get-desc" title="rsvg_handle_get_desc ()">rsvg_handle_get_desc</a> <span class="c_punctuation">()</span>
|
187
|
-
</td>
|
188
|
-
</tr>
|
189
|
-
<tr>
|
190
|
-
<td class="function_type">const <span class="returnvalue">char</span> *
|
191
|
-
</td>
|
192
|
-
<td class="function_name">
|
193
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-get-metadata" title="rsvg_handle_get_metadata ()">rsvg_handle_get_metadata</a> <span class="c_punctuation">()</span>
|
194
|
-
</td>
|
195
|
-
</tr>
|
196
|
-
<tr>
|
197
|
-
<td class="function_type">
|
198
|
-
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
|
199
|
-
</td>
|
200
|
-
<td class="function_name">
|
201
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-new-from-data" title="rsvg_handle_new_from_data ()">rsvg_handle_new_from_data</a> <span class="c_punctuation">()</span>
|
202
|
-
</td>
|
203
|
-
</tr>
|
204
|
-
<tr>
|
205
|
-
<td class="function_type">
|
206
|
-
<a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
|
207
|
-
</td>
|
208
|
-
<td class="function_name">
|
209
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()">rsvg_handle_new_from_file</a> <span class="c_punctuation">()</span>
|
210
|
-
</td>
|
211
|
-
</tr>
|
212
|
-
<tr>
|
213
|
-
<td class="function_type">
|
214
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
|
215
|
-
</td>
|
216
|
-
<td class="function_name">
|
217
|
-
<a class="link" href="RsvgHandle.html#rsvg-error-get-type" title="rsvg_error_get_type ()">rsvg_error_get_type</a> <span class="c_punctuation">()</span>
|
218
|
-
</td>
|
219
|
-
</tr>
|
220
|
-
<tr>
|
221
|
-
<td class="define_keyword">#define</td>
|
222
|
-
<td class="function_name"><a class="link" href="RsvgHandle.html#RSVG-TYPE-ERROR:CAPS" title="RSVG_TYPE_ERROR">RSVG_TYPE_ERROR</a></td>
|
223
|
-
</tr>
|
224
|
-
<tr>
|
225
|
-
<td class="function_type">
|
226
|
-
<span class="returnvalue">void</span>
|
227
|
-
</td>
|
228
|
-
<td class="function_name">
|
229
|
-
<a class="link" href="RsvgHandle.html#rsvg-init" title="rsvg_init ()">rsvg_init</a> <span class="c_punctuation">()</span>
|
230
|
-
</td>
|
231
|
-
</tr>
|
232
|
-
<tr>
|
233
|
-
<td class="function_type">
|
234
|
-
<span class="returnvalue">void</span>
|
235
|
-
</td>
|
236
|
-
<td class="function_name">
|
237
|
-
<a class="link" href="RsvgHandle.html#rsvg-term" title="rsvg_term ()">rsvg_term</a> <span class="c_punctuation">()</span>
|
238
|
-
</td>
|
239
|
-
</tr>
|
240
|
-
<tr>
|
241
|
-
<td class="function_type">
|
242
|
-
<span class="returnvalue">void</span>
|
243
|
-
</td>
|
244
|
-
<td class="function_name">
|
245
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-free" title="rsvg_handle_free ()">rsvg_handle_free</a> <span class="c_punctuation">()</span>
|
246
|
-
</td>
|
247
|
-
</tr>
|
248
|
-
<tr>
|
249
|
-
<td class="function_type">
|
250
|
-
<span class="returnvalue">void</span>
|
251
|
-
</td>
|
252
|
-
<td class="function_name">
|
253
|
-
<a class="link" href="RsvgHandle.html#rsvg-handle-set-size-callback" title="rsvg_handle_set_size_callback ()">rsvg_handle_set_size_callback</a> <span class="c_punctuation">()</span>
|
159
|
+
<tbody><tr>
|
160
|
+
<td><p><a name="RSVG-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">RSVG_ERROR_FAILED</code></span></p></td>
|
161
|
+
<td>the request failed
|
254
162
|
</td>
|
255
|
-
</tr>
|
256
|
-
</tbody>
|
163
|
+
</tr></tbody>
|
257
164
|
</table></div>
|
258
165
|
</div>
|
259
|
-
<
|
260
|
-
<
|
261
|
-
<
|
166
|
+
<hr>
|
167
|
+
<div class="refsect2">
|
168
|
+
<a name="RSVG-ERROR:CAPS"></a><h3>RSVG_ERROR</h3>
|
169
|
+
<pre class="programlisting">#define RSVG_ERROR</pre>
|
170
|
+
</div>
|
171
|
+
<hr>
|
172
|
+
<div class="refsect2">
|
173
|
+
<a name="rsvg-error-quark"></a><h3>rsvg_error_quark ()</h3>
|
174
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> rsvg_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
175
|
+
<p>
|
176
|
+
The error domain for RSVG
|
177
|
+
</p>
|
178
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
262
179
|
<colgroup>
|
263
|
-
<col
|
264
|
-
<col
|
265
|
-
|
180
|
+
<col align="left" valign="top">
|
181
|
+
<col>
|
182
|
+
</colgroup>
|
183
|
+
<tbody><tr>
|
184
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
185
|
+
<td>The error domain</td>
|
186
|
+
</tr></tbody>
|
187
|
+
</table></div>
|
188
|
+
</div>
|
189
|
+
<hr>
|
190
|
+
<div class="refsect2">
|
191
|
+
<a name="RsvgHandle-struct"></a><h3>RsvgHandle</h3>
|
192
|
+
<pre class="programlisting">typedef struct _RsvgHandle RsvgHandle;</pre>
|
193
|
+
<p>
|
194
|
+
The <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> is an object representing the parsed form of a SVG
|
195
|
+
</p>
|
196
|
+
</div>
|
197
|
+
<hr>
|
198
|
+
<div class="refsect2">
|
199
|
+
<a name="RsvgHandlePrivate"></a><h3>RsvgHandlePrivate</h3>
|
200
|
+
</div>
|
201
|
+
<hr>
|
202
|
+
<div class="refsect2">
|
203
|
+
<a name="RsvgHandleClass"></a><h3>struct RsvgHandleClass</h3>
|
204
|
+
<pre class="programlisting">struct RsvgHandleClass {
|
205
|
+
GObjectClass parent;
|
206
|
+
};
|
207
|
+
</pre>
|
208
|
+
<p>
|
209
|
+
Class structure for <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
210
|
+
</p>
|
211
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
212
|
+
<colgroup>
|
213
|
+
<col align="left" valign="top">
|
214
|
+
<col>
|
215
|
+
</colgroup>
|
216
|
+
<tbody><tr>
|
217
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="RsvgHandleClass.parent"></a>parent</code></em>;</span></p></td>
|
218
|
+
<td>parent class</td>
|
219
|
+
</tr></tbody>
|
220
|
+
</table></div>
|
221
|
+
</div>
|
222
|
+
<hr>
|
223
|
+
<div class="refsect2">
|
224
|
+
<a name="RsvgDimensionData"></a><h3>struct RsvgDimensionData</h3>
|
225
|
+
<pre class="programlisting">struct RsvgDimensionData {
|
226
|
+
int width;
|
227
|
+
int height;
|
228
|
+
gdouble em;
|
229
|
+
gdouble ex;
|
230
|
+
};
|
231
|
+
</pre>
|
232
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
233
|
+
<colgroup>
|
234
|
+
<col align="left" valign="top">
|
235
|
+
<col>
|
266
236
|
</colgroup>
|
267
237
|
<tbody>
|
268
238
|
<tr>
|
269
|
-
<td class="
|
270
|
-
<
|
271
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--base-uri" title="The “base-uri” property">base-uri</a></td>
|
272
|
-
<td class="property_flags">Read / Write / Construct</td>
|
273
|
-
</tr>
|
274
|
-
<tr>
|
275
|
-
<td class="property_type">
|
276
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
|
277
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--desc" title="The “desc” property">desc</a></td>
|
278
|
-
<td class="property_flags">Read</td>
|
279
|
-
</tr>
|
280
|
-
<tr>
|
281
|
-
<td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
282
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-x" title="The “dpi-x” property">dpi-x</a></td>
|
283
|
-
<td class="property_flags">Read / Write / Construct</td>
|
284
|
-
</tr>
|
285
|
-
<tr>
|
286
|
-
<td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
287
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-y" title="The “dpi-y” property">dpi-y</a></td>
|
288
|
-
<td class="property_flags">Read / Write / Construct</td>
|
289
|
-
</tr>
|
290
|
-
<tr>
|
291
|
-
<td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
292
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--em" title="The “em” property">em</a></td>
|
293
|
-
<td class="property_flags">Read</td>
|
294
|
-
</tr>
|
295
|
-
<tr>
|
296
|
-
<td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
297
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--ex" title="The “ex” property">ex</a></td>
|
298
|
-
<td class="property_flags">Read</td>
|
299
|
-
</tr>
|
300
|
-
<tr>
|
301
|
-
<td class="property_type"><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a></td>
|
302
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--flags" title="The “flags” property">flags</a></td>
|
303
|
-
<td class="property_flags">Read / Write / Construct Only</td>
|
239
|
+
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.width"></a>width</code></em>;</span></p></td>
|
240
|
+
<td>SVG's width, in pixels</td>
|
304
241
|
</tr>
|
305
242
|
<tr>
|
306
|
-
<td class="
|
307
|
-
<td
|
308
|
-
<td class="property_flags">Read</td>
|
243
|
+
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.height"></a>height</code></em>;</span></p></td>
|
244
|
+
<td>SVG's height, in pixels</td>
|
309
245
|
</tr>
|
310
246
|
<tr>
|
311
|
-
<td class="
|
312
|
-
<
|
313
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--metadata" title="The “metadata” property">metadata</a></td>
|
314
|
-
<td class="property_flags">Read</td>
|
247
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.em"></a>em</code></em>;</span></p></td>
|
248
|
+
<td>em</td>
|
315
249
|
</tr>
|
316
250
|
<tr>
|
317
|
-
<td class="
|
318
|
-
<
|
319
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--title" title="The “title” property">title</a></td>
|
320
|
-
<td class="property_flags">Read</td>
|
321
|
-
</tr>
|
322
|
-
<tr>
|
323
|
-
<td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
324
|
-
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--width" title="The “width” property">width</a></td>
|
325
|
-
<td class="property_flags">Read</td>
|
251
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.ex"></a>ex</code></em>;</span></p></td>
|
252
|
+
<td>ex</td>
|
326
253
|
</tr>
|
327
254
|
</tbody>
|
328
255
|
</table></div>
|
329
256
|
</div>
|
330
|
-
<
|
331
|
-
<
|
332
|
-
<
|
257
|
+
<hr>
|
258
|
+
<div class="refsect2">
|
259
|
+
<a name="RsvgPositionData"></a><h3>struct RsvgPositionData</h3>
|
260
|
+
<pre class="programlisting">struct RsvgPositionData {
|
261
|
+
int x;
|
262
|
+
int y;
|
263
|
+
};
|
264
|
+
</pre>
|
265
|
+
<p>
|
266
|
+
Position of an SVG fragment.
|
267
|
+
</p>
|
268
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
333
269
|
<colgroup>
|
334
|
-
<col
|
335
|
-
<col
|
270
|
+
<col align="left" valign="top">
|
271
|
+
<col>
|
336
272
|
</colgroup>
|
337
273
|
<tbody>
|
338
274
|
<tr>
|
339
|
-
<td class="
|
340
|
-
<td
|
341
|
-
</tr>
|
342
|
-
<tr>
|
343
|
-
<td class="datatype_keyword">struct</td>
|
344
|
-
<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandle-struct" title="struct RsvgHandle">RsvgHandle</a></td>
|
345
|
-
</tr>
|
346
|
-
<tr>
|
347
|
-
<td class="typedef_keyword">typedef</td>
|
348
|
-
<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandlePrivate" title="RsvgHandlePrivate">RsvgHandlePrivate</a></td>
|
349
|
-
</tr>
|
350
|
-
<tr>
|
351
|
-
<td class="datatype_keyword">struct</td>
|
352
|
-
<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandleClass" title="struct RsvgHandleClass">RsvgHandleClass</a></td>
|
275
|
+
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.x"></a>x</code></em>;</span></p></td>
|
276
|
+
<td>position on the x axis</td>
|
353
277
|
</tr>
|
354
278
|
<tr>
|
355
|
-
<td class="
|
356
|
-
<td
|
357
|
-
</tr>
|
358
|
-
<tr>
|
359
|
-
<td class="datatype_keyword">struct</td>
|
360
|
-
<td class="function_name"><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData">RsvgPositionData</a></td>
|
279
|
+
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.y"></a>y</code></em>;</span></p></td>
|
280
|
+
<td>position on the y axis</td>
|
361
281
|
</tr>
|
362
282
|
</tbody>
|
363
283
|
</table></div>
|
364
284
|
</div>
|
365
|
-
<div class="refsect1">
|
366
|
-
<a name="RsvgHandle.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
367
|
-
<pre class="screen"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
|
368
|
-
<span class="lineart">╰──</span> RsvgError
|
369
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
370
|
-
<span class="lineart">╰──</span> RsvgHandle
|
371
|
-
</pre>
|
372
|
-
</div>
|
373
|
-
<div class="refsect1">
|
374
|
-
<a name="RsvgHandle.description"></a><h2>Description</h2>
|
375
|
-
<p>librsvg is a component used within software applications to enable
|
376
|
-
support for SVG-format scalable graphics. In contrast to raster
|
377
|
-
formats, scalable vector graphics provide users and artists a way
|
378
|
-
to create, view, and provide imagery that is not limited to the
|
379
|
-
pixel or dot density that an output device is capable of.</p>
|
380
|
-
<p>Many software developers use the librsvg library to render
|
381
|
-
SVG graphics. It is lightweight and portable.</p>
|
382
|
-
</div>
|
383
|
-
<div class="refsect1">
|
384
|
-
<a name="RsvgHandle.functions_details"></a><h2>Functions</h2>
|
385
|
-
<div class="refsect2">
|
386
|
-
<a name="RSVG-ERROR:CAPS"></a><h3>RSVG_ERROR</h3>
|
387
|
-
<pre class="programlisting">#define RSVG_ERROR</pre>
|
388
|
-
</div>
|
389
285
|
<hr>
|
390
286
|
<div class="refsect2">
|
391
|
-
<a name="rsvg-
|
392
|
-
<pre class="programlisting"><
|
393
|
-
|
394
|
-
|
395
|
-
<
|
396
|
-
|
397
|
-
<p> The error domain</p>
|
398
|
-
<p></p>
|
399
|
-
</div>
|
400
|
-
</div>
|
401
|
-
<hr>
|
402
|
-
<div class="refsect2">
|
403
|
-
<a name="rsvg-cleanup"></a><h3>rsvg_cleanup ()</h3>
|
404
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
405
|
-
rsvg_cleanup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
406
|
-
<p>This function should not be called from normal programs.
|
407
|
-
See <code class="function">xmlCleanupParser()</code> for more information.</p>
|
287
|
+
<a name="rsvg-cleanup"></a><h3>rsvg_cleanup ()</h3>
|
288
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_cleanup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
289
|
+
<p>
|
290
|
+
This function should not be called from normal programs.
|
291
|
+
See <code class="function">xmlCleanupParser()</code> for more information.
|
292
|
+
</p>
|
408
293
|
<p class="since">Since 2.36</p>
|
409
294
|
</div>
|
410
295
|
<hr>
|
411
296
|
<div class="refsect2">
|
412
|
-
<a name="rsvg-set-default-dpi"></a><h3>rsvg_set_default_dpi
|
413
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
414
|
-
|
415
|
-
|
416
|
-
75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em>
|
417
|
-
|
418
|
-
|
419
|
-
<div class="
|
420
|
-
<a name="id-1.2.3.8.5.5"></a><h4>Parameters</h4>
|
421
|
-
<div class="informaltable"><table width="100%" border="0">
|
297
|
+
<a name="rsvg-set-default-dpi"></a><h3>rsvg_set_default_dpi ()</h3>
|
298
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_set_default_dpi (<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
|
299
|
+
<p>
|
300
|
+
Sets the DPI for the all future outgoing pixbufs. Common values are
|
301
|
+
75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> will
|
302
|
+
reset the DPI to whatever the default value happens to be.
|
303
|
+
</p>
|
304
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
422
305
|
<colgroup>
|
423
|
-
<col
|
424
|
-
<col
|
425
|
-
<col width="200px" class="parameters_annotations">
|
306
|
+
<col align="left" valign="top">
|
307
|
+
<col>
|
426
308
|
</colgroup>
|
427
309
|
<tbody><tr>
|
428
|
-
<td class="
|
429
|
-
<td
|
430
|
-
<td class="parameter_annotations"> </td>
|
310
|
+
<td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td>
|
311
|
+
<td>Dots Per Inch (aka Pixels Per Inch)</td>
|
431
312
|
</tr></tbody>
|
432
313
|
</table></div>
|
433
|
-
</div>
|
434
314
|
<p class="since">Since 2.8</p>
|
435
315
|
</div>
|
436
316
|
<hr>
|
437
317
|
<div class="refsect2">
|
438
|
-
<a name="rsvg-set-default-dpi-x-y"></a><h3>rsvg_set_default_dpi_x_y
|
439
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em>
|
444
|
-
|
445
|
-
|
446
|
-
<div class="
|
447
|
-
<a name="id-1.2.3.8.6.5"></a><h4>Parameters</h4>
|
448
|
-
<div class="informaltable"><table width="100%" border="0">
|
318
|
+
<a name="rsvg-set-default-dpi-x-y"></a><h3>rsvg_set_default_dpi_x_y ()</h3>
|
319
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_set_default_dpi_x_y (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
|
320
|
+
<em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
|
321
|
+
<p>
|
322
|
+
Sets the DPI for the all future outgoing pixbufs. Common values are
|
323
|
+
75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> will
|
324
|
+
reset the DPI to whatever the default value happens to be.
|
325
|
+
</p>
|
326
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
449
327
|
<colgroup>
|
450
|
-
<col
|
451
|
-
<col
|
452
|
-
<col width="200px" class="parameters_annotations">
|
328
|
+
<col align="left" valign="top">
|
329
|
+
<col>
|
453
330
|
</colgroup>
|
454
331
|
<tbody>
|
455
332
|
<tr>
|
456
|
-
<td class="
|
457
|
-
<td
|
458
|
-
<td class="parameter_annotations"> </td>
|
333
|
+
<td><p><span class="term"><em class="parameter"><code>dpi_x</code></em> :</span></p></td>
|
334
|
+
<td>Dots Per Inch (aka Pixels Per Inch)</td>
|
459
335
|
</tr>
|
460
336
|
<tr>
|
461
|
-
<td class="
|
462
|
-
<td
|
463
|
-
<td class="parameter_annotations"> </td>
|
337
|
+
<td><p><span class="term"><em class="parameter"><code>dpi_y</code></em> :</span></p></td>
|
338
|
+
<td>Dots Per Inch (aka Pixels Per Inch)</td>
|
464
339
|
</tr>
|
465
340
|
</tbody>
|
466
341
|
</table></div>
|
467
|
-
</div>
|
468
342
|
<p class="since">Since 2.8</p>
|
469
343
|
</div>
|
470
344
|
<hr>
|
471
345
|
<div class="refsect2">
|
472
|
-
<a name="rsvg-handle-set-dpi"></a><h3>rsvg_handle_set_dpi
|
473
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em>
|
478
|
-
|
479
|
-
|
480
|
-
<div class="
|
481
|
-
<a name="id-1.2.3.8.7.5"></a><h4>Parameters</h4>
|
482
|
-
<div class="informaltable"><table width="100%" border="0">
|
346
|
+
<a name="rsvg-handle-set-dpi"></a><h3>rsvg_handle_set_dpi ()</h3>
|
347
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_dpi (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
348
|
+
<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre>
|
349
|
+
<p>
|
350
|
+
Sets the DPI for the outgoing pixbuf. Common values are
|
351
|
+
75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> will
|
352
|
+
reset the DPI to whatever the default value happens to be.
|
353
|
+
</p>
|
354
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
483
355
|
<colgroup>
|
484
|
-
<col
|
485
|
-
<col
|
486
|
-
<col width="200px" class="parameters_annotations">
|
356
|
+
<col align="left" valign="top">
|
357
|
+
<col>
|
487
358
|
</colgroup>
|
488
359
|
<tbody>
|
489
360
|
<tr>
|
490
|
-
<td class="
|
491
|
-
<td
|
492
|
-
|
361
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
362
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
363
|
+
</td>
|
493
364
|
</tr>
|
494
365
|
<tr>
|
495
|
-
<td class="
|
496
|
-
<td
|
497
|
-
<td class="parameter_annotations"> </td>
|
366
|
+
<td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td>
|
367
|
+
<td>Dots Per Inch (aka Pixels Per Inch)</td>
|
498
368
|
</tr>
|
499
369
|
</tbody>
|
500
370
|
</table></div>
|
501
|
-
</div>
|
502
371
|
<p class="since">Since 2.8</p>
|
503
372
|
</div>
|
504
373
|
<hr>
|
505
374
|
<div class="refsect2">
|
506
|
-
<a name="rsvg-handle-set-dpi-x-y"></a><h3>rsvg_handle_set_dpi_x_y
|
507
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
75, 90, and 300 DPI. Passing a number <= 0 to <span class="type">dpi_x</span> or <em class="parameter"><code>dpi_y</code></em>
|
513
|
-
|
514
|
-
|
515
|
-
<div class="
|
516
|
-
<a name="id-1.2.3.8.8.5"></a><h4>Parameters</h4>
|
517
|
-
<div class="informaltable"><table width="100%" border="0">
|
375
|
+
<a name="rsvg-handle-set-dpi-x-y"></a><h3>rsvg_handle_set_dpi_x_y ()</h3>
|
376
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_dpi_x_y (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
377
|
+
<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>,
|
378
|
+
<em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre>
|
379
|
+
<p>
|
380
|
+
Sets the DPI for the outgoing pixbuf. Common values are
|
381
|
+
75, 90, and 300 DPI. Passing a number <= 0 to <span class="type">dpi_x</span> or <em class="parameter"><code>dpi_y</code></em> will
|
382
|
+
reset the DPI to whatever the default value happens to be.
|
383
|
+
</p>
|
384
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
518
385
|
<colgroup>
|
519
|
-
<col
|
520
|
-
<col
|
521
|
-
<col width="200px" class="parameters_annotations">
|
386
|
+
<col align="left" valign="top">
|
387
|
+
<col>
|
522
388
|
</colgroup>
|
523
389
|
<tbody>
|
524
390
|
<tr>
|
525
|
-
<td class="
|
526
|
-
<td
|
527
|
-
|
391
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
392
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
393
|
+
</td>
|
528
394
|
</tr>
|
529
395
|
<tr>
|
530
|
-
<td class="
|
531
|
-
<td
|
532
|
-
<td class="parameter_annotations"> </td>
|
396
|
+
<td><p><span class="term"><em class="parameter"><code>dpi_x</code></em> :</span></p></td>
|
397
|
+
<td>Dots Per Inch (aka Pixels Per Inch)</td>
|
533
398
|
</tr>
|
534
399
|
<tr>
|
535
|
-
<td class="
|
536
|
-
<td
|
537
|
-
<td class="parameter_annotations"> </td>
|
400
|
+
<td><p><span class="term"><em class="parameter"><code>dpi_y</code></em> :</span></p></td>
|
401
|
+
<td>Dots Per Inch (aka Pixels Per Inch)</td>
|
538
402
|
</tr>
|
539
403
|
</tbody>
|
540
404
|
</table></div>
|
541
|
-
</div>
|
542
405
|
<p class="since">Since 2.8</p>
|
543
406
|
</div>
|
544
407
|
<hr>
|
545
408
|
<div class="refsect2">
|
546
|
-
<a name="rsvg-handle-new"></a><h3>rsvg_handle_new
|
547
|
-
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a>
|
548
|
-
|
549
|
-
|
550
|
-
. This
|
409
|
+
<a name="rsvg-handle-new"></a><h3>rsvg_handle_new ()</h3>
|
410
|
+
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
411
|
+
<p>
|
412
|
+
Returns a new rsvg handle. Must be freed with <em class="parameter"><code>g_object_unref</code></em>. This
|
551
413
|
handle can be used for dynamically loading an image. You need to feed it
|
552
|
-
data using <em class="parameter"><code>rsvg_handle_write</code></em>
|
553
|
-
, then call <em class="parameter"><code>rsvg_handle_close</code></em>
|
554
|
-
when done.
|
414
|
+
data using <em class="parameter"><code>rsvg_handle_write</code></em>, then call <em class="parameter"><code>rsvg_handle_close</code></em> when done.
|
555
415
|
Afterwords, you can render it using Cairo or get a GdkPixbuf from it. When
|
556
|
-
finished, free with <a href="
|
557
|
-
with one handle
|
558
|
-
|
559
|
-
<
|
560
|
-
<p> A new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p>
|
561
|
-
<p></p>
|
562
|
-
</div>
|
563
|
-
</div>
|
564
|
-
<hr>
|
565
|
-
<div class="refsect2">
|
566
|
-
<a name="rsvg-handle-new-with-flags"></a><h3>rsvg_handle_new_with_flags ()</h3>
|
567
|
-
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
|
568
|
-
rsvg_handle_new_with_flags (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);</pre>
|
569
|
-
<p>Creates a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> with flags <em class="parameter"><code>flags</code></em>
|
570
|
-
.</p>
|
571
|
-
<div class="refsect3">
|
572
|
-
<a name="id-1.2.3.8.10.5"></a><h4>Parameters</h4>
|
573
|
-
<div class="informaltable"><table width="100%" border="0">
|
416
|
+
finished, free with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. No more than one image can be loaded
|
417
|
+
with one handle.
|
418
|
+
</p>
|
419
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
574
420
|
<colgroup>
|
575
|
-
<col
|
576
|
-
<col
|
577
|
-
<col width="200px" class="parameters_annotations">
|
421
|
+
<col align="left" valign="top">
|
422
|
+
<col>
|
578
423
|
</colgroup>
|
579
424
|
<tbody><tr>
|
580
|
-
<td class="
|
581
|
-
<td
|
582
|
-
|
425
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
426
|
+
<td>A new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
427
|
+
</td>
|
583
428
|
</tr></tbody>
|
584
429
|
</table></div>
|
585
430
|
</div>
|
586
|
-
<
|
587
|
-
<
|
588
|
-
<
|
589
|
-
<
|
590
|
-
|
431
|
+
<hr>
|
432
|
+
<div class="refsect2">
|
433
|
+
<a name="rsvg-handle-new-with-flags"></a><h3>rsvg_handle_new_with_flags ()</h3>
|
434
|
+
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new_with_flags (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);</pre>
|
435
|
+
<p>
|
436
|
+
Creates a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> with flags <em class="parameter"><code>flags</code></em>.
|
437
|
+
</p>
|
438
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
439
|
+
<colgroup>
|
440
|
+
<col align="left" valign="top">
|
441
|
+
<col>
|
442
|
+
</colgroup>
|
443
|
+
<tbody>
|
444
|
+
<tr>
|
445
|
+
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
446
|
+
<td>flags from <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a>
|
447
|
+
</td>
|
448
|
+
</tr>
|
449
|
+
<tr>
|
450
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
451
|
+
<td>a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
|
452
|
+
</td>
|
453
|
+
</tr>
|
454
|
+
</tbody>
|
455
|
+
</table></div>
|
591
456
|
<p class="since">Since 2.36</p>
|
592
457
|
</div>
|
593
458
|
<hr>
|
594
459
|
<div class="refsect2">
|
595
|
-
<a name="rsvg-handle-write"></a><h3>rsvg_handle_write
|
596
|
-
<pre class="programlisting"><a href="
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
<div class="refsect3">
|
609
|
-
<a name="id-1.2.3.8.11.5"></a><h4>Parameters</h4>
|
610
|
-
<div class="informaltable"><table width="100%" border="0">
|
460
|
+
<a name="rsvg-handle-write"></a><h3>rsvg_handle_write ()</h3>
|
461
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_write (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
462
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
|
463
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
|
464
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
465
|
+
<p>
|
466
|
+
Loads the next <em class="parameter"><code>count</code></em> bytes of the image. This will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data
|
467
|
+
was loaded successful, and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case,
|
468
|
+
the loader will be closed, and will not accept further writes. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is
|
469
|
+
returned, <em class="parameter"><code>error</code></em> will be set to an error from the <a class="link" href="RsvgHandle.html#RsvgError"><span class="type">RsvgError</span></a> domain. Errors
|
470
|
+
from <a href="http://library.gnome.org/devel/gio/unstable/gio-GIOError.html#GIOErrorEnum"><span class="type">GIOErrorEnum</span></a> are also possible.
|
471
|
+
</p>
|
472
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
611
473
|
<colgroup>
|
612
|
-
<col
|
613
|
-
<col
|
614
|
-
<col width="200px" class="parameters_annotations">
|
474
|
+
<col align="left" valign="top">
|
475
|
+
<col>
|
615
476
|
</colgroup>
|
616
477
|
<tbody>
|
617
478
|
<tr>
|
618
|
-
<td class="
|
619
|
-
<td
|
620
|
-
|
479
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
480
|
+
<td>an <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
481
|
+
</td>
|
621
482
|
</tr>
|
622
483
|
<tr>
|
623
|
-
<td class="
|
624
|
-
<td class="
|
625
|
-
|
484
|
+
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
|
485
|
+
<td>pointer to svg data. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=count][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guchar]</span>
|
486
|
+
</td>
|
626
487
|
</tr>
|
627
488
|
<tr>
|
628
|
-
<td class="
|
629
|
-
<td
|
630
|
-
buffer in bytes</p></td>
|
631
|
-
<td class="parameter_annotations"> </td>
|
489
|
+
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
|
490
|
+
<td>length of the <em class="parameter"><code>buf</code></em> buffer in bytes</td>
|
632
491
|
</tr>
|
633
492
|
<tr>
|
634
|
-
<td class="
|
635
|
-
<td
|
636
|
-
|
493
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
494
|
+
<td>a location to store a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
495
|
+
</td>
|
496
|
+
</tr>
|
497
|
+
<tr>
|
498
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
499
|
+
<td>
|
500
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</td>
|
637
501
|
</tr>
|
638
502
|
</tbody>
|
639
503
|
</table></div>
|
640
504
|
</div>
|
641
|
-
<div class="refsect3">
|
642
|
-
<a name="id-1.2.3.8.11.6"></a><h4>Returns</h4>
|
643
|
-
<p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
|
644
|
-
<p></p>
|
645
|
-
</div>
|
646
|
-
</div>
|
647
505
|
<hr>
|
648
506
|
<div class="refsect2">
|
649
|
-
<a name="rsvg-handle-close"></a><h3>rsvg_handle_close
|
650
|
-
<pre class="programlisting"><a href="
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
is called.</p>
|
659
|
-
<div class="refsect3">
|
660
|
-
<a name="id-1.2.3.8.12.5"></a><h4>Parameters</h4>
|
661
|
-
<div class="informaltable"><table width="100%" border="0">
|
507
|
+
<a name="rsvg-handle-close"></a><h3>rsvg_handle_close ()</h3>
|
508
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_close (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
509
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
510
|
+
<p>
|
511
|
+
Closes <em class="parameter"><code>handle</code></em>, to indicate that loading the image is complete. This will
|
512
|
+
return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the loader closed successfully. Note that <em class="parameter"><code>handle</code></em> isn't
|
513
|
+
freed until <em class="parameter"><code>g_object_unref</code></em> is called.
|
514
|
+
</p>
|
515
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
662
516
|
<colgroup>
|
663
|
-
<col
|
664
|
-
<col
|
665
|
-
<col width="200px" class="parameters_annotations">
|
517
|
+
<col align="left" valign="top">
|
518
|
+
<col>
|
666
519
|
</colgroup>
|
667
520
|
<tbody>
|
668
521
|
<tr>
|
669
|
-
<td class="
|
670
|
-
<td
|
671
|
-
|
522
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
523
|
+
<td>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
524
|
+
</td>
|
525
|
+
</tr>
|
526
|
+
<tr>
|
527
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
528
|
+
<td>a location to store a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
529
|
+
</td>
|
672
530
|
</tr>
|
673
531
|
<tr>
|
674
|
-
<td class="
|
675
|
-
<td
|
676
|
-
<
|
532
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
533
|
+
<td>
|
534
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</td>
|
677
535
|
</tr>
|
678
536
|
</tbody>
|
679
537
|
</table></div>
|
680
538
|
</div>
|
681
|
-
<div class="refsect3">
|
682
|
-
<a name="id-1.2.3.8.12.6"></a><h4>Returns</h4>
|
683
|
-
<p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
|
684
|
-
<p></p>
|
685
|
-
</div>
|
686
|
-
</div>
|
687
539
|
<hr>
|
688
540
|
<div class="refsect2">
|
689
|
-
<a name="rsvg-handle-get-base-uri"></a><h3>rsvg_handle_get_base_uri
|
690
|
-
<pre class="programlisting">const <span class="returnvalue">char</span>
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
<
|
695
|
-
<div class="informaltable"><table width="100%" border="0">
|
541
|
+
<a name="rsvg-handle-get-base-uri"></a><h3>rsvg_handle_get_base_uri ()</h3>
|
542
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> * rsvg_handle_get_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
|
543
|
+
<p>
|
544
|
+
Gets the base uri for this <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>.
|
545
|
+
</p>
|
546
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
696
547
|
<colgroup>
|
697
|
-
<col
|
698
|
-
<col
|
699
|
-
<col width="200px" class="parameters_annotations">
|
548
|
+
<col align="left" valign="top">
|
549
|
+
<col>
|
700
550
|
</colgroup>
|
701
|
-
<tbody
|
702
|
-
<
|
703
|
-
<td
|
704
|
-
<td class="
|
705
|
-
</
|
551
|
+
<tbody>
|
552
|
+
<tr>
|
553
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
554
|
+
<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
555
|
+
</td>
|
556
|
+
</tr>
|
557
|
+
<tr>
|
558
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
559
|
+
<td>the base uri, possibly null</td>
|
560
|
+
</tr>
|
561
|
+
</tbody>
|
706
562
|
</table></div>
|
707
|
-
</div>
|
708
|
-
<div class="refsect3">
|
709
|
-
<a name="id-1.2.3.8.13.6"></a><h4>Returns</h4>
|
710
|
-
<p> the base uri, possibly null</p>
|
711
|
-
<p></p>
|
712
|
-
</div>
|
713
563
|
<p class="since">Since 2.8</p>
|
714
564
|
</div>
|
715
565
|
<hr>
|
716
566
|
<div class="refsect2">
|
717
|
-
<a name="rsvg-handle-set-base-uri"></a><h3>rsvg_handle_set_base_uri
|
718
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
has been called
|
723
|
-
|
724
|
-
<
|
725
|
-
<div class="informaltable"><table width="100%" border="0">
|
567
|
+
<a name="rsvg-handle-set-base-uri"></a><h3>rsvg_handle_set_base_uri ()</h3>
|
568
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
569
|
+
<em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>);</pre>
|
570
|
+
<p>
|
571
|
+
Set the base URI for this SVG. This can only be called before <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()"><code class="function">rsvg_handle_write()</code></a>
|
572
|
+
has been called.
|
573
|
+
</p>
|
574
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
726
575
|
<colgroup>
|
727
|
-
<col
|
728
|
-
<col
|
729
|
-
<col width="200px" class="parameters_annotations">
|
576
|
+
<col align="left" valign="top">
|
577
|
+
<col>
|
730
578
|
</colgroup>
|
731
579
|
<tbody>
|
732
580
|
<tr>
|
733
|
-
<td class="
|
734
|
-
<td
|
735
|
-
|
581
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
582
|
+
<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
583
|
+
</td>
|
736
584
|
</tr>
|
737
585
|
<tr>
|
738
|
-
<td class="
|
739
|
-
<td
|
740
|
-
<td class="parameter_annotations"> </td>
|
586
|
+
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
|
587
|
+
<td>The base uri</td>
|
741
588
|
</tr>
|
742
589
|
</tbody>
|
743
590
|
</table></div>
|
744
|
-
</div>
|
745
591
|
<p class="since">Since 2.9</p>
|
746
592
|
</div>
|
747
593
|
<hr>
|
748
594
|
<div class="refsect2">
|
749
|
-
<a name="rsvg-handle-get-dimensions"></a><h3>rsvg_handle_get_dimensions
|
750
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
<
|
756
|
-
<div class="informaltable"><table width="100%" border="0">
|
595
|
+
<a name="rsvg-handle-get-dimensions"></a><h3>rsvg_handle_get_dimensions ()</h3>
|
596
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_get_dimensions (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
597
|
+
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>);</pre>
|
598
|
+
<p>
|
599
|
+
Get the SVG's size. Do not call from within the size_func callback, because an infinite loop will occur.
|
600
|
+
</p>
|
601
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
757
602
|
<colgroup>
|
758
|
-
<col
|
759
|
-
<col
|
760
|
-
<col width="200px" class="parameters_annotations">
|
603
|
+
<col align="left" valign="top">
|
604
|
+
<col>
|
761
605
|
</colgroup>
|
762
606
|
<tbody>
|
763
607
|
<tr>
|
764
|
-
<td class="
|
765
|
-
<td
|
766
|
-
|
608
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
609
|
+
<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
610
|
+
</td>
|
767
611
|
</tr>
|
768
612
|
<tr>
|
769
|
-
<td class="
|
770
|
-
<td
|
771
|
-
|
613
|
+
<td><p><span class="term"><em class="parameter"><code>dimension_data</code></em> :</span></p></td>
|
614
|
+
<td>A place to store the SVG's size. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
615
|
+
</td>
|
772
616
|
</tr>
|
773
617
|
</tbody>
|
774
618
|
</table></div>
|
775
|
-
</div>
|
776
619
|
<p class="since">Since 2.14</p>
|
777
620
|
</div>
|
778
621
|
<hr>
|
779
622
|
<div class="refsect2">
|
780
|
-
<a name="rsvg-handle-get-dimensions-sub"></a><h3>rsvg_handle_get_dimensions_sub
|
781
|
-
<pre class="programlisting"><a href="
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
<
|
788
|
-
<div class="informaltable"><table width="100%" border="0">
|
623
|
+
<a name="rsvg-handle-get-dimensions-sub"></a><h3>rsvg_handle_get_dimensions_sub ()</h3>
|
624
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_get_dimensions_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
625
|
+
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>,
|
626
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
627
|
+
<p>
|
628
|
+
Get the size of a subelement of the SVG file. Do not call from within the size_func callback, because an infinite loop will occur.
|
629
|
+
</p>
|
630
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
789
631
|
<colgroup>
|
790
|
-
<col
|
791
|
-
<col
|
792
|
-
<col width="200px" class="parameters_annotations">
|
632
|
+
<col align="left" valign="top">
|
633
|
+
<col>
|
793
634
|
</colgroup>
|
794
635
|
<tbody>
|
795
636
|
<tr>
|
796
|
-
<td class="
|
797
|
-
<td
|
798
|
-
|
637
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
638
|
+
<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
639
|
+
</td>
|
799
640
|
</tr>
|
800
641
|
<tr>
|
801
|
-
<td class="
|
802
|
-
<td
|
803
|
-
|
642
|
+
<td><p><span class="term"><em class="parameter"><code>dimension_data</code></em> :</span></p></td>
|
643
|
+
<td>A place to store the SVG's size. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
644
|
+
</td>
|
804
645
|
</tr>
|
805
646
|
<tr>
|
806
|
-
<td class="
|
807
|
-
<td
|
647
|
+
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
|
648
|
+
<td>An element's id within the SVG, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to get
|
808
649
|
the dimension of the whole SVG. For example, if you have a layer
|
809
650
|
called "layer1" for that you want to get the dimension, pass
|
810
|
-
"<span class="type">layer1</span>" as the id. </
|
811
|
-
|
651
|
+
"<span class="type">layer1</span>" as the id. <span class="annotation">[nullable]</span>
|
652
|
+
</td>
|
812
653
|
</tr>
|
813
654
|
</tbody>
|
814
655
|
</table></div>
|
815
|
-
</div>
|
816
656
|
<p class="since">Since 2.22</p>
|
817
657
|
</div>
|
818
658
|
<hr>
|
819
659
|
<div class="refsect2">
|
820
|
-
<a name="rsvg-handle-get-position-sub"></a><h3>rsvg_handle_get_position_sub
|
821
|
-
<pre class="programlisting"><a href="
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
the size_func callback, because an infinite loop will occur
|
827
|
-
|
828
|
-
<
|
829
|
-
<div class="informaltable"><table width="100%" border="0">
|
660
|
+
<a name="rsvg-handle-get-position-sub"></a><h3>rsvg_handle_get_position_sub ()</h3>
|
661
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_get_position_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
662
|
+
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>,
|
663
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
664
|
+
<p>
|
665
|
+
Get the position of a subelement of the SVG file. Do not call from within
|
666
|
+
the size_func callback, because an infinite loop will occur.
|
667
|
+
</p>
|
668
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
830
669
|
<colgroup>
|
831
|
-
<col
|
832
|
-
<col
|
833
|
-
<col width="200px" class="parameters_annotations">
|
670
|
+
<col align="left" valign="top">
|
671
|
+
<col>
|
834
672
|
</colgroup>
|
835
673
|
<tbody>
|
836
674
|
<tr>
|
837
|
-
<td class="
|
838
|
-
<td
|
839
|
-
|
675
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
676
|
+
<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
677
|
+
</td>
|
840
678
|
</tr>
|
841
679
|
<tr>
|
842
|
-
<td class="
|
843
|
-
<td
|
844
|
-
|
680
|
+
<td><p><span class="term"><em class="parameter"><code>position_data</code></em> :</span></p></td>
|
681
|
+
<td>A place to store the SVG fragment's position. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
682
|
+
</td>
|
845
683
|
</tr>
|
846
684
|
<tr>
|
847
|
-
<td class="
|
848
|
-
<td
|
685
|
+
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
|
686
|
+
<td>An element's id within the SVG.
|
849
687
|
For example, if you have a layer called "layer1" for that you want to get
|
850
|
-
the position, pass "#<span class="type">layer1</span>" as the id.</
|
851
|
-
<td class="parameter_annotations"> </td>
|
688
|
+
the position, pass "#<span class="type">layer1</span>" as the id.</td>
|
852
689
|
</tr>
|
853
690
|
</tbody>
|
854
691
|
</table></div>
|
855
|
-
</div>
|
856
692
|
<p class="since">Since 2.22</p>
|
857
693
|
</div>
|
858
694
|
<hr>
|
859
695
|
<div class="refsect2">
|
860
|
-
<a name="rsvg-handle-has-sub"></a><h3>rsvg_handle_has_sub
|
861
|
-
<pre class="programlisting"><a href="
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
<div class="
|
867
|
-
<a name="id-1.2.3.8.18.5"></a><h4>Parameters</h4>
|
868
|
-
<div class="informaltable"><table width="100%" border="0">
|
696
|
+
<a name="rsvg-handle-has-sub"></a><h3>rsvg_handle_has_sub ()</h3>
|
697
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_has_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
698
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
699
|
+
<p>
|
700
|
+
Checks whether the element <em class="parameter"><code>id</code></em> exists in the SVG document.
|
701
|
+
</p>
|
702
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
869
703
|
<colgroup>
|
870
|
-
<col
|
871
|
-
<col
|
872
|
-
<col width="200px" class="parameters_annotations">
|
704
|
+
<col align="left" valign="top">
|
705
|
+
<col>
|
873
706
|
</colgroup>
|
874
707
|
<tbody>
|
875
708
|
<tr>
|
876
|
-
<td class="
|
877
|
-
<td
|
878
|
-
|
709
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
710
|
+
<td>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
711
|
+
</td>
|
712
|
+
</tr>
|
713
|
+
<tr>
|
714
|
+
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
|
715
|
+
<td>an element's id within the SVG</td>
|
879
716
|
</tr>
|
880
717
|
<tr>
|
881
|
-
<td class="
|
882
|
-
<td
|
883
|
-
<
|
718
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
719
|
+
<td>
|
720
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>id</code></em> exists in the SVG document</td>
|
884
721
|
</tr>
|
885
722
|
</tbody>
|
886
723
|
</table></div>
|
887
|
-
</div>
|
888
|
-
<div class="refsect3">
|
889
|
-
<a name="id-1.2.3.8.18.6"></a><h4>Returns</h4>
|
890
|
-
<p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>id</code></em>
|
891
|
-
exists in the SVG document</p>
|
892
|
-
<p></p>
|
893
|
-
</div>
|
894
724
|
<p class="since">Since 2.22</p>
|
895
725
|
</div>
|
896
726
|
<hr>
|
897
727
|
<div class="refsect2">
|
898
|
-
<a name="rsvg-handle-get-title"></a><h3>rsvg_handle_get_title
|
899
|
-
<pre class="programlisting">const <span class="returnvalue">char</span>
|
900
|
-
|
901
|
-
<
|
902
|
-
<p
|
903
|
-
|
904
|
-
|
905
|
-
<
|
906
|
-
<
|
907
|
-
|
728
|
+
<a name="rsvg-handle-get-title"></a><h3>rsvg_handle_get_title ()</h3>
|
729
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> * rsvg_handle_get_title (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
|
730
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
731
|
+
<h3 class="title">Warning</h3>
|
732
|
+
<p><code class="literal">rsvg_handle_get_title</code> is deprecated and should not be used in newly-written code. 2.36</p>
|
733
|
+
</div>
|
734
|
+
<p>
|
735
|
+
Returns the SVG's title in UTF-8 or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
|
736
|
+
of this title if you wish to use it after <em class="parameter"><code>handle</code></em> has been freed.
|
737
|
+
</p>
|
738
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
908
739
|
<colgroup>
|
909
|
-
<col
|
910
|
-
<col
|
911
|
-
<col width="200px" class="parameters_annotations">
|
740
|
+
<col align="left" valign="top">
|
741
|
+
<col>
|
912
742
|
</colgroup>
|
913
|
-
<tbody
|
914
|
-
<
|
915
|
-
<td
|
916
|
-
<td class="
|
917
|
-
</
|
743
|
+
<tbody>
|
744
|
+
<tr>
|
745
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
746
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
747
|
+
</td>
|
748
|
+
</tr>
|
749
|
+
<tr>
|
750
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
751
|
+
<td>The SVG's title. <span class="annotation">[nullable]</span>
|
752
|
+
</td>
|
753
|
+
</tr>
|
754
|
+
</tbody>
|
918
755
|
</table></div>
|
919
|
-
</div>
|
920
|
-
<div class="refsect3">
|
921
|
-
<a name="id-1.2.3.8.19.8"></a><h4>Returns</h4>
|
922
|
-
<p> The SVG's title. </p>
|
923
|
-
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
924
|
-
</div>
|
925
756
|
<p class="since">Since 2.4</p>
|
926
757
|
</div>
|
927
758
|
<hr>
|
928
759
|
<div class="refsect2">
|
929
|
-
<a name="rsvg-handle-get-desc"></a><h3>rsvg_handle_get_desc
|
930
|
-
<pre class="programlisting">const <span class="returnvalue">char</span>
|
931
|
-
|
932
|
-
<
|
933
|
-
<p
|
934
|
-
|
935
|
-
|
936
|
-
<
|
937
|
-
<
|
938
|
-
|
760
|
+
<a name="rsvg-handle-get-desc"></a><h3>rsvg_handle_get_desc ()</h3>
|
761
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> * rsvg_handle_get_desc (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
|
762
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
763
|
+
<h3 class="title">Warning</h3>
|
764
|
+
<p><code class="literal">rsvg_handle_get_desc</code> is deprecated and should not be used in newly-written code. 2.36</p>
|
765
|
+
</div>
|
766
|
+
<p>
|
767
|
+
Returns the SVG's description in UTF-8 or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
|
768
|
+
of this description if you wish to use it after <em class="parameter"><code>handle</code></em> has been freed.
|
769
|
+
</p>
|
770
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
939
771
|
<colgroup>
|
940
|
-
<col
|
941
|
-
<col
|
942
|
-
<col width="200px" class="parameters_annotations">
|
772
|
+
<col align="left" valign="top">
|
773
|
+
<col>
|
943
774
|
</colgroup>
|
944
|
-
<tbody
|
945
|
-
<
|
946
|
-
<td
|
947
|
-
<td class="
|
948
|
-
</
|
775
|
+
<tbody>
|
776
|
+
<tr>
|
777
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
778
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
779
|
+
</td>
|
780
|
+
</tr>
|
781
|
+
<tr>
|
782
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
783
|
+
<td>The SVG's description. <span class="annotation">[nullable]</span>
|
784
|
+
</td>
|
785
|
+
</tr>
|
786
|
+
</tbody>
|
949
787
|
</table></div>
|
950
|
-
</div>
|
951
|
-
<div class="refsect3">
|
952
|
-
<a name="id-1.2.3.8.20.8"></a><h4>Returns</h4>
|
953
|
-
<p> The SVG's description. </p>
|
954
|
-
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
955
|
-
</div>
|
956
788
|
<p class="since">Since 2.4</p>
|
957
789
|
</div>
|
958
790
|
<hr>
|
959
791
|
<div class="refsect2">
|
960
|
-
<a name="rsvg-handle-get-metadata"></a><h3>rsvg_handle_get_metadata
|
961
|
-
<pre class="programlisting">const <span class="returnvalue">char</span>
|
962
|
-
|
963
|
-
<
|
964
|
-
<p
|
965
|
-
|
966
|
-
|
967
|
-
<
|
968
|
-
<
|
969
|
-
|
792
|
+
<a name="rsvg-handle-get-metadata"></a><h3>rsvg_handle_get_metadata ()</h3>
|
793
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> * rsvg_handle_get_metadata (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
|
794
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
795
|
+
<h3 class="title">Warning</h3>
|
796
|
+
<p><code class="literal">rsvg_handle_get_metadata</code> is deprecated and should not be used in newly-written code. 2.36</p>
|
797
|
+
</div>
|
798
|
+
<p>
|
799
|
+
Returns the SVG's metadata in UTF-8 or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
|
800
|
+
of this metadata if you wish to use it after <em class="parameter"><code>handle</code></em> has been freed.
|
801
|
+
</p>
|
802
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
970
803
|
<colgroup>
|
971
|
-
<col
|
972
|
-
<col
|
973
|
-
<col width="200px" class="parameters_annotations">
|
804
|
+
<col align="left" valign="top">
|
805
|
+
<col>
|
974
806
|
</colgroup>
|
975
|
-
<tbody
|
976
|
-
<
|
977
|
-
<td
|
978
|
-
<td class="
|
979
|
-
</
|
807
|
+
<tbody>
|
808
|
+
<tr>
|
809
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
810
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
811
|
+
</td>
|
812
|
+
</tr>
|
813
|
+
<tr>
|
814
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
815
|
+
<td>The SVG's title. <span class="annotation">[nullable]</span>
|
816
|
+
</td>
|
817
|
+
</tr>
|
818
|
+
</tbody>
|
980
819
|
</table></div>
|
981
|
-
</div>
|
982
|
-
<div class="refsect3">
|
983
|
-
<a name="id-1.2.3.8.21.8"></a><h4>Returns</h4>
|
984
|
-
<p> The SVG's title. </p>
|
985
|
-
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
986
|
-
</div>
|
987
820
|
<p class="since">Since 2.9</p>
|
988
821
|
</div>
|
989
822
|
<hr>
|
990
823
|
<div class="refsect2">
|
991
|
-
<a name="rsvg-handle-new-from-data"></a><h3>rsvg_handle_new_from_data
|
992
|
-
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a>
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
<div class="
|
999
|
-
<a name="id-1.2.3.8.22.5"></a><h4>Parameters</h4>
|
1000
|
-
<div class="informaltable"><table width="100%" border="0">
|
824
|
+
<a name="rsvg-handle-new-from-data"></a><h3>rsvg_handle_new_from_data ()</h3>
|
825
|
+
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new_from_data (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
|
826
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> data_len</code></em>,
|
827
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
828
|
+
<p>
|
829
|
+
Loads the SVG specified by <em class="parameter"><code>data</code></em>.
|
830
|
+
</p>
|
831
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
1001
832
|
<colgroup>
|
1002
|
-
<col
|
1003
|
-
<col
|
1004
|
-
<col width="200px" class="parameters_annotations">
|
833
|
+
<col align="left" valign="top">
|
834
|
+
<col>
|
1005
835
|
</colgroup>
|
1006
836
|
<tbody>
|
1007
837
|
<tr>
|
1008
|
-
<td class="
|
1009
|
-
<td class="
|
1010
|
-
|
838
|
+
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
839
|
+
<td>The SVG data. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=data_len]</span>
|
840
|
+
</td>
|
1011
841
|
</tr>
|
1012
842
|
<tr>
|
1013
|
-
<td class="
|
1014
|
-
<td
|
1015
|
-
, in bytes</p></td>
|
1016
|
-
<td class="parameter_annotations"> </td>
|
843
|
+
<td><p><span class="term"><em class="parameter"><code>data_len</code></em> :</span></p></td>
|
844
|
+
<td>The length of <em class="parameter"><code>data</code></em>, in bytes</td>
|
1017
845
|
</tr>
|
1018
846
|
<tr>
|
1019
|
-
<td class="
|
1020
|
-
<td
|
1021
|
-
|
847
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
848
|
+
<td>return location for errors</td>
|
849
|
+
</tr>
|
850
|
+
<tr>
|
851
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
852
|
+
<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</td>
|
1022
853
|
</tr>
|
1023
854
|
</tbody>
|
1024
855
|
</table></div>
|
1025
|
-
</div>
|
1026
|
-
<div class="refsect3">
|
1027
|
-
<a name="id-1.2.3.8.22.6"></a><h4>Returns</h4>
|
1028
|
-
<p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p>
|
1029
|
-
<p></p>
|
1030
|
-
</div>
|
1031
856
|
<p class="since">Since 2.14</p>
|
1032
857
|
</div>
|
1033
858
|
<hr>
|
1034
859
|
<div class="refsect2">
|
1035
|
-
<a name="rsvg-handle-new-from-file"></a><h3>rsvg_handle_new_from_file
|
1036
|
-
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a>
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
<div class="
|
1042
|
-
<a name="id-1.2.3.8.23.5"></a><h4>Parameters</h4>
|
1043
|
-
<div class="informaltable"><table width="100%" border="0">
|
860
|
+
<a name="rsvg-handle-new-from-file"></a><h3>rsvg_handle_new_from_file ()</h3>
|
861
|
+
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new_from_file (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
862
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
863
|
+
<p>
|
864
|
+
Loads the SVG specified by <em class="parameter"><code>file_name</code></em>.
|
865
|
+
</p>
|
866
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
1044
867
|
<colgroup>
|
1045
|
-
<col
|
1046
|
-
<col
|
1047
|
-
<col width="200px" class="parameters_annotations">
|
868
|
+
<col align="left" valign="top">
|
869
|
+
<col>
|
1048
870
|
</colgroup>
|
1049
871
|
<tbody>
|
1050
872
|
<tr>
|
1051
|
-
<td class="
|
1052
|
-
<td
|
1053
|
-
<td class="parameter_annotations"> </td>
|
873
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
874
|
+
<td>The file name to load. If built with gnome-vfs, can be a URI.</td>
|
1054
875
|
</tr>
|
1055
876
|
<tr>
|
1056
|
-
<td class="
|
1057
|
-
<td
|
1058
|
-
|
877
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
878
|
+
<td>return location for errors</td>
|
879
|
+
</tr>
|
880
|
+
<tr>
|
881
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
882
|
+
<td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</td>
|
1059
883
|
</tr>
|
1060
884
|
</tbody>
|
1061
885
|
</table></div>
|
1062
|
-
</div>
|
1063
|
-
<div class="refsect3">
|
1064
|
-
<a name="id-1.2.3.8.23.6"></a><h4>Returns</h4>
|
1065
|
-
<p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p>
|
1066
|
-
<p></p>
|
1067
|
-
</div>
|
1068
886
|
<p class="since">Since 2.14</p>
|
1069
887
|
</div>
|
1070
888
|
<hr>
|
1071
889
|
<div class="refsect2">
|
1072
|
-
<a name="rsvg-error-get-type"></a><h3>rsvg_error_get_type
|
1073
|
-
<pre class="programlisting"><a href="
|
1074
|
-
rsvg_error_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
890
|
+
<a name="rsvg-error-get-type"></a><h3>rsvg_error_get_type ()</h3>
|
891
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> rsvg_error_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1075
892
|
</div>
|
1076
893
|
<hr>
|
1077
894
|
<div class="refsect2">
|
@@ -1080,334 +897,202 @@ rsvg_error_get_type (<em class="parameter"><code><span class="type">void</span><
|
|
1080
897
|
</div>
|
1081
898
|
<hr>
|
1082
899
|
<div class="refsect2">
|
1083
|
-
<a name="rsvg-init"></a><h3>rsvg_init
|
1084
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1085
|
-
|
1086
|
-
<
|
1087
|
-
<p><code class="literal">rsvg_init</code> has been deprecated since version 2.36 and should not be used in newly-written code
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
900
|
+
<a name="rsvg-init"></a><h3>rsvg_init ()</h3>
|
901
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
902
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
903
|
+
<h3 class="title">Warning</h3>
|
904
|
+
<p><code class="literal">rsvg_init</code> has been deprecated since version 2.36 and should not be used in newly-written code. Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#g-type-init"><code class="function">g_type_init()</code></a></p>
|
905
|
+
</div>
|
906
|
+
<p>
|
907
|
+
Initializes librsvg
|
908
|
+
</p>
|
1091
909
|
<p class="since">Since 2.9</p>
|
1092
910
|
</div>
|
1093
911
|
<hr>
|
1094
912
|
<div class="refsect2">
|
1095
|
-
<a name="rsvg-term"></a><h3>rsvg_term
|
1096
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1097
|
-
|
1098
|
-
<
|
1099
|
-
<p>
|
913
|
+
<a name="rsvg-term"></a><h3>rsvg_term ()</h3>
|
914
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_term (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
915
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
916
|
+
<h3 class="title">Warning</h3>
|
917
|
+
<p><code class="literal">rsvg_term</code> is deprecated and should not be used in newly-written code. 2.36</p>
|
918
|
+
</div>
|
919
|
+
<p>
|
920
|
+
This function does nothing.
|
921
|
+
</p>
|
1100
922
|
<p class="since">Since 2.9</p>
|
1101
923
|
</div>
|
1102
924
|
<hr>
|
1103
925
|
<div class="refsect2">
|
1104
|
-
<a name="rsvg-handle-free"></a><h3>rsvg_handle_free
|
1105
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1106
|
-
|
1107
|
-
<
|
1108
|
-
<p><code class="literal">rsvg_handle_free</code> is deprecated and should not be used in newly-written code.</p>
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
<div class="
|
1114
|
-
<a name="id-1.2.3.8.28.6"></a><h4>Parameters</h4>
|
1115
|
-
<div class="informaltable"><table width="100%" border="0">
|
926
|
+
<a name="rsvg-handle-free"></a><h3>rsvg_handle_free ()</h3>
|
927
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_free (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
|
928
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
929
|
+
<h3 class="title">Warning</h3>
|
930
|
+
<p><code class="literal">rsvg_handle_free</code> is deprecated and should not be used in newly-written code. Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> instead.</p>
|
931
|
+
</div>
|
932
|
+
<p>
|
933
|
+
Frees <em class="parameter"><code>handle</code></em>.
|
934
|
+
</p>
|
935
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
1116
936
|
<colgroup>
|
1117
|
-
<col
|
1118
|
-
<col
|
1119
|
-
<col width="200px" class="parameters_annotations">
|
937
|
+
<col align="left" valign="top">
|
938
|
+
<col>
|
1120
939
|
</colgroup>
|
1121
940
|
<tbody><tr>
|
1122
|
-
<td class="
|
1123
|
-
<td
|
1124
|
-
|
941
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
942
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
943
|
+
</td>
|
1125
944
|
</tr></tbody>
|
1126
945
|
</table></div>
|
1127
946
|
</div>
|
1128
|
-
</div>
|
1129
947
|
<hr>
|
1130
948
|
<div class="refsect2">
|
1131
|
-
<a name="rsvg-handle-set-size-callback"></a><h3>rsvg_handle_set_size_callback
|
1132
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
<
|
1138
|
-
<p><code class="literal">rsvg_handle_set_size_callback</code> is deprecated and should not be used in newly-written code.</p>
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
. This function is called right
|
949
|
+
<a name="rsvg-handle-set-size-callback"></a><h3>rsvg_handle_set_size_callback ()</h3>
|
950
|
+
<pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_size_callback (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
951
|
+
<em class="parameter"><code><span class="type">RsvgSizeFunc</span> size_func</code></em>,
|
952
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
953
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> user_data_destroy</code></em>);</pre>
|
954
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
955
|
+
<h3 class="title">Warning</h3>
|
956
|
+
<p><code class="literal">rsvg_handle_set_size_callback</code> is deprecated and should not be used in newly-written code. Set up a cairo matrix and use <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
|
957
|
+
</div>
|
958
|
+
<p>
|
959
|
+
Sets the sizing function for the <em class="parameter"><code>handle</code></em>. This function is called right
|
1143
960
|
after the size of the image has been loaded. The size of the image is passed
|
1144
961
|
in to the function, which may then modify these values to set the real size
|
1145
962
|
of the generated pixbuf. If the image has no associated size, then the size
|
1146
|
-
arguments are set to -1
|
1147
|
-
|
1148
|
-
<
|
1149
|
-
<div class="informaltable"><table width="100%" border="0">
|
963
|
+
arguments are set to -1.
|
964
|
+
</p>
|
965
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
1150
966
|
<colgroup>
|
1151
|
-
<col
|
1152
|
-
<col
|
1153
|
-
<col width="200px" class="parameters_annotations">
|
967
|
+
<col align="left" valign="top">
|
968
|
+
<col>
|
1154
969
|
</colgroup>
|
1155
970
|
<tbody>
|
1156
971
|
<tr>
|
1157
|
-
<td class="
|
1158
|
-
<td
|
1159
|
-
<td class="parameter_annotations"> </td>
|
1160
|
-
</tr>
|
1161
|
-
<tr>
|
1162
|
-
<td class="parameter_name"><p>size_func</p></td>
|
1163
|
-
<td class="parameter_description"><p> A sizing function, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
1164
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
1165
|
-
</tr>
|
1166
|
-
<tr>
|
1167
|
-
<td class="parameter_name"><p>user_data</p></td>
|
1168
|
-
<td class="parameter_description"><p>User data to pass to <em class="parameter"><code>size_func</code></em>
|
1169
|
-
, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
1170
|
-
<td class="parameter_annotations"> </td>
|
1171
|
-
</tr>
|
1172
|
-
<tr>
|
1173
|
-
<td class="parameter_name"><p>user_data_destroy</p></td>
|
1174
|
-
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>user_data</code></em>
|
1175
|
-
, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
1176
|
-
<td class="parameter_annotations"> </td>
|
1177
|
-
</tr>
|
1178
|
-
</tbody>
|
1179
|
-
</table></div>
|
1180
|
-
</div>
|
1181
|
-
</div>
|
1182
|
-
</div>
|
1183
|
-
<div class="refsect1">
|
1184
|
-
<a name="RsvgHandle.other_details"></a><h2>Types and Values</h2>
|
1185
|
-
<div class="refsect2">
|
1186
|
-
<a name="RsvgError"></a><h3>enum RsvgError</h3>
|
1187
|
-
<p>An enumeration representing possible errors</p>
|
1188
|
-
<div class="refsect3">
|
1189
|
-
<a name="id-1.2.3.9.2.4"></a><h4>Members</h4>
|
1190
|
-
<div class="informaltable"><table width="100%" border="0">
|
1191
|
-
<colgroup>
|
1192
|
-
<col width="300px" class="enum_members_name">
|
1193
|
-
<col class="enum_members_description">
|
1194
|
-
<col width="200px" class="enum_members_annotations">
|
1195
|
-
</colgroup>
|
1196
|
-
<tbody><tr>
|
1197
|
-
<td class="enum_member_name"><p><a name="RSVG-ERROR-FAILED:CAPS"></a>RSVG_ERROR_FAILED</p></td>
|
1198
|
-
<td class="enum_member_description">
|
1199
|
-
<p>the request failed</p>
|
972
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
973
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
1200
974
|
</td>
|
1201
|
-
<td class="enum_member_annotations"> </td>
|
1202
|
-
</tr></tbody>
|
1203
|
-
</table></div>
|
1204
|
-
</div>
|
1205
|
-
</div>
|
1206
|
-
<hr>
|
1207
|
-
<div class="refsect2">
|
1208
|
-
<a name="RsvgHandle-struct"></a><h3>struct RsvgHandle</h3>
|
1209
|
-
<pre class="programlisting">struct RsvgHandle;</pre>
|
1210
|
-
<p>The <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> is an object representing the parsed form of a SVG</p>
|
1211
|
-
</div>
|
1212
|
-
<hr>
|
1213
|
-
<div class="refsect2">
|
1214
|
-
<a name="RsvgHandlePrivate"></a><h3>RsvgHandlePrivate</h3>
|
1215
|
-
</div>
|
1216
|
-
<hr>
|
1217
|
-
<div class="refsect2">
|
1218
|
-
<a name="RsvgHandleClass"></a><h3>struct RsvgHandleClass</h3>
|
1219
|
-
<pre class="programlisting">struct RsvgHandleClass {
|
1220
|
-
GObjectClass parent;
|
1221
|
-
};
|
1222
|
-
</pre>
|
1223
|
-
<p>Class structure for <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p>
|
1224
|
-
<div class="refsect3">
|
1225
|
-
<a name="id-1.2.3.9.5.5"></a><h4>Members</h4>
|
1226
|
-
<div class="informaltable"><table width="100%" border="0">
|
1227
|
-
<colgroup>
|
1228
|
-
<col width="300px" class="struct_members_name">
|
1229
|
-
<col class="struct_members_description">
|
1230
|
-
<col width="200px" class="struct_members_annotations">
|
1231
|
-
</colgroup>
|
1232
|
-
<tbody><tr>
|
1233
|
-
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="RsvgHandleClass.parent"></a>parent</code></em>;</p></td>
|
1234
|
-
<td class="struct_member_description"><p>parent class</p></td>
|
1235
|
-
<td class="struct_member_annotations"> </td>
|
1236
|
-
</tr></tbody>
|
1237
|
-
</table></div>
|
1238
|
-
</div>
|
1239
|
-
</div>
|
1240
|
-
<hr>
|
1241
|
-
<div class="refsect2">
|
1242
|
-
<a name="RsvgDimensionData"></a><h3>struct RsvgDimensionData</h3>
|
1243
|
-
<pre class="programlisting">struct RsvgDimensionData {
|
1244
|
-
int width;
|
1245
|
-
int height;
|
1246
|
-
gdouble em;
|
1247
|
-
gdouble ex;
|
1248
|
-
};
|
1249
|
-
</pre>
|
1250
|
-
<div class="refsect3">
|
1251
|
-
<a name="id-1.2.3.9.6.4"></a><h4>Members</h4>
|
1252
|
-
<div class="informaltable"><table width="100%" border="0">
|
1253
|
-
<colgroup>
|
1254
|
-
<col width="300px" class="struct_members_name">
|
1255
|
-
<col class="struct_members_description">
|
1256
|
-
<col width="200px" class="struct_members_annotations">
|
1257
|
-
</colgroup>
|
1258
|
-
<tbody>
|
1259
|
-
<tr>
|
1260
|
-
<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.width"></a>width</code></em>;</p></td>
|
1261
|
-
<td class="struct_member_description"><p>SVG's width, in pixels</p></td>
|
1262
|
-
<td class="struct_member_annotations"> </td>
|
1263
|
-
</tr>
|
1264
|
-
<tr>
|
1265
|
-
<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.height"></a>height</code></em>;</p></td>
|
1266
|
-
<td class="struct_member_description"><p>SVG's height, in pixels</p></td>
|
1267
|
-
<td class="struct_member_annotations"> </td>
|
1268
|
-
</tr>
|
1269
|
-
<tr>
|
1270
|
-
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.em"></a>em</code></em>;</p></td>
|
1271
|
-
<td class="struct_member_description"><p>em</p></td>
|
1272
|
-
<td class="struct_member_annotations"> </td>
|
1273
975
|
</tr>
|
1274
976
|
<tr>
|
1275
|
-
<td
|
1276
|
-
<td class="
|
1277
|
-
|
977
|
+
<td><p><span class="term"><em class="parameter"><code>size_func</code></em> :</span></p></td>
|
978
|
+
<td>A sizing function, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[nullable]</span>
|
979
|
+
</td>
|
1278
980
|
</tr>
|
1279
|
-
</tbody>
|
1280
|
-
</table></div>
|
1281
|
-
</div>
|
1282
|
-
</div>
|
1283
|
-
<hr>
|
1284
|
-
<div class="refsect2">
|
1285
|
-
<a name="RsvgPositionData"></a><h3>struct RsvgPositionData</h3>
|
1286
|
-
<pre class="programlisting">struct RsvgPositionData {
|
1287
|
-
int x;
|
1288
|
-
int y;
|
1289
|
-
};
|
1290
|
-
</pre>
|
1291
|
-
<p>Position of an SVG fragment.</p>
|
1292
|
-
<div class="refsect3">
|
1293
|
-
<a name="id-1.2.3.9.7.5"></a><h4>Members</h4>
|
1294
|
-
<div class="informaltable"><table width="100%" border="0">
|
1295
|
-
<colgroup>
|
1296
|
-
<col width="300px" class="struct_members_name">
|
1297
|
-
<col class="struct_members_description">
|
1298
|
-
<col width="200px" class="struct_members_annotations">
|
1299
|
-
</colgroup>
|
1300
|
-
<tbody>
|
1301
981
|
<tr>
|
1302
|
-
<td
|
1303
|
-
<td class="
|
1304
|
-
|
982
|
+
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
983
|
+
<td>User data to pass to <em class="parameter"><code>size_func</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
984
|
+
</td>
|
1305
985
|
</tr>
|
1306
986
|
<tr>
|
1307
|
-
<td
|
1308
|
-
<td class="
|
1309
|
-
|
987
|
+
<td><p><span class="term"><em class="parameter"><code>user_data_destroy</code></em> :</span></p></td>
|
988
|
+
<td>Destroy function for <em class="parameter"><code>user_data</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
989
|
+
</td>
|
1310
990
|
</tr>
|
1311
991
|
</tbody>
|
1312
992
|
</table></div>
|
1313
993
|
</div>
|
1314
994
|
</div>
|
1315
|
-
</div>
|
1316
995
|
<div class="refsect1">
|
1317
996
|
<a name="RsvgHandle.property-details"></a><h2>Property Details</h2>
|
1318
997
|
<div class="refsect2">
|
1319
|
-
<a name="RsvgHandle--base-uri"></a><h3>The <code class="literal"
|
1320
|
-
<pre class="programlisting">
|
998
|
+
<a name="RsvgHandle--base-uri"></a><h3>The <code class="literal">"base-uri"</code> property</h3>
|
999
|
+
<pre class="programlisting"> "base-uri" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct</pre>
|
1321
1000
|
<p>Base URI.</p>
|
1322
|
-
<p>Flags: Read / Write / Construct</p>
|
1323
1001
|
<p>Default value: NULL</p>
|
1324
1002
|
</div>
|
1325
1003
|
<hr>
|
1326
1004
|
<div class="refsect2">
|
1327
|
-
<a name="RsvgHandle--desc"></a><h3>The <code class="literal"
|
1328
|
-
<pre class="programlisting">
|
1329
|
-
<
|
1330
|
-
<
|
1331
|
-
<p>
|
1005
|
+
<a name="RsvgHandle--desc"></a><h3>The <code class="literal">"desc"</code> property</h3>
|
1006
|
+
<pre class="programlisting"> "desc" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
|
1007
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1008
|
+
<h3 class="title">Warning</h3>
|
1009
|
+
<p><code class="literal">RsvgHandle:desc</code> is deprecated and should not be used in newly-written code. 2.36</p>
|
1010
|
+
</div>
|
1011
|
+
<p>
|
1012
|
+
SVG's description
|
1013
|
+
</p>
|
1332
1014
|
<p>Default value: NULL</p>
|
1333
1015
|
</div>
|
1334
1016
|
<hr>
|
1335
1017
|
<div class="refsect2">
|
1336
|
-
<a name="RsvgHandle--dpi-x"></a><h3>The <code class="literal"
|
1337
|
-
<pre class="programlisting">
|
1018
|
+
<a name="RsvgHandle--dpi-x"></a><h3>The <code class="literal">"dpi-x"</code> property</h3>
|
1019
|
+
<pre class="programlisting"> "dpi-x" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct</pre>
|
1338
1020
|
<p>Horizontal resolution.</p>
|
1339
|
-
<p>Flags: Read / Write / Construct</p>
|
1340
1021
|
<p>Allowed values: >= 0</p>
|
1341
1022
|
<p>Default value: 90</p>
|
1342
1023
|
</div>
|
1343
1024
|
<hr>
|
1344
1025
|
<div class="refsect2">
|
1345
|
-
<a name="RsvgHandle--dpi-y"></a><h3>The <code class="literal"
|
1346
|
-
<pre class="programlisting">
|
1026
|
+
<a name="RsvgHandle--dpi-y"></a><h3>The <code class="literal">"dpi-y"</code> property</h3>
|
1027
|
+
<pre class="programlisting"> "dpi-y" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct</pre>
|
1347
1028
|
<p>Vertical resolution.</p>
|
1348
|
-
<p>Flags: Read / Write / Construct</p>
|
1349
1029
|
<p>Allowed values: >= 0</p>
|
1350
1030
|
<p>Default value: 90</p>
|
1351
1031
|
</div>
|
1352
1032
|
<hr>
|
1353
1033
|
<div class="refsect2">
|
1354
|
-
<a name="RsvgHandle--em"></a><h3>The <code class="literal"
|
1355
|
-
<pre class="programlisting">
|
1034
|
+
<a name="RsvgHandle--em"></a><h3>The <code class="literal">"em"</code> property</h3>
|
1035
|
+
<pre class="programlisting"> "em" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read</pre>
|
1356
1036
|
<p>em.</p>
|
1357
|
-
<p>Flags: Read</p>
|
1358
1037
|
<p>Allowed values: >= 0</p>
|
1359
1038
|
<p>Default value: 0</p>
|
1360
1039
|
</div>
|
1361
1040
|
<hr>
|
1362
1041
|
<div class="refsect2">
|
1363
|
-
<a name="RsvgHandle--ex"></a><h3>The <code class="literal"
|
1364
|
-
<pre class="programlisting">
|
1042
|
+
<a name="RsvgHandle--ex"></a><h3>The <code class="literal">"ex"</code> property</h3>
|
1043
|
+
<pre class="programlisting"> "ex" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read</pre>
|
1365
1044
|
<p>ex.</p>
|
1366
|
-
<p>Flags: Read</p>
|
1367
1045
|
<p>Allowed values: >= 0</p>
|
1368
1046
|
<p>Default value: 0</p>
|
1369
1047
|
</div>
|
1370
1048
|
<hr>
|
1371
1049
|
<div class="refsect2">
|
1372
|
-
<a name="RsvgHandle--flags"></a><h3>The <code class="literal"
|
1373
|
-
<pre class="programlisting">
|
1374
|
-
<p>
|
1375
|
-
|
1050
|
+
<a name="RsvgHandle--flags"></a><h3>The <code class="literal">"flags"</code> property</h3>
|
1051
|
+
<pre class="programlisting"> "flags" <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> : Read / Write / Construct Only</pre>
|
1052
|
+
<p>
|
1053
|
+
Flags from <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a>.
|
1054
|
+
</p>
|
1376
1055
|
<p class="since">Since 2.36</p>
|
1377
1056
|
</div>
|
1378
1057
|
<hr>
|
1379
1058
|
<div class="refsect2">
|
1380
|
-
<a name="RsvgHandle--height"></a><h3>The <code class="literal"
|
1381
|
-
<pre class="programlisting">
|
1059
|
+
<a name="RsvgHandle--height"></a><h3>The <code class="literal">"height"</code> property</h3>
|
1060
|
+
<pre class="programlisting"> "height" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read</pre>
|
1382
1061
|
<p>Image height.</p>
|
1383
|
-
<p>Flags: Read</p>
|
1384
1062
|
<p>Allowed values: >= 0</p>
|
1385
1063
|
<p>Default value: 0</p>
|
1386
1064
|
</div>
|
1387
1065
|
<hr>
|
1388
1066
|
<div class="refsect2">
|
1389
|
-
<a name="RsvgHandle--metadata"></a><h3>The <code class="literal"
|
1390
|
-
<pre class="programlisting">
|
1391
|
-
<
|
1392
|
-
<
|
1393
|
-
<p>
|
1067
|
+
<a name="RsvgHandle--metadata"></a><h3>The <code class="literal">"metadata"</code> property</h3>
|
1068
|
+
<pre class="programlisting"> "metadata" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
|
1069
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1070
|
+
<h3 class="title">Warning</h3>
|
1071
|
+
<p><code class="literal">RsvgHandle:metadata</code> is deprecated and should not be used in newly-written code. 2.36</p>
|
1072
|
+
</div>
|
1073
|
+
<p>
|
1074
|
+
SVG's description
|
1075
|
+
</p>
|
1394
1076
|
<p>Default value: NULL</p>
|
1395
1077
|
</div>
|
1396
1078
|
<hr>
|
1397
1079
|
<div class="refsect2">
|
1398
|
-
<a name="RsvgHandle--title"></a><h3>The <code class="literal"
|
1399
|
-
<pre class="programlisting">
|
1400
|
-
<
|
1401
|
-
<
|
1402
|
-
<p>
|
1080
|
+
<a name="RsvgHandle--title"></a><h3>The <code class="literal">"title"</code> property</h3>
|
1081
|
+
<pre class="programlisting"> "title" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
|
1082
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1083
|
+
<h3 class="title">Warning</h3>
|
1084
|
+
<p><code class="literal">RsvgHandle:title</code> is deprecated and should not be used in newly-written code. 2.36</p>
|
1085
|
+
</div>
|
1086
|
+
<p>
|
1087
|
+
SVG's description
|
1088
|
+
</p>
|
1403
1089
|
<p>Default value: NULL</p>
|
1404
1090
|
</div>
|
1405
1091
|
<hr>
|
1406
1092
|
<div class="refsect2">
|
1407
|
-
<a name="RsvgHandle--width"></a><h3>The <code class="literal"
|
1408
|
-
<pre class="programlisting">
|
1093
|
+
<a name="RsvgHandle--width"></a><h3>The <code class="literal">"width"</code> property</h3>
|
1094
|
+
<pre class="programlisting"> "width" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read</pre>
|
1409
1095
|
<p>Image width.</p>
|
1410
|
-
<p>Flags: Read</p>
|
1411
1096
|
<p>Allowed values: >= 0</p>
|
1412
1097
|
<p>Default value: 0</p>
|
1413
1098
|
</div>
|
@@ -1415,6 +1100,6 @@ arguments are set to -1.</p>
|
|
1415
1100
|
</div>
|
1416
1101
|
<div class="footer">
|
1417
1102
|
<hr>
|
1418
|
-
Generated by GTK-Doc V1.
|
1103
|
+
Generated by GTK-Doc V1.19</div>
|
1419
1104
|
</body>
|
1420
1105
|
</html>
|