@revizly/sharp-libvips-dev 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/include/aom/aom_decoder.h +1 -1
- package/include/aom/aom_encoder.h +6 -1
- package/include/aom/aom_image.h +24 -12
- package/include/aom/aom_integer.h +3 -3
- package/include/aom/aomcx.h +15 -0
- package/include/aom/aomdx.h +5 -2
- package/include/archive.h +7 -5
- package/include/archive_entry.h +5 -3
- package/include/cgif.h +3 -0
- package/include/freetype2/freetype/config/ftoption.h +1 -1
- package/include/fribidi/fribidi-config.h +2 -2
- package/include/fribidi/fribidi-unicode-version.h +3 -3
- package/include/harfbuzz/hb-buffer.h +6 -0
- package/include/harfbuzz/hb-common.h +6 -9
- package/include/harfbuzz/hb-cplusplus.hh +8 -11
- package/include/harfbuzz/hb-subset.h +17 -4
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
- package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- package/include/librsvg-2.0/librsvg/rsvg.h +19 -175
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/pango-1.0/pango/pango-features.h +2 -2
- package/include/webp/decode.h +58 -56
- package/include/webp/demux.h +25 -21
- package/include/webp/encode.h +44 -39
- package/include/webp/mux.h +76 -15
- package/include/webp/mux_types.h +2 -1
- package/include/webp/sharpyuv/sharpyuv.h +77 -8
- package/include/webp/types.h +29 -8
- package/package.json +1 -1
- package/versions.json +10 -11
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
2
|
+
/* vim: set sw=4 sts=4 expandtab: */
|
|
3
|
+
/*
|
|
4
|
+
rsvg-pixbuf.h: SAX-based renderer for SVG files using GDK-Pixbuf.
|
|
5
|
+
|
|
6
|
+
Copyright (C) 2000 Eazel, Inc.
|
|
7
|
+
|
|
8
|
+
This library is free software; you can redistribute it and/or
|
|
9
|
+
modify it under the terms of the GNU Lesser General Public
|
|
10
|
+
License as published by the Free Software Foundation; either
|
|
11
|
+
version 2.1 of the License, or (at your option) any later version.
|
|
12
|
+
|
|
13
|
+
This library is distributed in the hope that it will be useful,
|
|
14
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16
|
+
Lesser General Public License for more details.
|
|
17
|
+
|
|
18
|
+
You should have received a copy of the GNU Lesser General Public
|
|
19
|
+
License along with this library; if not, write to the Free Software
|
|
20
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
21
|
+
|
|
22
|
+
Author: Raph Levien <raph@artofcode.com>
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
|
|
26
|
+
#warning "Including <librsvg/rsvg-pixbuf.h> directly is deprecated."
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
#ifndef RSVG_PIXBUF_H
|
|
30
|
+
#define RSVG_PIXBUF_H
|
|
31
|
+
|
|
32
|
+
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
33
|
+
|
|
34
|
+
G_BEGIN_DECLS
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* rsvg_handle_get_pixbuf:
|
|
38
|
+
* @handle: An [class@Rsvg.Handle]
|
|
39
|
+
*
|
|
40
|
+
* Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
|
|
41
|
+
* the caller of this function must assume that ref.
|
|
42
|
+
*
|
|
43
|
+
* API ordering: This function must be called on a fully-loaded @handle. See
|
|
44
|
+
* the section "[API ordering](class.Handle.html#api-ordering)" for details.
|
|
45
|
+
*
|
|
46
|
+
* This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
|
|
47
|
+
* "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
|
|
48
|
+
* beforehand.
|
|
49
|
+
*
|
|
50
|
+
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error
|
|
51
|
+
* during rendering.
|
|
52
|
+
* Deprecated: 2.58. Use [method@Rsvg.Handle.get_pixbuf_and_error].
|
|
53
|
+
**/
|
|
54
|
+
RSVG_DEPRECATED_FOR(rsvg_handle_get_pixbuf_and_error)
|
|
55
|
+
GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* rsvg_handle_get_pixbuf_and_error:
|
|
59
|
+
* @handle: An [class@Rsvg.Handle]
|
|
60
|
+
* @error: return location for a `GError`
|
|
61
|
+
*
|
|
62
|
+
* Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
|
|
63
|
+
* the caller of this function must assume that ref.
|
|
64
|
+
*
|
|
65
|
+
* API ordering: This function must be called on a fully-loaded @handle. See
|
|
66
|
+
* the section "[API ordering](class.Handle.html#api-ordering)" for details.
|
|
67
|
+
*
|
|
68
|
+
* This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
|
|
69
|
+
* "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
|
|
70
|
+
* beforehand.
|
|
71
|
+
*
|
|
72
|
+
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error
|
|
73
|
+
* during rendering.
|
|
74
|
+
*
|
|
75
|
+
* Since: 2.58
|
|
76
|
+
**/
|
|
77
|
+
RSVG_API
|
|
78
|
+
GdkPixbuf *rsvg_handle_get_pixbuf_and_error (RsvgHandle *handle, GError **error);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* rsvg_handle_get_pixbuf_sub:
|
|
82
|
+
* @handle: An #RsvgHandle
|
|
83
|
+
* @id: (nullable): An element's id within the SVG, starting with "#" (a single
|
|
84
|
+
* hash character), for example, `#layer1`. This notation corresponds to a
|
|
85
|
+
* URL's fragment ID. Alternatively, pass `NULL` to use the whole SVG.
|
|
86
|
+
*
|
|
87
|
+
* Creates a `GdkPixbuf` the same size as the entire SVG loaded into @handle, but
|
|
88
|
+
* only renders the sub-element that has the specified @id (and all its
|
|
89
|
+
* sub-sub-elements recursively). If @id is `NULL`, this function renders the
|
|
90
|
+
* whole SVG.
|
|
91
|
+
*
|
|
92
|
+
* This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
|
|
93
|
+
* "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
|
|
94
|
+
* beforehand.
|
|
95
|
+
*
|
|
96
|
+
* If you need to render an image which is only big enough to fit a particular
|
|
97
|
+
* sub-element of the SVG, consider using [method@Rsvg.Handle.render_element].
|
|
98
|
+
*
|
|
99
|
+
* Element IDs should look like an URL fragment identifier; for example, pass
|
|
100
|
+
* `#foo` (hash `foo`) to get the geometry of the element that
|
|
101
|
+
* has an `id="foo"` attribute.
|
|
102
|
+
*
|
|
103
|
+
* API ordering: This function must be called on a fully-loaded @handle. See
|
|
104
|
+
* the section "[API ordering](class.Handle.html#api-ordering)" for details.
|
|
105
|
+
*
|
|
106
|
+
* Returns: (transfer full) (nullable): a pixbuf, or `NULL` if an error occurs
|
|
107
|
+
* during rendering.
|
|
108
|
+
*
|
|
109
|
+
* Since: 2.14
|
|
110
|
+
**/
|
|
111
|
+
RSVG_API
|
|
112
|
+
GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
|
|
113
|
+
|
|
114
|
+
/* BEGIN deprecated APIs. Do not use! */
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* rsvg-pixbuf:
|
|
118
|
+
*
|
|
119
|
+
* Years ago, GNOME and GTK used the gdk-pixbuf library as a general mechanism to load
|
|
120
|
+
* raster images into memory (PNG, JPEG, etc.) and pass them around. The general idiom
|
|
121
|
+
* was, "load this image file and give me a `GdkPixbuf` object", which is basically a pixel
|
|
122
|
+
* buffer. Librsvg supports this kind of interface to load and render SVG documents, but
|
|
123
|
+
* it is deprecated in favor of rendering to Cairo contexts.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* rsvg_pixbuf_from_file:
|
|
128
|
+
* @filename: A file name
|
|
129
|
+
* @error: return location for a `GError`
|
|
130
|
+
*
|
|
131
|
+
* Loads a new `GdkPixbuf` from @filename and returns it. The caller must
|
|
132
|
+
* assume the reference to the reurned pixbuf. If an error occurred, @error is
|
|
133
|
+
* set and `NULL` is returned.
|
|
134
|
+
*
|
|
135
|
+
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
136
|
+
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
137
|
+
**/
|
|
138
|
+
RSVG_DEPRECATED
|
|
139
|
+
GdkPixbuf *rsvg_pixbuf_from_file (const gchar *filename,
|
|
140
|
+
GError **error);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* rsvg_pixbuf_from_file_at_zoom:
|
|
144
|
+
* @filename: A file name
|
|
145
|
+
* @x_zoom: The horizontal zoom factor
|
|
146
|
+
* @y_zoom: The vertical zoom factor
|
|
147
|
+
* @error: return location for a `GError`
|
|
148
|
+
*
|
|
149
|
+
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
150
|
+
* from the size indicated by the file by a factor of @x_zoom and @y_zoom. The
|
|
151
|
+
* caller must assume the reference to the returned pixbuf. If an error
|
|
152
|
+
* occurred, @error is set and `NULL` is returned.
|
|
153
|
+
*
|
|
154
|
+
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
155
|
+
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
156
|
+
**/
|
|
157
|
+
RSVG_DEPRECATED
|
|
158
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
|
|
159
|
+
double x_zoom,
|
|
160
|
+
double y_zoom,
|
|
161
|
+
GError **error);
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* rsvg_pixbuf_from_file_at_size:
|
|
165
|
+
* @filename: A file name
|
|
166
|
+
* @width: The new width, or -1
|
|
167
|
+
* @height: The new height, or -1
|
|
168
|
+
* @error: return location for a `GError`
|
|
169
|
+
*
|
|
170
|
+
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
171
|
+
* from the size indicated to the new size indicated by @width and @height. If
|
|
172
|
+
* both of these are -1, then the default size of the image being loaded is
|
|
173
|
+
* used. The caller must assume the reference to the returned pixbuf. If an
|
|
174
|
+
* error occurred, @error is set and `NULL` is returned.
|
|
175
|
+
*
|
|
176
|
+
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
177
|
+
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
178
|
+
**/
|
|
179
|
+
RSVG_DEPRECATED
|
|
180
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *filename,
|
|
181
|
+
gint width,
|
|
182
|
+
gint height,
|
|
183
|
+
GError **error);
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* rsvg_pixbuf_from_file_at_max_size:
|
|
187
|
+
* @filename: A file name
|
|
188
|
+
* @max_width: The requested max width
|
|
189
|
+
* @max_height: The requested max height
|
|
190
|
+
* @error: return location for a `GError`
|
|
191
|
+
*
|
|
192
|
+
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is uniformly
|
|
193
|
+
* scaled so that the it fits into a rectangle of size `max_width * max_height`. The
|
|
194
|
+
* caller must assume the reference to the returned pixbuf. If an error occurred,
|
|
195
|
+
* @error is set and `NULL` is returned.
|
|
196
|
+
*
|
|
197
|
+
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
198
|
+
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
199
|
+
**/
|
|
200
|
+
RSVG_DEPRECATED
|
|
201
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar *filename,
|
|
202
|
+
gint max_width,
|
|
203
|
+
gint max_height,
|
|
204
|
+
GError **error);
|
|
205
|
+
/**
|
|
206
|
+
* rsvg_pixbuf_from_file_at_zoom_with_max:
|
|
207
|
+
* @filename: A file name
|
|
208
|
+
* @x_zoom: The horizontal zoom factor
|
|
209
|
+
* @y_zoom: The vertical zoom factor
|
|
210
|
+
* @max_width: The requested max width
|
|
211
|
+
* @max_height: The requested max height
|
|
212
|
+
* @error: return location for a `GError`
|
|
213
|
+
*
|
|
214
|
+
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
215
|
+
* from the size indicated by the file by a factor of @x_zoom and @y_zoom. If the
|
|
216
|
+
* resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
|
|
217
|
+
* down to fit in that rectangle. The caller must assume the reference to the
|
|
218
|
+
* returned pixbuf. If an error occurred, @error is set and `NULL` is returned.
|
|
219
|
+
*
|
|
220
|
+
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
221
|
+
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
222
|
+
**/
|
|
223
|
+
RSVG_DEPRECATED
|
|
224
|
+
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *filename,
|
|
225
|
+
double x_zoom,
|
|
226
|
+
double y_zoom,
|
|
227
|
+
gint max_width,
|
|
228
|
+
gint max_height,
|
|
229
|
+
GError **error);
|
|
230
|
+
|
|
231
|
+
/* END deprecated APIs. */
|
|
232
|
+
|
|
233
|
+
G_END_DECLS
|
|
234
|
+
|
|
235
|
+
#endif
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
#define RSVG_VERSION_H
|
|
7
7
|
|
|
8
8
|
#define LIBRSVG_MAJOR_VERSION (2)
|
|
9
|
-
#define LIBRSVG_MINOR_VERSION (
|
|
10
|
-
#define LIBRSVG_MICRO_VERSION (
|
|
11
|
-
#define LIBRSVG_VERSION "2.
|
|
9
|
+
#define LIBRSVG_MINOR_VERSION (58)
|
|
10
|
+
#define LIBRSVG_MICRO_VERSION (91)
|
|
11
|
+
#define LIBRSVG_VERSION "2.58.91"
|
|
12
12
|
|
|
13
13
|
#endif
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
2
2
|
/* vim: set sw=4 sts=4 expandtab: */
|
|
3
3
|
/*
|
|
4
|
-
rsvg.h: SAX-based renderer for SVG files
|
|
4
|
+
rsvg.h: SAX-based renderer for SVG files using Cairo or GDK-Pixbuf.
|
|
5
5
|
|
|
6
6
|
Copyright (C) 2000 Eazel, Inc.
|
|
7
7
|
|
|
@@ -30,9 +30,6 @@
|
|
|
30
30
|
#include <glib-object.h>
|
|
31
31
|
#include <gio/gio.h>
|
|
32
32
|
|
|
33
|
-
#include <cairo.h>
|
|
34
|
-
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
35
|
-
|
|
36
33
|
G_BEGIN_DECLS
|
|
37
34
|
|
|
38
35
|
#ifndef __GTK_DOC_IGNORE__
|
|
@@ -207,6 +204,10 @@ GType rsvg_error_get_type (void);
|
|
|
207
204
|
* [method@Rsvg.Handle.set_dpi_x_y] on an [class@Rsvg.Handle] to set the DPI before rendering
|
|
208
205
|
* it.
|
|
209
206
|
*
|
|
207
|
+
* For historical reasons, the default DPI is 90. Current CSS assumes a default DPI of 96, so
|
|
208
|
+
* you may want to set the DPI of a [class@Rsvg.Handle] immediately after creating it with
|
|
209
|
+
* [method@Rsvg.Handle.set_dpi].
|
|
210
|
+
*
|
|
210
211
|
* # Rendering
|
|
211
212
|
*
|
|
212
213
|
* The preferred way to render a whole SVG document is to use
|
|
@@ -255,12 +256,18 @@ GType rsvg_error_get_type (void);
|
|
|
255
256
|
* RsvgHandle:dpi-x:
|
|
256
257
|
*
|
|
257
258
|
* Horizontal resolution in dots per inch.
|
|
259
|
+
*
|
|
260
|
+
* The default is 90. Note that current CSS assumes a default of 96,
|
|
261
|
+
* so you may want to set it to `96.0` before rendering the handle.
|
|
258
262
|
*/
|
|
259
263
|
|
|
260
264
|
/**
|
|
261
265
|
* RsvgHandle:dpi-y:
|
|
262
266
|
*
|
|
263
267
|
* Horizontal resolution in dots per inch.
|
|
268
|
+
*
|
|
269
|
+
* The default is 90. Note that current CSS assumes a default of 96,
|
|
270
|
+
* so you may want to set it to `96.0` before rendering the handle.
|
|
264
271
|
*/
|
|
265
272
|
|
|
266
273
|
/**
|
|
@@ -606,60 +613,6 @@ gboolean rsvg_handle_write (RsvgHandle *handle,
|
|
|
606
613
|
RSVG_DEPRECATED_FOR(rsvg_handle_read_stream_sync)
|
|
607
614
|
gboolean rsvg_handle_close (RsvgHandle *handle, GError **error);
|
|
608
615
|
|
|
609
|
-
/**
|
|
610
|
-
* rsvg_handle_get_pixbuf:
|
|
611
|
-
* @handle: An [class@Rsvg.Handle]
|
|
612
|
-
*
|
|
613
|
-
* Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so
|
|
614
|
-
* the caller of this function must assume that ref.
|
|
615
|
-
*
|
|
616
|
-
* API ordering: This function must be called on a fully-loaded @handle. See
|
|
617
|
-
* the section "[API ordering](class.Handle.html#api-ordering)" for details.
|
|
618
|
-
*
|
|
619
|
-
* This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
|
|
620
|
-
* "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
|
|
621
|
-
* beforehand.
|
|
622
|
-
*
|
|
623
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
624
|
-
* during rendering.
|
|
625
|
-
**/
|
|
626
|
-
RSVG_API
|
|
627
|
-
GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* rsvg_handle_get_pixbuf_sub:
|
|
631
|
-
* @handle: An #RsvgHandle
|
|
632
|
-
* @id: (nullable): An element's id within the SVG, starting with "#" (a single
|
|
633
|
-
* hash character), for example, `#layer1`. This notation corresponds to a
|
|
634
|
-
* URL's fragment ID. Alternatively, pass `NULL` to use the whole SVG.
|
|
635
|
-
*
|
|
636
|
-
* Creates a `GdkPixbuf` the same size as the entire SVG loaded into @handle, but
|
|
637
|
-
* only renders the sub-element that has the specified @id (and all its
|
|
638
|
-
* sub-sub-elements recursively). If @id is `NULL`, this function renders the
|
|
639
|
-
* whole SVG.
|
|
640
|
-
*
|
|
641
|
-
* This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the
|
|
642
|
-
* "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi]
|
|
643
|
-
* beforehand.
|
|
644
|
-
*
|
|
645
|
-
* If you need to render an image which is only big enough to fit a particular
|
|
646
|
-
* sub-element of the SVG, consider using [method@Rsvg.Handle.render_element].
|
|
647
|
-
*
|
|
648
|
-
* Element IDs should look like an URL fragment identifier; for example, pass
|
|
649
|
-
* `#foo` (hash `foo`) to get the geometry of the element that
|
|
650
|
-
* has an `id="foo"` attribute.
|
|
651
|
-
*
|
|
652
|
-
* API ordering: This function must be called on a fully-loaded @handle. See
|
|
653
|
-
* the section "[API ordering](class.Handle.html#api-ordering)" for details.
|
|
654
|
-
*
|
|
655
|
-
* Returns: (transfer full) (nullable): a pixbuf, or `NULL` if an error occurs
|
|
656
|
-
* during rendering.
|
|
657
|
-
*
|
|
658
|
-
* Since: 2.14
|
|
659
|
-
**/
|
|
660
|
-
RSVG_API
|
|
661
|
-
GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
|
|
662
|
-
|
|
663
616
|
/**
|
|
664
617
|
* rsvg_handle_get_base_uri: (attributes org.gtk.Method.get_property=base-uri)
|
|
665
618
|
* @handle: A [class@Rsvg.Handle]
|
|
@@ -925,6 +878,10 @@ void rsvg_handle_get_intrinsic_dimensions (RsvgHandle *handle,
|
|
|
925
878
|
* uses the computed value of the `font-size` property for the toplevel
|
|
926
879
|
* `<svg>` element. In those cases, this function returns `TRUE`.
|
|
927
880
|
*
|
|
881
|
+
* For historical reasons, the default DPI is 90. Current CSS assumes a default DPI of 96, so
|
|
882
|
+
* you may want to set the DPI of a [class@Rsvg.Handle] immediately after creating it with
|
|
883
|
+
* [method@Rsvg.Handle.set_dpi].
|
|
884
|
+
*
|
|
928
885
|
* This function is not able to extract the size in pixels directly from the intrinsic
|
|
929
886
|
* dimensions of the SVG document if the `width` or
|
|
930
887
|
* `height` are in percentage units (or if they do not exist, in which
|
|
@@ -1290,123 +1247,6 @@ void rsvg_handle_set_size_callback (RsvgHandle *handle,
|
|
|
1290
1247
|
gpointer user_data,
|
|
1291
1248
|
GDestroyNotify user_data_destroy);
|
|
1292
1249
|
|
|
1293
|
-
/* GdkPixbuf convenience API */
|
|
1294
|
-
|
|
1295
|
-
/**
|
|
1296
|
-
* rsvg-pixbuf:
|
|
1297
|
-
*
|
|
1298
|
-
* Years ago, GNOME and GTK used the gdk-pixbuf library as a general mechanism to load
|
|
1299
|
-
* raster images into memory (PNG, JPEG, etc.) and pass them around. The general idiom
|
|
1300
|
-
* was, "load this image file and give me a `GdkPixbuf` object", which is basically a pixel
|
|
1301
|
-
* buffer. Librsvg supports this kind of interface to load and render SVG documents, but
|
|
1302
|
-
* it is deprecated in favor of rendering to Cairo contexts.
|
|
1303
|
-
*/
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* rsvg_pixbuf_from_file:
|
|
1307
|
-
* @filename: A file name
|
|
1308
|
-
* @error: return location for a `GError`
|
|
1309
|
-
*
|
|
1310
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. The caller must
|
|
1311
|
-
* assume the reference to the reurned pixbuf. If an error occurred, @error is
|
|
1312
|
-
* set and `NULL` is returned.
|
|
1313
|
-
*
|
|
1314
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1315
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1316
|
-
**/
|
|
1317
|
-
RSVG_DEPRECATED
|
|
1318
|
-
GdkPixbuf *rsvg_pixbuf_from_file (const gchar *filename,
|
|
1319
|
-
GError **error);
|
|
1320
|
-
|
|
1321
|
-
/**
|
|
1322
|
-
* rsvg_pixbuf_from_file_at_zoom:
|
|
1323
|
-
* @filename: A file name
|
|
1324
|
-
* @x_zoom: The horizontal zoom factor
|
|
1325
|
-
* @y_zoom: The vertical zoom factor
|
|
1326
|
-
* @error: return location for a `GError`
|
|
1327
|
-
*
|
|
1328
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
1329
|
-
* from the size indicated by the file by a factor of @x_zoom and @y_zoom. The
|
|
1330
|
-
* caller must assume the reference to the returned pixbuf. If an error
|
|
1331
|
-
* occurred, @error is set and `NULL` is returned.
|
|
1332
|
-
*
|
|
1333
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1334
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1335
|
-
**/
|
|
1336
|
-
RSVG_DEPRECATED
|
|
1337
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
|
|
1338
|
-
double x_zoom,
|
|
1339
|
-
double y_zoom,
|
|
1340
|
-
GError **error);
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* rsvg_pixbuf_from_file_at_size:
|
|
1344
|
-
* @filename: A file name
|
|
1345
|
-
* @width: The new width, or -1
|
|
1346
|
-
* @height: The new height, or -1
|
|
1347
|
-
* @error: return location for a `GError`
|
|
1348
|
-
*
|
|
1349
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
1350
|
-
* from the size indicated to the new size indicated by @width and @height. If
|
|
1351
|
-
* both of these are -1, then the default size of the image being loaded is
|
|
1352
|
-
* used. The caller must assume the reference to the returned pixbuf. If an
|
|
1353
|
-
* error occurred, @error is set and `NULL` is returned.
|
|
1354
|
-
*
|
|
1355
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1356
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1357
|
-
**/
|
|
1358
|
-
RSVG_DEPRECATED
|
|
1359
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *filename,
|
|
1360
|
-
gint width,
|
|
1361
|
-
gint height,
|
|
1362
|
-
GError **error);
|
|
1363
|
-
|
|
1364
|
-
/**
|
|
1365
|
-
* rsvg_pixbuf_from_file_at_max_size:
|
|
1366
|
-
* @filename: A file name
|
|
1367
|
-
* @max_width: The requested max width
|
|
1368
|
-
* @max_height: The requested max height
|
|
1369
|
-
* @error: return location for a `GError`
|
|
1370
|
-
*
|
|
1371
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is uniformly
|
|
1372
|
-
* scaled so that the it fits into a rectangle of size `max_width * max_height`. The
|
|
1373
|
-
* caller must assume the reference to the returned pixbuf. If an error occurred,
|
|
1374
|
-
* @error is set and `NULL` is returned.
|
|
1375
|
-
*
|
|
1376
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1377
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1378
|
-
**/
|
|
1379
|
-
RSVG_DEPRECATED
|
|
1380
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar *filename,
|
|
1381
|
-
gint max_width,
|
|
1382
|
-
gint max_height,
|
|
1383
|
-
GError **error);
|
|
1384
|
-
/**
|
|
1385
|
-
* rsvg_pixbuf_from_file_at_zoom_with_max:
|
|
1386
|
-
* @filename: A file name
|
|
1387
|
-
* @x_zoom: The horizontal zoom factor
|
|
1388
|
-
* @y_zoom: The vertical zoom factor
|
|
1389
|
-
* @max_width: The requested max width
|
|
1390
|
-
* @max_height: The requested max height
|
|
1391
|
-
* @error: return location for a `GError`
|
|
1392
|
-
*
|
|
1393
|
-
* Loads a new `GdkPixbuf` from @filename and returns it. This pixbuf is scaled
|
|
1394
|
-
* from the size indicated by the file by a factor of @x_zoom and @y_zoom. If the
|
|
1395
|
-
* resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
|
|
1396
|
-
* down to fit in that rectangle. The caller must assume the reference to the
|
|
1397
|
-
* returned pixbuf. If an error occurred, @error is set and `NULL` is returned.
|
|
1398
|
-
*
|
|
1399
|
-
* Returns: (transfer full) (nullable): A pixbuf, or %NULL on error.
|
|
1400
|
-
* Deprecated: Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.
|
|
1401
|
-
**/
|
|
1402
|
-
RSVG_DEPRECATED
|
|
1403
|
-
GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *filename,
|
|
1404
|
-
double x_zoom,
|
|
1405
|
-
double y_zoom,
|
|
1406
|
-
gint max_width,
|
|
1407
|
-
gint max_height,
|
|
1408
|
-
GError **error);
|
|
1409
|
-
|
|
1410
1250
|
/**
|
|
1411
1251
|
* rsvg_handle_get_title:
|
|
1412
1252
|
* @handle: An [class@Rsvg.Handle]
|
|
@@ -1457,6 +1297,10 @@ G_END_DECLS
|
|
|
1457
1297
|
#include <librsvg/rsvg-version.h>
|
|
1458
1298
|
#include <librsvg/rsvg-cairo.h>
|
|
1459
1299
|
|
|
1300
|
+
#if LIBRSVG_CHECK_FEATURE(PIXBUF)
|
|
1301
|
+
#include <librsvg/rsvg-pixbuf.h>
|
|
1302
|
+
#endif
|
|
1303
|
+
|
|
1460
1304
|
#undef __RSVG_RSVG_H_INSIDE__
|
|
1461
1305
|
|
|
1462
1306
|
#endif /* RSVG_H */
|
|
@@ -29,21 +29,21 @@ XMLPUBFUN void xmlCheckVersion(int version);
|
|
|
29
29
|
*
|
|
30
30
|
* the version string like "1.2.3"
|
|
31
31
|
*/
|
|
32
|
-
#define LIBXML_DOTTED_VERSION "2.12.
|
|
32
|
+
#define LIBXML_DOTTED_VERSION "2.12.7"
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* LIBXML_VERSION:
|
|
36
36
|
*
|
|
37
37
|
* the version number: 1.2.3 value is 10203
|
|
38
38
|
*/
|
|
39
|
-
#define LIBXML_VERSION
|
|
39
|
+
#define LIBXML_VERSION 21207
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* LIBXML_VERSION_STRING:
|
|
43
43
|
*
|
|
44
44
|
* the version number string, 1.2.3 value is "10203"
|
|
45
45
|
*/
|
|
46
|
-
#define LIBXML_VERSION_STRING "
|
|
46
|
+
#define LIBXML_VERSION_STRING "21207"
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* LIBXML_VERSION_EXTRA:
|
|
@@ -58,7 +58,7 @@ XMLPUBFUN void xmlCheckVersion(int version);
|
|
|
58
58
|
* Macro to check that the libxml version in use is compatible with
|
|
59
59
|
* the version the software has been compiled against
|
|
60
60
|
*/
|
|
61
|
-
#define LIBXML_TEST_VERSION xmlCheckVersion(
|
|
61
|
+
#define LIBXML_TEST_VERSION xmlCheckVersion(21207);
|
|
62
62
|
|
|
63
63
|
#ifndef VMS
|
|
64
64
|
#if 0
|