rsvg2 3.0.8-x64-mingw32 → 3.0.9-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/2.2/rsvg2.so +0 -0
- data/lib/2.3/rsvg2.so +0 -0
- data/sample/svg2.rb +1 -1
- 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/include/librsvg-2.0/librsvg/rsvg.h +1 -0
- data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
- data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
- data/vendor/local/lib/librsvg-2.a +0 -0
- data/vendor/local/lib/librsvg-2.dll.a +0 -0
- data/vendor/local/lib/librsvg-2.la +1 -1
- 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 +98 -73
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +3 -3
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +1 -1
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +35 -35
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +31 -31
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +7 -7
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b8ab9f5975274e87fa4c91927420a58cbbfd2f1
|
4
|
+
data.tar.gz: 3d872ac23dc4501ce546263d35f20c0bd9a4c5da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbf9da38e694eb668a42f1055d321fae38c56516b30c76febc95bb5612a7b4500b8df287ef8d899c36bb9b140a73e2d1de952b60ee713a06117a81b2a5ffe201
|
7
|
+
data.tar.gz: 75e770de37174b9f534593e323f36da3a136c72ef5457d0c725c41a591631bf149fbc35bb37c4950bd38adc0976aa1a6a93d7c0146ffb44468ee8f2efd9ec1d8
|
data/Rakefile
CHANGED
data/lib/2.2/rsvg2.so
CHANGED
Binary file
|
data/lib/2.3/rsvg2.so
CHANGED
Binary file
|
data/sample/svg2.rb
CHANGED
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 (16)
|
11
|
+
#define LIBRSVG_VERSION "2.40.16"
|
12
12
|
|
13
13
|
#define LIBRSVG_CHECK_VERSION(major,minor,micro) \
|
14
14
|
(LIBRSVG_MAJOR_VERSION > (major) || \
|
@@ -215,6 +215,7 @@ void rsvg_handle_free (RsvgHandle * handle);
|
|
215
215
|
* Function to let a user of the library specify the SVG's dimensions
|
216
216
|
*
|
217
217
|
* Deprecated: Set up a cairo matrix and use rsvg_handle_render_cairo() instead.
|
218
|
+
* See the documentation for rsvg_handle_set_size_callback() for an example.
|
218
219
|
*/
|
219
220
|
typedef /* RSVG_DEPRECATED */ void (*RsvgSizeFunc) (gint * width, gint * height, gpointer user_data);
|
220
221
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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="16" 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.16" 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">
|
@@ -47,7 +47,7 @@
|
|
47
47
|
</tr>
|
48
48
|
<tr>
|
49
49
|
<td class="function_type">
|
50
|
-
<a href="
|
50
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>
|
51
51
|
</td>
|
52
52
|
<td class="function_name">
|
53
53
|
<a class="link" href="RsvgHandle.html#rsvg-error-quark" title="rsvg_error_quark ()">rsvg_error_quark</a> <span class="c_punctuation">()</span>
|
@@ -111,7 +111,7 @@
|
|
111
111
|
</tr>
|
112
112
|
<tr>
|
113
113
|
<td class="function_type">
|
114
|
-
<a href="
|
114
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
115
115
|
</td>
|
116
116
|
<td class="function_name">
|
117
117
|
<a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()">rsvg_handle_write</a> <span class="c_punctuation">()</span>
|
@@ -119,7 +119,7 @@
|
|
119
119
|
</tr>
|
120
120
|
<tr>
|
121
121
|
<td class="function_type">
|
122
|
-
<a href="
|
122
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
123
123
|
</td>
|
124
124
|
<td class="function_name">
|
125
125
|
<a class="link" href="RsvgHandle.html#rsvg-handle-close" title="rsvg_handle_close ()">rsvg_handle_close</a> <span class="c_punctuation">()</span>
|
@@ -150,7 +150,7 @@
|
|
150
150
|
</tr>
|
151
151
|
<tr>
|
152
152
|
<td class="function_type">
|
153
|
-
<a href="
|
153
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
154
154
|
</td>
|
155
155
|
<td class="function_name">
|
156
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>
|
@@ -158,7 +158,7 @@
|
|
158
158
|
</tr>
|
159
159
|
<tr>
|
160
160
|
<td class="function_type">
|
161
|
-
<a href="
|
161
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
162
162
|
</td>
|
163
163
|
<td class="function_name">
|
164
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>
|
@@ -166,7 +166,7 @@
|
|
166
166
|
</tr>
|
167
167
|
<tr>
|
168
168
|
<td class="function_type">
|
169
|
-
<a href="
|
169
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
170
170
|
</td>
|
171
171
|
<td class="function_name">
|
172
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>
|
@@ -211,7 +211,7 @@
|
|
211
211
|
</tr>
|
212
212
|
<tr>
|
213
213
|
<td class="function_type">
|
214
|
-
<a href="
|
214
|
+
<a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
|
215
215
|
</td>
|
216
216
|
<td class="function_name">
|
217
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>
|
@@ -267,33 +267,33 @@
|
|
267
267
|
<tbody>
|
268
268
|
<tr>
|
269
269
|
<td class="property_type">
|
270
|
-
<a href="
|
270
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
|
271
271
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--base-uri" title="The “base-uri” property">base-uri</a></td>
|
272
272
|
<td class="property_flags">Read / Write / Construct</td>
|
273
273
|
</tr>
|
274
274
|
<tr>
|
275
275
|
<td class="property_type">
|
276
|
-
<a href="
|
276
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
|
277
277
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--desc" title="The “desc” property">desc</a></td>
|
278
278
|
<td class="property_flags">Read</td>
|
279
279
|
</tr>
|
280
280
|
<tr>
|
281
|
-
<td class="property_type"><a href="
|
281
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
282
282
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-x" title="The “dpi-x” property">dpi-x</a></td>
|
283
283
|
<td class="property_flags">Read / Write / Construct</td>
|
284
284
|
</tr>
|
285
285
|
<tr>
|
286
|
-
<td class="property_type"><a href="
|
286
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
287
287
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-y" title="The “dpi-y” property">dpi-y</a></td>
|
288
288
|
<td class="property_flags">Read / Write / Construct</td>
|
289
289
|
</tr>
|
290
290
|
<tr>
|
291
|
-
<td class="property_type"><a href="
|
291
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
292
292
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--em" title="The “em” property">em</a></td>
|
293
293
|
<td class="property_flags">Read</td>
|
294
294
|
</tr>
|
295
295
|
<tr>
|
296
|
-
<td class="property_type"><a href="
|
296
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td>
|
297
297
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--ex" title="The “ex” property">ex</a></td>
|
298
298
|
<td class="property_flags">Read</td>
|
299
299
|
</tr>
|
@@ -303,24 +303,24 @@
|
|
303
303
|
<td class="property_flags">Read / Write / Construct Only</td>
|
304
304
|
</tr>
|
305
305
|
<tr>
|
306
|
-
<td class="property_type"><a href="
|
306
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
307
307
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--height" title="The “height” property">height</a></td>
|
308
308
|
<td class="property_flags">Read</td>
|
309
309
|
</tr>
|
310
310
|
<tr>
|
311
311
|
<td class="property_type">
|
312
|
-
<a href="
|
312
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
|
313
313
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--metadata" title="The “metadata” property">metadata</a></td>
|
314
314
|
<td class="property_flags">Read</td>
|
315
315
|
</tr>
|
316
316
|
<tr>
|
317
317
|
<td class="property_type">
|
318
|
-
<a href="
|
318
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
|
319
319
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--title" title="The “title” property">title</a></td>
|
320
320
|
<td class="property_flags">Read</td>
|
321
321
|
</tr>
|
322
322
|
<tr>
|
323
|
-
<td class="property_type"><a href="
|
323
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
324
324
|
<td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--width" title="The “width” property">width</a></td>
|
325
325
|
<td class="property_flags">Read</td>
|
326
326
|
</tr>
|
@@ -364,9 +364,9 @@
|
|
364
364
|
</div>
|
365
365
|
<div class="refsect1">
|
366
366
|
<a name="RsvgHandle.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
367
|
-
<pre class="screen"> <a href="
|
367
|
+
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
|
368
368
|
<span class="lineart">╰──</span> RsvgError
|
369
|
-
<a href="
|
369
|
+
<a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
370
370
|
<span class="lineart">╰──</span> RsvgHandle
|
371
371
|
</pre>
|
372
372
|
</div>
|
@@ -389,7 +389,7 @@ SVG graphics. It is lightweight and portable.</p>
|
|
389
389
|
<hr>
|
390
390
|
<div class="refsect2">
|
391
391
|
<a name="rsvg-error-quark"></a><h3>rsvg_error_quark ()</h3>
|
392
|
-
<pre class="programlisting"><a href="
|
392
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>
|
393
393
|
rsvg_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
394
394
|
<p>The error domain for RSVG</p>
|
395
395
|
<div class="refsect3">
|
@@ -553,7 +553,7 @@ data using <em class="parameter"><code>rsvg_handle_write</code></em>
|
|
553
553
|
, then call <em class="parameter"><code>rsvg_handle_close</code></em>
|
554
554
|
when done.
|
555
555
|
Afterwords, you can render it using Cairo or get a GdkPixbuf from it. When
|
556
|
-
finished, free with <a href="
|
556
|
+
finished, free with <a href="https://developer.gnome.org/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
|
557
557
|
with one handle.</p>
|
558
558
|
<div class="refsect3">
|
559
559
|
<a name="id-1.2.3.8.9.5"></a><h4>Returns</h4>
|
@@ -593,18 +593,18 @@ rsvg_handle_new_with_flags (<em class="parameter"><code><a class="link" href="rs
|
|
593
593
|
<hr>
|
594
594
|
<div class="refsect2">
|
595
595
|
<a name="rsvg-handle-write"></a><h3>rsvg_handle_write ()</h3>
|
596
|
-
<pre class="programlisting"><a href="
|
596
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
597
597
|
rsvg_handle_write (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
598
|
-
<em class="parameter"><code>const <a href="
|
599
|
-
<em class="parameter"><code><a href="
|
600
|
-
<em class="parameter"><code><a href="
|
598
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
|
599
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
|
600
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
601
601
|
<p>Loads the next <em class="parameter"><code>count</code></em>
|
602
|
-
bytes of the image. This will return <a href="
|
603
|
-
was loaded successful, and <a href="
|
604
|
-
the loader will be closed, and will not accept further writes. If <a href="
|
602
|
+
bytes of the image. This will return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data
|
603
|
+
was loaded successful, and <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case,
|
604
|
+
the loader will be closed, and will not accept further writes. If <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is
|
605
605
|
returned, <em class="parameter"><code>error</code></em>
|
606
606
|
will be set to an error from the <a class="link" href="RsvgHandle.html#RsvgError" title="enum RsvgError"><span class="type">RsvgError</span></a> domain. Errors
|
607
|
-
from <a href="
|
607
|
+
from <a href="https://developer.gnome.org/gio/unstable/gio-GIOError.html#GIOErrorEnum"><span class="type">GIOErrorEnum</span></a> are also possible.</p>
|
608
608
|
<div class="refsect3">
|
609
609
|
<a name="id-1.2.3.8.11.5"></a><h4>Parameters</h4>
|
610
610
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -632,7 +632,7 @@ buffer in bytes</p></td>
|
|
632
632
|
</tr>
|
633
633
|
<tr>
|
634
634
|
<td class="parameter_name"><p>error</p></td>
|
635
|
-
<td class="parameter_description"><p> a location to store a <a href="
|
635
|
+
<td class="parameter_description"><p> a location to store a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
636
636
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
637
637
|
</tr>
|
638
638
|
</tbody>
|
@@ -640,19 +640,19 @@ buffer in bytes</p></td>
|
|
640
640
|
</div>
|
641
641
|
<div class="refsect3">
|
642
642
|
<a name="id-1.2.3.8.11.6"></a><h4>Returns</h4>
|
643
|
-
<p> <a href="
|
643
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
|
644
644
|
<p></p>
|
645
645
|
</div>
|
646
646
|
</div>
|
647
647
|
<hr>
|
648
648
|
<div class="refsect2">
|
649
649
|
<a name="rsvg-handle-close"></a><h3>rsvg_handle_close ()</h3>
|
650
|
-
<pre class="programlisting"><a href="
|
650
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
651
651
|
rsvg_handle_close (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
652
|
-
<em class="parameter"><code><a href="
|
652
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
653
653
|
<p>Closes <em class="parameter"><code>handle</code></em>
|
654
654
|
, to indicate that loading the image is complete. This will
|
655
|
-
return <a href="
|
655
|
+
return <a href="https://developer.gnome.org/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>
|
656
656
|
isn't
|
657
657
|
freed until <em class="parameter"><code>g_object_unref</code></em>
|
658
658
|
is called.</p>
|
@@ -672,7 +672,7 @@ freed until <em class="parameter"><code>g_object_unref</code></em>
|
|
672
672
|
</tr>
|
673
673
|
<tr>
|
674
674
|
<td class="parameter_name"><p>error</p></td>
|
675
|
-
<td class="parameter_description"><p> a location to store a <a href="
|
675
|
+
<td class="parameter_description"><p> a location to store a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
676
676
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
677
677
|
</tr>
|
678
678
|
</tbody>
|
@@ -680,7 +680,7 @@ freed until <em class="parameter"><code>g_object_unref</code></em>
|
|
680
680
|
</div>
|
681
681
|
<div class="refsect3">
|
682
682
|
<a name="id-1.2.3.8.12.6"></a><h4>Returns</h4>
|
683
|
-
<p> <a href="
|
683
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
|
684
684
|
<p></p>
|
685
685
|
</div>
|
686
686
|
</div>
|
@@ -778,7 +778,7 @@ rsvg_handle_get_dimensions (<em class="parameter"><code><a class="link" href="Rs
|
|
778
778
|
<hr>
|
779
779
|
<div class="refsect2">
|
780
780
|
<a name="rsvg-handle-get-dimensions-sub"></a><h3>rsvg_handle_get_dimensions_sub ()</h3>
|
781
|
-
<pre class="programlisting"><a href="
|
781
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
782
782
|
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>,
|
783
783
|
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>,
|
784
784
|
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
@@ -804,7 +804,7 @@ rsvg_handle_get_dimensions_sub (<em class="parameter"><code><a class="link" href
|
|
804
804
|
</tr>
|
805
805
|
<tr>
|
806
806
|
<td class="parameter_name"><p>id</p></td>
|
807
|
-
<td class="parameter_description"><p> An element's id within the SVG, or <a href="
|
807
|
+
<td class="parameter_description"><p> An element's id within the SVG, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to get
|
808
808
|
the dimension of the whole SVG. For example, if you have a layer
|
809
809
|
called "layer1" for that you want to get the dimension, pass
|
810
810
|
"<span class="type">layer1</span>" as the id. </p></td>
|
@@ -818,7 +818,7 @@ called "layer1" for that you want to get the dimension, pass
|
|
818
818
|
<hr>
|
819
819
|
<div class="refsect2">
|
820
820
|
<a name="rsvg-handle-get-position-sub"></a><h3>rsvg_handle_get_position_sub ()</h3>
|
821
|
-
<pre class="programlisting"><a href="
|
821
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
822
822
|
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>,
|
823
823
|
<em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>,
|
824
824
|
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
@@ -858,7 +858,7 @@ the position, pass "#<span class="type">layer1</span>" as the id.</p></td>
|
|
858
858
|
<hr>
|
859
859
|
<div class="refsect2">
|
860
860
|
<a name="rsvg-handle-has-sub"></a><h3>rsvg_handle_has_sub ()</h3>
|
861
|
-
<pre class="programlisting"><a href="
|
861
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
862
862
|
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>,
|
863
863
|
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
864
864
|
<p>Checks whether the element <em class="parameter"><code>id</code></em>
|
@@ -887,7 +887,7 @@ rsvg_handle_has_sub (<em class="parameter"><code><a class="link" href="RsvgHandl
|
|
887
887
|
</div>
|
888
888
|
<div class="refsect3">
|
889
889
|
<a name="id-1.2.3.8.18.6"></a><h4>Returns</h4>
|
890
|
-
<p> <a href="
|
890
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>id</code></em>
|
891
891
|
exists in the SVG document</p>
|
892
892
|
<p></p>
|
893
893
|
</div>
|
@@ -899,7 +899,7 @@ exists in the SVG document</p>
|
|
899
899
|
<pre class="programlisting">const <span class="returnvalue">char</span> *
|
900
900
|
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>
|
901
901
|
<div class="warning"><p><code class="literal">rsvg_handle_get_title</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
|
902
|
-
<p>Returns the SVG's title in UTF-8 or <a href="
|
902
|
+
<p>Returns the SVG's title in UTF-8 or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
|
903
903
|
of this title if you wish to use it after <em class="parameter"><code>handle</code></em>
|
904
904
|
has been freed.</p>
|
905
905
|
<div class="refsect3">
|
@@ -930,7 +930,7 @@ of this title if you wish to use it after <em class="parameter"><code>handle</co
|
|
930
930
|
<pre class="programlisting">const <span class="returnvalue">char</span> *
|
931
931
|
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>
|
932
932
|
<div class="warning"><p><code class="literal">rsvg_handle_get_desc</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
|
933
|
-
<p>Returns the SVG's description in UTF-8 or <a href="
|
933
|
+
<p>Returns the SVG's description in UTF-8 or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
|
934
934
|
of this description if you wish to use it after <em class="parameter"><code>handle</code></em>
|
935
935
|
has been freed.</p>
|
936
936
|
<div class="refsect3">
|
@@ -961,7 +961,7 @@ of this description if you wish to use it after <em class="parameter"><code>hand
|
|
961
961
|
<pre class="programlisting">const <span class="returnvalue">char</span> *
|
962
962
|
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>
|
963
963
|
<div class="warning"><p><code class="literal">rsvg_handle_get_metadata</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
|
964
|
-
<p>Returns the SVG's metadata in UTF-8 or <a href="
|
964
|
+
<p>Returns the SVG's metadata in UTF-8 or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy
|
965
965
|
of this metadata if you wish to use it after <em class="parameter"><code>handle</code></em>
|
966
966
|
has been freed.</p>
|
967
967
|
<div class="refsect3">
|
@@ -990,9 +990,9 @@ of this metadata if you wish to use it after <em class="parameter"><code>handle<
|
|
990
990
|
<div class="refsect2">
|
991
991
|
<a name="rsvg-handle-new-from-data"></a><h3>rsvg_handle_new_from_data ()</h3>
|
992
992
|
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
|
993
|
-
rsvg_handle_new_from_data (<em class="parameter"><code>const <a href="
|
994
|
-
<em class="parameter"><code><a href="
|
995
|
-
<em class="parameter"><code><a href="
|
993
|
+
rsvg_handle_new_from_data (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
|
994
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> data_len</code></em>,
|
995
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
996
996
|
<p>Loads the SVG specified by <em class="parameter"><code>data</code></em>
|
997
997
|
.</p>
|
998
998
|
<div class="refsect3">
|
@@ -1025,7 +1025,7 @@ rsvg_handle_new_from_data (<em class="parameter"><code>const <a href="/home/vagr
|
|
1025
1025
|
</div>
|
1026
1026
|
<div class="refsect3">
|
1027
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="
|
1028
|
+
<p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p>
|
1029
1029
|
<p></p>
|
1030
1030
|
</div>
|
1031
1031
|
<p class="since">Since 2.14</p>
|
@@ -1034,8 +1034,8 @@ rsvg_handle_new_from_data (<em class="parameter"><code>const <a href="/home/vagr
|
|
1034
1034
|
<div class="refsect2">
|
1035
1035
|
<a name="rsvg-handle-new-from-file"></a><h3>rsvg_handle_new_from_file ()</h3>
|
1036
1036
|
<pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> *
|
1037
|
-
rsvg_handle_new_from_file (<em class="parameter"><code>const <a href="
|
1038
|
-
<em class="parameter"><code><a href="
|
1037
|
+
rsvg_handle_new_from_file (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
1038
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1039
1039
|
<p>Loads the SVG specified by <em class="parameter"><code>file_name</code></em>
|
1040
1040
|
.</p>
|
1041
1041
|
<div class="refsect3">
|
@@ -1062,7 +1062,7 @@ rsvg_handle_new_from_file (<em class="parameter"><code>const <a href="/home/vagr
|
|
1062
1062
|
</div>
|
1063
1063
|
<div class="refsect3">
|
1064
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="
|
1065
|
+
<p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p>
|
1066
1066
|
<p></p>
|
1067
1067
|
</div>
|
1068
1068
|
<p class="since">Since 2.14</p>
|
@@ -1070,7 +1070,7 @@ rsvg_handle_new_from_file (<em class="parameter"><code>const <a href="/home/vagr
|
|
1070
1070
|
<hr>
|
1071
1071
|
<div class="refsect2">
|
1072
1072
|
<a name="rsvg-error-get-type"></a><h3>rsvg_error_get_type ()</h3>
|
1073
|
-
<pre class="programlisting"><a href="
|
1073
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
|
1074
1074
|
rsvg_error_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1075
1075
|
</div>
|
1076
1076
|
<hr>
|
@@ -1085,7 +1085,7 @@ rsvg_error_get_type (<em class="parameter"><code><span class="type">void</span><
|
|
1085
1085
|
rsvg_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1086
1086
|
<div class="warning">
|
1087
1087
|
<p><code class="literal">rsvg_init</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p>
|
1088
|
-
<p>Use <a href="
|
1088
|
+
<p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init"><code class="function">g_type_init()</code></a></p>
|
1089
1089
|
</div>
|
1090
1090
|
<p>Initializes librsvg</p>
|
1091
1091
|
<p class="since">Since 2.9</p>
|
@@ -1106,7 +1106,7 @@ rsvg_term (<em class="parameter"><code><span class="type">void</span></code></em
|
|
1106
1106
|
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>
|
1107
1107
|
<div class="warning">
|
1108
1108
|
<p><code class="literal">rsvg_handle_free</code> is deprecated and should not be used in newly-written code.</p>
|
1109
|
-
<p>Use <a href="
|
1109
|
+
<p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> instead.</p>
|
1110
1110
|
</div>
|
1111
1111
|
<p>Frees <em class="parameter"><code>handle</code></em>
|
1112
1112
|
.</p>
|
@@ -1132,11 +1132,36 @@ rsvg_handle_free (<em class="parameter"><code><a class="link" href="RsvgHandle.h
|
|
1132
1132
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1133
1133
|
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>,
|
1134
1134
|
<em class="parameter"><code><span class="type">RsvgSizeFunc</span> size_func</code></em>,
|
1135
|
-
<em class="parameter"><code><a href="
|
1136
|
-
<em class="parameter"><code><a href="
|
1135
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
1136
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> user_data_destroy</code></em>);</pre>
|
1137
1137
|
<div class="warning">
|
1138
1138
|
<p><code class="literal">rsvg_handle_set_size_callback</code> is deprecated and should not be used in newly-written code.</p>
|
1139
|
-
<p>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
|
1139
|
+
<p>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.
|
1140
|
+
You can call <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions" title="rsvg_handle_get_dimensions ()"><code class="function">rsvg_handle_get_dimensions()</code></a> to figure out the size of your SVG,
|
1141
|
+
and then scale it to the desired size via Cairo. For example, the following
|
1142
|
+
code renders an SVG at a specified size, scaled proportionally from whatever
|
1143
|
+
original size it may have had:</p>
|
1144
|
+
<div class="informalexample"><pre class="programlisting">
|
1145
|
+
void
|
1146
|
+
render_scaled_proportionally (RsvgHandle *handle, cairo_t cr, int width, int height)
|
1147
|
+
{
|
1148
|
+
RsvgDimensionData dimensions;
|
1149
|
+
double x_factor, y_factor;
|
1150
|
+
double scale_factor;
|
1151
|
+
|
1152
|
+
rsvg_handle_get_dimensions (handle, &dimensions);
|
1153
|
+
|
1154
|
+
x_factor = (double) width / dimensions.width;
|
1155
|
+
y_factor = (double) height / dimensions.height;
|
1156
|
+
|
1157
|
+
scale_factor = MIN (x_factor, y_factor);
|
1158
|
+
|
1159
|
+
cairo_scale (cr, scale_factor, scale_factor);
|
1160
|
+
|
1161
|
+
rsvg_handle_render_cairo (handle, cr);
|
1162
|
+
}
|
1163
|
+
</pre></div>
|
1164
|
+
<p></p>
|
1140
1165
|
</div>
|
1141
1166
|
<p>Sets the sizing function for the <em class="parameter"><code>handle</code></em>
|
1142
1167
|
. This function is called right
|
@@ -1160,19 +1185,19 @@ arguments are set to -1.</p>
|
|
1160
1185
|
</tr>
|
1161
1186
|
<tr>
|
1162
1187
|
<td class="parameter_name"><p>size_func</p></td>
|
1163
|
-
<td class="parameter_description"><p> A sizing function, or <a href="
|
1188
|
+
<td class="parameter_description"><p> A sizing function, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
1164
1189
|
<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
1190
|
</tr>
|
1166
1191
|
<tr>
|
1167
1192
|
<td class="parameter_name"><p>user_data</p></td>
|
1168
1193
|
<td class="parameter_description"><p>User data to pass to <em class="parameter"><code>size_func</code></em>
|
1169
|
-
, or <a href="
|
1194
|
+
, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
1170
1195
|
<td class="parameter_annotations"> </td>
|
1171
1196
|
</tr>
|
1172
1197
|
<tr>
|
1173
1198
|
<td class="parameter_name"><p>user_data_destroy</p></td>
|
1174
1199
|
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>user_data</code></em>
|
1175
|
-
, or <a href="
|
1200
|
+
, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
1176
1201
|
<td class="parameter_annotations"> </td>
|
1177
1202
|
</tr>
|
1178
1203
|
</tbody>
|
@@ -1230,7 +1255,7 @@ arguments are set to -1.</p>
|
|
1230
1255
|
<col width="200px" class="struct_members_annotations">
|
1231
1256
|
</colgroup>
|
1232
1257
|
<tbody><tr>
|
1233
|
-
<td class="struct_member_name"><p><a href="
|
1258
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/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>;</p></td>
|
1234
1259
|
<td class="struct_member_description"><p>parent class</p></td>
|
1235
1260
|
<td class="struct_member_annotations"> </td>
|
1236
1261
|
</tr></tbody>
|
@@ -1267,12 +1292,12 @@ arguments are set to -1.</p>
|
|
1267
1292
|
<td class="struct_member_annotations"> </td>
|
1268
1293
|
</tr>
|
1269
1294
|
<tr>
|
1270
|
-
<td class="struct_member_name"><p><a href="
|
1295
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/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>;</p></td>
|
1271
1296
|
<td class="struct_member_description"><p>em</p></td>
|
1272
1297
|
<td class="struct_member_annotations"> </td>
|
1273
1298
|
</tr>
|
1274
1299
|
<tr>
|
1275
|
-
<td class="struct_member_name"><p><a href="
|
1300
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/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>;</p></td>
|
1276
1301
|
<td class="struct_member_description"><p>ex</p></td>
|
1277
1302
|
<td class="struct_member_annotations"> </td>
|
1278
1303
|
</tr>
|
@@ -1317,7 +1342,7 @@ arguments are set to -1.</p>
|
|
1317
1342
|
<a name="RsvgHandle.property-details"></a><h2>Property Details</h2>
|
1318
1343
|
<div class="refsect2">
|
1319
1344
|
<a name="RsvgHandle--base-uri"></a><h3>The <code class="literal">“base-uri”</code> property</h3>
|
1320
|
-
<pre class="programlisting"> “base-uri” <a href="
|
1345
|
+
<pre class="programlisting"> “base-uri” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
|
1321
1346
|
<p>Base URI.</p>
|
1322
1347
|
<p>Flags: Read / Write / Construct</p>
|
1323
1348
|
<p>Default value: NULL</p>
|
@@ -1325,7 +1350,7 @@ arguments are set to -1.</p>
|
|
1325
1350
|
<hr>
|
1326
1351
|
<div class="refsect2">
|
1327
1352
|
<a name="RsvgHandle--desc"></a><h3>The <code class="literal">“desc”</code> property</h3>
|
1328
|
-
<pre class="programlisting"> “desc” <a href="
|
1353
|
+
<pre class="programlisting"> “desc” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
|
1329
1354
|
<p>SVG's description</p>
|
1330
1355
|
<div class="warning"><p><code class="literal">RsvgHandle:desc</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
|
1331
1356
|
<p>Flags: Read</p>
|
@@ -1334,7 +1359,7 @@ arguments are set to -1.</p>
|
|
1334
1359
|
<hr>
|
1335
1360
|
<div class="refsect2">
|
1336
1361
|
<a name="RsvgHandle--dpi-x"></a><h3>The <code class="literal">“dpi-x”</code> property</h3>
|
1337
|
-
<pre class="programlisting"> “dpi-x” <a href="
|
1362
|
+
<pre class="programlisting"> “dpi-x” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></pre>
|
1338
1363
|
<p>Horizontal resolution.</p>
|
1339
1364
|
<p>Flags: Read / Write / Construct</p>
|
1340
1365
|
<p>Allowed values: >= 0</p>
|
@@ -1343,7 +1368,7 @@ arguments are set to -1.</p>
|
|
1343
1368
|
<hr>
|
1344
1369
|
<div class="refsect2">
|
1345
1370
|
<a name="RsvgHandle--dpi-y"></a><h3>The <code class="literal">“dpi-y”</code> property</h3>
|
1346
|
-
<pre class="programlisting"> “dpi-y” <a href="
|
1371
|
+
<pre class="programlisting"> “dpi-y” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></pre>
|
1347
1372
|
<p>Vertical resolution.</p>
|
1348
1373
|
<p>Flags: Read / Write / Construct</p>
|
1349
1374
|
<p>Allowed values: >= 0</p>
|
@@ -1352,7 +1377,7 @@ arguments are set to -1.</p>
|
|
1352
1377
|
<hr>
|
1353
1378
|
<div class="refsect2">
|
1354
1379
|
<a name="RsvgHandle--em"></a><h3>The <code class="literal">“em”</code> property</h3>
|
1355
|
-
<pre class="programlisting"> “em” <a href="
|
1380
|
+
<pre class="programlisting"> “em” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></pre>
|
1356
1381
|
<p>em.</p>
|
1357
1382
|
<p>Flags: Read</p>
|
1358
1383
|
<p>Allowed values: >= 0</p>
|
@@ -1361,7 +1386,7 @@ arguments are set to -1.</p>
|
|
1361
1386
|
<hr>
|
1362
1387
|
<div class="refsect2">
|
1363
1388
|
<a name="RsvgHandle--ex"></a><h3>The <code class="literal">“ex”</code> property</h3>
|
1364
|
-
<pre class="programlisting"> “ex” <a href="
|
1389
|
+
<pre class="programlisting"> “ex” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></pre>
|
1365
1390
|
<p>ex.</p>
|
1366
1391
|
<p>Flags: Read</p>
|
1367
1392
|
<p>Allowed values: >= 0</p>
|
@@ -1378,7 +1403,7 @@ arguments are set to -1.</p>
|
|
1378
1403
|
<hr>
|
1379
1404
|
<div class="refsect2">
|
1380
1405
|
<a name="RsvgHandle--height"></a><h3>The <code class="literal">“height”</code> property</h3>
|
1381
|
-
<pre class="programlisting"> “height” <a href="
|
1406
|
+
<pre class="programlisting"> “height” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
1382
1407
|
<p>Image height.</p>
|
1383
1408
|
<p>Flags: Read</p>
|
1384
1409
|
<p>Allowed values: >= 0</p>
|
@@ -1387,7 +1412,7 @@ arguments are set to -1.</p>
|
|
1387
1412
|
<hr>
|
1388
1413
|
<div class="refsect2">
|
1389
1414
|
<a name="RsvgHandle--metadata"></a><h3>The <code class="literal">“metadata”</code> property</h3>
|
1390
|
-
<pre class="programlisting"> “metadata” <a href="
|
1415
|
+
<pre class="programlisting"> “metadata” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
|
1391
1416
|
<p>SVG's description</p>
|
1392
1417
|
<div class="warning"><p><code class="literal">RsvgHandle:metadata</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
|
1393
1418
|
<p>Flags: Read</p>
|
@@ -1396,7 +1421,7 @@ arguments are set to -1.</p>
|
|
1396
1421
|
<hr>
|
1397
1422
|
<div class="refsect2">
|
1398
1423
|
<a name="RsvgHandle--title"></a><h3>The <code class="literal">“title”</code> property</h3>
|
1399
|
-
<pre class="programlisting"> “title” <a href="
|
1424
|
+
<pre class="programlisting"> “title” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
|
1400
1425
|
<p>SVG's description</p>
|
1401
1426
|
<div class="warning"><p><code class="literal">RsvgHandle:title</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div>
|
1402
1427
|
<p>Flags: Read</p>
|
@@ -1405,7 +1430,7 @@ arguments are set to -1.</p>
|
|
1405
1430
|
<hr>
|
1406
1431
|
<div class="refsect2">
|
1407
1432
|
<a name="RsvgHandle--width"></a><h3>The <code class="literal">“width”</code> property</h3>
|
1408
|
-
<pre class="programlisting"> “width” <a href="
|
1433
|
+
<pre class="programlisting"> “width” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
1409
1434
|
<p>Image width.</p>
|
1410
1435
|
<p>Flags: Read</p>
|
1411
1436
|
<p>Allowed values: >= 0</p>
|