gdk_pixbuf2 3.2.1-x64-mingw32 → 3.2.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/dependency-check/Rakefile +1 -2
- data/lib/gdk_pixbuf2/pixbuf.rb +19 -3
- data/test/test-pixbuf.rb +22 -5
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-thumbnailer.exe +0 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +1 -1
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +20 -18
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +47 -47
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +2 -2
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +2 -2
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +59 -59
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +89 -89
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +103 -103
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +22 -22
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +51 -51
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +59 -59
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +11 -11
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +4 -4
- data/vendor/local/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8cf79b0d848b2200fa62b216ab167de746b811d0ad13e27285056774f817bab9
|
4
|
+
data.tar.gz: 71f12b0f752196008f996bf67c373f243685b7e4ea455582e3cd11701bdb3269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f719d5f7ca846b1ba61ea14d22dbfd97e2d7bf686346f3475708e812da89f03202ee03400bd55acdf80c026f49ca6ce6a268c996e4168a6ca5c17b5b21cf5cb9
|
7
|
+
data.tar.gz: 6459b8b3bd246e4076e31f909127bb897aef1b5c89914eb530fd5797bd2ed27819eec53e2e764e43b8625c8dcc3d7175dff057879fe8738ccc3044c2b8c718b8
|
data/dependency-check/Rakefile
CHANGED
@@ -32,8 +32,7 @@ namespace :dependency do
|
|
32
32
|
unless PKGConfig.check_version?("gdk-pixbuf-2.0")
|
33
33
|
unless NativePackageInstaller.install(:altlinux => "gdk-pixbuf-devel",
|
34
34
|
:debian => "libgdk-pixbuf2.0-dev",
|
35
|
-
:redhat => "
|
36
|
-
:fedora => "gdk-pixbuf2-devel",
|
35
|
+
:redhat => "pkgconfig(gdk-pixbuf-2.0)",
|
37
36
|
:arch => "gdk-pixbuf2",
|
38
37
|
:homebrew => "gdk-pixbuf",
|
39
38
|
:macports => "gdk-pixbuf2",
|
data/lib/gdk_pixbuf2/pixbuf.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2016-
|
1
|
+
# Copyright (C) 2016-2018 Ruby-GNOME2 Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -170,6 +170,8 @@ module GdkPixbuf
|
|
170
170
|
:initialize_new_from_file_at_scale_utf8
|
171
171
|
end
|
172
172
|
|
173
|
+
alias_method :row_stride, :rowstride
|
174
|
+
|
173
175
|
def dup
|
174
176
|
copy
|
175
177
|
end
|
@@ -223,8 +225,22 @@ module GdkPixbuf
|
|
223
225
|
def save(*args)
|
224
226
|
case args.size
|
225
227
|
when 1
|
226
|
-
|
227
|
-
|
228
|
+
arg1 = args[0]
|
229
|
+
if arg1.respond_to?(:to_path)
|
230
|
+
filename = arg1.to_path
|
231
|
+
elsif arg1.is_a?(String) and arg1.include?(".")
|
232
|
+
filename = args[0]
|
233
|
+
else
|
234
|
+
filename = nil
|
235
|
+
type = arg1
|
236
|
+
end
|
237
|
+
if filename
|
238
|
+
type = File.extname(filename).gsub(/\A\./, "").downcase
|
239
|
+
case type
|
240
|
+
when "jpg"
|
241
|
+
type = "jpeg"
|
242
|
+
end
|
243
|
+
end
|
228
244
|
options = {}
|
229
245
|
when 2
|
230
246
|
if args.last.is_a?(Hash)
|
data/test/test-pixbuf.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2016-
|
1
|
+
# Copyright (C) 2016-2018 Ruby-GNOME2 Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -105,7 +105,7 @@ class TestPixbuf < Test::Unit::TestCase
|
|
105
105
|
src_pixbuf.bits_per_sample,
|
106
106
|
src_pixbuf.width,
|
107
107
|
src_pixbuf.height,
|
108
|
-
src_pixbuf.
|
108
|
+
src_pixbuf.row_stride,
|
109
109
|
)
|
110
110
|
assert_equal(src_pixbuf.pixels, pixbuf.pixels)
|
111
111
|
end
|
@@ -188,7 +188,7 @@ class TestPixbuf < Test::Unit::TestCase
|
|
188
188
|
:bits_per_sample => src_pixbuf.bits_per_sample,
|
189
189
|
:width => src_pixbuf.width,
|
190
190
|
:height => src_pixbuf.height,
|
191
|
-
:row_stride => src_pixbuf.
|
191
|
+
:row_stride => src_pixbuf.row_stride,
|
192
192
|
)
|
193
193
|
assert_equal(src_pixbuf.pixels, pixbuf.pixels)
|
194
194
|
end
|
@@ -204,7 +204,7 @@ class TestPixbuf < Test::Unit::TestCase
|
|
204
204
|
:bits_per_sample => src_pixbuf.bits_per_sample,
|
205
205
|
:width => src_pixbuf.width,
|
206
206
|
:height => src_pixbuf.height,
|
207
|
-
:row_stride => src_pixbuf.
|
207
|
+
:row_stride => src_pixbuf.row_stride,
|
208
208
|
)
|
209
209
|
assert_equal(src_pixbuf.pixels, pixbuf.pixels)
|
210
210
|
end
|
@@ -269,7 +269,7 @@ class TestPixbuf < Test::Unit::TestCase
|
|
269
269
|
filename = fixture_path("gnome-logo-icon.png")
|
270
270
|
pixbuf = GdkPixbuf::Pixbuf.new(:file => filename)
|
271
271
|
pixbuf.fill!(0xffffffff)
|
272
|
-
assert_equal([0xff] * (pixbuf.
|
272
|
+
assert_equal([0xff] * (pixbuf.row_stride * pixbuf.height),
|
273
273
|
pixbuf.pixels)
|
274
274
|
end
|
275
275
|
|
@@ -361,6 +361,15 @@ class TestPixbuf < Test::Unit::TestCase
|
|
361
361
|
Gio::ContentType.guess(nil, jpeg))
|
362
362
|
end
|
363
363
|
|
364
|
+
test("filename") do
|
365
|
+
png_filename = fixture_path("gnome-logo-icon.png")
|
366
|
+
pixbuf = GdkPixbuf::Pixbuf.new(:file => png_filename)
|
367
|
+
output = Tempfile.new(["pixbuf", ".jpg"])
|
368
|
+
pixbuf.save(output)
|
369
|
+
assert_equal(["image/jpeg", false],
|
370
|
+
Gio::ContentType.guess(nil, output.read))
|
371
|
+
end
|
372
|
+
|
364
373
|
test(":filename") do
|
365
374
|
png_filename = fixture_path("gnome-logo-icon.png")
|
366
375
|
pixbuf = GdkPixbuf::Pixbuf.new(:file => png_filename)
|
@@ -380,4 +389,12 @@ class TestPixbuf < Test::Unit::TestCase
|
|
380
389
|
assert_equal(["image/jpeg", false],
|
381
390
|
Gio::ContentType.guess(nil, jpeg))
|
382
391
|
end
|
392
|
+
|
393
|
+
test("#read_pixel_bytes") do
|
394
|
+
only_version(2, 32)
|
395
|
+
png_filename = fixture_path("gnome-logo-icon.png")
|
396
|
+
pixbuf = GdkPixbuf::Pixbuf.new(:file => png_filename)
|
397
|
+
assert_equal(pixbuf.pixels.pack("C*"),
|
398
|
+
pixbuf.read_pixel_bytes.to_s)
|
399
|
+
end
|
383
400
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
/*
|
2
|
+
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
|
3
3
|
|
4
4
|
#if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
|
5
5
|
#error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#if !defined(GDK_PIXBUF_DISABLE_DEPRECATED) || defined(GDK_PIXBUF_COMPILATION)
|
2
|
+
/* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
|
3
|
+
#ifndef ___GDK_PIXBUF_MARSHAL_MARSHAL_H__
|
4
|
+
#define ___GDK_PIXBUF_MARSHAL_MARSHAL_H__
|
2
5
|
|
3
|
-
#
|
4
|
-
#define ___gdk_pixbuf_marshal_MARSHAL_H__
|
5
|
-
|
6
|
-
#include <glib-object.h>
|
6
|
+
#include <glib-object.h>
|
7
7
|
|
8
8
|
G_BEGIN_DECLS
|
9
9
|
|
@@ -11,26 +11,28 @@ G_BEGIN_DECLS
|
|
11
11
|
#define _gdk_pixbuf_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID
|
12
12
|
|
13
13
|
/* VOID:INT,INT (./gdk-pixbuf-marshal.list:26) */
|
14
|
-
extern
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
extern
|
15
|
+
void _gdk_pixbuf_marshal_VOID__INT_INT (GClosure *closure,
|
16
|
+
GValue *return_value,
|
17
|
+
guint n_param_values,
|
18
|
+
const GValue *param_values,
|
19
|
+
gpointer invocation_hint,
|
20
|
+
gpointer marshal_data);
|
20
21
|
|
21
22
|
/* VOID:INT,INT,INT,INT (./gdk-pixbuf-marshal.list:27) */
|
22
|
-
extern
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
extern
|
24
|
+
void _gdk_pixbuf_marshal_VOID__INT_INT_INT_INT (GClosure *closure,
|
25
|
+
GValue *return_value,
|
26
|
+
guint n_param_values,
|
27
|
+
const GValue *param_values,
|
28
|
+
gpointer invocation_hint,
|
29
|
+
gpointer marshal_data);
|
28
30
|
|
29
31
|
/* VOID:POINTER (./gdk-pixbuf-marshal.list:28) */
|
30
32
|
#define _gdk_pixbuf_marshal_VOID__POINTER g_cclosure_marshal_VOID__POINTER
|
31
33
|
|
32
|
-
G_END_DECLS
|
33
34
|
|
34
|
-
|
35
|
+
G_END_DECLS
|
35
36
|
|
37
|
+
#endif /* ___GDK_PIXBUF_MARSHAL_MARSHAL_H__ */
|
36
38
|
#endif /* !GDK_PIXBUF_DISABLE_DEPRECATED || GDK_PIXBUF_COMPILATION */
|
@@ -1,14 +1,20 @@
|
|
1
1
|
# GdkPixbuf Image Loader Modules file
|
2
2
|
# Automatically generated file, do not edit
|
3
|
-
# Created by gdk-pixbuf-query-loaders from gdk-pixbuf-2.
|
3
|
+
# Created by gdk-pixbuf-query-loaders from gdk-pixbuf-2.36.11
|
4
4
|
#
|
5
5
|
# LoaderDir = /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders
|
6
6
|
#
|
7
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"
|
7
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.so"
|
8
|
+
"ani" 4 "gdk-pixbuf" "Windows animated cursor" "LGPL"
|
9
|
+
"application/x-navi-animation" ""
|
10
|
+
"ani" ""
|
11
|
+
"RIFF ACON" " xxxx " 100
|
12
|
+
|
13
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so"
|
14
|
+
"bmp" 5 "gdk-pixbuf" "BMP" "LGPL"
|
15
|
+
"image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
|
16
|
+
"bmp" ""
|
17
|
+
"BM" "" 100
|
12
18
|
|
13
19
|
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so"
|
14
20
|
"gif" 4 "gdk-pixbuf" "GIF" "LGPL"
|
@@ -16,25 +22,18 @@
|
|
16
22
|
"gif" ""
|
17
23
|
"GIF8" "" 100
|
18
24
|
|
19
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-
|
20
|
-
"
|
21
|
-
"image/
|
22
|
-
"
|
23
|
-
"
|
24
|
-
|
25
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.so"
|
26
|
-
"xbm" 4 "gdk-pixbuf" "XBM" "LGPL"
|
27
|
-
"image/x-xbitmap" ""
|
28
|
-
"xbm" ""
|
29
|
-
"#define " "" 100
|
30
|
-
"/*" "" 50
|
25
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.so"
|
26
|
+
"icns" 4 "gdk-pixbuf" "MacOS X icon" "GPL"
|
27
|
+
"image/x-icns" ""
|
28
|
+
"icns" ""
|
29
|
+
"icns" "" 100
|
31
30
|
|
32
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-
|
33
|
-
"
|
34
|
-
"image/
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
31
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so"
|
32
|
+
"ico" 5 "gdk-pixbuf" "Windows icon" "LGPL"
|
33
|
+
"image/x-icon" "image/x-ico" "image/x-win-bitmap" "image/vnd.microsoft.icon" "application/ico" "image/ico" "image/icon" "text/ico" ""
|
34
|
+
"ico" "cur" ""
|
35
|
+
" \001 " "zz znz" 100
|
36
|
+
" \002 " "zz znz" 100
|
38
37
|
|
39
38
|
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so"
|
40
39
|
"jpeg" 5 "gdk-pixbuf" "JPEG" "LGPL"
|
@@ -42,17 +41,11 @@
|
|
42
41
|
"jpeg" "jpe" "jpg" ""
|
43
42
|
"\377\330" "" 100
|
44
43
|
|
45
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-
|
46
|
-
"
|
47
|
-
"image/
|
48
|
-
"
|
49
|
-
"
|
50
|
-
|
51
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so"
|
52
|
-
"bmp" 5 "gdk-pixbuf" "BMP" "LGPL"
|
53
|
-
"image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
|
54
|
-
"bmp" ""
|
55
|
-
"BM" "" 100
|
44
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so"
|
45
|
+
"png" 5 "gdk-pixbuf" "PNG" "LGPL"
|
46
|
+
"image/png" ""
|
47
|
+
"png" ""
|
48
|
+
"\211PNG\r\n\032\n" "" 100
|
56
49
|
|
57
50
|
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.so"
|
58
51
|
"pnm" 4 "gdk-pixbuf" "PNM/PBM/PGM/PPM" "LGPL"
|
@@ -72,11 +65,12 @@
|
|
72
65
|
"abcdidsc" "xxxx " 100
|
73
66
|
"abcdidat" "xxxx " 100
|
74
67
|
|
75
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
68
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so"
|
69
|
+
"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL"
|
70
|
+
"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" ""
|
71
|
+
"svg" "svgz" "svg.gz" ""
|
72
|
+
" <svg" "* " 100
|
73
|
+
" <!DOCTYPE svg" "* " 100
|
80
74
|
|
81
75
|
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.so"
|
82
76
|
"tga" 4 "gdk-pixbuf" "Targa" "LGPL"
|
@@ -89,13 +83,6 @@
|
|
89
83
|
" \n" "xz " 100
|
90
84
|
" \v" "xz " 100
|
91
85
|
|
92
|
-
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so"
|
93
|
-
"ico" 5 "gdk-pixbuf" "Windows icon" "LGPL"
|
94
|
-
"image/x-icon" "image/x-ico" "image/x-win-bitmap" ""
|
95
|
-
"ico" "cur" ""
|
96
|
-
" \001 " "zz znz" 100
|
97
|
-
" \002 " "zz znz" 100
|
98
|
-
|
99
86
|
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.so"
|
100
87
|
"tiff" 5 "gdk-pixbuf" "TIFF" "LGPL"
|
101
88
|
"image/tiff" ""
|
@@ -104,4 +91,17 @@
|
|
104
91
|
"II* " " z" 100
|
105
92
|
"II* \020 CR\002 " " z zzz z" 0
|
106
93
|
|
94
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.so"
|
95
|
+
"xbm" 4 "gdk-pixbuf" "XBM" "LGPL"
|
96
|
+
"image/x-xbitmap" ""
|
97
|
+
"xbm" ""
|
98
|
+
"#define " "" 100
|
99
|
+
"/*" "" 50
|
100
|
+
|
101
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so"
|
102
|
+
"xpm" 4 "gdk-pixbuf" "XPM" "LGPL"
|
103
|
+
"image/x-xpixmap" ""
|
104
|
+
"xpm" ""
|
105
|
+
"/* XPM */" "" 100
|
106
|
+
|
107
107
|
|
Binary file
|
Binary file
|
Binary file
|
@@ -17,7 +17,7 @@ old_library='libpixbufloader-svg.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
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2/glib2/vendor/local/lib -L/home/vagrant/rcairo/vendor/local/lib -L/home/vagrant/ruby-gnome2/rsvg2/vendor/local/lib /home/vagrant/ruby-gnome2/rsvg2/vendor/local/lib/librsvg-2.la -L/home/vagrant/ruby-gnome2/pango/vendor/local/lib -L/home/vagrant/ruby-gnome2/gdk_pixbuf2/vendor/local/lib /home/vagrant/ruby-gnome2/gdk_pixbuf2/vendor/local/lib/libgdk_pixbuf-2.0.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi /home/vagrant/ruby-gnome2/pango/vendor/local/lib/libpangocairo-1.0.la /home/vagrant/ruby-gnome2/pango/vendor/local/lib/libpangowin32-1.0.la -lusp10 /home/vagrant/ruby-gnome2/pango/vendor/local/lib/libpangoft2-1.0.la /home/vagrant/ruby-gnome2/pango/vendor/local/lib/libharfbuzz.la /home/vagrant/ruby-gnome2/pango/vendor/local/lib/libpango-1.0.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libgthread-2.0.la /home/vagrant/ruby-gnome2/pango/vendor/local/lib/libfribidi.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libffi.la /home/vagrant/rcairo/vendor/local/lib/libcairo.la -lpthread /home/vagrant/rcairo/vendor/local/lib/libpixman-1.la /home/vagrant/rcairo/vendor/local/lib/libfontconfig.la /home/vagrant/rcairo/vendor/local/lib/libfreetype.la -lgdi32 -lmsimg32 /home/vagrant/rcairo/vendor/local/lib/libpng16.la /home/vagrant/ruby-gnome2/rsvg2/vendor/local/lib/libcroco-0.6.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libglib-2.0.la -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libpcre.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libiconv.la /home/vagrant/rcairo/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=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/vagrant/ruby-gnome2
|
41
|
+
libdir='/home/vagrant/ruby-gnome2/gdk_pixbuf2/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders'
|
Binary file
|
@@ -17,7 +17,7 @@ old_library=''
|
|
17
17
|
inherited_linker_flags=' -pthread'
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -R/home/vagrant/ruby-gnome2
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2/glib2/vendor/local/lib -L/home/vagrant/rcairo/vendor/local/lib -L/home/vagrant/ruby-gnome2/gdk_pixbuf2/vendor/local/lib /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libffi.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libpcre.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2/glib2/vendor/local/lib/libiconv.la /home/vagrant/rcairo/vendor/local/lib/libpng16.la -lz -lole32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/vagrant/ruby-gnome2
|
41
|
+
libdir='/home/vagrant/ruby-gnome2/gdk_pixbuf2/vendor/local/lib'
|
@@ -75,7 +75,7 @@
|
|
75
75
|
</tr>
|
76
76
|
<tr>
|
77
77
|
<td class="function_type">
|
78
|
-
<a href="
|
78
|
+
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
79
79
|
</td>
|
80
80
|
<td class="function_name">
|
81
81
|
<a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-write" title="gdk_pixbuf_loader_write ()">gdk_pixbuf_loader_write</a> <span class="c_punctuation">()</span>
|
@@ -83,7 +83,7 @@
|
|
83
83
|
</tr>
|
84
84
|
<tr>
|
85
85
|
<td class="function_type">
|
86
|
-
<a href="
|
86
|
+
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
87
87
|
</td>
|
88
88
|
<td class="function_name">
|
89
89
|
<a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-write-bytes" title="gdk_pixbuf_loader_write_bytes ()">gdk_pixbuf_loader_write_bytes</a> <span class="c_punctuation">()</span>
|
@@ -115,7 +115,7 @@
|
|
115
115
|
</tr>
|
116
116
|
<tr>
|
117
117
|
<td class="function_type">
|
118
|
-
<a href="
|
118
|
+
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
119
119
|
</td>
|
120
120
|
<td class="function_name">
|
121
121
|
<a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-close" title="gdk_pixbuf_loader_close ()">gdk_pixbuf_loader_close</a> <span class="c_punctuation">()</span>
|
@@ -136,22 +136,22 @@
|
|
136
136
|
<tr>
|
137
137
|
<td class="signal_type"><span class="returnvalue">void</span></td>
|
138
138
|
<td class="signal_name"><a class="link" href="GdkPixbufLoader.html#GdkPixbufLoader-area-prepared" title="The “area-prepared” signal">area-prepared</a></td>
|
139
|
-
<td class="signal_flags"><a href="
|
139
|
+
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
|
140
140
|
</tr>
|
141
141
|
<tr>
|
142
142
|
<td class="signal_type"><span class="returnvalue">void</span></td>
|
143
143
|
<td class="signal_name"><a class="link" href="GdkPixbufLoader.html#GdkPixbufLoader-area-updated" title="The “area-updated” signal">area-updated</a></td>
|
144
|
-
<td class="signal_flags"><a href="
|
144
|
+
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
|
145
145
|
</tr>
|
146
146
|
<tr>
|
147
147
|
<td class="signal_type"><span class="returnvalue">void</span></td>
|
148
148
|
<td class="signal_name"><a class="link" href="GdkPixbufLoader.html#GdkPixbufLoader-closed" title="The “closed” signal">closed</a></td>
|
149
|
-
<td class="signal_flags"><a href="
|
149
|
+
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
|
150
150
|
</tr>
|
151
151
|
<tr>
|
152
152
|
<td class="signal_type"><span class="returnvalue">void</span></td>
|
153
153
|
<td class="signal_name"><a class="link" href="GdkPixbufLoader.html#GdkPixbufLoader-size-prepared" title="The “size-prepared” signal">size-prepared</a></td>
|
154
|
-
<td class="signal_flags"><a href="
|
154
|
+
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
|
155
155
|
</tr>
|
156
156
|
</tbody>
|
157
157
|
</table></div>
|
@@ -171,7 +171,7 @@
|
|
171
171
|
</div>
|
172
172
|
<div class="refsect1">
|
173
173
|
<a name="GdkPixbufLoader.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
174
|
-
<pre class="screen"> <a href="
|
174
|
+
<pre class="screen"> <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
175
175
|
<span class="lineart">╰──</span> GdkPixbufLoader
|
176
176
|
</pre>
|
177
177
|
</div>
|
@@ -236,7 +236,7 @@ gdk_pixbuf_loader_new (<em class="parameter"><code><span class="type">void</span
|
|
236
236
|
<a name="gdk-pixbuf-loader-new-with-type"></a><h3>gdk_pixbuf_loader_new_with_type ()</h3>
|
237
237
|
<pre class="programlisting"><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="returnvalue">GdkPixbufLoader</span></a> *
|
238
238
|
gdk_pixbuf_loader_new_with_type (<em class="parameter"><code>const <span class="type">char</span> *image_type</code></em>,
|
239
|
-
<em class="parameter"><code><a href="
|
239
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
240
240
|
<p>Creates a new pixbuf loader object that always attempts to parse
|
241
241
|
image data as if it were an image of type <em class="parameter"><code>image_type</code></em>
|
242
242
|
, instead of
|
@@ -265,7 +265,7 @@ of the <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" t
|
|
265
265
|
</tr>
|
266
266
|
<tr>
|
267
267
|
<td class="parameter_name"><p>error</p></td>
|
268
|
-
<td class="parameter_description"><p> return location for an allocated <a href="
|
268
|
+
<td class="parameter_description"><p> return location for an allocated <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors. </p></td>
|
269
269
|
<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>
|
270
270
|
</tr>
|
271
271
|
</tbody>
|
@@ -281,7 +281,7 @@ of the <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" t
|
|
281
281
|
<a name="gdk-pixbuf-loader-new-with-mime-type"></a><h3>gdk_pixbuf_loader_new_with_mime_type ()</h3>
|
282
282
|
<pre class="programlisting"><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="returnvalue">GdkPixbufLoader</span></a> *
|
283
283
|
gdk_pixbuf_loader_new_with_mime_type (<em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
|
284
|
-
<em class="parameter"><code><a href="
|
284
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
285
285
|
<p>Creates a new pixbuf loader object that always attempts to parse
|
286
286
|
image data as if it were an image of mime type <em class="parameter"><code>mime_type</code></em>
|
287
287
|
, instead of
|
@@ -311,7 +311,7 @@ structs returned by <a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-p
|
|
311
311
|
</tr>
|
312
312
|
<tr>
|
313
313
|
<td class="parameter_name"><p>error</p></td>
|
314
|
-
<td class="parameter_description"><p> return location for an allocated <a href="
|
314
|
+
<td class="parameter_description"><p> return location for an allocated <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors. </p></td>
|
315
315
|
<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>
|
316
316
|
</tr>
|
317
317
|
</tbody>
|
@@ -348,7 +348,7 @@ currently loading image file.</p>
|
|
348
348
|
<div class="refsect3">
|
349
349
|
<a name="gdk-pixbuf-loader-get-format.returns"></a><h4>Returns</h4>
|
350
350
|
<p> A <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> or
|
351
|
-
<a href="
|
351
|
+
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The return value is owned by GdkPixbuf and should not be
|
352
352
|
freed. </p>
|
353
353
|
<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>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
354
354
|
</div>
|
@@ -357,19 +357,19 @@ freed. </p>
|
|
357
357
|
<hr>
|
358
358
|
<div class="refsect2">
|
359
359
|
<a name="gdk-pixbuf-loader-write"></a><h3>gdk_pixbuf_loader_write ()</h3>
|
360
|
-
<pre class="programlisting"><a href="
|
360
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
361
361
|
gdk_pixbuf_loader_write (<em class="parameter"><code><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> *loader</code></em>,
|
362
|
-
<em class="parameter"><code>const <a href="
|
363
|
-
<em class="parameter"><code><a href="
|
364
|
-
<em class="parameter"><code><a href="
|
362
|
+
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
|
363
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
|
364
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
365
365
|
<p>This will cause a pixbuf loader to parse the next <em class="parameter"><code>count</code></em>
|
366
366
|
bytes of
|
367
|
-
an image. It will return <a href="
|
368
|
-
and <a href="
|
369
|
-
will be closed, and will not accept further writes. If <a href="
|
367
|
+
an image. It will return <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data was loaded successfully,
|
368
|
+
and <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case, the loader
|
369
|
+
will be closed, and will not accept further writes. If <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is
|
370
370
|
returned, <em class="parameter"><code>error</code></em>
|
371
371
|
will be set to an error from the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a>
|
372
|
-
or <a href="
|
372
|
+
or <a href="../glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domains.</p>
|
373
373
|
<div class="refsect3">
|
374
374
|
<a name="gdk-pixbuf-loader-write.parameters"></a><h4>Parameters</h4>
|
375
375
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -405,24 +405,24 @@ buffer in bytes.</p></td>
|
|
405
405
|
</div>
|
406
406
|
<div class="refsect3">
|
407
407
|
<a name="gdk-pixbuf-loader-write.returns"></a><h4>Returns</h4>
|
408
|
-
<p> <a href="
|
408
|
+
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the write was successful, or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the loader
|
409
409
|
cannot parse the buffer.</p>
|
410
410
|
</div>
|
411
411
|
</div>
|
412
412
|
<hr>
|
413
413
|
<div class="refsect2">
|
414
414
|
<a name="gdk-pixbuf-loader-write-bytes"></a><h3>gdk_pixbuf_loader_write_bytes ()</h3>
|
415
|
-
<pre class="programlisting"><a href="
|
415
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
416
416
|
gdk_pixbuf_loader_write_bytes (<em class="parameter"><code><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> *loader</code></em>,
|
417
|
-
<em class="parameter"><code><a href="
|
418
|
-
<em class="parameter"><code><a href="
|
419
|
-
<p>This will cause a pixbuf loader to parse a buffer inside a <a href="
|
420
|
-
for an image. It will return <a href="
|
421
|
-
and <a href="
|
422
|
-
will be closed, and will not accept further writes. If <a href="
|
417
|
+
<em class="parameter"><code><a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *buffer</code></em>,
|
418
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
419
|
+
<p>This will cause a pixbuf loader to parse a buffer inside a <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a>
|
420
|
+
for an image. It will return <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data was loaded successfully,
|
421
|
+
and <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case, the loader
|
422
|
+
will be closed, and will not accept further writes. If <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is
|
423
423
|
returned, <em class="parameter"><code>error</code></em>
|
424
424
|
will be set to an error from the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a>
|
425
|
-
or <a href="
|
425
|
+
or <a href="../glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domains.</p>
|
426
426
|
<p>See also: <a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-write" title="gdk_pixbuf_loader_write ()"><code class="function">gdk_pixbuf_loader_write()</code></a></p>
|
427
427
|
<div class="refsect3">
|
428
428
|
<a name="gdk-pixbuf-loader-write-bytes.parameters"></a><h4>Parameters</h4>
|
@@ -440,7 +440,7 @@ or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/htm
|
|
440
440
|
</tr>
|
441
441
|
<tr>
|
442
442
|
<td class="parameter_name"><p>buffer</p></td>
|
443
|
-
<td class="parameter_description"><p>The image data as a <a href="
|
443
|
+
<td class="parameter_description"><p>The image data as a <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a></p></td>
|
444
444
|
<td class="parameter_annotations"> </td>
|
445
445
|
</tr>
|
446
446
|
<tr>
|
@@ -453,7 +453,7 @@ or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/htm
|
|
453
453
|
</div>
|
454
454
|
<div class="refsect3">
|
455
455
|
<a name="gdk-pixbuf-loader-write-bytes.returns"></a><h4>Returns</h4>
|
456
|
-
<p> <a href="
|
456
|
+
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the write was successful, or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the loader
|
457
457
|
cannot parse the buffer.</p>
|
458
458
|
</div>
|
459
459
|
<p class="since">Since: <a class="link" href="api-index-2-30.html#api-index-2.30">2.30</a></p>
|
@@ -510,9 +510,9 @@ In general it only makes sense to call this function after the
|
|
510
510
|
"area-prepared" signal has been emitted by the loader; this means
|
511
511
|
that enough data has been read to know the size of the image that
|
512
512
|
will be allocated. If the loader has not received enough data via
|
513
|
-
<a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-write" title="gdk_pixbuf_loader_write ()"><code class="function">gdk_pixbuf_loader_write()</code></a>, then this function returns <a href="
|
513
|
+
<a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-write" title="gdk_pixbuf_loader_write ()"><code class="function">gdk_pixbuf_loader_write()</code></a>, then this function returns <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The
|
514
514
|
returned pixbuf will be the same in all future calls to the loader,
|
515
|
-
so simply calling <a href="
|
515
|
+
so simply calling <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> should be sufficient to continue
|
516
516
|
using it. Additionally, if the loader is an animation, it will
|
517
517
|
return the "static image" of the animation
|
518
518
|
(see <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-static-image" title="gdk_pixbuf_animation_get_static_image ()"><code class="function">gdk_pixbuf_animation_get_static_image()</code></a>).</p>
|
@@ -533,7 +533,7 @@ return the "static image" of the animation
|
|
533
533
|
</div>
|
534
534
|
<div class="refsect3">
|
535
535
|
<a name="gdk-pixbuf-loader-get-pixbuf.returns"></a><h4>Returns</h4>
|
536
|
-
<p> The <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> that the loader is creating, or <a href="
|
536
|
+
<p> The <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> that the loader is creating, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not
|
537
537
|
enough data has been read to determine how to create the image buffer. </p>
|
538
538
|
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
539
539
|
</div>
|
@@ -547,7 +547,7 @@ gdk_pixbuf_loader_get_animation (<em class="parameter"><code><a class="link" hre
|
|
547
547
|
In general it only makes sense to call this function after the "area-prepared"
|
548
548
|
signal has been emitted by the loader. If the loader doesn't have enough
|
549
549
|
bytes yet (hasn't emitted the "area-prepared" signal) this function will
|
550
|
-
return <a href="
|
550
|
+
return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
|
551
551
|
<div class="refsect3">
|
552
552
|
<a name="gdk-pixbuf-loader-get-animation.parameters"></a><h4>Parameters</h4>
|
553
553
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -565,7 +565,7 @@ return <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc
|
|
565
565
|
</div>
|
566
566
|
<div class="refsect3">
|
567
567
|
<a name="gdk-pixbuf-loader-get-animation.returns"></a><h4>Returns</h4>
|
568
|
-
<p> The <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> that the loader is loading, or <a href="
|
568
|
+
<p> The <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> that the loader is loading, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
|
569
569
|
not enough data has been read to determine the information. </p>
|
570
570
|
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
571
571
|
</div>
|
@@ -573,22 +573,22 @@ not enough data has been read to determine the information. </p>
|
|
573
573
|
<hr>
|
574
574
|
<div class="refsect2">
|
575
575
|
<a name="gdk-pixbuf-loader-close"></a><h3>gdk_pixbuf_loader_close ()</h3>
|
576
|
-
<pre class="programlisting"><a href="
|
576
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
577
577
|
gdk_pixbuf_loader_close (<em class="parameter"><code><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> *loader</code></em>,
|
578
|
-
<em class="parameter"><code><a href="
|
578
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
579
579
|
<p>Informs a pixbuf loader that no further writes with
|
580
580
|
<a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-write" title="gdk_pixbuf_loader_write ()"><code class="function">gdk_pixbuf_loader_write()</code></a> will occur, so that it can free its
|
581
581
|
internal loading structures. Also, tries to parse any data that
|
582
582
|
hasn't yet been parsed; if the remaining data is partial or
|
583
|
-
corrupt, an error will be returned. If <a href="
|
583
|
+
corrupt, an error will be returned. If <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned, <em class="parameter"><code>error</code></em>
|
584
584
|
|
585
|
-
will be set to an error from the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> or <a href="
|
585
|
+
will be set to an error from the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> or <a href="../glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a>
|
586
586
|
domains. If you're just cancelling a load rather than expecting it
|
587
|
-
to be finished, passing <a href="
|
587
|
+
to be finished, passing <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>error</code></em>
|
588
588
|
to ignore it is
|
589
589
|
reasonable.</p>
|
590
590
|
<p>Remember that this does not unref the loader, so if you plan not to
|
591
|
-
use it anymore, please <a href="
|
591
|
+
use it anymore, please <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> it.</p>
|
592
592
|
<div class="refsect3">
|
593
593
|
<a name="gdk-pixbuf-loader-close.parameters"></a><h4>Parameters</h4>
|
594
594
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -605,7 +605,7 @@ use it anymore, please <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/loc
|
|
605
605
|
</tr>
|
606
606
|
<tr>
|
607
607
|
<td class="parameter_name"><p>error</p></td>
|
608
|
-
<td class="parameter_description"><p> return location for a <a href="
|
608
|
+
<td class="parameter_description"><p> return location for a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors. </p></td>
|
609
609
|
<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>
|
610
610
|
</tr>
|
611
611
|
</tbody>
|
@@ -613,7 +613,7 @@ use it anymore, please <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/loc
|
|
613
613
|
</div>
|
614
614
|
<div class="refsect3">
|
615
615
|
<a name="gdk-pixbuf-loader-close.returns"></a><h4>Returns</h4>
|
616
|
-
<p> <a href="
|
616
|
+
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if all image data written so far was successfully
|
617
617
|
passed out via the update_area signal</p>
|
618
618
|
</div>
|
619
619
|
</div>
|
@@ -633,7 +633,7 @@ fields.</p>
|
|
633
633
|
<a name="GdkPixbufLoader-area-prepared"></a><h3>The <code class="literal">“area-prepared”</code> signal</h3>
|
634
634
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
635
635
|
user_function (<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> *loader,
|
636
|
-
<a href="
|
636
|
+
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
637
637
|
<p>This signal is emitted when the pixbuf loader has allocated the
|
638
638
|
|
639
639
|
pixbuf in the desired size. After this signal is emitted,
|
@@ -663,18 +663,18 @@ the partially-loaded pixbuf.</p>
|
|
663
663
|
</tbody>
|
664
664
|
</table></div>
|
665
665
|
</div>
|
666
|
-
<p>Flags: <a href="
|
666
|
+
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
|
667
667
|
</div>
|
668
668
|
<hr>
|
669
669
|
<div class="refsect2">
|
670
670
|
<a name="GdkPixbufLoader-area-updated"></a><h3>The <code class="literal">“area-updated”</code> signal</h3>
|
671
671
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
672
672
|
user_function (<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> *loader,
|
673
|
-
<a href="
|
674
|
-
<a href="
|
675
|
-
<a href="
|
676
|
-
<a href="
|
677
|
-
<a href="
|
673
|
+
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x,
|
674
|
+
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y,
|
675
|
+
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width,
|
676
|
+
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height,
|
677
|
+
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
678
678
|
<p>This signal is emitted when a significant area of the image being
|
679
679
|
loaded has been updated. Normally it means that a complete
|
680
680
|
scanline has been read in, but it could be a different area as
|
@@ -722,14 +722,14 @@ areas of an image that is being loaded.</p>
|
|
722
722
|
</tbody>
|
723
723
|
</table></div>
|
724
724
|
</div>
|
725
|
-
<p>Flags: <a href="
|
725
|
+
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
|
726
726
|
</div>
|
727
727
|
<hr>
|
728
728
|
<div class="refsect2">
|
729
729
|
<a name="GdkPixbufLoader-closed"></a><h3>The <code class="literal">“closed”</code> signal</h3>
|
730
730
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
731
731
|
user_function (<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> *loader,
|
732
|
-
<a href="
|
732
|
+
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
733
733
|
<p>This signal is emitted when <a class="link" href="GdkPixbufLoader.html#gdk-pixbuf-loader-close" title="gdk_pixbuf_loader_close ()"><code class="function">gdk_pixbuf_loader_close()</code></a> is called.
|
734
734
|
It can be used by different parts of an application to receive
|
735
735
|
notification when an image loader is closed by the code that
|
@@ -756,16 +756,16 @@ drives it.</p>
|
|
756
756
|
</tbody>
|
757
757
|
</table></div>
|
758
758
|
</div>
|
759
|
-
<p>Flags: <a href="
|
759
|
+
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
|
760
760
|
</div>
|
761
761
|
<hr>
|
762
762
|
<div class="refsect2">
|
763
763
|
<a name="GdkPixbufLoader-size-prepared"></a><h3>The <code class="literal">“size-prepared”</code> signal</h3>
|
764
764
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
765
765
|
user_function (<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> *loader,
|
766
|
-
<a href="
|
767
|
-
<a href="
|
768
|
-
<a href="
|
766
|
+
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width,
|
767
|
+
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height,
|
768
|
+
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
769
769
|
<p>This signal is emitted when the pixbuf loader has been fed the
|
770
770
|
initial amount of data that is required to figure out the size
|
771
771
|
of the image that it will create. Applications can call
|
@@ -804,7 +804,7 @@ the desired size to which the image should be scaled.</p>
|
|
804
804
|
</tbody>
|
805
805
|
</table></div>
|
806
806
|
</div>
|
807
|
-
<p>Flags: <a href="
|
807
|
+
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
|
808
808
|
</div>
|
809
809
|
</div>
|
810
810
|
<div class="refsect1">
|