gdk_pixbuf2 3.0.9-x86-mingw32 → 3.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -2
- data/lib/gdk_pixbuf2/loader.rb +0 -6
- data/lib/gdk_pixbuf2/pixbuf.rb +13 -0
- data/test/run-test.rb +2 -0
- data/test/test-pixbuf.rb +3 -0
- 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/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +23 -4
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +83 -5
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +7 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +8 -4
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +24 -10
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +11 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +662 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +6 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +7 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +1 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +5 -5
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +71 -71
- 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/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- 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/gir-1.0/GdkPixbuf-2.0.gir +201 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +78 -78
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-32.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-36.html +146 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +107 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +90 -90
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +106 -106
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +257 -99
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +36 -35
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +49 -49
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +128 -73
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +17 -17
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +28 -28
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +164 -75
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +19 -19
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +295 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +27 -27
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +28 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +5 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +3 -3
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +2 -2
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +2 -2
- metadata +8 -7
- data/vendor/local/lib/gdk_pixbuf-2.0.def +0 -134
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcc0d468e6d972658debe2625b78a1bb962946ae
|
4
|
+
data.tar.gz: 7bb36cbf3c4ef2d505564331c0039bc22f953397
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28c9f780cff94e5b849bcdb6c6e54a3aa2d873acacd1f4a166a111fa605930fdf759ccdba382df961347658987f9a967f93e000fd4c2215a1611763a78dbfec8
|
7
|
+
data.tar.gz: fb865eb2de15e480c9a9ca6f9416469348b6ecf063f845183f4fa2131ac5cd0b52c9e93ffb6f94fad158f73f583b80e9656867fd623a4e016eb7147b557f4221
|
data/Rakefile
CHANGED
@@ -22,7 +22,9 @@ require "gnome2/rake/package-task"
|
|
22
22
|
package_task = GNOME2::Rake::PackageTask.new do |package|
|
23
23
|
package.summary = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
|
24
24
|
package.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
|
25
|
-
package.dependency.gem.runtime = [
|
25
|
+
package.dependency.gem.runtime = [
|
26
|
+
"gio2",
|
27
|
+
]
|
26
28
|
package.windows.packages = []
|
27
29
|
package.windows.dependencies = []
|
28
30
|
package.windows.build_dependencies = [
|
@@ -34,7 +36,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
34
36
|
:name => "gdk-pixbuf",
|
35
37
|
:download_site => :gnome,
|
36
38
|
:label => "gdk-pixbuf",
|
37
|
-
:version => "2.
|
39
|
+
:version => "2.36.0",
|
38
40
|
:compression_method => "xz",
|
39
41
|
:windows => {
|
40
42
|
:configure_args => [
|
data/lib/gdk_pixbuf2/loader.rb
CHANGED
@@ -35,12 +35,6 @@ module GdkPixbuf
|
|
35
35
|
require "gdk_pixbuf2/version"
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize_post(object)
|
39
|
-
super
|
40
|
-
return unless object.is_a?(GLib::Object)
|
41
|
-
self.class.reference_gobject(object, :sink => true)
|
42
|
-
end
|
43
|
-
|
44
38
|
def define_constant(name, info)
|
45
39
|
if /PIXBUF_/ =~ name
|
46
40
|
name = $POSTMATCH
|
data/lib/gdk_pixbuf2/pixbuf.rb
CHANGED
@@ -157,6 +157,19 @@ module GdkPixbuf
|
|
157
157
|
end
|
158
158
|
private :initialize_with_hash
|
159
159
|
|
160
|
+
if private_method_defined?(:initialize_new_from_file_utf8)
|
161
|
+
alias_method :initialize_new_from_file,
|
162
|
+
:initialize_new_from_file_utf8
|
163
|
+
end
|
164
|
+
if private_method_defined?(:initialize_new_from_file_at_size_utf8)
|
165
|
+
alias_method :initialize_new_from_file_at_size,
|
166
|
+
:initialize_new_from_file_at_size_utf8
|
167
|
+
end
|
168
|
+
if private_method_defined?(:initialize_new_from_file_at_scale_utf8)
|
169
|
+
alias_method :initialize_new_from_file_at_scale,
|
170
|
+
:initialize_new_from_file_at_scale_utf8
|
171
|
+
end
|
172
|
+
|
160
173
|
def dup
|
161
174
|
copy
|
162
175
|
end
|
data/test/run-test.rb
CHANGED
@@ -20,11 +20,13 @@ ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
|
|
20
20
|
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
21
21
|
|
22
22
|
glib_base = File.join(ruby_gnome2_base, "glib2")
|
23
|
+
gio2_base = File.join(ruby_gnome2_base, "gio2")
|
23
24
|
gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
|
24
25
|
gdk_pixbuf2_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
|
25
26
|
|
26
27
|
modules = [
|
27
28
|
[glib_base, "glib2"],
|
29
|
+
[gio2_base, "gio2"],
|
28
30
|
[gobject_introspection_base, "gobject-introspection"],
|
29
31
|
[gdk_pixbuf2_base, "gdk_pixbuf2"],
|
30
32
|
]
|
data/test/test-pixbuf.rb
CHANGED
@@ -322,6 +322,9 @@ class TestPixbuf < Test::Unit::TestCase
|
|
322
322
|
end
|
323
323
|
|
324
324
|
test "normal usage" do
|
325
|
+
if /\Ai\d86-/ === RUBY_PLATFORM
|
326
|
+
omit("floating point calculation result is different on i386")
|
327
|
+
end
|
325
328
|
src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
|
326
329
|
pixbuf = src_pixbuf.saturate_and_pixelate(0, true)
|
327
330
|
ref = saturate_and_pixelate_pixels(src_pixbuf, 0, true)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -38,7 +38,7 @@ G_BEGIN_DECLS
|
|
38
38
|
|
39
39
|
/**
|
40
40
|
* GdkPixbufAnimation:
|
41
|
-
*
|
41
|
+
*
|
42
42
|
* An opaque struct representing an animation.
|
43
43
|
*/
|
44
44
|
typedef struct _GdkPixbufAnimation GdkPixbufAnimation;
|
@@ -46,7 +46,7 @@ typedef struct _GdkPixbufAnimation GdkPixbufAnimation;
|
|
46
46
|
|
47
47
|
/**
|
48
48
|
* GdkPixbufAnimationIter:
|
49
|
-
*
|
49
|
+
*
|
50
50
|
* An opaque struct representing an iterator which points to a
|
51
51
|
* certain position in an animation.
|
52
52
|
*/
|
@@ -60,6 +60,7 @@ typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter;
|
|
60
60
|
#define GDK_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIter))
|
61
61
|
#define GDK_IS_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER))
|
62
62
|
|
63
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
63
64
|
GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST;
|
64
65
|
|
65
66
|
#ifndef __GTK_DOC_IGNORE__
|
@@ -68,38 +69,54 @@ GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST;
|
|
68
69
|
#endif
|
69
70
|
#endif
|
70
71
|
|
72
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
71
73
|
GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename,
|
72
74
|
GError **error);
|
75
|
+
GDK_PIXBUF_AVAILABLE_IN_2_28
|
73
76
|
GdkPixbufAnimation *gdk_pixbuf_animation_new_from_stream (GInputStream *stream,
|
74
77
|
GCancellable *cancellable,
|
75
78
|
GError **error);
|
79
|
+
GDK_PIXBUF_AVAILABLE_IN_2_28
|
76
80
|
void gdk_pixbuf_animation_new_from_stream_async (GInputStream *stream,
|
77
81
|
GCancellable *cancellable,
|
78
82
|
GAsyncReadyCallback callback,
|
79
83
|
gpointer user_data);
|
84
|
+
GDK_PIXBUF_AVAILABLE_IN_2_28
|
80
85
|
GdkPixbufAnimation *gdk_pixbuf_animation_new_from_stream_finish (GAsyncResult*async_result,
|
81
86
|
GError **error);
|
87
|
+
GDK_PIXBUF_AVAILABLE_IN_2_28
|
82
88
|
GdkPixbufAnimation *gdk_pixbuf_animation_new_from_resource(const char *resource_path,
|
83
89
|
GError **error);
|
84
90
|
|
85
91
|
#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
|
86
|
-
|
92
|
+
|
93
|
+
GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_ref)
|
87
94
|
GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation);
|
88
|
-
|
95
|
+
GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_unref)
|
89
96
|
void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation);
|
90
97
|
#endif
|
91
98
|
|
99
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
92
100
|
int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation);
|
101
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
93
102
|
int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation);
|
103
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
94
104
|
gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation);
|
105
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
95
106
|
GdkPixbuf *gdk_pixbuf_animation_get_static_image (GdkPixbufAnimation *animation);
|
96
107
|
|
108
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
97
109
|
GdkPixbufAnimationIter *gdk_pixbuf_animation_get_iter (GdkPixbufAnimation *animation,
|
98
110
|
const GTimeVal *start_time);
|
111
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
99
112
|
GType gdk_pixbuf_animation_iter_get_type (void) G_GNUC_CONST;
|
113
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
100
114
|
int gdk_pixbuf_animation_iter_get_delay_time (GdkPixbufAnimationIter *iter);
|
115
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
101
116
|
GdkPixbuf *gdk_pixbuf_animation_iter_get_pixbuf (GdkPixbufAnimationIter *iter);
|
117
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
102
118
|
gboolean gdk_pixbuf_animation_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter);
|
119
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
103
120
|
gboolean gdk_pixbuf_animation_iter_advance (GdkPixbufAnimationIter *iter,
|
104
121
|
const GTimeVal *current_time);
|
105
122
|
|
@@ -194,7 +211,9 @@ struct _GdkPixbufAnimationIterClass {
|
|
194
211
|
};
|
195
212
|
|
196
213
|
|
214
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
197
215
|
GType gdk_pixbuf_non_anim_get_type (void) G_GNUC_CONST;
|
216
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
198
217
|
GdkPixbufAnimation* gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf);
|
199
218
|
|
200
219
|
#endif /* GDK_PIXBUF_ENABLE_BACKEND */
|
@@ -32,6 +32,8 @@
|
|
32
32
|
#include <glib-object.h>
|
33
33
|
#include <gio/gio.h>
|
34
34
|
|
35
|
+
#include <gdk-pixbuf/gdk-pixbuf-macros.h>
|
36
|
+
|
35
37
|
G_BEGIN_DECLS
|
36
38
|
|
37
39
|
/**
|
@@ -213,50 +215,67 @@ typedef enum {
|
|
213
215
|
GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION
|
214
216
|
} GdkPixbufError;
|
215
217
|
|
218
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
216
219
|
GQuark gdk_pixbuf_error_quark (void);
|
217
220
|
|
218
221
|
|
219
222
|
|
223
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
220
224
|
GType gdk_pixbuf_get_type (void) G_GNUC_CONST;
|
221
225
|
|
222
226
|
/* Reference counting */
|
223
227
|
|
224
228
|
#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
|
225
|
-
|
229
|
+
GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_ref)
|
226
230
|
GdkPixbuf *gdk_pixbuf_ref (GdkPixbuf *pixbuf);
|
227
|
-
|
231
|
+
GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_unref)
|
228
232
|
void gdk_pixbuf_unref (GdkPixbuf *pixbuf);
|
229
233
|
#endif
|
230
234
|
|
231
235
|
/* GdkPixbuf accessors */
|
232
236
|
|
237
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
233
238
|
GdkColorspace gdk_pixbuf_get_colorspace (const GdkPixbuf *pixbuf);
|
239
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
234
240
|
int gdk_pixbuf_get_n_channels (const GdkPixbuf *pixbuf);
|
241
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
235
242
|
gboolean gdk_pixbuf_get_has_alpha (const GdkPixbuf *pixbuf);
|
243
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
236
244
|
int gdk_pixbuf_get_bits_per_sample (const GdkPixbuf *pixbuf);
|
245
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
237
246
|
guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf);
|
247
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
238
248
|
int gdk_pixbuf_get_width (const GdkPixbuf *pixbuf);
|
249
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
239
250
|
int gdk_pixbuf_get_height (const GdkPixbuf *pixbuf);
|
251
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
240
252
|
int gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf);
|
253
|
+
GDK_PIXBUF_AVAILABLE_IN_2_26
|
241
254
|
gsize gdk_pixbuf_get_byte_length (const GdkPixbuf *pixbuf);
|
242
255
|
|
256
|
+
GDK_PIXBUF_AVAILABLE_IN_2_26
|
243
257
|
guchar *gdk_pixbuf_get_pixels_with_length (const GdkPixbuf *pixbuf,
|
244
258
|
guint *length);
|
245
259
|
|
260
|
+
GDK_PIXBUF_AVAILABLE_IN_2_32
|
246
261
|
const guint8* gdk_pixbuf_read_pixels (const GdkPixbuf *pixbuf);
|
262
|
+
GDK_PIXBUF_AVAILABLE_IN_2_32
|
247
263
|
GBytes * gdk_pixbuf_read_pixel_bytes (const GdkPixbuf *pixbuf);
|
248
264
|
|
249
265
|
|
250
266
|
|
251
267
|
/* Create a blank pixbuf with an optimal rowstride and a new buffer */
|
268
|
+
|
269
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
252
270
|
GdkPixbuf *gdk_pixbuf_new (GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample,
|
253
271
|
int width, int height);
|
254
272
|
|
255
273
|
/* Copy a pixbuf */
|
256
|
-
|
274
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
257
275
|
GdkPixbuf *gdk_pixbuf_copy (const GdkPixbuf *pixbuf);
|
258
276
|
|
259
277
|
/* Create a pixbuf which points to the pixels of another pixbuf */
|
278
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
260
279
|
GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf,
|
261
280
|
int src_x,
|
262
281
|
int src_y,
|
@@ -274,25 +293,31 @@ GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf,
|
|
274
293
|
#endif
|
275
294
|
#endif
|
276
295
|
|
296
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
277
297
|
GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename,
|
278
298
|
GError **error);
|
299
|
+
GDK_PIXBUF_AVAILABLE_IN_2_4
|
279
300
|
GdkPixbuf *gdk_pixbuf_new_from_file_at_size (const char *filename,
|
280
301
|
int width,
|
281
302
|
int height,
|
282
303
|
GError **error);
|
304
|
+
GDK_PIXBUF_AVAILABLE_IN_2_6
|
283
305
|
GdkPixbuf *gdk_pixbuf_new_from_file_at_scale (const char *filename,
|
284
306
|
int width,
|
285
307
|
int height,
|
286
308
|
gboolean preserve_aspect_ratio,
|
287
309
|
GError **error);
|
310
|
+
GDK_PIXBUF_AVAILABLE_IN_2_26
|
288
311
|
GdkPixbuf *gdk_pixbuf_new_from_resource (const char *resource_path,
|
289
312
|
GError **error);
|
313
|
+
GDK_PIXBUF_AVAILABLE_IN_2_26
|
290
314
|
GdkPixbuf *gdk_pixbuf_new_from_resource_at_scale (const char *resource_path,
|
291
315
|
int width,
|
292
316
|
int height,
|
293
317
|
gboolean preserve_aspect_ratio,
|
294
318
|
GError **error);
|
295
319
|
|
320
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
296
321
|
GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data,
|
297
322
|
GdkColorspace colorspace,
|
298
323
|
gboolean has_alpha,
|
@@ -302,17 +327,19 @@ GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data,
|
|
302
327
|
GdkPixbufDestroyNotify destroy_fn,
|
303
328
|
gpointer destroy_fn_data);
|
304
329
|
|
330
|
+
GDK_PIXBUF_AVAILABLE_IN_2_32
|
305
331
|
GdkPixbuf *gdk_pixbuf_new_from_bytes (GBytes *data,
|
306
332
|
GdkColorspace colorspace,
|
307
333
|
gboolean has_alpha,
|
308
334
|
int bits_per_sample,
|
309
335
|
int width, int height,
|
310
336
|
int rowstride);
|
311
|
-
|
337
|
+
|
338
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
312
339
|
GdkPixbuf *gdk_pixbuf_new_from_xpm_data (const char **data);
|
313
340
|
|
314
341
|
#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
|
315
|
-
|
342
|
+
GDK_PIXBUF_DEPRECATED_IN_2_32
|
316
343
|
GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length,
|
317
344
|
const guint8 *data,
|
318
345
|
gboolean copy_pixels,
|
@@ -320,6 +347,7 @@ GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length,
|
|
320
347
|
#endif
|
321
348
|
|
322
349
|
/* Mutations */
|
350
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
323
351
|
void gdk_pixbuf_fill (GdkPixbuf *pixbuf,
|
324
352
|
guint32 pixel);
|
325
353
|
|
@@ -333,12 +361,14 @@ void gdk_pixbuf_fill (GdkPixbuf *pixbuf,
|
|
333
361
|
#endif
|
334
362
|
#endif
|
335
363
|
|
364
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
336
365
|
gboolean gdk_pixbuf_save (GdkPixbuf *pixbuf,
|
337
366
|
const char *filename,
|
338
367
|
const char *type,
|
339
368
|
GError **error,
|
340
369
|
...) G_GNUC_NULL_TERMINATED;
|
341
370
|
|
371
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
342
372
|
gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf,
|
343
373
|
const char *filename,
|
344
374
|
const char *type,
|
@@ -372,6 +402,7 @@ typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf,
|
|
372
402
|
GError **error,
|
373
403
|
gpointer data);
|
374
404
|
|
405
|
+
GDK_PIXBUF_AVAILABLE_IN_2_4
|
375
406
|
gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf,
|
376
407
|
GdkPixbufSaveFunc save_func,
|
377
408
|
gpointer user_data,
|
@@ -379,6 +410,7 @@ gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf,
|
|
379
410
|
GError **error,
|
380
411
|
...) G_GNUC_NULL_TERMINATED;
|
381
412
|
|
413
|
+
GDK_PIXBUF_AVAILABLE_IN_2_4
|
382
414
|
gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf,
|
383
415
|
GdkPixbufSaveFunc save_func,
|
384
416
|
gpointer user_data,
|
@@ -389,6 +421,7 @@ gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf,
|
|
389
421
|
|
390
422
|
/* Saving into a newly allocated char array */
|
391
423
|
|
424
|
+
GDK_PIXBUF_AVAILABLE_IN_2_4
|
392
425
|
gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf,
|
393
426
|
gchar **buffer,
|
394
427
|
gsize *buffer_size,
|
@@ -396,6 +429,7 @@ gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf,
|
|
396
429
|
GError **error,
|
397
430
|
...) G_GNUC_NULL_TERMINATED;
|
398
431
|
|
432
|
+
GDK_PIXBUF_AVAILABLE_IN_2_4
|
399
433
|
gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf,
|
400
434
|
gchar **buffer,
|
401
435
|
gsize *buffer_size,
|
@@ -404,18 +438,22 @@ gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf,
|
|
404
438
|
char **option_values,
|
405
439
|
GError **error);
|
406
440
|
|
441
|
+
GDK_PIXBUF_AVAILABLE_IN_2_14
|
407
442
|
GdkPixbuf *gdk_pixbuf_new_from_stream (GInputStream *stream,
|
408
443
|
GCancellable *cancellable,
|
409
444
|
GError **error);
|
410
445
|
|
446
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
411
447
|
void gdk_pixbuf_new_from_stream_async (GInputStream *stream,
|
412
448
|
GCancellable *cancellable,
|
413
449
|
GAsyncReadyCallback callback,
|
414
450
|
gpointer user_data);
|
415
451
|
|
452
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
416
453
|
GdkPixbuf *gdk_pixbuf_new_from_stream_finish (GAsyncResult *async_result,
|
417
454
|
GError **error);
|
418
455
|
|
456
|
+
GDK_PIXBUF_AVAILABLE_IN_2_14
|
419
457
|
GdkPixbuf *gdk_pixbuf_new_from_stream_at_scale (GInputStream *stream,
|
420
458
|
gint width,
|
421
459
|
gint height,
|
@@ -423,6 +461,7 @@ GdkPixbuf *gdk_pixbuf_new_from_stream_at_scale (GInputStream *stream,
|
|
423
461
|
GCancellable *cancellable,
|
424
462
|
GError **error);
|
425
463
|
|
464
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
426
465
|
void gdk_pixbuf_new_from_stream_at_scale_async (GInputStream *stream,
|
427
466
|
gint width,
|
428
467
|
gint height,
|
@@ -431,6 +470,7 @@ void gdk_pixbuf_new_from_stream_at_scale_async (GInputStream *stream,
|
|
431
470
|
GAsyncReadyCallback callback,
|
432
471
|
gpointer user_data);
|
433
472
|
|
473
|
+
GDK_PIXBUF_AVAILABLE_IN_2_14
|
434
474
|
gboolean gdk_pixbuf_save_to_stream (GdkPixbuf *pixbuf,
|
435
475
|
GOutputStream *stream,
|
436
476
|
const char *type,
|
@@ -438,6 +478,7 @@ gboolean gdk_pixbuf_save_to_stream (GdkPixbuf *pixbuf,
|
|
438
478
|
GError **error,
|
439
479
|
...);
|
440
480
|
|
481
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
441
482
|
void gdk_pixbuf_save_to_stream_async (GdkPixbuf *pixbuf,
|
442
483
|
GOutputStream *stream,
|
443
484
|
const gchar *type,
|
@@ -446,14 +487,36 @@ void gdk_pixbuf_save_to_stream_async (GdkPixbuf *pixbuf,
|
|
446
487
|
gpointer user_data,
|
447
488
|
...);
|
448
489
|
|
490
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
449
491
|
gboolean gdk_pixbuf_save_to_stream_finish (GAsyncResult *async_result,
|
450
492
|
GError **error);
|
451
493
|
|
494
|
+
GDK_PIXBUF_AVAILABLE_IN_2_36
|
495
|
+
void gdk_pixbuf_save_to_streamv_async (GdkPixbuf *pixbuf,
|
496
|
+
GOutputStream *stream,
|
497
|
+
const gchar *type,
|
498
|
+
gchar **option_keys,
|
499
|
+
gchar **option_values,
|
500
|
+
GCancellable *cancellable,
|
501
|
+
GAsyncReadyCallback callback,
|
502
|
+
gpointer user_data);
|
503
|
+
|
504
|
+
GDK_PIXBUF_AVAILABLE_IN_2_36
|
505
|
+
gboolean gdk_pixbuf_save_to_streamv (GdkPixbuf *pixbuf,
|
506
|
+
GOutputStream *stream,
|
507
|
+
const char *type,
|
508
|
+
char **option_keys,
|
509
|
+
char **option_values,
|
510
|
+
GCancellable *cancellable,
|
511
|
+
GError **error);
|
512
|
+
|
452
513
|
/* Adding an alpha channel */
|
514
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
453
515
|
GdkPixbuf *gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf, gboolean substitute_color,
|
454
516
|
guchar r, guchar g, guchar b);
|
455
517
|
|
456
518
|
/* Copy an area of a pixbuf onto another one */
|
519
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
457
520
|
void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf,
|
458
521
|
int src_x, int src_y,
|
459
522
|
int width, int height,
|
@@ -461,17 +524,32 @@ void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf,
|
|
461
524
|
int dest_x, int dest_y);
|
462
525
|
|
463
526
|
/* Brighten/darken and optionally make it pixelated-looking */
|
527
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
464
528
|
void gdk_pixbuf_saturate_and_pixelate (const GdkPixbuf *src,
|
465
529
|
GdkPixbuf *dest,
|
466
530
|
gfloat saturation,
|
467
531
|
gboolean pixelate);
|
468
532
|
|
469
533
|
/* Transform an image to agree with its embedded orientation option / tag */
|
534
|
+
GDK_PIXBUF_AVAILABLE_IN_2_12
|
470
535
|
GdkPixbuf *gdk_pixbuf_apply_embedded_orientation (GdkPixbuf *src);
|
471
536
|
|
537
|
+
/* key/value pairs that can be attached by the pixbuf loader */
|
538
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
539
|
+
gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
|
540
|
+
const gchar *key,
|
541
|
+
const gchar *value);
|
542
|
+
GDK_PIXBUF_AVAILABLE_IN_ALL
|
472
543
|
const gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf,
|
473
544
|
const gchar *key);
|
545
|
+
GDK_PIXBUF_AVAILABLE_IN_2_36
|
546
|
+
gboolean gdk_pixbuf_remove_option (GdkPixbuf *pixbuf,
|
547
|
+
const gchar *key);
|
548
|
+
GDK_PIXBUF_AVAILABLE_IN_2_32
|
474
549
|
GHashTable * gdk_pixbuf_get_options (GdkPixbuf *pixbuf);
|
550
|
+
GDK_PIXBUF_AVAILABLE_IN_2_36
|
551
|
+
gboolean gdk_pixbuf_copy_options (GdkPixbuf *src_pixbuf,
|
552
|
+
GdkPixbuf *dest_pixbuf);
|
475
553
|
|
476
554
|
|
477
555
|
G_END_DECLS
|