gdk_pixbuf2 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +29 -0
- data/Rakefile +34 -0
- data/ext/gdk_pixbuf2/depend +11 -0
- data/ext/gdk_pixbuf2/extconf.rb +66 -0
- data/ext/gdk_pixbuf2/gdk_pixbuf2.def +2 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +179 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +164 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +737 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +41 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +42 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +35 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +93 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +53 -0
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +213 -0
- data/extconf.rb +49 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -0
- data/lib/2.2/gdk_pixbuf2.so +0 -0
- data/lib/gdk_pixbuf2.rb +57 -0
- data/sample/anim.rb +38 -0
- data/sample/composite.rb +45 -0
- data/sample/flip.rb +47 -0
- data/sample/floppybuddy.gif +0 -0
- data/sample/format.rb +39 -0
- data/sample/gnome-foot.png +0 -0
- data/sample/inline.rb +37 -0
- data/sample/loader.rb +20 -0
- data/sample/pixdata.rb +39 -0
- data/sample/rotate.rb +45 -0
- data/sample/save.rb +25 -0
- data/sample/scale.rb +45 -0
- data/sample/simpleanim.rb +34 -0
- data/sample/utils.rb +44 -0
- data/sample/xpm.rb +40 -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 +204 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +464 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +33 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +120 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +343 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +108 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +36 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +64 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +158 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +43 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +168 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +139 -0
- 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 +41 -0
- data/vendor/local/lib/gdk_pixbuf-2.0.def +128 -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 +41 -0
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +19 -0
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +3443 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +827 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +46 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +108 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +72 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +39 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +53 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +787 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/composite.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +1068 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +794 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +864 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +491 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +639 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +1298 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +208 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +914 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +898 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +381 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +184 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +197 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +438 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +1115 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +167 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +159 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +45 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +44 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +85 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +226 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +150 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +322 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +59 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +101 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up.png +0 -0
- data/vendor/local/share/license/gdk-pixbuf/AUTHORS +65 -0
- data/vendor/local/share/license/gdk-pixbuf/COPYING +482 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/crh/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/csb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cy/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/dz/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_CA/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/eo/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/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fi/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/ga/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/gu/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/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hr/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/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ia/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/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ka/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/kn/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/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/li/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/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nso/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/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pa/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/ps/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/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/si/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/sq/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@ije/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/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tk/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/tt/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/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_CN/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/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +135 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +73 -0
- metadata +273 -0
@@ -0,0 +1,139 @@
|
|
1
|
+
# GdkPixbuf Image Loader Modules file
|
2
|
+
# Automatically generated file, do not edit
|
3
|
+
# Created by gdk-pixbuf-query-loaders from gdk-pixbuf-2.30.8
|
4
|
+
#
|
5
|
+
# LoaderDir = /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders
|
6
|
+
#
|
7
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.so"
|
8
|
+
"tga" 4 "gdk-pixbuf" "The Targa image format" "LGPL"
|
9
|
+
"image/x-tga" ""
|
10
|
+
"tga" "targa" ""
|
11
|
+
" \001\001" "x " 100
|
12
|
+
" \001\t" "x " 100
|
13
|
+
" \002" "xz " 99
|
14
|
+
" \003" "xz " 100
|
15
|
+
" \n" "xz " 100
|
16
|
+
" \v" "xz " 100
|
17
|
+
|
18
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.so"
|
19
|
+
"pnm" 4 "gdk-pixbuf" "The PNM/PBM/PGM/PPM image format family" "LGPL"
|
20
|
+
"image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" ""
|
21
|
+
"pnm" "pbm" "pgm" "ppm" ""
|
22
|
+
"P1" "" 100
|
23
|
+
"P2" "" 100
|
24
|
+
"P3" "" 100
|
25
|
+
"P4" "" 100
|
26
|
+
"P5" "" 100
|
27
|
+
"P6" "" 100
|
28
|
+
|
29
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.so"
|
30
|
+
"ani" 4 "gdk-pixbuf" "The ANI image format" "LGPL"
|
31
|
+
"application/x-navi-animation" ""
|
32
|
+
"ani" ""
|
33
|
+
"RIFF ACON" " xxxx " 100
|
34
|
+
|
35
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.so"
|
36
|
+
"icns" 4 "gdk-pixbuf" "The ICNS image format" "GPL"
|
37
|
+
"image/x-icns" ""
|
38
|
+
"icns" ""
|
39
|
+
"icns" "" 100
|
40
|
+
|
41
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so"
|
42
|
+
"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL"
|
43
|
+
"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" ""
|
44
|
+
"svg" "svgz" "svg.gz" ""
|
45
|
+
" <svg" "* " 100
|
46
|
+
" <!DOCTYPE svg" "* " 100
|
47
|
+
|
48
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so"
|
49
|
+
"ico" 5 "gdk-pixbuf" "The ICO image format" "LGPL"
|
50
|
+
"image/x-icon" "image/x-ico" "image/x-win-bitmap" ""
|
51
|
+
"ico" "cur" ""
|
52
|
+
" \001 " "zz znz" 100
|
53
|
+
" \002 " "zz znz" 100
|
54
|
+
|
55
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so"
|
56
|
+
"gif" 4 "gdk-pixbuf" "The GIF image format" "LGPL"
|
57
|
+
"image/gif" ""
|
58
|
+
"gif" ""
|
59
|
+
"GIF8" "" 100
|
60
|
+
|
61
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ras.so"
|
62
|
+
"ras" 4 "gdk-pixbuf" "The Sun raster image format" "LGPL"
|
63
|
+
"image/x-cmu-raster" "image/x-sun-raster" ""
|
64
|
+
"ras" ""
|
65
|
+
"Y\246j\225" "" 100
|
66
|
+
|
67
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.so"
|
68
|
+
"qtif" 4 "gdk-pixbuf" "The QTIF image format" "LGPL"
|
69
|
+
"image/x-quicktime" "image/qtif" ""
|
70
|
+
"qtif" "qif" ""
|
71
|
+
"abcdidsc" "xxxx " 100
|
72
|
+
"abcdidat" "xxxx " 100
|
73
|
+
|
74
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so"
|
75
|
+
"bmp" 5 "gdk-pixbuf" "The BMP image format" "LGPL"
|
76
|
+
"image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
|
77
|
+
"bmp" ""
|
78
|
+
"BM" "" 100
|
79
|
+
|
80
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pcx.so"
|
81
|
+
"pcx" 4 "gdk-pixbuf" "The PCX image format" "LGPL"
|
82
|
+
"image/x-pcx" ""
|
83
|
+
"pcx" ""
|
84
|
+
"\n \001" "" 100
|
85
|
+
"\n\002\001" "" 100
|
86
|
+
"\n\003\001" "" 100
|
87
|
+
"\n\004\001" "" 100
|
88
|
+
"\n\005\001" "" 100
|
89
|
+
|
90
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so"
|
91
|
+
"png" 5 "gdk-pixbuf" "The PNG image format" "LGPL"
|
92
|
+
"image/png" ""
|
93
|
+
"png" ""
|
94
|
+
"\211PNG\r\n\032\n" "" 100
|
95
|
+
|
96
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.so"
|
97
|
+
"xbm" 4 "gdk-pixbuf" "The XBM image format" "LGPL"
|
98
|
+
"image/x-xbitmap" ""
|
99
|
+
"xbm" ""
|
100
|
+
"#define " "" 100
|
101
|
+
"/*" "" 50
|
102
|
+
|
103
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so"
|
104
|
+
"xpm" 4 "gdk-pixbuf" "The XPM image format" "LGPL"
|
105
|
+
"image/x-xpixmap" ""
|
106
|
+
"xpm" ""
|
107
|
+
"/* XPM */" "" 100
|
108
|
+
|
109
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so"
|
110
|
+
"jpeg" 5 "gdk-pixbuf" "The JPEG image format" "LGPL"
|
111
|
+
"image/jpeg" ""
|
112
|
+
"jpeg" "jpe" "jpg" ""
|
113
|
+
"\377\330" "" 100
|
114
|
+
|
115
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.so"
|
116
|
+
"jpeg2000" 4 "gdk-pixbuf" "The JPEG 2000 image format" "LGPL"
|
117
|
+
"image/jp2" "image/jpeg2000" "image/jpx" ""
|
118
|
+
"jp2" "jpc" "jpx" "j2k" "jpf" ""
|
119
|
+
" jP" "!!!! " 100
|
120
|
+
"\377O\377Q" "" 100
|
121
|
+
|
122
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.so"
|
123
|
+
"tiff" 5 "gdk-pixbuf" "The TIFF image format" "LGPL"
|
124
|
+
"image/tiff" ""
|
125
|
+
"tiff" "tif" ""
|
126
|
+
"MM *" " z " 100
|
127
|
+
"II* " " z" 100
|
128
|
+
"II* \020 CR\002 " " z zzz z" 0
|
129
|
+
|
130
|
+
"/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-wbmp.so"
|
131
|
+
"wbmp" 4 "gdk-pixbuf" "The WBMP image format" "LGPL"
|
132
|
+
"image/vnd.wap.wbmp" ""
|
133
|
+
"wbmp" ""
|
134
|
+
" " "zz" 1
|
135
|
+
" `" "z " 1
|
136
|
+
" @" "z " 1
|
137
|
+
" " "z " 1
|
138
|
+
|
139
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# libpixbufloader-svg.la - a libtool library file
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2
|
3
|
+
#
|
4
|
+
# Please DO NOT delete this file!
|
5
|
+
# It is necessary for linking the library.
|
6
|
+
|
7
|
+
# The name that we can dlopen(3).
|
8
|
+
dlname='libpixbufloader-svg.dll'
|
9
|
+
|
10
|
+
# Names of this library.
|
11
|
+
library_names='libpixbufloader-svg.dll.a'
|
12
|
+
|
13
|
+
# The name of the static archive.
|
14
|
+
old_library='libpixbufloader-svg.a'
|
15
|
+
|
16
|
+
# Linker flags that can not go in dependency_libs.
|
17
|
+
inherited_linker_flags=' -pthread'
|
18
|
+
|
19
|
+
# Libraries that this one depends upon.
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/rcairo.win64/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/rsvg2/vendor/local/lib /home/vagrant/ruby-gnome2.win64/rsvg2/vendor/local/lib/librsvg-2.la -L/home/vagrant/ruby-gnome2.win64/pango/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/gdk_pixbuf2/vendor/local/lib /home/vagrant/ruby-gnome2.win64/gdk_pixbuf2/vendor/local/lib/libgdk_pixbuf-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgio-2.0.la -ldnsapi -liphlpapi /home/vagrant/ruby-gnome2.win64/pango/vendor/local/lib/libpangocairo-1.0.la /home/vagrant/ruby-gnome2.win64/pango/vendor/local/lib/libpangoft2-1.0.la /home/vagrant/ruby-gnome2.win64/pango/vendor/local/lib/libharfbuzz.la /home/vagrant/ruby-gnome2.win64/pango/vendor/local/lib/libpangowin32-1.0.la /home/vagrant/ruby-gnome2.win64/pango/vendor/local/lib/libpango-1.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgmodule-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgthread-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libffi.la /home/vagrant/rcairo.win64/vendor/local/lib/libcairo.la /home/vagrant/rcairo.win64/vendor/local/lib/libpixman-1.la /home/vagrant/rcairo.win64/vendor/local/lib/libfontconfig.la /home/vagrant/rcairo.win64/vendor/local/lib/libfreetype.la -lgdi32 -lmsimg32 /home/vagrant/rcairo.win64/vendor/local/lib/libpng16.la /home/vagrant/ruby-gnome2.win64/rsvg2/vendor/local/lib/libcroco-0.6.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libglib-2.0.la -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libiconv.la -lpthread /home/vagrant/rcairo.win64/vendor/local/lib/libxml2.la -lz -lws2_32'
|
21
|
+
|
22
|
+
# Names of additional weak libraries provided by this library
|
23
|
+
weak_library_names=''
|
24
|
+
|
25
|
+
# Version information for libpixbufloader-svg.
|
26
|
+
current=0
|
27
|
+
age=0
|
28
|
+
revision=0
|
29
|
+
|
30
|
+
# Is this an already installed library?
|
31
|
+
installed=yes
|
32
|
+
|
33
|
+
# Should we warn about portability when linking against -modules?
|
34
|
+
shouldnotlink=yes
|
35
|
+
|
36
|
+
# Files to dlopen/dlpreopen
|
37
|
+
dlopen=''
|
38
|
+
dlpreopen=''
|
39
|
+
|
40
|
+
# Directory that this library needs to be installed in:
|
41
|
+
libdir='/home/vagrant/ruby-gnome2.win64/gdk_pixbuf2/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders'
|
@@ -0,0 +1,128 @@
|
|
1
|
+
EXPORTS
|
2
|
+
gdk_pixbuf_error_quark
|
3
|
+
gdk_pixbuf_get_type
|
4
|
+
gdk_pixbuf_ref
|
5
|
+
gdk_pixbuf_unref
|
6
|
+
gdk_pixbuf_new
|
7
|
+
gdk_pixbuf_get_bits_per_sample
|
8
|
+
gdk_pixbuf_get_colorspace
|
9
|
+
gdk_pixbuf_get_has_alpha
|
10
|
+
gdk_pixbuf_get_height
|
11
|
+
gdk_pixbuf_get_n_channels
|
12
|
+
gdk_pixbuf_get_pixels
|
13
|
+
gdk_pixbuf_get_pixels_with_length
|
14
|
+
gdk_pixbuf_get_byte_length
|
15
|
+
gdk_pixbuf_get_rowstride
|
16
|
+
gdk_pixbuf_get_width
|
17
|
+
gdk_pixbuf_get_option
|
18
|
+
gdk_pixbuf_copy
|
19
|
+
gdk_pixbuf_new_subpixbuf
|
20
|
+
gdk_pixbuf_fill
|
21
|
+
gdk_pixbuf_new_from_data
|
22
|
+
gdk_pixbuf_new_from_file PRIVATE
|
23
|
+
gdk_pixbuf_new_from_file_utf8
|
24
|
+
gdk_pixbuf_new_from_file_at_size PRIVATE
|
25
|
+
gdk_pixbuf_new_from_file_at_size_utf8
|
26
|
+
gdk_pixbuf_new_from_file_at_scale PRIVATE
|
27
|
+
gdk_pixbuf_new_from_file_at_scale_utf8
|
28
|
+
gdk_pixbuf_new_from_xpm_data
|
29
|
+
gdk_pixbuf_new_from_resource
|
30
|
+
gdk_pixbuf_new_from_resource_at_scale
|
31
|
+
gdk_pixbuf_new_from_stream
|
32
|
+
gdk_pixbuf_new_from_stream_async
|
33
|
+
gdk_pixbuf_new_from_stream_finish
|
34
|
+
gdk_pixbuf_new_from_stream_at_scale
|
35
|
+
gdk_pixbuf_new_from_stream_at_scale_async
|
36
|
+
gdk_pixbuf_save PRIVATE
|
37
|
+
gdk_pixbuf_save_utf8
|
38
|
+
gdk_pixbuf_save_to_buffer
|
39
|
+
gdk_pixbuf_save_to_bufferv
|
40
|
+
gdk_pixbuf_save_to_callback
|
41
|
+
gdk_pixbuf_save_to_callbackv
|
42
|
+
gdk_pixbuf_savev PRIVATE
|
43
|
+
gdk_pixbuf_savev_utf8
|
44
|
+
gdk_pixbuf_save_to_stream
|
45
|
+
gdk_pixbuf_save_to_stream_async
|
46
|
+
gdk_pixbuf_save_to_stream_finish
|
47
|
+
gdk_pixbuf_new_from_inline
|
48
|
+
gdk_pixbuf_add_alpha
|
49
|
+
gdk_pixbuf_copy_area
|
50
|
+
gdk_pixbuf_saturate_and_pixelate
|
51
|
+
gdk_pixbuf_apply_embedded_orientation
|
52
|
+
gdk_pixbuf_gettext
|
53
|
+
gdk_pixbuf_rotate_simple
|
54
|
+
gdk_pixbuf_scale
|
55
|
+
gdk_pixbuf_scale_simple
|
56
|
+
gdk_pixbuf_flip
|
57
|
+
gdk_pixbuf_composite
|
58
|
+
gdk_pixbuf_composite_color
|
59
|
+
gdk_pixbuf_composite_color_simple
|
60
|
+
gdk_pixbuf_animation_get_height
|
61
|
+
gdk_pixbuf_animation_get_iter
|
62
|
+
gdk_pixbuf_animation_get_static_image
|
63
|
+
gdk_pixbuf_animation_get_type
|
64
|
+
gdk_pixbuf_animation_get_width
|
65
|
+
gdk_pixbuf_animation_is_static_image
|
66
|
+
gdk_pixbuf_animation_iter_advance
|
67
|
+
gdk_pixbuf_animation_iter_get_delay_time
|
68
|
+
gdk_pixbuf_animation_iter_get_pixbuf
|
69
|
+
gdk_pixbuf_animation_iter_get_type
|
70
|
+
gdk_pixbuf_animation_iter_on_currently_loading_frame
|
71
|
+
gdk_pixbuf_animation_new_from_file PRIVATE
|
72
|
+
gdk_pixbuf_animation_new_from_resource
|
73
|
+
gdk_pixbuf_animation_new_from_stream
|
74
|
+
gdk_pixbuf_animation_new_from_stream_async
|
75
|
+
gdk_pixbuf_animation_new_from_stream_finish
|
76
|
+
gdk_pixbuf_animation_new_from_file_utf8
|
77
|
+
gdk_pixbuf_animation_ref
|
78
|
+
gdk_pixbuf_animation_unref
|
79
|
+
gdk_pixbuf_non_anim_new
|
80
|
+
gdk_pixbuf_non_anim_get_type
|
81
|
+
gdk_pixbuf_simple_anim_get_type
|
82
|
+
gdk_pixbuf_simple_anim_iter_get_type
|
83
|
+
gdk_pixbuf_simple_anim_new
|
84
|
+
gdk_pixbuf_simple_anim_add_frame
|
85
|
+
gdk_pixbuf_simple_anim_set_loop
|
86
|
+
gdk_pixbuf_simple_anim_get_loop
|
87
|
+
gdk_pixbuf_scaled_anim_get_type
|
88
|
+
gdk_pixbuf_scaled_anim_iter_get_type
|
89
|
+
gdk_pixbuf_get_formats
|
90
|
+
gdk_pixbuf_format_get_type
|
91
|
+
gdk_pixbuf_format_copy
|
92
|
+
gdk_pixbuf_format_free
|
93
|
+
gdk_pixbuf_format_get_description
|
94
|
+
gdk_pixbuf_format_get_extensions
|
95
|
+
gdk_pixbuf_format_get_license
|
96
|
+
gdk_pixbuf_format_get_mime_types
|
97
|
+
gdk_pixbuf_format_get_name
|
98
|
+
gdk_pixbuf_format_is_disabled
|
99
|
+
gdk_pixbuf_format_is_scalable
|
100
|
+
gdk_pixbuf_format_is_writable
|
101
|
+
gdk_pixbuf_format_set_disabled
|
102
|
+
gdk_pixbuf_get_file_info
|
103
|
+
gdk_pixbuf_set_option
|
104
|
+
gdk_pixbuf_loader_close
|
105
|
+
gdk_pixbuf_loader_get_animation
|
106
|
+
gdk_pixbuf_loader_get_format
|
107
|
+
gdk_pixbuf_loader_get_pixbuf
|
108
|
+
gdk_pixbuf_loader_get_type
|
109
|
+
gdk_pixbuf_loader_new
|
110
|
+
gdk_pixbuf_loader_new_with_mime_type
|
111
|
+
gdk_pixbuf_loader_new_with_type
|
112
|
+
gdk_pixbuf_loader_set_size
|
113
|
+
gdk_pixbuf_loader_write
|
114
|
+
gdk_pixbuf_loader_write_bytes
|
115
|
+
gdk_colorspace_get_type
|
116
|
+
gdk_interp_type_get_type
|
117
|
+
gdk_pixbuf_alpha_mode_get_type
|
118
|
+
gdk_pixbuf_rotation_get_type
|
119
|
+
gdk_pixbuf_error_get_type
|
120
|
+
gdk_pixbuf_from_pixdata
|
121
|
+
gdk_pixdata_deserialize
|
122
|
+
gdk_pixdata_from_pixbuf
|
123
|
+
gdk_pixdata_serialize
|
124
|
+
gdk_pixdata_to_csource
|
125
|
+
gdk_pixbuf_major_version
|
126
|
+
gdk_pixbuf_micro_version
|
127
|
+
gdk_pixbuf_minor_version
|
128
|
+
gdk_pixbuf_version
|
Binary file
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# libgdk_pixbuf-2.0.la - a libtool library file
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2
|
3
|
+
#
|
4
|
+
# Please DO NOT delete this file!
|
5
|
+
# It is necessary for linking the library.
|
6
|
+
|
7
|
+
# The name that we can dlopen(3).
|
8
|
+
dlname='../bin/libgdk_pixbuf-2.0-0.dll'
|
9
|
+
|
10
|
+
# Names of this library.
|
11
|
+
library_names='libgdk_pixbuf-2.0.dll.a'
|
12
|
+
|
13
|
+
# The name of the static archive.
|
14
|
+
old_library=''
|
15
|
+
|
16
|
+
# Linker flags that can not go in dependency_libs.
|
17
|
+
inherited_linker_flags=''
|
18
|
+
|
19
|
+
# Libraries that this one depends upon.
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/rcairo.win64/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/gdk_pixbuf2/vendor/local/lib /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libffi.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libiconv.la -lpthread /home/vagrant/rcairo.win64/vendor/local/lib/libpng16.la -lz -lole32'
|
21
|
+
|
22
|
+
# Names of additional weak libraries provided by this library
|
23
|
+
weak_library_names=''
|
24
|
+
|
25
|
+
# Version information for libgdk_pixbuf-2.0.
|
26
|
+
current=3000
|
27
|
+
age=3000
|
28
|
+
revision=8
|
29
|
+
|
30
|
+
# Is this an already installed library?
|
31
|
+
installed=yes
|
32
|
+
|
33
|
+
# Should we warn about portability when linking against -modules?
|
34
|
+
shouldnotlink=no
|
35
|
+
|
36
|
+
# Files to dlopen/dlpreopen
|
37
|
+
dlopen=''
|
38
|
+
dlpreopen=''
|
39
|
+
|
40
|
+
# Directory that this library needs to be installed in:
|
41
|
+
libdir='/home/vagrant/ruby-gnome2.win64/gdk_pixbuf2/vendor/local/lib'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
prefix=/home/vagrant/ruby-gnome2.win64/gdk_pixbuf2/vendor/local
|
2
|
+
exec_prefix=${prefix}
|
3
|
+
libdir=${exec_prefix}/lib
|
4
|
+
includedir=${prefix}/include
|
5
|
+
|
6
|
+
gdk_pixbuf_binary_version=2.10.0
|
7
|
+
gdk_pixbuf_binarydir=${exec_prefix}/lib/gdk-pixbuf-2.0/2.10.0
|
8
|
+
gdk_pixbuf_moduledir=${gdk_pixbuf_binarydir}/loaders
|
9
|
+
gdk_pixbuf_cache_file=${gdk_pixbuf_binarydir}/loaders.cache
|
10
|
+
|
11
|
+
Name: GdkPixbuf
|
12
|
+
Description: Image loading and scaling
|
13
|
+
Version: 2.30.8
|
14
|
+
Requires: gobject-2.0
|
15
|
+
Requires.private: gmodule-no-export-2.0 libpng16
|
16
|
+
Libs: -L${libdir} -lgdk_pixbuf-2.0
|
17
|
+
Libs.private:
|
18
|
+
Cflags: -I${includedir}/gdk-pixbuf-2.0
|
19
|
+
|
@@ -0,0 +1,3443 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- This file was automatically generated from C sources - DO NOT EDIT!
|
3
|
+
To affect the contents of this file, edit the original C definitions,
|
4
|
+
and/or use gtk-doc annotations. -->
|
5
|
+
<repository version="1.2"
|
6
|
+
xmlns="http://www.gtk.org/introspection/core/1.0"
|
7
|
+
xmlns:c="http://www.gtk.org/introspection/c/1.0"
|
8
|
+
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
|
9
|
+
<include name="GModule" version="2.0"/>
|
10
|
+
<include name="Gio" version="2.0"/>
|
11
|
+
<package name="gdk-pixbuf-2.0"/>
|
12
|
+
<c:include name="gdk-pixbuf/gdk-pixbuf.h"/>
|
13
|
+
<namespace name="GdkPixbuf"
|
14
|
+
version="2.0"
|
15
|
+
shared-library="libgdk_pixbuf-2.0-0.dll"
|
16
|
+
c:identifier-prefixes="Gdk"
|
17
|
+
c:symbol-prefixes="gdk">
|
18
|
+
<enumeration name="Colorspace"
|
19
|
+
glib:type-name="GdkColorspace"
|
20
|
+
glib:get-type="gdk_colorspace_get_type"
|
21
|
+
c:type="GdkColorspace">
|
22
|
+
<doc xml:space="preserve">This enumeration defines the color spaces that are supported by
|
23
|
+
the gdk-pixbuf library. Currently only RGB is supported.</doc>
|
24
|
+
<member name="rgb"
|
25
|
+
value="0"
|
26
|
+
c:identifier="GDK_COLORSPACE_RGB"
|
27
|
+
glib:nick="rgb">
|
28
|
+
<doc xml:space="preserve">Indicates a red/green/blue additive color space.</doc>
|
29
|
+
</member>
|
30
|
+
</enumeration>
|
31
|
+
<enumeration name="InterpType"
|
32
|
+
glib:type-name="GdkInterpType"
|
33
|
+
glib:get-type="gdk_interp_type_get_type"
|
34
|
+
c:type="GdkInterpType">
|
35
|
+
<doc xml:space="preserve">This enumeration describes the different interpolation modes that
|
36
|
+
can be used with the scaling functions. @GDK_INTERP_NEAREST is
|
37
|
+
the fastest scaling method, but has horrible quality when
|
38
|
+
scaling down. @GDK_INTERP_BILINEAR is the best choice if you
|
39
|
+
aren't sure what to choose, it has a good speed/quality balance.
|
40
|
+
|
41
|
+
<note>
|
42
|
+
Cubic filtering is missing from the list; hyperbolic
|
43
|
+
interpolation is just as fast and results in higher quality.
|
44
|
+
</note></doc>
|
45
|
+
<member name="nearest"
|
46
|
+
value="0"
|
47
|
+
c:identifier="GDK_INTERP_NEAREST"
|
48
|
+
glib:nick="nearest">
|
49
|
+
<doc xml:space="preserve">Nearest neighbor sampling; this is the fastest
|
50
|
+
and lowest quality mode. Quality is normally unacceptable when scaling
|
51
|
+
down, but may be OK when scaling up.</doc>
|
52
|
+
</member>
|
53
|
+
<member name="tiles"
|
54
|
+
value="1"
|
55
|
+
c:identifier="GDK_INTERP_TILES"
|
56
|
+
glib:nick="tiles">
|
57
|
+
<doc xml:space="preserve">This is an accurate simulation of the PostScript
|
58
|
+
image operator without any interpolation enabled. Each pixel is
|
59
|
+
rendered as a tiny parallelogram of solid color, the edges of which
|
60
|
+
are implemented with antialiasing. It resembles nearest neighbor for
|
61
|
+
enlargement, and bilinear for reduction.</doc>
|
62
|
+
</member>
|
63
|
+
<member name="bilinear"
|
64
|
+
value="2"
|
65
|
+
c:identifier="GDK_INTERP_BILINEAR"
|
66
|
+
glib:nick="bilinear">
|
67
|
+
<doc xml:space="preserve">Best quality/speed balance; use this mode by
|
68
|
+
default. Bilinear interpolation. For enlargement, it is
|
69
|
+
equivalent to point-sampling the ideal bilinear-interpolated image.
|
70
|
+
For reduction, it is equivalent to laying down small tiles and
|
71
|
+
integrating over the coverage area.</doc>
|
72
|
+
</member>
|
73
|
+
<member name="hyper"
|
74
|
+
value="3"
|
75
|
+
c:identifier="GDK_INTERP_HYPER"
|
76
|
+
glib:nick="hyper">
|
77
|
+
<doc xml:space="preserve">This is the slowest and highest quality
|
78
|
+
reconstruction function. It is derived from the hyperbolic filters in
|
79
|
+
Wolberg's "Digital Image Warping", and is formally defined as the
|
80
|
+
hyperbolic-filter sampling the ideal hyperbolic-filter interpolated
|
81
|
+
image (the filter is designed to be idempotent for 1:1 pixel mapping).</doc>
|
82
|
+
</member>
|
83
|
+
</enumeration>
|
84
|
+
<constant name="PIXBUF_FEATURES_H"
|
85
|
+
value="1"
|
86
|
+
c:type="GDK_PIXBUF_FEATURES_H">
|
87
|
+
<type name="gint" c:type="gint"/>
|
88
|
+
</constant>
|
89
|
+
<constant name="PIXBUF_MAGIC_NUMBER"
|
90
|
+
value="1197763408"
|
91
|
+
c:type="GDK_PIXBUF_MAGIC_NUMBER">
|
92
|
+
<doc xml:space="preserve">Magic number for #GdkPixdata structures.</doc>
|
93
|
+
<type name="gint" c:type="gint"/>
|
94
|
+
</constant>
|
95
|
+
<constant name="PIXBUF_MAJOR" value="2" c:type="GDK_PIXBUF_MAJOR">
|
96
|
+
<doc xml:space="preserve">Major version of gdk-pixbuf library, that is the "0" in
|
97
|
+
"0.8.2" for example.</doc>
|
98
|
+
<type name="gint" c:type="gint"/>
|
99
|
+
</constant>
|
100
|
+
<constant name="PIXBUF_MICRO" value="8" c:type="GDK_PIXBUF_MICRO">
|
101
|
+
<doc xml:space="preserve">Micro version of gdk-pixbuf library, that is the "2" in
|
102
|
+
"0.8.2" for example.</doc>
|
103
|
+
<type name="gint" c:type="gint"/>
|
104
|
+
</constant>
|
105
|
+
<constant name="PIXBUF_MINOR" value="30" c:type="GDK_PIXBUF_MINOR">
|
106
|
+
<doc xml:space="preserve">Minor version of gdk-pixbuf library, that is the "8" in
|
107
|
+
"0.8.2" for example.</doc>
|
108
|
+
<type name="gint" c:type="gint"/>
|
109
|
+
</constant>
|
110
|
+
<constant name="PIXBUF_VERSION" value="2.30.8" c:type="GDK_PIXBUF_VERSION">
|
111
|
+
<doc xml:space="preserve">Contains the full version of the gdk-pixbuf header as a string.
|
112
|
+
This is the version being compiled against; contrast with
|
113
|
+
#gdk_pixbuf_version.</doc>
|
114
|
+
<type name="utf8" c:type="gchar*"/>
|
115
|
+
</constant>
|
116
|
+
<constant name="PIXDATA_HEADER_LENGTH"
|
117
|
+
value="24"
|
118
|
+
c:type="GDK_PIXDATA_HEADER_LENGTH">
|
119
|
+
<doc xml:space="preserve">The length of a #GdkPixdata structure without the @pixel_data pointer.</doc>
|
120
|
+
<type name="gint" c:type="gint"/>
|
121
|
+
</constant>
|
122
|
+
<class name="Pixbuf"
|
123
|
+
c:symbol-prefix="pixbuf"
|
124
|
+
c:type="GdkPixbuf"
|
125
|
+
parent="GObject.Object"
|
126
|
+
glib:type-name="GdkPixbuf"
|
127
|
+
glib:get-type="gdk_pixbuf_get_type">
|
128
|
+
<doc xml:space="preserve">This is the main structure in the gdk-pixbuf library. It is
|
129
|
+
used to represent images. It contains information about the
|
130
|
+
image's pixel data, its color space, bits per sample, width and
|
131
|
+
height, and the rowstride (the number of bytes between the start of
|
132
|
+
one row and the start of the next).</doc>
|
133
|
+
<implements name="Gio.Icon"/>
|
134
|
+
<implements name="Gio.LoadableIcon"/>
|
135
|
+
<constructor name="new" c:identifier="gdk_pixbuf_new">
|
136
|
+
<doc xml:space="preserve">Creates a new #GdkPixbuf structure and allocates a buffer for it. The
|
137
|
+
buffer has an optimal rowstride. Note that the buffer is not cleared;
|
138
|
+
you will have to fill it completely yourself.</doc>
|
139
|
+
<return-value transfer-ownership="full">
|
140
|
+
<doc xml:space="preserve">A newly-created #GdkPixbuf with a reference count of 1, or
|
141
|
+
%NULL if not enough memory could be allocated for the image buffer.</doc>
|
142
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
143
|
+
</return-value>
|
144
|
+
<parameters>
|
145
|
+
<parameter name="colorspace" transfer-ownership="none">
|
146
|
+
<doc xml:space="preserve">Color space for image</doc>
|
147
|
+
<type name="Colorspace" c:type="GdkColorspace"/>
|
148
|
+
</parameter>
|
149
|
+
<parameter name="has_alpha" transfer-ownership="none">
|
150
|
+
<doc xml:space="preserve">Whether the image should have transparency information</doc>
|
151
|
+
<type name="gboolean" c:type="gboolean"/>
|
152
|
+
</parameter>
|
153
|
+
<parameter name="bits_per_sample" transfer-ownership="none">
|
154
|
+
<doc xml:space="preserve">Number of bits per color sample</doc>
|
155
|
+
<type name="gint" c:type="int"/>
|
156
|
+
</parameter>
|
157
|
+
<parameter name="width" transfer-ownership="none">
|
158
|
+
<doc xml:space="preserve">Width of image in pixels, must be > 0</doc>
|
159
|
+
<type name="gint" c:type="int"/>
|
160
|
+
</parameter>
|
161
|
+
<parameter name="height" transfer-ownership="none">
|
162
|
+
<doc xml:space="preserve">Height of image in pixels, must be > 0</doc>
|
163
|
+
<type name="gint" c:type="int"/>
|
164
|
+
</parameter>
|
165
|
+
</parameters>
|
166
|
+
</constructor>
|
167
|
+
<constructor name="new_from_data"
|
168
|
+
c:identifier="gdk_pixbuf_new_from_data">
|
169
|
+
<doc xml:space="preserve">Creates a new #GdkPixbuf out of in-memory image data. Currently only RGB
|
170
|
+
images with 8 bits per sample are supported.</doc>
|
171
|
+
<return-value transfer-ownership="full">
|
172
|
+
<doc xml:space="preserve">A newly-created #GdkPixbuf structure with a reference count of 1.</doc>
|
173
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
174
|
+
</return-value>
|
175
|
+
<parameters>
|
176
|
+
<parameter name="data" transfer-ownership="none">
|
177
|
+
<doc xml:space="preserve">Image data in 8-bit/sample packed format</doc>
|
178
|
+
<array zero-terminated="0" c:type="guchar*">
|
179
|
+
<type name="guint8" c:type="guchar"/>
|
180
|
+
</array>
|
181
|
+
</parameter>
|
182
|
+
<parameter name="colorspace" transfer-ownership="none">
|
183
|
+
<doc xml:space="preserve">Colorspace for the image data</doc>
|
184
|
+
<type name="Colorspace" c:type="GdkColorspace"/>
|
185
|
+
</parameter>
|
186
|
+
<parameter name="has_alpha" transfer-ownership="none">
|
187
|
+
<doc xml:space="preserve">Whether the data has an opacity channel</doc>
|
188
|
+
<type name="gboolean" c:type="gboolean"/>
|
189
|
+
</parameter>
|
190
|
+
<parameter name="bits_per_sample" transfer-ownership="none">
|
191
|
+
<doc xml:space="preserve">Number of bits per sample</doc>
|
192
|
+
<type name="gint" c:type="int"/>
|
193
|
+
</parameter>
|
194
|
+
<parameter name="width" transfer-ownership="none">
|
195
|
+
<doc xml:space="preserve">Width of the image in pixels, must be > 0</doc>
|
196
|
+
<type name="gint" c:type="int"/>
|
197
|
+
</parameter>
|
198
|
+
<parameter name="height" transfer-ownership="none">
|
199
|
+
<doc xml:space="preserve">Height of the image in pixels, must be > 0</doc>
|
200
|
+
<type name="gint" c:type="int"/>
|
201
|
+
</parameter>
|
202
|
+
<parameter name="rowstride" transfer-ownership="none">
|
203
|
+
<doc xml:space="preserve">Distance in bytes between row starts</doc>
|
204
|
+
<type name="gint" c:type="int"/>
|
205
|
+
</parameter>
|
206
|
+
<parameter name="destroy_fn"
|
207
|
+
transfer-ownership="none"
|
208
|
+
nullable="1"
|
209
|
+
allow-none="1"
|
210
|
+
scope="async"
|
211
|
+
closure="8">
|
212
|
+
<doc xml:space="preserve">Function used to free the data when the pixbuf's reference count
|
213
|
+
drops to zero, or %NULL if the data should not be freed</doc>
|
214
|
+
<type name="PixbufDestroyNotify" c:type="GdkPixbufDestroyNotify"/>
|
215
|
+
</parameter>
|
216
|
+
<parameter name="destroy_fn_data" transfer-ownership="none">
|
217
|
+
<doc xml:space="preserve">Closure data to pass to the destroy notification function</doc>
|
218
|
+
<type name="gpointer" c:type="gpointer"/>
|
219
|
+
</parameter>
|
220
|
+
</parameters>
|
221
|
+
</constructor>
|
222
|
+
<constructor name="new_from_file_at_scale_utf8"
|
223
|
+
c:identifier="gdk_pixbuf_new_from_file_at_scale_utf8"
|
224
|
+
throws="1">
|
225
|
+
<return-value transfer-ownership="full">
|
226
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
227
|
+
</return-value>
|
228
|
+
<parameters>
|
229
|
+
<parameter name="filename" transfer-ownership="none">
|
230
|
+
<type name="utf8" c:type="const char*"/>
|
231
|
+
</parameter>
|
232
|
+
<parameter name="width" transfer-ownership="none">
|
233
|
+
<type name="gint" c:type="int"/>
|
234
|
+
</parameter>
|
235
|
+
<parameter name="height" transfer-ownership="none">
|
236
|
+
<type name="gint" c:type="int"/>
|
237
|
+
</parameter>
|
238
|
+
<parameter name="preserve_aspect_ratio" transfer-ownership="none">
|
239
|
+
<type name="gboolean" c:type="gboolean"/>
|
240
|
+
</parameter>
|
241
|
+
</parameters>
|
242
|
+
</constructor>
|
243
|
+
<constructor name="new_from_file_at_size_utf8"
|
244
|
+
c:identifier="gdk_pixbuf_new_from_file_at_size_utf8"
|
245
|
+
throws="1">
|
246
|
+
<return-value transfer-ownership="full">
|
247
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
248
|
+
</return-value>
|
249
|
+
<parameters>
|
250
|
+
<parameter name="filename" transfer-ownership="none">
|
251
|
+
<type name="utf8" c:type="const char*"/>
|
252
|
+
</parameter>
|
253
|
+
<parameter name="width" transfer-ownership="none">
|
254
|
+
<type name="gint" c:type="int"/>
|
255
|
+
</parameter>
|
256
|
+
<parameter name="height" transfer-ownership="none">
|
257
|
+
<type name="gint" c:type="int"/>
|
258
|
+
</parameter>
|
259
|
+
</parameters>
|
260
|
+
</constructor>
|
261
|
+
<constructor name="new_from_file_utf8"
|
262
|
+
c:identifier="gdk_pixbuf_new_from_file_utf8"
|
263
|
+
throws="1">
|
264
|
+
<return-value transfer-ownership="full">
|
265
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
266
|
+
</return-value>
|
267
|
+
<parameters>
|
268
|
+
<parameter name="filename" transfer-ownership="none">
|
269
|
+
<type name="utf8" c:type="const char*"/>
|
270
|
+
</parameter>
|
271
|
+
</parameters>
|
272
|
+
</constructor>
|
273
|
+
<constructor name="new_from_inline"
|
274
|
+
c:identifier="gdk_pixbuf_new_from_inline"
|
275
|
+
throws="1">
|
276
|
+
<doc xml:space="preserve">Create a #GdkPixbuf from a flat representation that is suitable for
|
277
|
+
storing as inline data in a program. This is useful if you want to
|
278
|
+
ship a program with images, but don't want to depend on any
|
279
|
+
external files.
|
280
|
+
|
281
|
+
gdk-pixbuf ships with a program called [gdk-pixbuf-csource][gdk-pixbuf-csource],
|
282
|
+
which allows for conversion of #GdkPixbufs into such a inline representation.
|
283
|
+
In almost all cases, you should pass the `--raw` option to
|
284
|
+
`gdk-pixbuf-csource`. A sample invocation would be:
|
285
|
+
|
286
|
+
|[
|
287
|
+
gdk-pixbuf-csource --raw --name=myimage_inline myimage.png
|
288
|
+
]|
|
289
|
+
|
290
|
+
For the typical case where the inline pixbuf is read-only static data,
|
291
|
+
you don't need to copy the pixel data unless you intend to write to
|
292
|
+
it, so you can pass %FALSE for @copy_pixels. (If you pass `--rle` to
|
293
|
+
`gdk-pixbuf-csource`, a copy will be made even if @copy_pixels is %FALSE,
|
294
|
+
so using this option is generally a bad idea.)
|
295
|
+
|
296
|
+
If you create a pixbuf from const inline data compiled into your
|
297
|
+
program, it's probably safe to ignore errors and disable length checks,
|
298
|
+
since things will always succeed:
|
299
|
+
|[
|
300
|
+
pixbuf = gdk_pixbuf_new_from_inline (-1, myimage_inline, FALSE, NULL);
|
301
|
+
]|
|
302
|
+
|
303
|
+
For non-const inline data, you could get out of memory. For untrusted
|
304
|
+
inline data located at runtime, you could have corrupt inline data in
|
305
|
+
addition.</doc>
|
306
|
+
<return-value transfer-ownership="full">
|
307
|
+
<doc xml:space="preserve">A newly-created #GdkPixbuf structure with a reference,
|
308
|
+
count of 1, or %NULL if an error occurred.</doc>
|
309
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
310
|
+
</return-value>
|
311
|
+
<parameters>
|
312
|
+
<parameter name="data_length" transfer-ownership="none">
|
313
|
+
<doc xml:space="preserve">Length in bytes of the @data argument or -1 to
|
314
|
+
disable length checks</doc>
|
315
|
+
<type name="gint" c:type="gint"/>
|
316
|
+
</parameter>
|
317
|
+
<parameter name="data" transfer-ownership="none">
|
318
|
+
<doc xml:space="preserve">Byte data containing a
|
319
|
+
serialized #GdkPixdata structure</doc>
|
320
|
+
<array length="0" zero-terminated="0" c:type="guint8*">
|
321
|
+
<type name="guint8" c:type="guint8"/>
|
322
|
+
</array>
|
323
|
+
</parameter>
|
324
|
+
<parameter name="copy_pixels" transfer-ownership="none">
|
325
|
+
<doc xml:space="preserve">Whether to copy the pixel data, or use direct pointers
|
326
|
+
@data for the resulting pixbuf</doc>
|
327
|
+
<type name="gboolean" c:type="gboolean"/>
|
328
|
+
</parameter>
|
329
|
+
</parameters>
|
330
|
+
</constructor>
|
331
|
+
<constructor name="new_from_resource"
|
332
|
+
c:identifier="gdk_pixbuf_new_from_resource"
|
333
|
+
version="2.26"
|
334
|
+
throws="1">
|
335
|
+
<doc xml:space="preserve">Creates a new pixbuf by loading an image from an resource.
|
336
|
+
|
337
|
+
The file format is detected automatically. If %NULL is returned, then
|
338
|
+
@error will be set.</doc>
|
339
|
+
<return-value transfer-ownership="full">
|
340
|
+
<doc xml:space="preserve">A newly-created pixbuf, or %NULL if any of several error
|
341
|
+
conditions occurred: the file could not be opened, the image format is
|
342
|
+
not supported, there was not enough memory to allocate the image buffer,
|
343
|
+
the stream contained invalid data, or the operation was cancelled.</doc>
|
344
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
345
|
+
</return-value>
|
346
|
+
<parameters>
|
347
|
+
<parameter name="resource_path" transfer-ownership="none">
|
348
|
+
<doc xml:space="preserve">the path of the resource file</doc>
|
349
|
+
<type name="utf8" c:type="const char*"/>
|
350
|
+
</parameter>
|
351
|
+
</parameters>
|
352
|
+
</constructor>
|
353
|
+
<constructor name="new_from_resource_at_scale"
|
354
|
+
c:identifier="gdk_pixbuf_new_from_resource_at_scale"
|
355
|
+
version="2.26"
|
356
|
+
throws="1">
|
357
|
+
<doc xml:space="preserve">Creates a new pixbuf by loading an image from an resource.
|
358
|
+
|
359
|
+
The file format is detected automatically. If %NULL is returned, then
|
360
|
+
@error will be set.
|
361
|
+
|
362
|
+
The image will be scaled to fit in the requested size, optionally
|
363
|
+
preserving the image's aspect ratio. When preserving the aspect ratio,
|
364
|
+
a @width of -1 will cause the image to be scaled to the exact given
|
365
|
+
height, and a @height of -1 will cause the image to be scaled to the
|
366
|
+
exact given width. When not preserving aspect ratio, a @width or
|
367
|
+
@height of -1 means to not scale the image at all in that dimension.
|
368
|
+
|
369
|
+
The stream is not closed.</doc>
|
370
|
+
<return-value transfer-ownership="full">
|
371
|
+
<doc xml:space="preserve">A newly-created pixbuf, or %NULL if any of several error
|
372
|
+
conditions occurred: the file could not be opened, the image format is
|
373
|
+
not supported, there was not enough memory to allocate the image buffer,
|
374
|
+
the stream contained invalid data, or the operation was cancelled.</doc>
|
375
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
376
|
+
</return-value>
|
377
|
+
<parameters>
|
378
|
+
<parameter name="resource_path" transfer-ownership="none">
|
379
|
+
<doc xml:space="preserve">the path of the resource file</doc>
|
380
|
+
<type name="utf8" c:type="const char*"/>
|
381
|
+
</parameter>
|
382
|
+
<parameter name="width" transfer-ownership="none">
|
383
|
+
<doc xml:space="preserve">The width the image should have or -1 to not constrain the width</doc>
|
384
|
+
<type name="gint" c:type="int"/>
|
385
|
+
</parameter>
|
386
|
+
<parameter name="height" transfer-ownership="none">
|
387
|
+
<doc xml:space="preserve">The height the image should have or -1 to not constrain the height</doc>
|
388
|
+
<type name="gint" c:type="int"/>
|
389
|
+
</parameter>
|
390
|
+
<parameter name="preserve_aspect_ratio" transfer-ownership="none">
|
391
|
+
<doc xml:space="preserve">%TRUE to preserve the image's aspect ratio</doc>
|
392
|
+
<type name="gboolean" c:type="gboolean"/>
|
393
|
+
</parameter>
|
394
|
+
</parameters>
|
395
|
+
</constructor>
|
396
|
+
<constructor name="new_from_stream"
|
397
|
+
c:identifier="gdk_pixbuf_new_from_stream"
|
398
|
+
version="2.14"
|
399
|
+
throws="1">
|
400
|
+
<doc xml:space="preserve">Creates a new pixbuf by loading an image from an input stream.
|
401
|
+
|
402
|
+
The file format is detected automatically. If %NULL is returned, then
|
403
|
+
@error will be set. The @cancellable can be used to abort the operation
|
404
|
+
from another thread. If the operation was cancelled, the error
|
405
|
+
%G_IO_ERROR_CANCELLED will be returned. Other possible errors are in
|
406
|
+
the #GDK_PIXBUF_ERROR and %G_IO_ERROR domains.
|
407
|
+
|
408
|
+
The stream is not closed.</doc>
|
409
|
+
<return-value transfer-ownership="full">
|
410
|
+
<doc xml:space="preserve">A newly-created pixbuf, or %NULL if any of several error
|
411
|
+
conditions occurred: the file could not be opened, the image format is
|
412
|
+
not supported, there was not enough memory to allocate the image buffer,
|
413
|
+
the stream contained invalid data, or the operation was cancelled.</doc>
|
414
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
415
|
+
</return-value>
|
416
|
+
<parameters>
|
417
|
+
<parameter name="stream" transfer-ownership="none">
|
418
|
+
<doc xml:space="preserve">a #GInputStream to load the pixbuf from</doc>
|
419
|
+
<type name="Gio.InputStream" c:type="GInputStream*"/>
|
420
|
+
</parameter>
|
421
|
+
<parameter name="cancellable"
|
422
|
+
transfer-ownership="none"
|
423
|
+
nullable="1"
|
424
|
+
allow-none="1">
|
425
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
426
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
427
|
+
</parameter>
|
428
|
+
</parameters>
|
429
|
+
</constructor>
|
430
|
+
<constructor name="new_from_stream_at_scale"
|
431
|
+
c:identifier="gdk_pixbuf_new_from_stream_at_scale"
|
432
|
+
version="2.14"
|
433
|
+
throws="1">
|
434
|
+
<doc xml:space="preserve">Creates a new pixbuf by loading an image from an input stream.
|
435
|
+
|
436
|
+
The file format is detected automatically. If %NULL is returned, then
|
437
|
+
@error will be set. The @cancellable can be used to abort the operation
|
438
|
+
from another thread. If the operation was cancelled, the error
|
439
|
+
%G_IO_ERROR_CANCELLED will be returned. Other possible errors are in
|
440
|
+
the #GDK_PIXBUF_ERROR and %G_IO_ERROR domains.
|
441
|
+
|
442
|
+
The image will be scaled to fit in the requested size, optionally
|
443
|
+
preserving the image's aspect ratio.
|
444
|
+
|
445
|
+
When preserving the aspect ratio, a @width of -1 will cause the image to be
|
446
|
+
scaled to the exact given height, and a @height of -1 will cause the image
|
447
|
+
to be scaled to the exact given width. If both @width and @height are
|
448
|
+
given, this function will behave as if the smaller of the two values
|
449
|
+
is passed as -1.
|
450
|
+
|
451
|
+
When not preserving aspect ratio, a @width or @height of -1 means to not
|
452
|
+
scale the image at all in that dimension.
|
453
|
+
|
454
|
+
The stream is not closed.</doc>
|
455
|
+
<return-value transfer-ownership="full">
|
456
|
+
<doc xml:space="preserve">A newly-created pixbuf, or %NULL if any of several error
|
457
|
+
conditions occurred: the file could not be opened, the image format is
|
458
|
+
not supported, there was not enough memory to allocate the image buffer,
|
459
|
+
the stream contained invalid data, or the operation was cancelled.</doc>
|
460
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
461
|
+
</return-value>
|
462
|
+
<parameters>
|
463
|
+
<parameter name="stream" transfer-ownership="none">
|
464
|
+
<doc xml:space="preserve">a #GInputStream to load the pixbuf from</doc>
|
465
|
+
<type name="Gio.InputStream" c:type="GInputStream*"/>
|
466
|
+
</parameter>
|
467
|
+
<parameter name="width" transfer-ownership="none">
|
468
|
+
<doc xml:space="preserve">The width the image should have or -1 to not constrain the width</doc>
|
469
|
+
<type name="gint" c:type="gint"/>
|
470
|
+
</parameter>
|
471
|
+
<parameter name="height" transfer-ownership="none">
|
472
|
+
<doc xml:space="preserve">The height the image should have or -1 to not constrain the height</doc>
|
473
|
+
<type name="gint" c:type="gint"/>
|
474
|
+
</parameter>
|
475
|
+
<parameter name="preserve_aspect_ratio" transfer-ownership="none">
|
476
|
+
<doc xml:space="preserve">%TRUE to preserve the image's aspect ratio</doc>
|
477
|
+
<type name="gboolean" c:type="gboolean"/>
|
478
|
+
</parameter>
|
479
|
+
<parameter name="cancellable"
|
480
|
+
transfer-ownership="none"
|
481
|
+
nullable="1"
|
482
|
+
allow-none="1">
|
483
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
484
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
485
|
+
</parameter>
|
486
|
+
</parameters>
|
487
|
+
</constructor>
|
488
|
+
<constructor name="new_from_stream_finish"
|
489
|
+
c:identifier="gdk_pixbuf_new_from_stream_finish"
|
490
|
+
version="2.24"
|
491
|
+
throws="1">
|
492
|
+
<doc xml:space="preserve">Finishes an asynchronous pixbuf creation operation started with
|
493
|
+
gdk_pixbuf_new_from_stream_async().</doc>
|
494
|
+
<return-value transfer-ownership="full">
|
495
|
+
<doc xml:space="preserve">a #GdkPixbuf or %NULL on error. Free the returned
|
496
|
+
object with g_object_unref().</doc>
|
497
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
498
|
+
</return-value>
|
499
|
+
<parameters>
|
500
|
+
<parameter name="async_result" transfer-ownership="none">
|
501
|
+
<doc xml:space="preserve">a #GAsyncResult</doc>
|
502
|
+
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
|
503
|
+
</parameter>
|
504
|
+
</parameters>
|
505
|
+
</constructor>
|
506
|
+
<constructor name="new_from_xpm_data"
|
507
|
+
c:identifier="gdk_pixbuf_new_from_xpm_data">
|
508
|
+
<doc xml:space="preserve">Creates a new pixbuf by parsing XPM data in memory. This data is commonly
|
509
|
+
the result of including an XPM file into a program's C source.</doc>
|
510
|
+
<return-value transfer-ownership="full">
|
511
|
+
<doc xml:space="preserve">A newly-created pixbuf with a reference count of 1.</doc>
|
512
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
513
|
+
</return-value>
|
514
|
+
<parameters>
|
515
|
+
<parameter name="data" transfer-ownership="none">
|
516
|
+
<doc xml:space="preserve">Pointer to inline XPM data.</doc>
|
517
|
+
<array c:type="char**">
|
518
|
+
<type name="utf8" c:type="char*"/>
|
519
|
+
</array>
|
520
|
+
</parameter>
|
521
|
+
</parameters>
|
522
|
+
</constructor>
|
523
|
+
<function name="from_pixdata"
|
524
|
+
c:identifier="gdk_pixbuf_from_pixdata"
|
525
|
+
throws="1">
|
526
|
+
<doc xml:space="preserve">Converts a #GdkPixdata to a #GdkPixbuf. If @copy_pixels is %TRUE or
|
527
|
+
if the pixel data is run-length-encoded, the pixel data is copied into
|
528
|
+
newly-allocated memory; otherwise it is reused.</doc>
|
529
|
+
<return-value transfer-ownership="full">
|
530
|
+
<doc xml:space="preserve">a new #GdkPixbuf.</doc>
|
531
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
532
|
+
</return-value>
|
533
|
+
<parameters>
|
534
|
+
<parameter name="pixdata" transfer-ownership="none">
|
535
|
+
<doc xml:space="preserve">a #GdkPixdata to convert into a #GdkPixbuf.</doc>
|
536
|
+
<type name="Pixdata" c:type="const GdkPixdata*"/>
|
537
|
+
</parameter>
|
538
|
+
<parameter name="copy_pixels" transfer-ownership="none">
|
539
|
+
<doc xml:space="preserve">whether to copy raw pixel data; run-length encoded
|
540
|
+
pixel data is always copied.</doc>
|
541
|
+
<type name="gboolean" c:type="gboolean"/>
|
542
|
+
</parameter>
|
543
|
+
</parameters>
|
544
|
+
</function>
|
545
|
+
<function name="get_file_info"
|
546
|
+
c:identifier="gdk_pixbuf_get_file_info"
|
547
|
+
version="2.4">
|
548
|
+
<doc xml:space="preserve">Parses an image file far enough to determine its format and size.</doc>
|
549
|
+
<return-value transfer-ownership="none" nullable="1">
|
550
|
+
<doc xml:space="preserve">A #GdkPixbufFormat describing
|
551
|
+
the image format of the file or %NULL if the image format wasn't
|
552
|
+
recognized. The return value is owned by #GdkPixbuf and should
|
553
|
+
not be freed.</doc>
|
554
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
555
|
+
</return-value>
|
556
|
+
<parameters>
|
557
|
+
<parameter name="filename" transfer-ownership="none">
|
558
|
+
<doc xml:space="preserve">The name of the file to identify.</doc>
|
559
|
+
<type name="utf8" c:type="const gchar*"/>
|
560
|
+
</parameter>
|
561
|
+
<parameter name="width"
|
562
|
+
direction="out"
|
563
|
+
caller-allocates="0"
|
564
|
+
transfer-ownership="full"
|
565
|
+
optional="1"
|
566
|
+
allow-none="1">
|
567
|
+
<doc xml:space="preserve">Return location for the width of the
|
568
|
+
image, or %NULL</doc>
|
569
|
+
<type name="gint" c:type="gint*"/>
|
570
|
+
</parameter>
|
571
|
+
<parameter name="height"
|
572
|
+
direction="out"
|
573
|
+
caller-allocates="0"
|
574
|
+
transfer-ownership="full"
|
575
|
+
optional="1"
|
576
|
+
allow-none="1">
|
577
|
+
<doc xml:space="preserve">Return location for the height of the
|
578
|
+
image, or %NULL</doc>
|
579
|
+
<type name="gint" c:type="gint*"/>
|
580
|
+
</parameter>
|
581
|
+
</parameters>
|
582
|
+
</function>
|
583
|
+
<function name="get_formats"
|
584
|
+
c:identifier="gdk_pixbuf_get_formats"
|
585
|
+
version="2.2">
|
586
|
+
<doc xml:space="preserve">Obtains the available information about the image formats supported
|
587
|
+
by GdkPixbuf.</doc>
|
588
|
+
<return-value transfer-ownership="container">
|
589
|
+
<doc xml:space="preserve">A list of
|
590
|
+
#GdkPixbufFormats describing the supported image formats. The list should
|
591
|
+
be freed when it is no longer needed, but the structures themselves are
|
592
|
+
owned by #GdkPixbuf and should not be freed.</doc>
|
593
|
+
<type name="GLib.SList" c:type="GSList*">
|
594
|
+
<type name="PixbufFormat"/>
|
595
|
+
</type>
|
596
|
+
</return-value>
|
597
|
+
</function>
|
598
|
+
<function name="gettext" c:identifier="gdk_pixbuf_gettext">
|
599
|
+
<return-value transfer-ownership="none">
|
600
|
+
<type name="utf8" c:type="const gchar*"/>
|
601
|
+
</return-value>
|
602
|
+
<parameters>
|
603
|
+
<parameter name="msgid" transfer-ownership="none">
|
604
|
+
<type name="utf8" c:type="const gchar*"/>
|
605
|
+
</parameter>
|
606
|
+
</parameters>
|
607
|
+
</function>
|
608
|
+
<function name="new_from_stream_async"
|
609
|
+
c:identifier="gdk_pixbuf_new_from_stream_async"
|
610
|
+
version="2.24">
|
611
|
+
<doc xml:space="preserve">Creates a new pixbuf by asynchronously loading an image from an input stream.
|
612
|
+
|
613
|
+
For more details see gdk_pixbuf_new_from_stream(), which is the synchronous
|
614
|
+
version of this function.
|
615
|
+
|
616
|
+
When the operation is finished, @callback will be called in the main thread.
|
617
|
+
You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation.</doc>
|
618
|
+
<return-value transfer-ownership="none">
|
619
|
+
<type name="none" c:type="void"/>
|
620
|
+
</return-value>
|
621
|
+
<parameters>
|
622
|
+
<parameter name="stream" transfer-ownership="none">
|
623
|
+
<doc xml:space="preserve">a #GInputStream from which to load the pixbuf</doc>
|
624
|
+
<type name="Gio.InputStream" c:type="GInputStream*"/>
|
625
|
+
</parameter>
|
626
|
+
<parameter name="cancellable"
|
627
|
+
transfer-ownership="none"
|
628
|
+
nullable="1"
|
629
|
+
allow-none="1">
|
630
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
631
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
632
|
+
</parameter>
|
633
|
+
<parameter name="callback"
|
634
|
+
transfer-ownership="none"
|
635
|
+
nullable="1"
|
636
|
+
allow-none="1"
|
637
|
+
scope="async"
|
638
|
+
closure="3">
|
639
|
+
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the the pixbuf is loaded</doc>
|
640
|
+
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
|
641
|
+
</parameter>
|
642
|
+
<parameter name="user_data" transfer-ownership="none">
|
643
|
+
<doc xml:space="preserve">the data to pass to the callback function</doc>
|
644
|
+
<type name="gpointer" c:type="gpointer"/>
|
645
|
+
</parameter>
|
646
|
+
</parameters>
|
647
|
+
</function>
|
648
|
+
<function name="new_from_stream_at_scale_async"
|
649
|
+
c:identifier="gdk_pixbuf_new_from_stream_at_scale_async"
|
650
|
+
version="2.24">
|
651
|
+
<doc xml:space="preserve">Creates a new pixbuf by asynchronously loading an image from an input stream.
|
652
|
+
|
653
|
+
For more details see gdk_pixbuf_new_from_stream_at_scale(), which is the synchronous
|
654
|
+
version of this function.
|
655
|
+
|
656
|
+
When the operation is finished, @callback will be called in the main thread.
|
657
|
+
You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation.</doc>
|
658
|
+
<return-value transfer-ownership="none">
|
659
|
+
<type name="none" c:type="void"/>
|
660
|
+
</return-value>
|
661
|
+
<parameters>
|
662
|
+
<parameter name="stream" transfer-ownership="none">
|
663
|
+
<doc xml:space="preserve">a #GInputStream from which to load the pixbuf</doc>
|
664
|
+
<type name="Gio.InputStream" c:type="GInputStream*"/>
|
665
|
+
</parameter>
|
666
|
+
<parameter name="width" transfer-ownership="none">
|
667
|
+
<doc xml:space="preserve">the width the image should have or -1 to not constrain the width</doc>
|
668
|
+
<type name="gint" c:type="gint"/>
|
669
|
+
</parameter>
|
670
|
+
<parameter name="height" transfer-ownership="none">
|
671
|
+
<doc xml:space="preserve">the height the image should have or -1 to not constrain the height</doc>
|
672
|
+
<type name="gint" c:type="gint"/>
|
673
|
+
</parameter>
|
674
|
+
<parameter name="preserve_aspect_ratio" transfer-ownership="none">
|
675
|
+
<doc xml:space="preserve">%TRUE to preserve the image's aspect ratio</doc>
|
676
|
+
<type name="gboolean" c:type="gboolean"/>
|
677
|
+
</parameter>
|
678
|
+
<parameter name="cancellable"
|
679
|
+
transfer-ownership="none"
|
680
|
+
nullable="1"
|
681
|
+
allow-none="1">
|
682
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
683
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
684
|
+
</parameter>
|
685
|
+
<parameter name="callback"
|
686
|
+
transfer-ownership="none"
|
687
|
+
nullable="1"
|
688
|
+
allow-none="1"
|
689
|
+
scope="async"
|
690
|
+
closure="6">
|
691
|
+
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the the pixbuf is loaded</doc>
|
692
|
+
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
|
693
|
+
</parameter>
|
694
|
+
<parameter name="user_data" transfer-ownership="none">
|
695
|
+
<doc xml:space="preserve">the data to pass to the callback function</doc>
|
696
|
+
<type name="gpointer" c:type="gpointer"/>
|
697
|
+
</parameter>
|
698
|
+
</parameters>
|
699
|
+
</function>
|
700
|
+
<function name="save_to_stream_finish"
|
701
|
+
c:identifier="gdk_pixbuf_save_to_stream_finish"
|
702
|
+
version="2.24"
|
703
|
+
throws="1">
|
704
|
+
<doc xml:space="preserve">Finishes an asynchronous pixbuf save operation started with
|
705
|
+
gdk_pixbuf_save_to_stream_async().</doc>
|
706
|
+
<return-value transfer-ownership="none">
|
707
|
+
<doc xml:space="preserve">%TRUE if the pixbuf was saved successfully, %FALSE if an error was set.</doc>
|
708
|
+
<type name="gboolean" c:type="gboolean"/>
|
709
|
+
</return-value>
|
710
|
+
<parameters>
|
711
|
+
<parameter name="async_result" transfer-ownership="none">
|
712
|
+
<doc xml:space="preserve">a #GAsyncResult</doc>
|
713
|
+
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
|
714
|
+
</parameter>
|
715
|
+
</parameters>
|
716
|
+
</function>
|
717
|
+
<method name="add_alpha" c:identifier="gdk_pixbuf_add_alpha">
|
718
|
+
<doc xml:space="preserve">Takes an existing pixbuf and adds an alpha channel to it.
|
719
|
+
If the existing pixbuf already had an alpha channel, the channel
|
720
|
+
values are copied from the original; otherwise, the alpha channel
|
721
|
+
is initialized to 255 (full opacity).
|
722
|
+
|
723
|
+
If @substitute_color is %TRUE, then the color specified by (@r, @g, @b) will be
|
724
|
+
assigned zero opacity. That is, if you pass (255, 255, 255) for the
|
725
|
+
substitute color, all white pixels will become fully transparent.</doc>
|
726
|
+
<return-value transfer-ownership="full">
|
727
|
+
<doc xml:space="preserve">A newly-created pixbuf with a reference count of 1.</doc>
|
728
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
729
|
+
</return-value>
|
730
|
+
<parameters>
|
731
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
732
|
+
<doc xml:space="preserve">A #GdkPixbuf.</doc>
|
733
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
734
|
+
</instance-parameter>
|
735
|
+
<parameter name="substitute_color" transfer-ownership="none">
|
736
|
+
<doc xml:space="preserve">Whether to set a color to zero opacity. If this
|
737
|
+
is %FALSE, then the (@r, @g, @b) arguments will be ignored.</doc>
|
738
|
+
<type name="gboolean" c:type="gboolean"/>
|
739
|
+
</parameter>
|
740
|
+
<parameter name="r" transfer-ownership="none">
|
741
|
+
<doc xml:space="preserve">Red value to substitute.</doc>
|
742
|
+
<type name="guint8" c:type="guchar"/>
|
743
|
+
</parameter>
|
744
|
+
<parameter name="g" transfer-ownership="none">
|
745
|
+
<doc xml:space="preserve">Green value to substitute.</doc>
|
746
|
+
<type name="guint8" c:type="guchar"/>
|
747
|
+
</parameter>
|
748
|
+
<parameter name="b" transfer-ownership="none">
|
749
|
+
<doc xml:space="preserve">Blue value to substitute.</doc>
|
750
|
+
<type name="guint8" c:type="guchar"/>
|
751
|
+
</parameter>
|
752
|
+
</parameters>
|
753
|
+
</method>
|
754
|
+
<method name="apply_embedded_orientation"
|
755
|
+
c:identifier="gdk_pixbuf_apply_embedded_orientation"
|
756
|
+
version="2.12">
|
757
|
+
<doc xml:space="preserve">Takes an existing pixbuf and checks for the presence of an
|
758
|
+
associated "orientation" option, which may be provided by the
|
759
|
+
jpeg loader (which reads the exif orientation tag) or the
|
760
|
+
tiff loader (which reads the tiff orientation tag, and
|
761
|
+
compensates it for the partial transforms performed by
|
762
|
+
libtiff). If an orientation option/tag is present, the
|
763
|
+
appropriate transform will be performed so that the pixbuf
|
764
|
+
is oriented correctly.</doc>
|
765
|
+
<return-value transfer-ownership="full">
|
766
|
+
<doc xml:space="preserve">A newly-created pixbuf, or a reference to the
|
767
|
+
input pixbuf (with an increased reference count).</doc>
|
768
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
769
|
+
</return-value>
|
770
|
+
<parameters>
|
771
|
+
<instance-parameter name="src" transfer-ownership="none">
|
772
|
+
<doc xml:space="preserve">A #GdkPixbuf.</doc>
|
773
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
774
|
+
</instance-parameter>
|
775
|
+
</parameters>
|
776
|
+
</method>
|
777
|
+
<method name="composite" c:identifier="gdk_pixbuf_composite">
|
778
|
+
<doc xml:space="preserve">Creates a transformation of the source image @src by scaling by
|
779
|
+
@scale_x and @scale_y then translating by @offset_x and @offset_y.
|
780
|
+
This gives an image in the coordinates of the destination pixbuf.
|
781
|
+
The rectangle (@dest_x, @dest_y, @dest_width, @dest_height)
|
782
|
+
is then composited onto the corresponding rectangle of the
|
783
|
+
original destination image.
|
784
|
+
|
785
|
+
When the destination rectangle contains parts not in the source
|
786
|
+
image, the data at the edges of the source image is replicated
|
787
|
+
to infinity.
|
788
|
+
|
789
|
+
![](composite.png)</doc>
|
790
|
+
<return-value transfer-ownership="none">
|
791
|
+
<type name="none" c:type="void"/>
|
792
|
+
</return-value>
|
793
|
+
<parameters>
|
794
|
+
<instance-parameter name="src" transfer-ownership="none">
|
795
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
796
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
797
|
+
</instance-parameter>
|
798
|
+
<parameter name="dest" transfer-ownership="none">
|
799
|
+
<doc xml:space="preserve">the #GdkPixbuf into which to render the results</doc>
|
800
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
801
|
+
</parameter>
|
802
|
+
<parameter name="dest_x" transfer-ownership="none">
|
803
|
+
<doc xml:space="preserve">the left coordinate for region to render</doc>
|
804
|
+
<type name="gint" c:type="int"/>
|
805
|
+
</parameter>
|
806
|
+
<parameter name="dest_y" transfer-ownership="none">
|
807
|
+
<doc xml:space="preserve">the top coordinate for region to render</doc>
|
808
|
+
<type name="gint" c:type="int"/>
|
809
|
+
</parameter>
|
810
|
+
<parameter name="dest_width" transfer-ownership="none">
|
811
|
+
<doc xml:space="preserve">the width of the region to render</doc>
|
812
|
+
<type name="gint" c:type="int"/>
|
813
|
+
</parameter>
|
814
|
+
<parameter name="dest_height" transfer-ownership="none">
|
815
|
+
<doc xml:space="preserve">the height of the region to render</doc>
|
816
|
+
<type name="gint" c:type="int"/>
|
817
|
+
</parameter>
|
818
|
+
<parameter name="offset_x" transfer-ownership="none">
|
819
|
+
<doc xml:space="preserve">the offset in the X direction (currently rounded to an integer)</doc>
|
820
|
+
<type name="gdouble" c:type="double"/>
|
821
|
+
</parameter>
|
822
|
+
<parameter name="offset_y" transfer-ownership="none">
|
823
|
+
<doc xml:space="preserve">the offset in the Y direction (currently rounded to an integer)</doc>
|
824
|
+
<type name="gdouble" c:type="double"/>
|
825
|
+
</parameter>
|
826
|
+
<parameter name="scale_x" transfer-ownership="none">
|
827
|
+
<doc xml:space="preserve">the scale factor in the X direction</doc>
|
828
|
+
<type name="gdouble" c:type="double"/>
|
829
|
+
</parameter>
|
830
|
+
<parameter name="scale_y" transfer-ownership="none">
|
831
|
+
<doc xml:space="preserve">the scale factor in the Y direction</doc>
|
832
|
+
<type name="gdouble" c:type="double"/>
|
833
|
+
</parameter>
|
834
|
+
<parameter name="interp_type" transfer-ownership="none">
|
835
|
+
<doc xml:space="preserve">the interpolation type for the transformation.</doc>
|
836
|
+
<type name="InterpType" c:type="GdkInterpType"/>
|
837
|
+
</parameter>
|
838
|
+
<parameter name="overall_alpha" transfer-ownership="none">
|
839
|
+
<doc xml:space="preserve">overall alpha for source image (0..255)</doc>
|
840
|
+
<type name="gint" c:type="int"/>
|
841
|
+
</parameter>
|
842
|
+
</parameters>
|
843
|
+
</method>
|
844
|
+
<method name="composite_color" c:identifier="gdk_pixbuf_composite_color">
|
845
|
+
<doc xml:space="preserve">Creates a transformation of the source image @src by scaling by
|
846
|
+
@scale_x and @scale_y then translating by @offset_x and @offset_y,
|
847
|
+
then composites the rectangle (@dest_x ,@dest_y, @dest_width,
|
848
|
+
@dest_height) of the resulting image with a checkboard of the
|
849
|
+
colors @color1 and @color2 and renders it onto the destination
|
850
|
+
image.
|
851
|
+
|
852
|
+
See gdk_pixbuf_composite_color_simple() for a simpler variant of this
|
853
|
+
function suitable for many tasks.</doc>
|
854
|
+
<return-value transfer-ownership="none">
|
855
|
+
<type name="none" c:type="void"/>
|
856
|
+
</return-value>
|
857
|
+
<parameters>
|
858
|
+
<instance-parameter name="src" transfer-ownership="none">
|
859
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
860
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
861
|
+
</instance-parameter>
|
862
|
+
<parameter name="dest" transfer-ownership="none">
|
863
|
+
<doc xml:space="preserve">the #GdkPixbuf into which to render the results</doc>
|
864
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
865
|
+
</parameter>
|
866
|
+
<parameter name="dest_x" transfer-ownership="none">
|
867
|
+
<doc xml:space="preserve">the left coordinate for region to render</doc>
|
868
|
+
<type name="gint" c:type="int"/>
|
869
|
+
</parameter>
|
870
|
+
<parameter name="dest_y" transfer-ownership="none">
|
871
|
+
<doc xml:space="preserve">the top coordinate for region to render</doc>
|
872
|
+
<type name="gint" c:type="int"/>
|
873
|
+
</parameter>
|
874
|
+
<parameter name="dest_width" transfer-ownership="none">
|
875
|
+
<doc xml:space="preserve">the width of the region to render</doc>
|
876
|
+
<type name="gint" c:type="int"/>
|
877
|
+
</parameter>
|
878
|
+
<parameter name="dest_height" transfer-ownership="none">
|
879
|
+
<doc xml:space="preserve">the height of the region to render</doc>
|
880
|
+
<type name="gint" c:type="int"/>
|
881
|
+
</parameter>
|
882
|
+
<parameter name="offset_x" transfer-ownership="none">
|
883
|
+
<doc xml:space="preserve">the offset in the X direction (currently rounded to an integer)</doc>
|
884
|
+
<type name="gdouble" c:type="double"/>
|
885
|
+
</parameter>
|
886
|
+
<parameter name="offset_y" transfer-ownership="none">
|
887
|
+
<doc xml:space="preserve">the offset in the Y direction (currently rounded to an integer)</doc>
|
888
|
+
<type name="gdouble" c:type="double"/>
|
889
|
+
</parameter>
|
890
|
+
<parameter name="scale_x" transfer-ownership="none">
|
891
|
+
<doc xml:space="preserve">the scale factor in the X direction</doc>
|
892
|
+
<type name="gdouble" c:type="double"/>
|
893
|
+
</parameter>
|
894
|
+
<parameter name="scale_y" transfer-ownership="none">
|
895
|
+
<doc xml:space="preserve">the scale factor in the Y direction</doc>
|
896
|
+
<type name="gdouble" c:type="double"/>
|
897
|
+
</parameter>
|
898
|
+
<parameter name="interp_type" transfer-ownership="none">
|
899
|
+
<doc xml:space="preserve">the interpolation type for the transformation.</doc>
|
900
|
+
<type name="InterpType" c:type="GdkInterpType"/>
|
901
|
+
</parameter>
|
902
|
+
<parameter name="overall_alpha" transfer-ownership="none">
|
903
|
+
<doc xml:space="preserve">overall alpha for source image (0..255)</doc>
|
904
|
+
<type name="gint" c:type="int"/>
|
905
|
+
</parameter>
|
906
|
+
<parameter name="check_x" transfer-ownership="none">
|
907
|
+
<doc xml:space="preserve">the X offset for the checkboard (origin of checkboard is at -@check_x, -@check_y)</doc>
|
908
|
+
<type name="gint" c:type="int"/>
|
909
|
+
</parameter>
|
910
|
+
<parameter name="check_y" transfer-ownership="none">
|
911
|
+
<doc xml:space="preserve">the Y offset for the checkboard</doc>
|
912
|
+
<type name="gint" c:type="int"/>
|
913
|
+
</parameter>
|
914
|
+
<parameter name="check_size" transfer-ownership="none">
|
915
|
+
<doc xml:space="preserve">the size of checks in the checkboard (must be a power of two)</doc>
|
916
|
+
<type name="gint" c:type="int"/>
|
917
|
+
</parameter>
|
918
|
+
<parameter name="color1" transfer-ownership="none">
|
919
|
+
<doc xml:space="preserve">the color of check at upper left</doc>
|
920
|
+
<type name="guint32" c:type="guint32"/>
|
921
|
+
</parameter>
|
922
|
+
<parameter name="color2" transfer-ownership="none">
|
923
|
+
<doc xml:space="preserve">the color of the other check</doc>
|
924
|
+
<type name="guint32" c:type="guint32"/>
|
925
|
+
</parameter>
|
926
|
+
</parameters>
|
927
|
+
</method>
|
928
|
+
<method name="composite_color_simple"
|
929
|
+
c:identifier="gdk_pixbuf_composite_color_simple">
|
930
|
+
<doc xml:space="preserve">Creates a new #GdkPixbuf by scaling @src to @dest_width x
|
931
|
+
@dest_height and compositing the result with a checkboard of colors
|
932
|
+
@color1 and @color2.</doc>
|
933
|
+
<return-value transfer-ownership="full">
|
934
|
+
<doc xml:space="preserve">the new #GdkPixbuf, or %NULL if not enough memory could be
|
935
|
+
allocated for it.</doc>
|
936
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
937
|
+
</return-value>
|
938
|
+
<parameters>
|
939
|
+
<instance-parameter name="src" transfer-ownership="none">
|
940
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
941
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
942
|
+
</instance-parameter>
|
943
|
+
<parameter name="dest_width" transfer-ownership="none">
|
944
|
+
<doc xml:space="preserve">the width of destination image</doc>
|
945
|
+
<type name="gint" c:type="int"/>
|
946
|
+
</parameter>
|
947
|
+
<parameter name="dest_height" transfer-ownership="none">
|
948
|
+
<doc xml:space="preserve">the height of destination image</doc>
|
949
|
+
<type name="gint" c:type="int"/>
|
950
|
+
</parameter>
|
951
|
+
<parameter name="interp_type" transfer-ownership="none">
|
952
|
+
<doc xml:space="preserve">the interpolation type for the transformation.</doc>
|
953
|
+
<type name="InterpType" c:type="GdkInterpType"/>
|
954
|
+
</parameter>
|
955
|
+
<parameter name="overall_alpha" transfer-ownership="none">
|
956
|
+
<doc xml:space="preserve">overall alpha for source image (0..255)</doc>
|
957
|
+
<type name="gint" c:type="int"/>
|
958
|
+
</parameter>
|
959
|
+
<parameter name="check_size" transfer-ownership="none">
|
960
|
+
<doc xml:space="preserve">the size of checks in the checkboard (must be a power of two)</doc>
|
961
|
+
<type name="gint" c:type="int"/>
|
962
|
+
</parameter>
|
963
|
+
<parameter name="color1" transfer-ownership="none">
|
964
|
+
<doc xml:space="preserve">the color of check at upper left</doc>
|
965
|
+
<type name="guint32" c:type="guint32"/>
|
966
|
+
</parameter>
|
967
|
+
<parameter name="color2" transfer-ownership="none">
|
968
|
+
<doc xml:space="preserve">the color of the other check</doc>
|
969
|
+
<type name="guint32" c:type="guint32"/>
|
970
|
+
</parameter>
|
971
|
+
</parameters>
|
972
|
+
</method>
|
973
|
+
<method name="copy" c:identifier="gdk_pixbuf_copy">
|
974
|
+
<doc xml:space="preserve">Creates a new #GdkPixbuf with a copy of the information in the specified
|
975
|
+
@pixbuf.</doc>
|
976
|
+
<return-value transfer-ownership="full">
|
977
|
+
<doc xml:space="preserve">A newly-created pixbuf with a reference count of 1, or %NULL if
|
978
|
+
not enough memory could be allocated.</doc>
|
979
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
980
|
+
</return-value>
|
981
|
+
<parameters>
|
982
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
983
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
984
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
985
|
+
</instance-parameter>
|
986
|
+
</parameters>
|
987
|
+
</method>
|
988
|
+
<method name="copy_area" c:identifier="gdk_pixbuf_copy_area">
|
989
|
+
<doc xml:space="preserve">Copies a rectangular area from @src_pixbuf to @dest_pixbuf. Conversion of
|
990
|
+
pixbuf formats is done automatically.
|
991
|
+
|
992
|
+
If the source rectangle overlaps the destination rectangle on the
|
993
|
+
same pixbuf, it will be overwritten during the copy operation.
|
994
|
+
Therefore, you can not use this function to scroll a pixbuf.</doc>
|
995
|
+
<return-value transfer-ownership="none">
|
996
|
+
<type name="none" c:type="void"/>
|
997
|
+
</return-value>
|
998
|
+
<parameters>
|
999
|
+
<instance-parameter name="src_pixbuf" transfer-ownership="none">
|
1000
|
+
<doc xml:space="preserve">Source pixbuf.</doc>
|
1001
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1002
|
+
</instance-parameter>
|
1003
|
+
<parameter name="src_x" transfer-ownership="none">
|
1004
|
+
<doc xml:space="preserve">Source X coordinate within @src_pixbuf.</doc>
|
1005
|
+
<type name="gint" c:type="int"/>
|
1006
|
+
</parameter>
|
1007
|
+
<parameter name="src_y" transfer-ownership="none">
|
1008
|
+
<doc xml:space="preserve">Source Y coordinate within @src_pixbuf.</doc>
|
1009
|
+
<type name="gint" c:type="int"/>
|
1010
|
+
</parameter>
|
1011
|
+
<parameter name="width" transfer-ownership="none">
|
1012
|
+
<doc xml:space="preserve">Width of the area to copy.</doc>
|
1013
|
+
<type name="gint" c:type="int"/>
|
1014
|
+
</parameter>
|
1015
|
+
<parameter name="height" transfer-ownership="none">
|
1016
|
+
<doc xml:space="preserve">Height of the area to copy.</doc>
|
1017
|
+
<type name="gint" c:type="int"/>
|
1018
|
+
</parameter>
|
1019
|
+
<parameter name="dest_pixbuf" transfer-ownership="none">
|
1020
|
+
<doc xml:space="preserve">Destination pixbuf.</doc>
|
1021
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1022
|
+
</parameter>
|
1023
|
+
<parameter name="dest_x" transfer-ownership="none">
|
1024
|
+
<doc xml:space="preserve">X coordinate within @dest_pixbuf.</doc>
|
1025
|
+
<type name="gint" c:type="int"/>
|
1026
|
+
</parameter>
|
1027
|
+
<parameter name="dest_y" transfer-ownership="none">
|
1028
|
+
<doc xml:space="preserve">Y coordinate within @dest_pixbuf.</doc>
|
1029
|
+
<type name="gint" c:type="int"/>
|
1030
|
+
</parameter>
|
1031
|
+
</parameters>
|
1032
|
+
</method>
|
1033
|
+
<method name="fill" c:identifier="gdk_pixbuf_fill">
|
1034
|
+
<doc xml:space="preserve">Clears a pixbuf to the given RGBA value, converting the RGBA value into
|
1035
|
+
the pixbuf's pixel format. The alpha will be ignored if the pixbuf
|
1036
|
+
doesn't have an alpha channel.</doc>
|
1037
|
+
<return-value transfer-ownership="none">
|
1038
|
+
<type name="none" c:type="void"/>
|
1039
|
+
</return-value>
|
1040
|
+
<parameters>
|
1041
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1042
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1043
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1044
|
+
</instance-parameter>
|
1045
|
+
<parameter name="pixel" transfer-ownership="none">
|
1046
|
+
<doc xml:space="preserve">RGBA pixel to clear to
|
1047
|
+
(0xffffffff is opaque white, 0x00000000 transparent black)</doc>
|
1048
|
+
<type name="guint32" c:type="guint32"/>
|
1049
|
+
</parameter>
|
1050
|
+
</parameters>
|
1051
|
+
</method>
|
1052
|
+
<method name="flip" c:identifier="gdk_pixbuf_flip" version="2.6">
|
1053
|
+
<doc xml:space="preserve">Flips a pixbuf horizontally or vertically and returns the
|
1054
|
+
result in a new pixbuf.</doc>
|
1055
|
+
<return-value transfer-ownership="full" nullable="1">
|
1056
|
+
<doc xml:space="preserve">the new #GdkPixbuf, or %NULL
|
1057
|
+
if not enough memory could be allocated for it.</doc>
|
1058
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1059
|
+
</return-value>
|
1060
|
+
<parameters>
|
1061
|
+
<instance-parameter name="src" transfer-ownership="none">
|
1062
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1063
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1064
|
+
</instance-parameter>
|
1065
|
+
<parameter name="horizontal" transfer-ownership="none">
|
1066
|
+
<doc xml:space="preserve">%TRUE to flip horizontally, %FALSE to flip vertically</doc>
|
1067
|
+
<type name="gboolean" c:type="gboolean"/>
|
1068
|
+
</parameter>
|
1069
|
+
</parameters>
|
1070
|
+
</method>
|
1071
|
+
<method name="get_bits_per_sample"
|
1072
|
+
c:identifier="gdk_pixbuf_get_bits_per_sample">
|
1073
|
+
<doc xml:space="preserve">Queries the number of bits per color sample in a pixbuf.</doc>
|
1074
|
+
<return-value transfer-ownership="none">
|
1075
|
+
<doc xml:space="preserve">Number of bits per color sample.</doc>
|
1076
|
+
<type name="gint" c:type="int"/>
|
1077
|
+
</return-value>
|
1078
|
+
<parameters>
|
1079
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1080
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1081
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1082
|
+
</instance-parameter>
|
1083
|
+
</parameters>
|
1084
|
+
</method>
|
1085
|
+
<method name="get_byte_length"
|
1086
|
+
c:identifier="gdk_pixbuf_get_byte_length"
|
1087
|
+
version="2.26">
|
1088
|
+
<doc xml:space="preserve">Returns the length of the pixel data, in bytes.</doc>
|
1089
|
+
<return-value transfer-ownership="none">
|
1090
|
+
<doc xml:space="preserve">The length of the pixel data.</doc>
|
1091
|
+
<type name="gsize" c:type="gsize"/>
|
1092
|
+
</return-value>
|
1093
|
+
<parameters>
|
1094
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1095
|
+
<doc xml:space="preserve">A pixbuf</doc>
|
1096
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1097
|
+
</instance-parameter>
|
1098
|
+
</parameters>
|
1099
|
+
</method>
|
1100
|
+
<method name="get_colorspace" c:identifier="gdk_pixbuf_get_colorspace">
|
1101
|
+
<doc xml:space="preserve">Queries the color space of a pixbuf.</doc>
|
1102
|
+
<return-value transfer-ownership="none">
|
1103
|
+
<doc xml:space="preserve">Color space.</doc>
|
1104
|
+
<type name="Colorspace" c:type="GdkColorspace"/>
|
1105
|
+
</return-value>
|
1106
|
+
<parameters>
|
1107
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1108
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1109
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1110
|
+
</instance-parameter>
|
1111
|
+
</parameters>
|
1112
|
+
</method>
|
1113
|
+
<method name="get_has_alpha" c:identifier="gdk_pixbuf_get_has_alpha">
|
1114
|
+
<doc xml:space="preserve">Queries whether a pixbuf has an alpha channel (opacity information).</doc>
|
1115
|
+
<return-value transfer-ownership="none">
|
1116
|
+
<doc xml:space="preserve">%TRUE if it has an alpha channel, %FALSE otherwise.</doc>
|
1117
|
+
<type name="gboolean" c:type="gboolean"/>
|
1118
|
+
</return-value>
|
1119
|
+
<parameters>
|
1120
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1121
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1122
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1123
|
+
</instance-parameter>
|
1124
|
+
</parameters>
|
1125
|
+
</method>
|
1126
|
+
<method name="get_height" c:identifier="gdk_pixbuf_get_height">
|
1127
|
+
<doc xml:space="preserve">Queries the height of a pixbuf.</doc>
|
1128
|
+
<return-value transfer-ownership="none">
|
1129
|
+
<doc xml:space="preserve">Height in pixels.</doc>
|
1130
|
+
<type name="gint" c:type="int"/>
|
1131
|
+
</return-value>
|
1132
|
+
<parameters>
|
1133
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1134
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1135
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1136
|
+
</instance-parameter>
|
1137
|
+
</parameters>
|
1138
|
+
</method>
|
1139
|
+
<method name="get_n_channels" c:identifier="gdk_pixbuf_get_n_channels">
|
1140
|
+
<doc xml:space="preserve">Queries the number of channels of a pixbuf.</doc>
|
1141
|
+
<return-value transfer-ownership="none">
|
1142
|
+
<doc xml:space="preserve">Number of channels.</doc>
|
1143
|
+
<type name="gint" c:type="int"/>
|
1144
|
+
</return-value>
|
1145
|
+
<parameters>
|
1146
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1147
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1148
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1149
|
+
</instance-parameter>
|
1150
|
+
</parameters>
|
1151
|
+
</method>
|
1152
|
+
<method name="get_option" c:identifier="gdk_pixbuf_get_option">
|
1153
|
+
<doc xml:space="preserve">Looks up @key in the list of options that may have been attached to the
|
1154
|
+
@pixbuf when it was loaded, or that may have been attached by another
|
1155
|
+
function using gdk_pixbuf_set_option().
|
1156
|
+
|
1157
|
+
For instance, the ANI loader provides "Title" and "Artist" options.
|
1158
|
+
The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot
|
1159
|
+
options for cursor definitions. The PNG loader provides the tEXt ancillary
|
1160
|
+
chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders
|
1161
|
+
return an "orientation" option string that corresponds to the embedded
|
1162
|
+
TIFF/Exif orientation tag (if present).</doc>
|
1163
|
+
<return-value transfer-ownership="none">
|
1164
|
+
<doc xml:space="preserve">the value associated with @key. This is a nul-terminated
|
1165
|
+
string that should not be freed or %NULL if @key was not found.</doc>
|
1166
|
+
<type name="utf8" c:type="const gchar*"/>
|
1167
|
+
</return-value>
|
1168
|
+
<parameters>
|
1169
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1170
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1171
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1172
|
+
</instance-parameter>
|
1173
|
+
<parameter name="key" transfer-ownership="none">
|
1174
|
+
<doc xml:space="preserve">a nul-terminated string.</doc>
|
1175
|
+
<type name="utf8" c:type="const gchar*"/>
|
1176
|
+
</parameter>
|
1177
|
+
</parameters>
|
1178
|
+
</method>
|
1179
|
+
<method name="get_pixels"
|
1180
|
+
c:identifier="gdk_pixbuf_get_pixels"
|
1181
|
+
shadowed-by="get_pixels_with_length">
|
1182
|
+
<doc xml:space="preserve">Queries a pointer to the pixel data of a pixbuf.</doc>
|
1183
|
+
<return-value transfer-ownership="none">
|
1184
|
+
<doc xml:space="preserve">A pointer to the pixbuf's pixel data.
|
1185
|
+
Please see the section on [image data](image-data) for information
|
1186
|
+
about how the pixel data is stored in memory.</doc>
|
1187
|
+
<array zero-terminated="0" c:type="guchar*">
|
1188
|
+
<type name="guint8" c:type="guchar"/>
|
1189
|
+
</array>
|
1190
|
+
</return-value>
|
1191
|
+
<parameters>
|
1192
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1193
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1194
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1195
|
+
</instance-parameter>
|
1196
|
+
</parameters>
|
1197
|
+
</method>
|
1198
|
+
<method name="get_pixels_with_length"
|
1199
|
+
c:identifier="gdk_pixbuf_get_pixels_with_length"
|
1200
|
+
shadows="get_pixels"
|
1201
|
+
version="2.26">
|
1202
|
+
<doc xml:space="preserve">Queries a pointer to the pixel data of a pixbuf.</doc>
|
1203
|
+
<return-value transfer-ownership="none">
|
1204
|
+
<doc xml:space="preserve">A pointer to the pixbuf's
|
1205
|
+
pixel data. Please see the section on [image data](image-data)
|
1206
|
+
for information about how the pixel data is stored in memory.</doc>
|
1207
|
+
<array length="0" zero-terminated="0" c:type="guchar*">
|
1208
|
+
<type name="guint8" c:type="guchar"/>
|
1209
|
+
</array>
|
1210
|
+
</return-value>
|
1211
|
+
<parameters>
|
1212
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1213
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1214
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1215
|
+
</instance-parameter>
|
1216
|
+
<parameter name="length"
|
1217
|
+
direction="out"
|
1218
|
+
caller-allocates="0"
|
1219
|
+
transfer-ownership="full">
|
1220
|
+
<doc xml:space="preserve">The length of the binary data.</doc>
|
1221
|
+
<type name="guint" c:type="guint*"/>
|
1222
|
+
</parameter>
|
1223
|
+
</parameters>
|
1224
|
+
</method>
|
1225
|
+
<method name="get_rowstride" c:identifier="gdk_pixbuf_get_rowstride">
|
1226
|
+
<doc xml:space="preserve">Queries the rowstride of a pixbuf, which is the number of bytes between
|
1227
|
+
the start of a row and the start of the next row.</doc>
|
1228
|
+
<return-value transfer-ownership="none">
|
1229
|
+
<doc xml:space="preserve">Distance between row starts.</doc>
|
1230
|
+
<type name="gint" c:type="int"/>
|
1231
|
+
</return-value>
|
1232
|
+
<parameters>
|
1233
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1234
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1235
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1236
|
+
</instance-parameter>
|
1237
|
+
</parameters>
|
1238
|
+
</method>
|
1239
|
+
<method name="get_width" c:identifier="gdk_pixbuf_get_width">
|
1240
|
+
<doc xml:space="preserve">Queries the width of a pixbuf.</doc>
|
1241
|
+
<return-value transfer-ownership="none">
|
1242
|
+
<doc xml:space="preserve">Width in pixels.</doc>
|
1243
|
+
<type name="gint" c:type="int"/>
|
1244
|
+
</return-value>
|
1245
|
+
<parameters>
|
1246
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1247
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1248
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1249
|
+
</instance-parameter>
|
1250
|
+
</parameters>
|
1251
|
+
</method>
|
1252
|
+
<method name="new_subpixbuf" c:identifier="gdk_pixbuf_new_subpixbuf">
|
1253
|
+
<doc xml:space="preserve">Creates a new pixbuf which represents a sub-region of
|
1254
|
+
@src_pixbuf. The new pixbuf shares its pixels with the
|
1255
|
+
original pixbuf, so writing to one affects both.
|
1256
|
+
The new pixbuf holds a reference to @src_pixbuf, so
|
1257
|
+
@src_pixbuf will not be finalized until the new pixbuf
|
1258
|
+
is finalized.</doc>
|
1259
|
+
<return-value transfer-ownership="full">
|
1260
|
+
<doc xml:space="preserve">a new pixbuf</doc>
|
1261
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1262
|
+
</return-value>
|
1263
|
+
<parameters>
|
1264
|
+
<instance-parameter name="src_pixbuf" transfer-ownership="none">
|
1265
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1266
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1267
|
+
</instance-parameter>
|
1268
|
+
<parameter name="src_x" transfer-ownership="none">
|
1269
|
+
<doc xml:space="preserve">X coord in @src_pixbuf</doc>
|
1270
|
+
<type name="gint" c:type="int"/>
|
1271
|
+
</parameter>
|
1272
|
+
<parameter name="src_y" transfer-ownership="none">
|
1273
|
+
<doc xml:space="preserve">Y coord in @src_pixbuf</doc>
|
1274
|
+
<type name="gint" c:type="int"/>
|
1275
|
+
</parameter>
|
1276
|
+
<parameter name="width" transfer-ownership="none">
|
1277
|
+
<doc xml:space="preserve">width of region in @src_pixbuf</doc>
|
1278
|
+
<type name="gint" c:type="int"/>
|
1279
|
+
</parameter>
|
1280
|
+
<parameter name="height" transfer-ownership="none">
|
1281
|
+
<doc xml:space="preserve">height of region in @src_pixbuf</doc>
|
1282
|
+
<type name="gint" c:type="int"/>
|
1283
|
+
</parameter>
|
1284
|
+
</parameters>
|
1285
|
+
</method>
|
1286
|
+
<method name="ref"
|
1287
|
+
c:identifier="gdk_pixbuf_ref"
|
1288
|
+
introspectable="0"
|
1289
|
+
deprecated="1"
|
1290
|
+
deprecated-version="2.0">
|
1291
|
+
<doc xml:space="preserve">Adds a reference to a pixbuf.</doc>
|
1292
|
+
<doc-deprecated xml:space="preserve">Use g_object_ref().</doc-deprecated>
|
1293
|
+
<return-value>
|
1294
|
+
<doc xml:space="preserve">The same as the @pixbuf argument.</doc>
|
1295
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1296
|
+
</return-value>
|
1297
|
+
<parameters>
|
1298
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1299
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1300
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1301
|
+
</instance-parameter>
|
1302
|
+
</parameters>
|
1303
|
+
</method>
|
1304
|
+
<method name="rotate_simple"
|
1305
|
+
c:identifier="gdk_pixbuf_rotate_simple"
|
1306
|
+
version="2.6">
|
1307
|
+
<doc xml:space="preserve">Rotates a pixbuf by a multiple of 90 degrees, and returns the
|
1308
|
+
result in a new pixbuf.</doc>
|
1309
|
+
<return-value transfer-ownership="full" nullable="1">
|
1310
|
+
<doc xml:space="preserve">the new #GdkPixbuf, or %NULL
|
1311
|
+
if not enough memory could be allocated for it.</doc>
|
1312
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1313
|
+
</return-value>
|
1314
|
+
<parameters>
|
1315
|
+
<instance-parameter name="src" transfer-ownership="none">
|
1316
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1317
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1318
|
+
</instance-parameter>
|
1319
|
+
<parameter name="angle" transfer-ownership="none">
|
1320
|
+
<doc xml:space="preserve">the angle to rotate by</doc>
|
1321
|
+
<type name="PixbufRotation" c:type="GdkPixbufRotation"/>
|
1322
|
+
</parameter>
|
1323
|
+
</parameters>
|
1324
|
+
</method>
|
1325
|
+
<method name="saturate_and_pixelate"
|
1326
|
+
c:identifier="gdk_pixbuf_saturate_and_pixelate">
|
1327
|
+
<doc xml:space="preserve">Modifies saturation and optionally pixelates @src, placing the result in
|
1328
|
+
@dest. @src and @dest may be the same pixbuf with no ill effects. If
|
1329
|
+
@saturation is 1.0 then saturation is not changed. If it's less than 1.0,
|
1330
|
+
saturation is reduced (the image turns toward grayscale); if greater than
|
1331
|
+
1.0, saturation is increased (the image gets more vivid colors). If @pixelate
|
1332
|
+
is %TRUE, then pixels are faded in a checkerboard pattern to create a
|
1333
|
+
pixelated image. @src and @dest must have the same image format, size, and
|
1334
|
+
rowstride.</doc>
|
1335
|
+
<return-value transfer-ownership="none">
|
1336
|
+
<type name="none" c:type="void"/>
|
1337
|
+
</return-value>
|
1338
|
+
<parameters>
|
1339
|
+
<instance-parameter name="src" transfer-ownership="none">
|
1340
|
+
<doc xml:space="preserve">source image</doc>
|
1341
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1342
|
+
</instance-parameter>
|
1343
|
+
<parameter name="dest" transfer-ownership="none">
|
1344
|
+
<doc xml:space="preserve">place to write modified version of @src</doc>
|
1345
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1346
|
+
</parameter>
|
1347
|
+
<parameter name="saturation" transfer-ownership="none">
|
1348
|
+
<doc xml:space="preserve">saturation factor</doc>
|
1349
|
+
<type name="gfloat" c:type="gfloat"/>
|
1350
|
+
</parameter>
|
1351
|
+
<parameter name="pixelate" transfer-ownership="none">
|
1352
|
+
<doc xml:space="preserve">whether to pixelate</doc>
|
1353
|
+
<type name="gboolean" c:type="gboolean"/>
|
1354
|
+
</parameter>
|
1355
|
+
</parameters>
|
1356
|
+
</method>
|
1357
|
+
<method name="save_to_buffer"
|
1358
|
+
c:identifier="gdk_pixbuf_save_to_buffer"
|
1359
|
+
version="2.4"
|
1360
|
+
introspectable="0">
|
1361
|
+
<doc xml:space="preserve">Saves pixbuf to a new buffer in format @type, which is currently "jpeg",
|
1362
|
+
"png", "tiff", "ico" or "bmp". This is a convenience function that uses
|
1363
|
+
gdk_pixbuf_save_to_callback() to do the real work. Note that the buffer
|
1364
|
+
is not nul-terminated and may contain embedded nuls.
|
1365
|
+
If @error is set, %FALSE will be returned and @buffer will be set to
|
1366
|
+
%NULL. Possible errors include those in the #GDK_PIXBUF_ERROR
|
1367
|
+
domain.
|
1368
|
+
|
1369
|
+
See gdk_pixbuf_save() for more details.</doc>
|
1370
|
+
<return-value transfer-ownership="none">
|
1371
|
+
<doc xml:space="preserve">whether an error was set</doc>
|
1372
|
+
<type name="gboolean" c:type="gboolean"/>
|
1373
|
+
</return-value>
|
1374
|
+
<parameters>
|
1375
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1376
|
+
<doc xml:space="preserve">a #GdkPixbuf.</doc>
|
1377
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1378
|
+
</instance-parameter>
|
1379
|
+
<parameter name="buffer"
|
1380
|
+
direction="out"
|
1381
|
+
caller-allocates="0"
|
1382
|
+
transfer-ownership="full">
|
1383
|
+
<doc xml:space="preserve">location to receive a pointer
|
1384
|
+
to the new buffer.</doc>
|
1385
|
+
<array length="1" zero-terminated="0" c:type="gchar**">
|
1386
|
+
<type name="guint8"/>
|
1387
|
+
</array>
|
1388
|
+
</parameter>
|
1389
|
+
<parameter name="buffer_size"
|
1390
|
+
direction="out"
|
1391
|
+
caller-allocates="0"
|
1392
|
+
transfer-ownership="full">
|
1393
|
+
<doc xml:space="preserve">location to receive the size of the new buffer.</doc>
|
1394
|
+
<type name="gsize" c:type="gsize*"/>
|
1395
|
+
</parameter>
|
1396
|
+
<parameter name="type" transfer-ownership="none">
|
1397
|
+
<doc xml:space="preserve">name of file format.</doc>
|
1398
|
+
<type name="utf8" c:type="const char*"/>
|
1399
|
+
</parameter>
|
1400
|
+
<parameter name="error"
|
1401
|
+
transfer-ownership="none"
|
1402
|
+
nullable="1"
|
1403
|
+
allow-none="1">
|
1404
|
+
<doc xml:space="preserve">return location for error, or %NULL</doc>
|
1405
|
+
<type name="GLib.Error" c:type="GError**"/>
|
1406
|
+
</parameter>
|
1407
|
+
<parameter name="..." transfer-ownership="none">
|
1408
|
+
<doc xml:space="preserve">list of key-value save options</doc>
|
1409
|
+
<varargs/>
|
1410
|
+
</parameter>
|
1411
|
+
</parameters>
|
1412
|
+
</method>
|
1413
|
+
<method name="save_to_bufferv"
|
1414
|
+
c:identifier="gdk_pixbuf_save_to_bufferv"
|
1415
|
+
version="2.4"
|
1416
|
+
throws="1">
|
1417
|
+
<doc xml:space="preserve">Saves pixbuf to a new buffer in format @type, which is currently "jpeg",
|
1418
|
+
"tiff", "png", "ico" or "bmp". See gdk_pixbuf_save_to_buffer()
|
1419
|
+
for more details.</doc>
|
1420
|
+
<return-value transfer-ownership="none">
|
1421
|
+
<doc xml:space="preserve">whether an error was set</doc>
|
1422
|
+
<type name="gboolean" c:type="gboolean"/>
|
1423
|
+
</return-value>
|
1424
|
+
<parameters>
|
1425
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1426
|
+
<doc xml:space="preserve">a #GdkPixbuf.</doc>
|
1427
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1428
|
+
</instance-parameter>
|
1429
|
+
<parameter name="buffer"
|
1430
|
+
direction="out"
|
1431
|
+
caller-allocates="0"
|
1432
|
+
transfer-ownership="full">
|
1433
|
+
<doc xml:space="preserve">
|
1434
|
+
location to receive a pointer to the new buffer.</doc>
|
1435
|
+
<array length="1" zero-terminated="0" c:type="gchar**">
|
1436
|
+
<type name="guint8"/>
|
1437
|
+
</array>
|
1438
|
+
</parameter>
|
1439
|
+
<parameter name="buffer_size"
|
1440
|
+
direction="out"
|
1441
|
+
caller-allocates="0"
|
1442
|
+
transfer-ownership="full">
|
1443
|
+
<doc xml:space="preserve">location to receive the size of the new buffer.</doc>
|
1444
|
+
<type name="gsize" c:type="gsize*"/>
|
1445
|
+
</parameter>
|
1446
|
+
<parameter name="type" transfer-ownership="none">
|
1447
|
+
<doc xml:space="preserve">name of file format.</doc>
|
1448
|
+
<type name="utf8" c:type="const char*"/>
|
1449
|
+
</parameter>
|
1450
|
+
<parameter name="option_keys" transfer-ownership="none">
|
1451
|
+
<doc xml:space="preserve">name of options to set, %NULL-terminated</doc>
|
1452
|
+
<array c:type="char**">
|
1453
|
+
<type name="utf8" c:type="char*"/>
|
1454
|
+
</array>
|
1455
|
+
</parameter>
|
1456
|
+
<parameter name="option_values" transfer-ownership="none">
|
1457
|
+
<doc xml:space="preserve">values for named options</doc>
|
1458
|
+
<array c:type="char**">
|
1459
|
+
<type name="utf8" c:type="char*"/>
|
1460
|
+
</array>
|
1461
|
+
</parameter>
|
1462
|
+
</parameters>
|
1463
|
+
</method>
|
1464
|
+
<method name="save_to_callback"
|
1465
|
+
c:identifier="gdk_pixbuf_save_to_callback"
|
1466
|
+
version="2.4"
|
1467
|
+
introspectable="0">
|
1468
|
+
<doc xml:space="preserve">Saves pixbuf in format @type by feeding the produced data to a
|
1469
|
+
callback. Can be used when you want to store the image to something
|
1470
|
+
other than a file, such as an in-memory buffer or a socket.
|
1471
|
+
If @error is set, %FALSE will be returned. Possible errors
|
1472
|
+
include those in the #GDK_PIXBUF_ERROR domain and whatever the save
|
1473
|
+
function generates.
|
1474
|
+
|
1475
|
+
See gdk_pixbuf_save() for more details.</doc>
|
1476
|
+
<return-value transfer-ownership="none">
|
1477
|
+
<doc xml:space="preserve">whether an error was set</doc>
|
1478
|
+
<type name="gboolean" c:type="gboolean"/>
|
1479
|
+
</return-value>
|
1480
|
+
<parameters>
|
1481
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1482
|
+
<doc xml:space="preserve">a #GdkPixbuf.</doc>
|
1483
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1484
|
+
</instance-parameter>
|
1485
|
+
<parameter name="save_func"
|
1486
|
+
transfer-ownership="none"
|
1487
|
+
scope="call"
|
1488
|
+
closure="1">
|
1489
|
+
<doc xml:space="preserve">a function that is called to save each block of data that
|
1490
|
+
the save routine generates.</doc>
|
1491
|
+
<type name="PixbufSaveFunc" c:type="GdkPixbufSaveFunc"/>
|
1492
|
+
</parameter>
|
1493
|
+
<parameter name="user_data" transfer-ownership="none">
|
1494
|
+
<doc xml:space="preserve">user data to pass to the save function.</doc>
|
1495
|
+
<type name="gpointer" c:type="gpointer"/>
|
1496
|
+
</parameter>
|
1497
|
+
<parameter name="type" transfer-ownership="none">
|
1498
|
+
<doc xml:space="preserve">name of file format.</doc>
|
1499
|
+
<type name="utf8" c:type="const char*"/>
|
1500
|
+
</parameter>
|
1501
|
+
<parameter name="error"
|
1502
|
+
transfer-ownership="none"
|
1503
|
+
nullable="1"
|
1504
|
+
allow-none="1">
|
1505
|
+
<doc xml:space="preserve">return location for error, or %NULL</doc>
|
1506
|
+
<type name="GLib.Error" c:type="GError**"/>
|
1507
|
+
</parameter>
|
1508
|
+
<parameter name="..." transfer-ownership="none">
|
1509
|
+
<doc xml:space="preserve">list of key-value save options</doc>
|
1510
|
+
<varargs/>
|
1511
|
+
</parameter>
|
1512
|
+
</parameters>
|
1513
|
+
</method>
|
1514
|
+
<method name="save_to_callbackv"
|
1515
|
+
c:identifier="gdk_pixbuf_save_to_callbackv"
|
1516
|
+
version="2.4"
|
1517
|
+
throws="1">
|
1518
|
+
<doc xml:space="preserve">Saves pixbuf to a callback in format @type, which is currently "jpeg",
|
1519
|
+
"png", "tiff", "ico" or "bmp". If @error is set, %FALSE will be returned. See
|
1520
|
+
gdk_pixbuf_save_to_callback () for more details.</doc>
|
1521
|
+
<return-value transfer-ownership="none">
|
1522
|
+
<doc xml:space="preserve">whether an error was set</doc>
|
1523
|
+
<type name="gboolean" c:type="gboolean"/>
|
1524
|
+
</return-value>
|
1525
|
+
<parameters>
|
1526
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1527
|
+
<doc xml:space="preserve">a #GdkPixbuf.</doc>
|
1528
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1529
|
+
</instance-parameter>
|
1530
|
+
<parameter name="save_func"
|
1531
|
+
transfer-ownership="none"
|
1532
|
+
scope="call"
|
1533
|
+
closure="1">
|
1534
|
+
<doc xml:space="preserve">a function that is called to save each block of data that
|
1535
|
+
the save routine generates.</doc>
|
1536
|
+
<type name="PixbufSaveFunc" c:type="GdkPixbufSaveFunc"/>
|
1537
|
+
</parameter>
|
1538
|
+
<parameter name="user_data" transfer-ownership="none">
|
1539
|
+
<doc xml:space="preserve">user data to pass to the save function.</doc>
|
1540
|
+
<type name="gpointer" c:type="gpointer"/>
|
1541
|
+
</parameter>
|
1542
|
+
<parameter name="type" transfer-ownership="none">
|
1543
|
+
<doc xml:space="preserve">name of file format.</doc>
|
1544
|
+
<type name="utf8" c:type="const char*"/>
|
1545
|
+
</parameter>
|
1546
|
+
<parameter name="option_keys" transfer-ownership="none">
|
1547
|
+
<doc xml:space="preserve">name of options to set, %NULL-terminated</doc>
|
1548
|
+
<array c:type="char**">
|
1549
|
+
<type name="utf8"/>
|
1550
|
+
</array>
|
1551
|
+
</parameter>
|
1552
|
+
<parameter name="option_values" transfer-ownership="none">
|
1553
|
+
<doc xml:space="preserve">values for named options</doc>
|
1554
|
+
<array c:type="char**">
|
1555
|
+
<type name="utf8"/>
|
1556
|
+
</array>
|
1557
|
+
</parameter>
|
1558
|
+
</parameters>
|
1559
|
+
</method>
|
1560
|
+
<method name="save_to_stream"
|
1561
|
+
c:identifier="gdk_pixbuf_save_to_stream"
|
1562
|
+
version="2.14"
|
1563
|
+
introspectable="0">
|
1564
|
+
<doc xml:space="preserve">Saves @pixbuf to an output stream.
|
1565
|
+
|
1566
|
+
Supported file formats are currently "jpeg", "tiff", "png", "ico" or
|
1567
|
+
"bmp". See gdk_pixbuf_save_to_buffer() for more details.
|
1568
|
+
|
1569
|
+
The @cancellable can be used to abort the operation from another
|
1570
|
+
thread. If the operation was cancelled, the error %G_IO_ERROR_CANCELLED
|
1571
|
+
will be returned. Other possible errors are in the #GDK_PIXBUF_ERROR
|
1572
|
+
and %G_IO_ERROR domains.
|
1573
|
+
|
1574
|
+
The stream is not closed.</doc>
|
1575
|
+
<return-value transfer-ownership="none">
|
1576
|
+
<doc xml:space="preserve">%TRUE if the pixbuf was saved successfully, %FALSE if an
|
1577
|
+
error was set.</doc>
|
1578
|
+
<type name="gboolean" c:type="gboolean"/>
|
1579
|
+
</return-value>
|
1580
|
+
<parameters>
|
1581
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1582
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1583
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1584
|
+
</instance-parameter>
|
1585
|
+
<parameter name="stream" transfer-ownership="none">
|
1586
|
+
<doc xml:space="preserve">a #GOutputStream to save the pixbuf to</doc>
|
1587
|
+
<type name="Gio.OutputStream" c:type="GOutputStream*"/>
|
1588
|
+
</parameter>
|
1589
|
+
<parameter name="type" transfer-ownership="none">
|
1590
|
+
<doc xml:space="preserve">name of file format</doc>
|
1591
|
+
<type name="utf8" c:type="const char*"/>
|
1592
|
+
</parameter>
|
1593
|
+
<parameter name="cancellable"
|
1594
|
+
transfer-ownership="none"
|
1595
|
+
nullable="1"
|
1596
|
+
allow-none="1">
|
1597
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
1598
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
1599
|
+
</parameter>
|
1600
|
+
<parameter name="error"
|
1601
|
+
transfer-ownership="none"
|
1602
|
+
nullable="1"
|
1603
|
+
allow-none="1">
|
1604
|
+
<doc xml:space="preserve">return location for error, or %NULL</doc>
|
1605
|
+
<type name="GLib.Error" c:type="GError**"/>
|
1606
|
+
</parameter>
|
1607
|
+
<parameter name="..." transfer-ownership="none">
|
1608
|
+
<doc xml:space="preserve">list of key-value save options</doc>
|
1609
|
+
<varargs/>
|
1610
|
+
</parameter>
|
1611
|
+
</parameters>
|
1612
|
+
</method>
|
1613
|
+
<method name="save_to_stream_async"
|
1614
|
+
c:identifier="gdk_pixbuf_save_to_stream_async"
|
1615
|
+
version="2.24"
|
1616
|
+
introspectable="0">
|
1617
|
+
<doc xml:space="preserve">Saves @pixbuf to an output stream asynchronously.
|
1618
|
+
|
1619
|
+
For more details see gdk_pixbuf_save_to_stream(), which is the synchronous
|
1620
|
+
version of this function.
|
1621
|
+
|
1622
|
+
When the operation is finished, @callback will be called in the main thread.
|
1623
|
+
You can then call gdk_pixbuf_save_to_stream_finish() to get the result of the operation.</doc>
|
1624
|
+
<return-value transfer-ownership="none">
|
1625
|
+
<type name="none" c:type="void"/>
|
1626
|
+
</return-value>
|
1627
|
+
<parameters>
|
1628
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1629
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1630
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1631
|
+
</instance-parameter>
|
1632
|
+
<parameter name="stream" transfer-ownership="none">
|
1633
|
+
<doc xml:space="preserve">a #GOutputStream to which to save the pixbuf</doc>
|
1634
|
+
<type name="Gio.OutputStream" c:type="GOutputStream*"/>
|
1635
|
+
</parameter>
|
1636
|
+
<parameter name="type" transfer-ownership="none">
|
1637
|
+
<doc xml:space="preserve">name of file format</doc>
|
1638
|
+
<type name="utf8" c:type="const gchar*"/>
|
1639
|
+
</parameter>
|
1640
|
+
<parameter name="cancellable"
|
1641
|
+
transfer-ownership="none"
|
1642
|
+
nullable="1"
|
1643
|
+
allow-none="1">
|
1644
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
1645
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
1646
|
+
</parameter>
|
1647
|
+
<parameter name="callback"
|
1648
|
+
transfer-ownership="none"
|
1649
|
+
nullable="1"
|
1650
|
+
allow-none="1"
|
1651
|
+
scope="async"
|
1652
|
+
closure="4">
|
1653
|
+
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the the pixbuf is loaded</doc>
|
1654
|
+
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
|
1655
|
+
</parameter>
|
1656
|
+
<parameter name="user_data" transfer-ownership="none">
|
1657
|
+
<doc xml:space="preserve">the data to pass to the callback function</doc>
|
1658
|
+
<type name="gpointer" c:type="gpointer"/>
|
1659
|
+
</parameter>
|
1660
|
+
<parameter name="..." transfer-ownership="none">
|
1661
|
+
<doc xml:space="preserve">list of key-value save options</doc>
|
1662
|
+
<varargs/>
|
1663
|
+
</parameter>
|
1664
|
+
</parameters>
|
1665
|
+
</method>
|
1666
|
+
<method name="save_utf8"
|
1667
|
+
c:identifier="gdk_pixbuf_save_utf8"
|
1668
|
+
introspectable="0">
|
1669
|
+
<return-value transfer-ownership="none">
|
1670
|
+
<type name="gboolean" c:type="gboolean"/>
|
1671
|
+
</return-value>
|
1672
|
+
<parameters>
|
1673
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1674
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1675
|
+
</instance-parameter>
|
1676
|
+
<parameter name="filename" transfer-ownership="none">
|
1677
|
+
<type name="utf8" c:type="const char*"/>
|
1678
|
+
</parameter>
|
1679
|
+
<parameter name="type" transfer-ownership="none">
|
1680
|
+
<type name="utf8" c:type="const char*"/>
|
1681
|
+
</parameter>
|
1682
|
+
<parameter name="error" transfer-ownership="none">
|
1683
|
+
<type name="GLib.Error" c:type="GError**"/>
|
1684
|
+
</parameter>
|
1685
|
+
<parameter name="..." transfer-ownership="none">
|
1686
|
+
<varargs/>
|
1687
|
+
</parameter>
|
1688
|
+
</parameters>
|
1689
|
+
</method>
|
1690
|
+
<method name="savev_utf8"
|
1691
|
+
c:identifier="gdk_pixbuf_savev_utf8"
|
1692
|
+
throws="1">
|
1693
|
+
<return-value transfer-ownership="none">
|
1694
|
+
<type name="gboolean" c:type="gboolean"/>
|
1695
|
+
</return-value>
|
1696
|
+
<parameters>
|
1697
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1698
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1699
|
+
</instance-parameter>
|
1700
|
+
<parameter name="filename" transfer-ownership="none">
|
1701
|
+
<type name="utf8" c:type="const char*"/>
|
1702
|
+
</parameter>
|
1703
|
+
<parameter name="type" transfer-ownership="none">
|
1704
|
+
<type name="utf8" c:type="const char*"/>
|
1705
|
+
</parameter>
|
1706
|
+
<parameter name="option_keys" transfer-ownership="none">
|
1707
|
+
<type name="utf8" c:type="char**"/>
|
1708
|
+
</parameter>
|
1709
|
+
<parameter name="option_values" transfer-ownership="none">
|
1710
|
+
<type name="utf8" c:type="char**"/>
|
1711
|
+
</parameter>
|
1712
|
+
</parameters>
|
1713
|
+
</method>
|
1714
|
+
<method name="scale" c:identifier="gdk_pixbuf_scale">
|
1715
|
+
<doc xml:space="preserve">Creates a transformation of the source image @src by scaling by
|
1716
|
+
@scale_x and @scale_y then translating by @offset_x and @offset_y,
|
1717
|
+
then renders the rectangle (@dest_x, @dest_y, @dest_width,
|
1718
|
+
@dest_height) of the resulting image onto the destination image
|
1719
|
+
replacing the previous contents.
|
1720
|
+
|
1721
|
+
Try to use gdk_pixbuf_scale_simple() first, this function is
|
1722
|
+
the industrial-strength power tool you can fall back to if
|
1723
|
+
gdk_pixbuf_scale_simple() isn't powerful enough.
|
1724
|
+
|
1725
|
+
If the source rectangle overlaps the destination rectangle on the
|
1726
|
+
same pixbuf, it will be overwritten during the scaling which
|
1727
|
+
results in rendering artifacts.</doc>
|
1728
|
+
<return-value transfer-ownership="none">
|
1729
|
+
<type name="none" c:type="void"/>
|
1730
|
+
</return-value>
|
1731
|
+
<parameters>
|
1732
|
+
<instance-parameter name="src" transfer-ownership="none">
|
1733
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1734
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1735
|
+
</instance-parameter>
|
1736
|
+
<parameter name="dest" transfer-ownership="none">
|
1737
|
+
<doc xml:space="preserve">the #GdkPixbuf into which to render the results</doc>
|
1738
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1739
|
+
</parameter>
|
1740
|
+
<parameter name="dest_x" transfer-ownership="none">
|
1741
|
+
<doc xml:space="preserve">the left coordinate for region to render</doc>
|
1742
|
+
<type name="gint" c:type="int"/>
|
1743
|
+
</parameter>
|
1744
|
+
<parameter name="dest_y" transfer-ownership="none">
|
1745
|
+
<doc xml:space="preserve">the top coordinate for region to render</doc>
|
1746
|
+
<type name="gint" c:type="int"/>
|
1747
|
+
</parameter>
|
1748
|
+
<parameter name="dest_width" transfer-ownership="none">
|
1749
|
+
<doc xml:space="preserve">the width of the region to render</doc>
|
1750
|
+
<type name="gint" c:type="int"/>
|
1751
|
+
</parameter>
|
1752
|
+
<parameter name="dest_height" transfer-ownership="none">
|
1753
|
+
<doc xml:space="preserve">the height of the region to render</doc>
|
1754
|
+
<type name="gint" c:type="int"/>
|
1755
|
+
</parameter>
|
1756
|
+
<parameter name="offset_x" transfer-ownership="none">
|
1757
|
+
<doc xml:space="preserve">the offset in the X direction (currently rounded to an integer)</doc>
|
1758
|
+
<type name="gdouble" c:type="double"/>
|
1759
|
+
</parameter>
|
1760
|
+
<parameter name="offset_y" transfer-ownership="none">
|
1761
|
+
<doc xml:space="preserve">the offset in the Y direction (currently rounded to an integer)</doc>
|
1762
|
+
<type name="gdouble" c:type="double"/>
|
1763
|
+
</parameter>
|
1764
|
+
<parameter name="scale_x" transfer-ownership="none">
|
1765
|
+
<doc xml:space="preserve">the scale factor in the X direction</doc>
|
1766
|
+
<type name="gdouble" c:type="double"/>
|
1767
|
+
</parameter>
|
1768
|
+
<parameter name="scale_y" transfer-ownership="none">
|
1769
|
+
<doc xml:space="preserve">the scale factor in the Y direction</doc>
|
1770
|
+
<type name="gdouble" c:type="double"/>
|
1771
|
+
</parameter>
|
1772
|
+
<parameter name="interp_type" transfer-ownership="none">
|
1773
|
+
<doc xml:space="preserve">the interpolation type for the transformation.</doc>
|
1774
|
+
<type name="InterpType" c:type="GdkInterpType"/>
|
1775
|
+
</parameter>
|
1776
|
+
</parameters>
|
1777
|
+
</method>
|
1778
|
+
<method name="scale_simple" c:identifier="gdk_pixbuf_scale_simple">
|
1779
|
+
<doc xml:space="preserve">Create a new #GdkPixbuf containing a copy of @src scaled to
|
1780
|
+
@dest_width x @dest_height. Leaves @src unaffected. @interp_type
|
1781
|
+
should be #GDK_INTERP_NEAREST if you want maximum speed (but when
|
1782
|
+
scaling down #GDK_INTERP_NEAREST is usually unusably ugly). The
|
1783
|
+
default @interp_type should be #GDK_INTERP_BILINEAR which offers
|
1784
|
+
reasonable quality and speed.
|
1785
|
+
|
1786
|
+
You can scale a sub-portion of @src by creating a sub-pixbuf
|
1787
|
+
pointing into @src; see gdk_pixbuf_new_subpixbuf().
|
1788
|
+
|
1789
|
+
For more complicated scaling/compositing see gdk_pixbuf_scale()
|
1790
|
+
and gdk_pixbuf_composite().</doc>
|
1791
|
+
<return-value transfer-ownership="full">
|
1792
|
+
<doc xml:space="preserve">the new #GdkPixbuf, or %NULL if not enough memory could be
|
1793
|
+
allocated for it.</doc>
|
1794
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1795
|
+
</return-value>
|
1796
|
+
<parameters>
|
1797
|
+
<instance-parameter name="src" transfer-ownership="none">
|
1798
|
+
<doc xml:space="preserve">a #GdkPixbuf</doc>
|
1799
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
1800
|
+
</instance-parameter>
|
1801
|
+
<parameter name="dest_width" transfer-ownership="none">
|
1802
|
+
<doc xml:space="preserve">the width of destination image</doc>
|
1803
|
+
<type name="gint" c:type="int"/>
|
1804
|
+
</parameter>
|
1805
|
+
<parameter name="dest_height" transfer-ownership="none">
|
1806
|
+
<doc xml:space="preserve">the height of destination image</doc>
|
1807
|
+
<type name="gint" c:type="int"/>
|
1808
|
+
</parameter>
|
1809
|
+
<parameter name="interp_type" transfer-ownership="none">
|
1810
|
+
<doc xml:space="preserve">the interpolation type for the transformation.</doc>
|
1811
|
+
<type name="InterpType" c:type="GdkInterpType"/>
|
1812
|
+
</parameter>
|
1813
|
+
</parameters>
|
1814
|
+
</method>
|
1815
|
+
<method name="unref"
|
1816
|
+
c:identifier="gdk_pixbuf_unref"
|
1817
|
+
introspectable="0"
|
1818
|
+
deprecated="1"
|
1819
|
+
deprecated-version="2.0">
|
1820
|
+
<doc xml:space="preserve">Removes a reference from a pixbuf.</doc>
|
1821
|
+
<doc-deprecated xml:space="preserve">Use g_object_unref().</doc-deprecated>
|
1822
|
+
<return-value transfer-ownership="none">
|
1823
|
+
<type name="none" c:type="void"/>
|
1824
|
+
</return-value>
|
1825
|
+
<parameters>
|
1826
|
+
<instance-parameter name="pixbuf" transfer-ownership="none">
|
1827
|
+
<doc xml:space="preserve">A pixbuf.</doc>
|
1828
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
1829
|
+
</instance-parameter>
|
1830
|
+
</parameters>
|
1831
|
+
</method>
|
1832
|
+
<property name="bits-per-sample"
|
1833
|
+
writable="1"
|
1834
|
+
construct-only="1"
|
1835
|
+
transfer-ownership="none">
|
1836
|
+
<doc xml:space="preserve">The number of bits per sample.
|
1837
|
+
Currently only 8 bit per sample are supported.</doc>
|
1838
|
+
<type name="gint" c:type="gint"/>
|
1839
|
+
</property>
|
1840
|
+
<property name="colorspace"
|
1841
|
+
writable="1"
|
1842
|
+
construct-only="1"
|
1843
|
+
transfer-ownership="none">
|
1844
|
+
<type name="Colorspace"/>
|
1845
|
+
</property>
|
1846
|
+
<property name="has-alpha"
|
1847
|
+
writable="1"
|
1848
|
+
construct-only="1"
|
1849
|
+
transfer-ownership="none">
|
1850
|
+
<type name="gboolean" c:type="gboolean"/>
|
1851
|
+
</property>
|
1852
|
+
<property name="height"
|
1853
|
+
writable="1"
|
1854
|
+
construct-only="1"
|
1855
|
+
transfer-ownership="none">
|
1856
|
+
<type name="gint" c:type="gint"/>
|
1857
|
+
</property>
|
1858
|
+
<property name="n-channels"
|
1859
|
+
writable="1"
|
1860
|
+
construct-only="1"
|
1861
|
+
transfer-ownership="none">
|
1862
|
+
<doc xml:space="preserve">The number of samples per pixel.
|
1863
|
+
Currently, only 3 or 4 samples per pixel are supported.</doc>
|
1864
|
+
<type name="gint" c:type="gint"/>
|
1865
|
+
</property>
|
1866
|
+
<property name="pixels"
|
1867
|
+
writable="1"
|
1868
|
+
construct-only="1"
|
1869
|
+
transfer-ownership="none">
|
1870
|
+
<type name="gpointer" c:type="gpointer"/>
|
1871
|
+
</property>
|
1872
|
+
<property name="rowstride"
|
1873
|
+
writable="1"
|
1874
|
+
construct-only="1"
|
1875
|
+
transfer-ownership="none">
|
1876
|
+
<doc xml:space="preserve">The number of bytes between the start of a row and
|
1877
|
+
the start of the next row. This number must (obviously)
|
1878
|
+
be at least as large as the width of the pixbuf.</doc>
|
1879
|
+
<type name="gint" c:type="gint"/>
|
1880
|
+
</property>
|
1881
|
+
<property name="width"
|
1882
|
+
writable="1"
|
1883
|
+
construct-only="1"
|
1884
|
+
transfer-ownership="none">
|
1885
|
+
<type name="gint" c:type="gint"/>
|
1886
|
+
</property>
|
1887
|
+
</class>
|
1888
|
+
<enumeration name="PixbufAlphaMode"
|
1889
|
+
glib:type-name="GdkPixbufAlphaMode"
|
1890
|
+
glib:get-type="gdk_pixbuf_alpha_mode_get_type"
|
1891
|
+
c:type="GdkPixbufAlphaMode">
|
1892
|
+
<doc xml:space="preserve">These values can be passed to
|
1893
|
+
gdk_pixbuf_render_to_drawable_alpha() to control how the alpha
|
1894
|
+
channel of an image should be handled. This function can create a
|
1895
|
+
bilevel clipping mask (black and white) and use it while painting
|
1896
|
+
the image. In the future, when the X Window System gets an alpha
|
1897
|
+
channel extension, it will be possible to do full alpha
|
1898
|
+
compositing onto arbitrary drawables. For now both cases fall
|
1899
|
+
back to a bilevel clipping mask.</doc>
|
1900
|
+
<member name="bilevel"
|
1901
|
+
value="0"
|
1902
|
+
c:identifier="GDK_PIXBUF_ALPHA_BILEVEL"
|
1903
|
+
glib:nick="bilevel">
|
1904
|
+
<doc xml:space="preserve">A bilevel clipping mask (black and white)
|
1905
|
+
will be created and used to draw the image. Pixels below 0.5 opacity
|
1906
|
+
will be considered fully transparent, and all others will be
|
1907
|
+
considered fully opaque.</doc>
|
1908
|
+
</member>
|
1909
|
+
<member name="full"
|
1910
|
+
value="1"
|
1911
|
+
c:identifier="GDK_PIXBUF_ALPHA_FULL"
|
1912
|
+
glib:nick="full">
|
1913
|
+
<doc xml:space="preserve">For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL.
|
1914
|
+
In the future it will do full alpha compositing.</doc>
|
1915
|
+
</member>
|
1916
|
+
</enumeration>
|
1917
|
+
<class name="PixbufAnimation"
|
1918
|
+
c:symbol-prefix="pixbuf_animation"
|
1919
|
+
c:type="GdkPixbufAnimation"
|
1920
|
+
parent="GObject.Object"
|
1921
|
+
glib:type-name="GdkPixbufAnimation"
|
1922
|
+
glib:get-type="gdk_pixbuf_animation_get_type">
|
1923
|
+
<doc xml:space="preserve">An opaque struct representing an animation.</doc>
|
1924
|
+
<constructor name="new_from_file_utf8"
|
1925
|
+
c:identifier="gdk_pixbuf_animation_new_from_file_utf8"
|
1926
|
+
throws="1">
|
1927
|
+
<return-value transfer-ownership="full">
|
1928
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
1929
|
+
</return-value>
|
1930
|
+
<parameters>
|
1931
|
+
<parameter name="filename" transfer-ownership="none">
|
1932
|
+
<type name="utf8" c:type="const char*"/>
|
1933
|
+
</parameter>
|
1934
|
+
</parameters>
|
1935
|
+
</constructor>
|
1936
|
+
<constructor name="new_from_resource"
|
1937
|
+
c:identifier="gdk_pixbuf_animation_new_from_resource"
|
1938
|
+
version="2.28"
|
1939
|
+
throws="1">
|
1940
|
+
<doc xml:space="preserve">Creates a new pixbuf animation by loading an image from an resource.
|
1941
|
+
|
1942
|
+
The file format is detected automatically. If %NULL is returned, then
|
1943
|
+
@error will be set.</doc>
|
1944
|
+
<return-value transfer-ownership="full">
|
1945
|
+
<doc xml:space="preserve">A newly-created animation, or %NULL if any of several error
|
1946
|
+
conditions occurred: the file could not be opened, the image format is
|
1947
|
+
not supported, there was not enough memory to allocate the image buffer,
|
1948
|
+
the stream contained invalid data, or the operation was cancelled.</doc>
|
1949
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
1950
|
+
</return-value>
|
1951
|
+
<parameters>
|
1952
|
+
<parameter name="resource_path" transfer-ownership="none">
|
1953
|
+
<doc xml:space="preserve">the path of the resource file</doc>
|
1954
|
+
<type name="utf8" c:type="const char*"/>
|
1955
|
+
</parameter>
|
1956
|
+
</parameters>
|
1957
|
+
</constructor>
|
1958
|
+
<constructor name="new_from_stream"
|
1959
|
+
c:identifier="gdk_pixbuf_animation_new_from_stream"
|
1960
|
+
version="2.28"
|
1961
|
+
throws="1">
|
1962
|
+
<doc xml:space="preserve">Creates a new animation by loading it from an input stream.
|
1963
|
+
|
1964
|
+
The file format is detected automatically. If %NULL is returned, then
|
1965
|
+
@error will be set. The @cancellable can be used to abort the operation
|
1966
|
+
from another thread. If the operation was cancelled, the error
|
1967
|
+
%G_IO_ERROR_CANCELLED will be returned. Other possible errors are in
|
1968
|
+
the #GDK_PIXBUF_ERROR and %G_IO_ERROR domains.
|
1969
|
+
|
1970
|
+
The stream is not closed.</doc>
|
1971
|
+
<return-value transfer-ownership="full">
|
1972
|
+
<doc xml:space="preserve">A newly-created pixbuf, or %NULL if any of several error
|
1973
|
+
conditions occurred: the file could not be opened, the image format is
|
1974
|
+
not supported, there was not enough memory to allocate the image buffer,
|
1975
|
+
the stream contained invalid data, or the operation was cancelled.</doc>
|
1976
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
1977
|
+
</return-value>
|
1978
|
+
<parameters>
|
1979
|
+
<parameter name="stream" transfer-ownership="none">
|
1980
|
+
<doc xml:space="preserve">a #GInputStream to load the pixbuf from</doc>
|
1981
|
+
<type name="Gio.InputStream" c:type="GInputStream*"/>
|
1982
|
+
</parameter>
|
1983
|
+
<parameter name="cancellable"
|
1984
|
+
transfer-ownership="none"
|
1985
|
+
nullable="1"
|
1986
|
+
allow-none="1">
|
1987
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
1988
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
1989
|
+
</parameter>
|
1990
|
+
</parameters>
|
1991
|
+
</constructor>
|
1992
|
+
<constructor name="new_from_stream_finish"
|
1993
|
+
c:identifier="gdk_pixbuf_animation_new_from_stream_finish"
|
1994
|
+
version="2.28"
|
1995
|
+
throws="1">
|
1996
|
+
<doc xml:space="preserve">Finishes an asynchronous pixbuf animation creation operation started with
|
1997
|
+
gdk_pixbuf_animation_new_from_stream_async().</doc>
|
1998
|
+
<return-value transfer-ownership="full">
|
1999
|
+
<doc xml:space="preserve">a #GdkPixbufAnimation or %NULL on error. Free the returned
|
2000
|
+
object with g_object_unref().</doc>
|
2001
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2002
|
+
</return-value>
|
2003
|
+
<parameters>
|
2004
|
+
<parameter name="async_result" transfer-ownership="none">
|
2005
|
+
<doc xml:space="preserve">a #GAsyncResult</doc>
|
2006
|
+
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
|
2007
|
+
</parameter>
|
2008
|
+
</parameters>
|
2009
|
+
</constructor>
|
2010
|
+
<function name="new_from_stream_async"
|
2011
|
+
c:identifier="gdk_pixbuf_animation_new_from_stream_async"
|
2012
|
+
version="2.28">
|
2013
|
+
<doc xml:space="preserve">Creates a new animation by asynchronously loading an image from an input stream.
|
2014
|
+
|
2015
|
+
For more details see gdk_pixbuf_new_from_stream(), which is the synchronous
|
2016
|
+
version of this function.
|
2017
|
+
|
2018
|
+
When the operation is finished, @callback will be called in the main thread.
|
2019
|
+
You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the
|
2020
|
+
result of the operation.</doc>
|
2021
|
+
<return-value transfer-ownership="none">
|
2022
|
+
<type name="none" c:type="void"/>
|
2023
|
+
</return-value>
|
2024
|
+
<parameters>
|
2025
|
+
<parameter name="stream" transfer-ownership="none">
|
2026
|
+
<doc xml:space="preserve">a #GInputStream from which to load the animation</doc>
|
2027
|
+
<type name="Gio.InputStream" c:type="GInputStream*"/>
|
2028
|
+
</parameter>
|
2029
|
+
<parameter name="cancellable"
|
2030
|
+
transfer-ownership="none"
|
2031
|
+
nullable="1"
|
2032
|
+
allow-none="1">
|
2033
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
2034
|
+
<type name="Gio.Cancellable" c:type="GCancellable*"/>
|
2035
|
+
</parameter>
|
2036
|
+
<parameter name="callback"
|
2037
|
+
transfer-ownership="none"
|
2038
|
+
nullable="1"
|
2039
|
+
allow-none="1"
|
2040
|
+
scope="async"
|
2041
|
+
closure="3">
|
2042
|
+
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the the pixbuf is loaded</doc>
|
2043
|
+
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
|
2044
|
+
</parameter>
|
2045
|
+
<parameter name="user_data" transfer-ownership="none">
|
2046
|
+
<doc xml:space="preserve">the data to pass to the callback function</doc>
|
2047
|
+
<type name="gpointer" c:type="gpointer"/>
|
2048
|
+
</parameter>
|
2049
|
+
</parameters>
|
2050
|
+
</function>
|
2051
|
+
<method name="get_height" c:identifier="gdk_pixbuf_animation_get_height">
|
2052
|
+
<doc xml:space="preserve">Queries the height of the bounding box of a pixbuf animation.</doc>
|
2053
|
+
<return-value transfer-ownership="none">
|
2054
|
+
<doc xml:space="preserve">Height of the bounding box of the animation.</doc>
|
2055
|
+
<type name="gint" c:type="int"/>
|
2056
|
+
</return-value>
|
2057
|
+
<parameters>
|
2058
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
2059
|
+
<doc xml:space="preserve">An animation.</doc>
|
2060
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2061
|
+
</instance-parameter>
|
2062
|
+
</parameters>
|
2063
|
+
</method>
|
2064
|
+
<method name="get_iter" c:identifier="gdk_pixbuf_animation_get_iter">
|
2065
|
+
<doc xml:space="preserve">Get an iterator for displaying an animation. The iterator provides
|
2066
|
+
the frames that should be displayed at a given time.
|
2067
|
+
It should be freed after use with g_object_unref().
|
2068
|
+
|
2069
|
+
@start_time would normally come from g_get_current_time(), and
|
2070
|
+
marks the beginning of animation playback. After creating an
|
2071
|
+
iterator, you should immediately display the pixbuf returned by
|
2072
|
+
gdk_pixbuf_animation_iter_get_pixbuf(). Then, you should install a
|
2073
|
+
timeout (with g_timeout_add()) or by some other mechanism ensure
|
2074
|
+
that you'll update the image after
|
2075
|
+
gdk_pixbuf_animation_iter_get_delay_time() milliseconds. Each time
|
2076
|
+
the image is updated, you should reinstall the timeout with the new,
|
2077
|
+
possibly-changed delay time.
|
2078
|
+
|
2079
|
+
As a shortcut, if @start_time is %NULL, the result of
|
2080
|
+
g_get_current_time() will be used automatically.
|
2081
|
+
|
2082
|
+
To update the image (i.e. possibly change the result of
|
2083
|
+
gdk_pixbuf_animation_iter_get_pixbuf() to a new frame of the animation),
|
2084
|
+
call gdk_pixbuf_animation_iter_advance().
|
2085
|
+
|
2086
|
+
If you're using #GdkPixbufLoader, in addition to updating the image
|
2087
|
+
after the delay time, you should also update it whenever you
|
2088
|
+
receive the area_updated signal and
|
2089
|
+
gdk_pixbuf_animation_iter_on_currently_loading_frame() returns
|
2090
|
+
%TRUE. In this case, the frame currently being fed into the loader
|
2091
|
+
has received new data, so needs to be refreshed. The delay time for
|
2092
|
+
a frame may also be modified after an area_updated signal, for
|
2093
|
+
example if the delay time for a frame is encoded in the data after
|
2094
|
+
the frame itself. So your timeout should be reinstalled after any
|
2095
|
+
area_updated signal.
|
2096
|
+
|
2097
|
+
A delay time of -1 is possible, indicating "infinite."</doc>
|
2098
|
+
<return-value transfer-ownership="full">
|
2099
|
+
<doc xml:space="preserve">an iterator to move over the animation</doc>
|
2100
|
+
<type name="PixbufAnimationIter" c:type="GdkPixbufAnimationIter*"/>
|
2101
|
+
</return-value>
|
2102
|
+
<parameters>
|
2103
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
2104
|
+
<doc xml:space="preserve">a #GdkPixbufAnimation</doc>
|
2105
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2106
|
+
</instance-parameter>
|
2107
|
+
<parameter name="start_time"
|
2108
|
+
transfer-ownership="none"
|
2109
|
+
nullable="1"
|
2110
|
+
allow-none="1">
|
2111
|
+
<doc xml:space="preserve">time when the animation starts playing</doc>
|
2112
|
+
<type name="GLib.TimeVal" c:type="const GTimeVal*"/>
|
2113
|
+
</parameter>
|
2114
|
+
</parameters>
|
2115
|
+
</method>
|
2116
|
+
<method name="get_static_image"
|
2117
|
+
c:identifier="gdk_pixbuf_animation_get_static_image">
|
2118
|
+
<doc xml:space="preserve">If an animation is really just a plain image (has only one frame),
|
2119
|
+
this function returns that image. If the animation is an animation,
|
2120
|
+
this function returns a reasonable thing to display as a static
|
2121
|
+
unanimated image, which might be the first frame, or something more
|
2122
|
+
sophisticated. If an animation hasn't loaded any frames yet, this
|
2123
|
+
function will return %NULL.</doc>
|
2124
|
+
<return-value transfer-ownership="none">
|
2125
|
+
<doc xml:space="preserve">unanimated image representing the animation</doc>
|
2126
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
2127
|
+
</return-value>
|
2128
|
+
<parameters>
|
2129
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
2130
|
+
<doc xml:space="preserve">a #GdkPixbufAnimation</doc>
|
2131
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2132
|
+
</instance-parameter>
|
2133
|
+
</parameters>
|
2134
|
+
</method>
|
2135
|
+
<method name="get_width" c:identifier="gdk_pixbuf_animation_get_width">
|
2136
|
+
<doc xml:space="preserve">Queries the width of the bounding box of a pixbuf animation.</doc>
|
2137
|
+
<return-value transfer-ownership="none">
|
2138
|
+
<doc xml:space="preserve">Width of the bounding box of the animation.</doc>
|
2139
|
+
<type name="gint" c:type="int"/>
|
2140
|
+
</return-value>
|
2141
|
+
<parameters>
|
2142
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
2143
|
+
<doc xml:space="preserve">An animation.</doc>
|
2144
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2145
|
+
</instance-parameter>
|
2146
|
+
</parameters>
|
2147
|
+
</method>
|
2148
|
+
<method name="is_static_image"
|
2149
|
+
c:identifier="gdk_pixbuf_animation_is_static_image">
|
2150
|
+
<doc xml:space="preserve">If you load a file with gdk_pixbuf_animation_new_from_file() and it turns
|
2151
|
+
out to be a plain, unanimated image, then this function will return
|
2152
|
+
%TRUE. Use gdk_pixbuf_animation_get_static_image() to retrieve
|
2153
|
+
the image.</doc>
|
2154
|
+
<return-value transfer-ownership="none">
|
2155
|
+
<doc xml:space="preserve">%TRUE if the "animation" was really just an image</doc>
|
2156
|
+
<type name="gboolean" c:type="gboolean"/>
|
2157
|
+
</return-value>
|
2158
|
+
<parameters>
|
2159
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
2160
|
+
<doc xml:space="preserve">a #GdkPixbufAnimation</doc>
|
2161
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2162
|
+
</instance-parameter>
|
2163
|
+
</parameters>
|
2164
|
+
</method>
|
2165
|
+
<method name="ref"
|
2166
|
+
c:identifier="gdk_pixbuf_animation_ref"
|
2167
|
+
introspectable="0"
|
2168
|
+
deprecated="1"
|
2169
|
+
deprecated-version="2.0">
|
2170
|
+
<doc xml:space="preserve">Adds a reference to an animation.</doc>
|
2171
|
+
<doc-deprecated xml:space="preserve">Use g_object_ref().</doc-deprecated>
|
2172
|
+
<return-value>
|
2173
|
+
<doc xml:space="preserve">The same as the @animation argument.</doc>
|
2174
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2175
|
+
</return-value>
|
2176
|
+
<parameters>
|
2177
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
2178
|
+
<doc xml:space="preserve">An animation.</doc>
|
2179
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2180
|
+
</instance-parameter>
|
2181
|
+
</parameters>
|
2182
|
+
</method>
|
2183
|
+
<method name="unref"
|
2184
|
+
c:identifier="gdk_pixbuf_animation_unref"
|
2185
|
+
introspectable="0"
|
2186
|
+
deprecated="1"
|
2187
|
+
deprecated-version="2.0">
|
2188
|
+
<doc xml:space="preserve">Removes a reference from an animation.</doc>
|
2189
|
+
<doc-deprecated xml:space="preserve">Use g_object_unref().</doc-deprecated>
|
2190
|
+
<return-value transfer-ownership="none">
|
2191
|
+
<type name="none" c:type="void"/>
|
2192
|
+
</return-value>
|
2193
|
+
<parameters>
|
2194
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
2195
|
+
<doc xml:space="preserve">An animation.</doc>
|
2196
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2197
|
+
</instance-parameter>
|
2198
|
+
</parameters>
|
2199
|
+
</method>
|
2200
|
+
</class>
|
2201
|
+
<class name="PixbufAnimationIter"
|
2202
|
+
c:symbol-prefix="pixbuf_animation_iter"
|
2203
|
+
c:type="GdkPixbufAnimationIter"
|
2204
|
+
parent="GObject.Object"
|
2205
|
+
glib:type-name="GdkPixbufAnimationIter"
|
2206
|
+
glib:get-type="gdk_pixbuf_animation_iter_get_type">
|
2207
|
+
<doc xml:space="preserve">An opaque struct representing an iterator which points to a
|
2208
|
+
certain position in an animation.</doc>
|
2209
|
+
<method name="advance" c:identifier="gdk_pixbuf_animation_iter_advance">
|
2210
|
+
<doc xml:space="preserve">Possibly advances an animation to a new frame. Chooses the frame based
|
2211
|
+
on the start time passed to gdk_pixbuf_animation_get_iter().
|
2212
|
+
|
2213
|
+
@current_time would normally come from g_get_current_time(), and
|
2214
|
+
must be greater than or equal to the time passed to
|
2215
|
+
gdk_pixbuf_animation_get_iter(), and must increase or remain
|
2216
|
+
unchanged each time gdk_pixbuf_animation_iter_get_pixbuf() is
|
2217
|
+
called. That is, you can't go backward in time; animations only
|
2218
|
+
play forward.
|
2219
|
+
|
2220
|
+
As a shortcut, pass %NULL for the current time and g_get_current_time()
|
2221
|
+
will be invoked on your behalf. So you only need to explicitly pass
|
2222
|
+
@current_time if you're doing something odd like playing the animation
|
2223
|
+
at double speed.
|
2224
|
+
|
2225
|
+
If this function returns %FALSE, there's no need to update the animation
|
2226
|
+
display, assuming the display had been rendered prior to advancing;
|
2227
|
+
if %TRUE, you need to call gdk_pixbuf_animation_iter_get_pixbuf()
|
2228
|
+
and update the display with the new pixbuf.</doc>
|
2229
|
+
<return-value transfer-ownership="none">
|
2230
|
+
<doc xml:space="preserve">%TRUE if the image may need updating</doc>
|
2231
|
+
<type name="gboolean" c:type="gboolean"/>
|
2232
|
+
</return-value>
|
2233
|
+
<parameters>
|
2234
|
+
<instance-parameter name="iter" transfer-ownership="none">
|
2235
|
+
<doc xml:space="preserve">a #GdkPixbufAnimationIter</doc>
|
2236
|
+
<type name="PixbufAnimationIter" c:type="GdkPixbufAnimationIter*"/>
|
2237
|
+
</instance-parameter>
|
2238
|
+
<parameter name="current_time"
|
2239
|
+
transfer-ownership="none"
|
2240
|
+
nullable="1"
|
2241
|
+
allow-none="1">
|
2242
|
+
<doc xml:space="preserve">current time</doc>
|
2243
|
+
<type name="GLib.TimeVal" c:type="const GTimeVal*"/>
|
2244
|
+
</parameter>
|
2245
|
+
</parameters>
|
2246
|
+
</method>
|
2247
|
+
<method name="get_delay_time"
|
2248
|
+
c:identifier="gdk_pixbuf_animation_iter_get_delay_time">
|
2249
|
+
<doc xml:space="preserve">Gets the number of milliseconds the current pixbuf should be displayed,
|
2250
|
+
or -1 if the current pixbuf should be displayed forever. g_timeout_add()
|
2251
|
+
conveniently takes a timeout in milliseconds, so you can use a timeout
|
2252
|
+
to schedule the next update.</doc>
|
2253
|
+
<return-value transfer-ownership="none">
|
2254
|
+
<doc xml:space="preserve">delay time in milliseconds (thousandths of a second)</doc>
|
2255
|
+
<type name="gint" c:type="int"/>
|
2256
|
+
</return-value>
|
2257
|
+
<parameters>
|
2258
|
+
<instance-parameter name="iter" transfer-ownership="none">
|
2259
|
+
<doc xml:space="preserve">an animation iterator</doc>
|
2260
|
+
<type name="PixbufAnimationIter" c:type="GdkPixbufAnimationIter*"/>
|
2261
|
+
</instance-parameter>
|
2262
|
+
</parameters>
|
2263
|
+
</method>
|
2264
|
+
<method name="get_pixbuf"
|
2265
|
+
c:identifier="gdk_pixbuf_animation_iter_get_pixbuf">
|
2266
|
+
<doc xml:space="preserve">Gets the current pixbuf which should be displayed; the pixbuf might not
|
2267
|
+
be the same size as the animation itself
|
2268
|
+
(gdk_pixbuf_animation_get_width(), gdk_pixbuf_animation_get_height()).
|
2269
|
+
This pixbuf should be displayed for
|
2270
|
+
gdk_pixbuf_animation_iter_get_delay_time() milliseconds. The caller
|
2271
|
+
of this function does not own a reference to the returned pixbuf;
|
2272
|
+
the returned pixbuf will become invalid when the iterator advances
|
2273
|
+
to the next frame, which may happen anytime you call
|
2274
|
+
gdk_pixbuf_animation_iter_advance(). Copy the pixbuf to keep it
|
2275
|
+
(don't just add a reference), as it may get recycled as you advance
|
2276
|
+
the iterator.</doc>
|
2277
|
+
<return-value transfer-ownership="none">
|
2278
|
+
<doc xml:space="preserve">the pixbuf to be displayed</doc>
|
2279
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
2280
|
+
</return-value>
|
2281
|
+
<parameters>
|
2282
|
+
<instance-parameter name="iter" transfer-ownership="none">
|
2283
|
+
<doc xml:space="preserve">an animation iterator</doc>
|
2284
|
+
<type name="PixbufAnimationIter" c:type="GdkPixbufAnimationIter*"/>
|
2285
|
+
</instance-parameter>
|
2286
|
+
</parameters>
|
2287
|
+
</method>
|
2288
|
+
<method name="on_currently_loading_frame"
|
2289
|
+
c:identifier="gdk_pixbuf_animation_iter_on_currently_loading_frame">
|
2290
|
+
<doc xml:space="preserve">Used to determine how to respond to the area_updated signal on
|
2291
|
+
#GdkPixbufLoader when loading an animation. area_updated is emitted
|
2292
|
+
for an area of the frame currently streaming in to the loader. So if
|
2293
|
+
you're on the currently loading frame, you need to redraw the screen for
|
2294
|
+
the updated area.</doc>
|
2295
|
+
<return-value transfer-ownership="none">
|
2296
|
+
<doc xml:space="preserve">%TRUE if the frame we're on is partially loaded, or the last frame</doc>
|
2297
|
+
<type name="gboolean" c:type="gboolean"/>
|
2298
|
+
</return-value>
|
2299
|
+
<parameters>
|
2300
|
+
<instance-parameter name="iter" transfer-ownership="none">
|
2301
|
+
<doc xml:space="preserve">a #GdkPixbufAnimationIter</doc>
|
2302
|
+
<type name="PixbufAnimationIter" c:type="GdkPixbufAnimationIter*"/>
|
2303
|
+
</instance-parameter>
|
2304
|
+
</parameters>
|
2305
|
+
</method>
|
2306
|
+
</class>
|
2307
|
+
<callback name="PixbufDestroyNotify" c:type="GdkPixbufDestroyNotify">
|
2308
|
+
<doc xml:space="preserve">A function of this type is responsible for freeing the pixel array
|
2309
|
+
of a pixbuf. The gdk_pixbuf_new_from_data() function lets you
|
2310
|
+
pass in a pre-allocated pixel array so that a pixbuf can be
|
2311
|
+
created from it; in this case you will need to pass in a function
|
2312
|
+
of #GdkPixbufDestroyNotify so that the pixel data can be freed
|
2313
|
+
when the pixbuf is finalized.</doc>
|
2314
|
+
<return-value transfer-ownership="none">
|
2315
|
+
<type name="none" c:type="void"/>
|
2316
|
+
</return-value>
|
2317
|
+
<parameters>
|
2318
|
+
<parameter name="pixels" transfer-ownership="none">
|
2319
|
+
<doc xml:space="preserve">The pixel array of the pixbuf
|
2320
|
+
that is being finalized.</doc>
|
2321
|
+
<array zero-terminated="0" c:type="guchar*">
|
2322
|
+
<type name="guint8"/>
|
2323
|
+
</array>
|
2324
|
+
</parameter>
|
2325
|
+
<parameter name="data" transfer-ownership="none" closure="1">
|
2326
|
+
<doc xml:space="preserve">User closure data.</doc>
|
2327
|
+
<type name="gpointer" c:type="gpointer"/>
|
2328
|
+
</parameter>
|
2329
|
+
</parameters>
|
2330
|
+
</callback>
|
2331
|
+
<enumeration name="PixbufError"
|
2332
|
+
glib:type-name="GdkPixbufError"
|
2333
|
+
glib:get-type="gdk_pixbuf_error_get_type"
|
2334
|
+
c:type="GdkPixbufError"
|
2335
|
+
glib:error-domain="gdk-pixbuf-error-quark">
|
2336
|
+
<doc xml:space="preserve">An error code in the #GDK_PIXBUF_ERROR domain. Many gdk-pixbuf
|
2337
|
+
operations can cause errors in this domain, or in the #G_FILE_ERROR
|
2338
|
+
domain.</doc>
|
2339
|
+
<member name="corrupt_image"
|
2340
|
+
value="0"
|
2341
|
+
c:identifier="GDK_PIXBUF_ERROR_CORRUPT_IMAGE"
|
2342
|
+
glib:nick="corrupt-image">
|
2343
|
+
<doc xml:space="preserve">An image file was broken somehow.</doc>
|
2344
|
+
</member>
|
2345
|
+
<member name="insufficient_memory"
|
2346
|
+
value="1"
|
2347
|
+
c:identifier="GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY"
|
2348
|
+
glib:nick="insufficient-memory">
|
2349
|
+
<doc xml:space="preserve">Not enough memory.</doc>
|
2350
|
+
</member>
|
2351
|
+
<member name="bad_option"
|
2352
|
+
value="2"
|
2353
|
+
c:identifier="GDK_PIXBUF_ERROR_BAD_OPTION"
|
2354
|
+
glib:nick="bad-option">
|
2355
|
+
<doc xml:space="preserve">A bad option was passed to a pixbuf save module.</doc>
|
2356
|
+
</member>
|
2357
|
+
<member name="unknown_type"
|
2358
|
+
value="3"
|
2359
|
+
c:identifier="GDK_PIXBUF_ERROR_UNKNOWN_TYPE"
|
2360
|
+
glib:nick="unknown-type">
|
2361
|
+
<doc xml:space="preserve">Unknown image type.</doc>
|
2362
|
+
</member>
|
2363
|
+
<member name="unsupported_operation"
|
2364
|
+
value="4"
|
2365
|
+
c:identifier="GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION"
|
2366
|
+
glib:nick="unsupported-operation">
|
2367
|
+
<doc xml:space="preserve">Don't know how to perform the
|
2368
|
+
given operation on the type of image at hand.</doc>
|
2369
|
+
</member>
|
2370
|
+
<member name="failed"
|
2371
|
+
value="5"
|
2372
|
+
c:identifier="GDK_PIXBUF_ERROR_FAILED"
|
2373
|
+
glib:nick="failed">
|
2374
|
+
<doc xml:space="preserve">Generic failure code, something went wrong.</doc>
|
2375
|
+
</member>
|
2376
|
+
<function name="quark" c:identifier="gdk_pixbuf_error_quark">
|
2377
|
+
<return-value transfer-ownership="none">
|
2378
|
+
<type name="GLib.Quark" c:type="GQuark"/>
|
2379
|
+
</return-value>
|
2380
|
+
</function>
|
2381
|
+
</enumeration>
|
2382
|
+
<record name="PixbufFormat"
|
2383
|
+
c:type="GdkPixbufFormat"
|
2384
|
+
glib:type-name="GdkPixbufFormat"
|
2385
|
+
glib:get-type="gdk_pixbuf_format_get_type"
|
2386
|
+
c:symbol-prefix="pixbuf_format">
|
2387
|
+
<method name="copy" c:identifier="gdk_pixbuf_format_copy" version="2.22">
|
2388
|
+
<doc xml:space="preserve">Creates a copy of @format</doc>
|
2389
|
+
<return-value transfer-ownership="full">
|
2390
|
+
<doc xml:space="preserve">the newly allocated copy of a #GdkPixbufFormat. Use
|
2391
|
+
gdk_pixbuf_format_free() to free the resources when done</doc>
|
2392
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2393
|
+
</return-value>
|
2394
|
+
<parameters>
|
2395
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2396
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2397
|
+
<type name="PixbufFormat" c:type="const GdkPixbufFormat*"/>
|
2398
|
+
</instance-parameter>
|
2399
|
+
</parameters>
|
2400
|
+
</method>
|
2401
|
+
<method name="free" c:identifier="gdk_pixbuf_format_free" version="2.22">
|
2402
|
+
<doc xml:space="preserve">Frees the resources allocated when copying a #GdkPixbufFormat
|
2403
|
+
using gdk_pixbuf_format_copy()</doc>
|
2404
|
+
<return-value transfer-ownership="none">
|
2405
|
+
<type name="none" c:type="void"/>
|
2406
|
+
</return-value>
|
2407
|
+
<parameters>
|
2408
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2409
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2410
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2411
|
+
</instance-parameter>
|
2412
|
+
</parameters>
|
2413
|
+
</method>
|
2414
|
+
<method name="get_description"
|
2415
|
+
c:identifier="gdk_pixbuf_format_get_description"
|
2416
|
+
version="2.2">
|
2417
|
+
<doc xml:space="preserve">Returns a description of the format.</doc>
|
2418
|
+
<return-value transfer-ownership="full">
|
2419
|
+
<doc xml:space="preserve">a description of the format.</doc>
|
2420
|
+
<type name="utf8" c:type="gchar*"/>
|
2421
|
+
</return-value>
|
2422
|
+
<parameters>
|
2423
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2424
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2425
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2426
|
+
</instance-parameter>
|
2427
|
+
</parameters>
|
2428
|
+
</method>
|
2429
|
+
<method name="get_extensions"
|
2430
|
+
c:identifier="gdk_pixbuf_format_get_extensions"
|
2431
|
+
version="2.2">
|
2432
|
+
<doc xml:space="preserve">Returns the filename extensions typically used for files in the
|
2433
|
+
given format.</doc>
|
2434
|
+
<return-value transfer-ownership="full">
|
2435
|
+
<doc xml:space="preserve">a %NULL-terminated array of filename extensions which must be
|
2436
|
+
freed with g_strfreev() when it is no longer needed.</doc>
|
2437
|
+
<array c:type="gchar**">
|
2438
|
+
<type name="utf8"/>
|
2439
|
+
</array>
|
2440
|
+
</return-value>
|
2441
|
+
<parameters>
|
2442
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2443
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2444
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2445
|
+
</instance-parameter>
|
2446
|
+
</parameters>
|
2447
|
+
</method>
|
2448
|
+
<method name="get_license"
|
2449
|
+
c:identifier="gdk_pixbuf_format_get_license"
|
2450
|
+
version="2.6">
|
2451
|
+
<doc xml:space="preserve">Returns information about the license of the image loader for the format. The
|
2452
|
+
returned string should be a shorthand for a wellknown license, e.g. "LGPL",
|
2453
|
+
"GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. This
|
2454
|
+
string should be freed with g_free() when it's no longer needed.</doc>
|
2455
|
+
<return-value transfer-ownership="full">
|
2456
|
+
<doc xml:space="preserve">a string describing the license of @format.</doc>
|
2457
|
+
<type name="utf8" c:type="gchar*"/>
|
2458
|
+
</return-value>
|
2459
|
+
<parameters>
|
2460
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2461
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2462
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2463
|
+
</instance-parameter>
|
2464
|
+
</parameters>
|
2465
|
+
</method>
|
2466
|
+
<method name="get_mime_types"
|
2467
|
+
c:identifier="gdk_pixbuf_format_get_mime_types"
|
2468
|
+
version="2.2">
|
2469
|
+
<doc xml:space="preserve">Returns the mime types supported by the format.</doc>
|
2470
|
+
<return-value transfer-ownership="full">
|
2471
|
+
<doc xml:space="preserve">a %NULL-terminated array of mime types which must be freed with
|
2472
|
+
g_strfreev() when it is no longer needed.</doc>
|
2473
|
+
<array c:type="gchar**">
|
2474
|
+
<type name="utf8"/>
|
2475
|
+
</array>
|
2476
|
+
</return-value>
|
2477
|
+
<parameters>
|
2478
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2479
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2480
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2481
|
+
</instance-parameter>
|
2482
|
+
</parameters>
|
2483
|
+
</method>
|
2484
|
+
<method name="get_name"
|
2485
|
+
c:identifier="gdk_pixbuf_format_get_name"
|
2486
|
+
version="2.2">
|
2487
|
+
<doc xml:space="preserve">Returns the name of the format.</doc>
|
2488
|
+
<return-value transfer-ownership="full">
|
2489
|
+
<doc xml:space="preserve">the name of the format.</doc>
|
2490
|
+
<type name="utf8" c:type="gchar*"/>
|
2491
|
+
</return-value>
|
2492
|
+
<parameters>
|
2493
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2494
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2495
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2496
|
+
</instance-parameter>
|
2497
|
+
</parameters>
|
2498
|
+
</method>
|
2499
|
+
<method name="is_disabled"
|
2500
|
+
c:identifier="gdk_pixbuf_format_is_disabled"
|
2501
|
+
version="2.6">
|
2502
|
+
<doc xml:space="preserve">Returns whether this image format is disabled. See
|
2503
|
+
gdk_pixbuf_format_set_disabled().</doc>
|
2504
|
+
<return-value transfer-ownership="none">
|
2505
|
+
<doc xml:space="preserve">whether this image format is disabled.</doc>
|
2506
|
+
<type name="gboolean" c:type="gboolean"/>
|
2507
|
+
</return-value>
|
2508
|
+
<parameters>
|
2509
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2510
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2511
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2512
|
+
</instance-parameter>
|
2513
|
+
</parameters>
|
2514
|
+
</method>
|
2515
|
+
<method name="is_scalable"
|
2516
|
+
c:identifier="gdk_pixbuf_format_is_scalable"
|
2517
|
+
version="2.6">
|
2518
|
+
<doc xml:space="preserve">Returns whether this image format is scalable. If a file is in a
|
2519
|
+
scalable format, it is preferable to load it at the desired size,
|
2520
|
+
rather than loading it at the default size and scaling the
|
2521
|
+
resulting pixbuf to the desired size.</doc>
|
2522
|
+
<return-value transfer-ownership="none">
|
2523
|
+
<doc xml:space="preserve">whether this image format is scalable.</doc>
|
2524
|
+
<type name="gboolean" c:type="gboolean"/>
|
2525
|
+
</return-value>
|
2526
|
+
<parameters>
|
2527
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2528
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2529
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2530
|
+
</instance-parameter>
|
2531
|
+
</parameters>
|
2532
|
+
</method>
|
2533
|
+
<method name="is_writable"
|
2534
|
+
c:identifier="gdk_pixbuf_format_is_writable"
|
2535
|
+
version="2.2">
|
2536
|
+
<doc xml:space="preserve">Returns whether pixbufs can be saved in the given format.</doc>
|
2537
|
+
<return-value transfer-ownership="none">
|
2538
|
+
<doc xml:space="preserve">whether pixbufs can be saved in the given format.</doc>
|
2539
|
+
<type name="gboolean" c:type="gboolean"/>
|
2540
|
+
</return-value>
|
2541
|
+
<parameters>
|
2542
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2543
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2544
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2545
|
+
</instance-parameter>
|
2546
|
+
</parameters>
|
2547
|
+
</method>
|
2548
|
+
<method name="set_disabled"
|
2549
|
+
c:identifier="gdk_pixbuf_format_set_disabled"
|
2550
|
+
version="2.6">
|
2551
|
+
<doc xml:space="preserve">Disables or enables an image format. If a format is disabled,
|
2552
|
+
gdk-pixbuf won't use the image loader for this format to load
|
2553
|
+
images. Applications can use this to avoid using image loaders
|
2554
|
+
with an inappropriate license, see gdk_pixbuf_format_get_license().</doc>
|
2555
|
+
<return-value transfer-ownership="none">
|
2556
|
+
<type name="none" c:type="void"/>
|
2557
|
+
</return-value>
|
2558
|
+
<parameters>
|
2559
|
+
<instance-parameter name="format" transfer-ownership="none">
|
2560
|
+
<doc xml:space="preserve">a #GdkPixbufFormat</doc>
|
2561
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2562
|
+
</instance-parameter>
|
2563
|
+
<parameter name="disabled" transfer-ownership="none">
|
2564
|
+
<doc xml:space="preserve">%TRUE to disable the format @format</doc>
|
2565
|
+
<type name="gboolean" c:type="gboolean"/>
|
2566
|
+
</parameter>
|
2567
|
+
</parameters>
|
2568
|
+
</method>
|
2569
|
+
</record>
|
2570
|
+
<class name="PixbufLoader"
|
2571
|
+
c:symbol-prefix="pixbuf_loader"
|
2572
|
+
c:type="GdkPixbufLoader"
|
2573
|
+
parent="GObject.Object"
|
2574
|
+
glib:type-name="GdkPixbufLoader"
|
2575
|
+
glib:get-type="gdk_pixbuf_loader_get_type"
|
2576
|
+
glib:type-struct="PixbufLoaderClass">
|
2577
|
+
<doc xml:space="preserve">The GdkPixbufLoader struct contains only private
|
2578
|
+
fields.</doc>
|
2579
|
+
<constructor name="new" c:identifier="gdk_pixbuf_loader_new">
|
2580
|
+
<doc xml:space="preserve">Creates a new pixbuf loader object.</doc>
|
2581
|
+
<return-value transfer-ownership="full">
|
2582
|
+
<doc xml:space="preserve">A newly-created pixbuf loader.</doc>
|
2583
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2584
|
+
</return-value>
|
2585
|
+
</constructor>
|
2586
|
+
<constructor name="new_with_mime_type"
|
2587
|
+
c:identifier="gdk_pixbuf_loader_new_with_mime_type"
|
2588
|
+
version="2.4"
|
2589
|
+
throws="1">
|
2590
|
+
<doc xml:space="preserve">Creates a new pixbuf loader object that always attempts to parse
|
2591
|
+
image data as if it were an image of mime type @mime_type, instead of
|
2592
|
+
identifying the type automatically. Useful if you want an error if
|
2593
|
+
the image isn't the expected mime type, for loading image formats
|
2594
|
+
that can't be reliably identified by looking at the data, or if
|
2595
|
+
the user manually forces a specific mime type.
|
2596
|
+
|
2597
|
+
The list of supported mime types depends on what image loaders
|
2598
|
+
are installed, but typically "image/png", "image/jpeg", "image/gif",
|
2599
|
+
"image/tiff" and "image/x-xpixmap" are among the supported mime types.
|
2600
|
+
To obtain the full list of supported mime types, call
|
2601
|
+
gdk_pixbuf_format_get_mime_types() on each of the #GdkPixbufFormat
|
2602
|
+
structs returned by gdk_pixbuf_get_formats().</doc>
|
2603
|
+
<return-value transfer-ownership="full">
|
2604
|
+
<doc xml:space="preserve">A newly-created pixbuf loader.</doc>
|
2605
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2606
|
+
</return-value>
|
2607
|
+
<parameters>
|
2608
|
+
<parameter name="mime_type" transfer-ownership="none">
|
2609
|
+
<doc xml:space="preserve">the mime type to be loaded</doc>
|
2610
|
+
<type name="utf8" c:type="const char*"/>
|
2611
|
+
</parameter>
|
2612
|
+
</parameters>
|
2613
|
+
</constructor>
|
2614
|
+
<constructor name="new_with_type"
|
2615
|
+
c:identifier="gdk_pixbuf_loader_new_with_type"
|
2616
|
+
throws="1">
|
2617
|
+
<doc xml:space="preserve">Creates a new pixbuf loader object that always attempts to parse
|
2618
|
+
image data as if it were an image of type @image_type, instead of
|
2619
|
+
identifying the type automatically. Useful if you want an error if
|
2620
|
+
the image isn't the expected type, for loading image formats
|
2621
|
+
that can't be reliably identified by looking at the data, or if
|
2622
|
+
the user manually forces a specific type.
|
2623
|
+
|
2624
|
+
The list of supported image formats depends on what image loaders
|
2625
|
+
are installed, but typically "png", "jpeg", "gif", "tiff" and
|
2626
|
+
"xpm" are among the supported formats. To obtain the full list of
|
2627
|
+
supported image formats, call gdk_pixbuf_format_get_name() on each
|
2628
|
+
of the #GdkPixbufFormat structs returned by gdk_pixbuf_get_formats().</doc>
|
2629
|
+
<return-value transfer-ownership="full">
|
2630
|
+
<doc xml:space="preserve">A newly-created pixbuf loader.</doc>
|
2631
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2632
|
+
</return-value>
|
2633
|
+
<parameters>
|
2634
|
+
<parameter name="image_type" transfer-ownership="none">
|
2635
|
+
<doc xml:space="preserve">name of the image format to be loaded with the image</doc>
|
2636
|
+
<type name="utf8" c:type="const char*"/>
|
2637
|
+
</parameter>
|
2638
|
+
</parameters>
|
2639
|
+
</constructor>
|
2640
|
+
<virtual-method name="area_prepared">
|
2641
|
+
<return-value transfer-ownership="none">
|
2642
|
+
<type name="none" c:type="void"/>
|
2643
|
+
</return-value>
|
2644
|
+
<parameters>
|
2645
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2646
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2647
|
+
</instance-parameter>
|
2648
|
+
</parameters>
|
2649
|
+
</virtual-method>
|
2650
|
+
<virtual-method name="area_updated">
|
2651
|
+
<return-value transfer-ownership="none">
|
2652
|
+
<type name="none" c:type="void"/>
|
2653
|
+
</return-value>
|
2654
|
+
<parameters>
|
2655
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2656
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2657
|
+
</instance-parameter>
|
2658
|
+
<parameter name="x" transfer-ownership="none">
|
2659
|
+
<type name="gint" c:type="int"/>
|
2660
|
+
</parameter>
|
2661
|
+
<parameter name="y" transfer-ownership="none">
|
2662
|
+
<type name="gint" c:type="int"/>
|
2663
|
+
</parameter>
|
2664
|
+
<parameter name="width" transfer-ownership="none">
|
2665
|
+
<type name="gint" c:type="int"/>
|
2666
|
+
</parameter>
|
2667
|
+
<parameter name="height" transfer-ownership="none">
|
2668
|
+
<type name="gint" c:type="int"/>
|
2669
|
+
</parameter>
|
2670
|
+
</parameters>
|
2671
|
+
</virtual-method>
|
2672
|
+
<virtual-method name="closed">
|
2673
|
+
<return-value transfer-ownership="none">
|
2674
|
+
<type name="none" c:type="void"/>
|
2675
|
+
</return-value>
|
2676
|
+
<parameters>
|
2677
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2678
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2679
|
+
</instance-parameter>
|
2680
|
+
</parameters>
|
2681
|
+
</virtual-method>
|
2682
|
+
<virtual-method name="size_prepared">
|
2683
|
+
<return-value transfer-ownership="none">
|
2684
|
+
<type name="none" c:type="void"/>
|
2685
|
+
</return-value>
|
2686
|
+
<parameters>
|
2687
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2688
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2689
|
+
</instance-parameter>
|
2690
|
+
<parameter name="width" transfer-ownership="none">
|
2691
|
+
<type name="gint" c:type="int"/>
|
2692
|
+
</parameter>
|
2693
|
+
<parameter name="height" transfer-ownership="none">
|
2694
|
+
<type name="gint" c:type="int"/>
|
2695
|
+
</parameter>
|
2696
|
+
</parameters>
|
2697
|
+
</virtual-method>
|
2698
|
+
<method name="close" c:identifier="gdk_pixbuf_loader_close" throws="1">
|
2699
|
+
<doc xml:space="preserve">Informs a pixbuf loader that no further writes with
|
2700
|
+
gdk_pixbuf_loader_write() will occur, so that it can free its
|
2701
|
+
internal loading structures. Also, tries to parse any data that
|
2702
|
+
hasn't yet been parsed; if the remaining data is partial or
|
2703
|
+
corrupt, an error will be returned. If %FALSE is returned, @error
|
2704
|
+
will be set to an error from the #GDK_PIXBUF_ERROR or #G_FILE_ERROR
|
2705
|
+
domains. If you're just cancelling a load rather than expecting it
|
2706
|
+
to be finished, passing %NULL for @error to ignore it is
|
2707
|
+
reasonable.
|
2708
|
+
|
2709
|
+
Remember that this does not unref the loader, so if you plan not to
|
2710
|
+
use it anymore, please g_object_unref() it.</doc>
|
2711
|
+
<return-value transfer-ownership="none">
|
2712
|
+
<doc xml:space="preserve">%TRUE if all image data written so far was successfully
|
2713
|
+
passed out via the update_area signal</doc>
|
2714
|
+
<type name="gboolean" c:type="gboolean"/>
|
2715
|
+
</return-value>
|
2716
|
+
<parameters>
|
2717
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2718
|
+
<doc xml:space="preserve">A pixbuf loader.</doc>
|
2719
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2720
|
+
</instance-parameter>
|
2721
|
+
</parameters>
|
2722
|
+
</method>
|
2723
|
+
<method name="get_animation"
|
2724
|
+
c:identifier="gdk_pixbuf_loader_get_animation">
|
2725
|
+
<doc xml:space="preserve">Queries the #GdkPixbufAnimation that a pixbuf loader is currently creating.
|
2726
|
+
In general it only makes sense to call this function after the "area-prepared"
|
2727
|
+
signal has been emitted by the loader. If the loader doesn't have enough
|
2728
|
+
bytes yet (hasn't emitted the "area-prepared" signal) this function will
|
2729
|
+
return %NULL.</doc>
|
2730
|
+
<return-value transfer-ownership="none">
|
2731
|
+
<doc xml:space="preserve">The #GdkPixbufAnimation that the loader is loading, or %NULL if
|
2732
|
+
not enough data has been read to determine the information.</doc>
|
2733
|
+
<type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
|
2734
|
+
</return-value>
|
2735
|
+
<parameters>
|
2736
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2737
|
+
<doc xml:space="preserve">A pixbuf loader</doc>
|
2738
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2739
|
+
</instance-parameter>
|
2740
|
+
</parameters>
|
2741
|
+
</method>
|
2742
|
+
<method name="get_format"
|
2743
|
+
c:identifier="gdk_pixbuf_loader_get_format"
|
2744
|
+
version="2.2">
|
2745
|
+
<doc xml:space="preserve">Obtains the available information about the format of the
|
2746
|
+
currently loading image file.</doc>
|
2747
|
+
<return-value transfer-ownership="none" nullable="1">
|
2748
|
+
<doc xml:space="preserve">A #GdkPixbufFormat or
|
2749
|
+
%NULL. The return value is owned by GdkPixbuf and should not be
|
2750
|
+
freed.</doc>
|
2751
|
+
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
|
2752
|
+
</return-value>
|
2753
|
+
<parameters>
|
2754
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2755
|
+
<doc xml:space="preserve">A pixbuf loader.</doc>
|
2756
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2757
|
+
</instance-parameter>
|
2758
|
+
</parameters>
|
2759
|
+
</method>
|
2760
|
+
<method name="get_pixbuf" c:identifier="gdk_pixbuf_loader_get_pixbuf">
|
2761
|
+
<doc xml:space="preserve">Queries the #GdkPixbuf that a pixbuf loader is currently creating.
|
2762
|
+
In general it only makes sense to call this function after the
|
2763
|
+
"area-prepared" signal has been emitted by the loader; this means
|
2764
|
+
that enough data has been read to know the size of the image that
|
2765
|
+
will be allocated. If the loader has not received enough data via
|
2766
|
+
gdk_pixbuf_loader_write(), then this function returns %NULL. The
|
2767
|
+
returned pixbuf will be the same in all future calls to the loader,
|
2768
|
+
so simply calling g_object_ref() should be sufficient to continue
|
2769
|
+
using it. Additionally, if the loader is an animation, it will
|
2770
|
+
return the "static image" of the animation
|
2771
|
+
(see gdk_pixbuf_animation_get_static_image()).</doc>
|
2772
|
+
<return-value transfer-ownership="none">
|
2773
|
+
<doc xml:space="preserve">The #GdkPixbuf that the loader is creating, or %NULL if not
|
2774
|
+
enough data has been read to determine how to create the image buffer.</doc>
|
2775
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
2776
|
+
</return-value>
|
2777
|
+
<parameters>
|
2778
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2779
|
+
<doc xml:space="preserve">A pixbuf loader.</doc>
|
2780
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2781
|
+
</instance-parameter>
|
2782
|
+
</parameters>
|
2783
|
+
</method>
|
2784
|
+
<method name="set_size"
|
2785
|
+
c:identifier="gdk_pixbuf_loader_set_size"
|
2786
|
+
version="2.2">
|
2787
|
+
<doc xml:space="preserve">Causes the image to be scaled while it is loaded. The desired
|
2788
|
+
image size can be determined relative to the original size of
|
2789
|
+
the image by calling gdk_pixbuf_loader_set_size() from a
|
2790
|
+
signal handler for the ::size-prepared signal.
|
2791
|
+
|
2792
|
+
Attempts to set the desired image size are ignored after the
|
2793
|
+
emission of the ::size-prepared signal.</doc>
|
2794
|
+
<return-value transfer-ownership="none">
|
2795
|
+
<type name="none" c:type="void"/>
|
2796
|
+
</return-value>
|
2797
|
+
<parameters>
|
2798
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2799
|
+
<doc xml:space="preserve">A pixbuf loader.</doc>
|
2800
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2801
|
+
</instance-parameter>
|
2802
|
+
<parameter name="width" transfer-ownership="none">
|
2803
|
+
<doc xml:space="preserve">The desired width of the image being loaded.</doc>
|
2804
|
+
<type name="gint" c:type="int"/>
|
2805
|
+
</parameter>
|
2806
|
+
<parameter name="height" transfer-ownership="none">
|
2807
|
+
<doc xml:space="preserve">The desired height of the image being loaded.</doc>
|
2808
|
+
<type name="gint" c:type="int"/>
|
2809
|
+
</parameter>
|
2810
|
+
</parameters>
|
2811
|
+
</method>
|
2812
|
+
<method name="write" c:identifier="gdk_pixbuf_loader_write" throws="1">
|
2813
|
+
<doc xml:space="preserve">This will cause a pixbuf loader to parse the next @count bytes of
|
2814
|
+
an image. It will return %TRUE if the data was loaded successfully,
|
2815
|
+
and %FALSE if an error occurred. In the latter case, the loader
|
2816
|
+
will be closed, and will not accept further writes. If %FALSE is
|
2817
|
+
returned, @error will be set to an error from the #GDK_PIXBUF_ERROR
|
2818
|
+
or #G_FILE_ERROR domains.</doc>
|
2819
|
+
<return-value transfer-ownership="none">
|
2820
|
+
<doc xml:space="preserve">%TRUE if the write was successful, or %FALSE if the loader
|
2821
|
+
cannot parse the buffer.</doc>
|
2822
|
+
<type name="gboolean" c:type="gboolean"/>
|
2823
|
+
</return-value>
|
2824
|
+
<parameters>
|
2825
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2826
|
+
<doc xml:space="preserve">A pixbuf loader.</doc>
|
2827
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2828
|
+
</instance-parameter>
|
2829
|
+
<parameter name="buf" transfer-ownership="none">
|
2830
|
+
<doc xml:space="preserve">Pointer to image data.</doc>
|
2831
|
+
<array length="1" zero-terminated="0" c:type="guchar*">
|
2832
|
+
<type name="guint8" c:type="guchar"/>
|
2833
|
+
</array>
|
2834
|
+
</parameter>
|
2835
|
+
<parameter name="count" transfer-ownership="none">
|
2836
|
+
<doc xml:space="preserve">Length of the @buf buffer in bytes.</doc>
|
2837
|
+
<type name="gsize" c:type="gsize"/>
|
2838
|
+
</parameter>
|
2839
|
+
</parameters>
|
2840
|
+
</method>
|
2841
|
+
<method name="write_bytes"
|
2842
|
+
c:identifier="gdk_pixbuf_loader_write_bytes"
|
2843
|
+
version="2.30"
|
2844
|
+
throws="1">
|
2845
|
+
<doc xml:space="preserve">This will cause a pixbuf loader to parse a buffer inside a #GBytes
|
2846
|
+
for an image. It will return %TRUE if the data was loaded successfully,
|
2847
|
+
and %FALSE if an error occurred. In the latter case, the loader
|
2848
|
+
will be closed, and will not accept further writes. If %FALSE is
|
2849
|
+
returned, @error will be set to an error from the #GDK_PIXBUF_ERROR
|
2850
|
+
or #G_FILE_ERROR domains.
|
2851
|
+
|
2852
|
+
See also: gdk_pixbuf_loader_write()</doc>
|
2853
|
+
<return-value transfer-ownership="none">
|
2854
|
+
<doc xml:space="preserve">%TRUE if the write was successful, or %FALSE if the loader
|
2855
|
+
cannot parse the buffer.</doc>
|
2856
|
+
<type name="gboolean" c:type="gboolean"/>
|
2857
|
+
</return-value>
|
2858
|
+
<parameters>
|
2859
|
+
<instance-parameter name="loader" transfer-ownership="none">
|
2860
|
+
<doc xml:space="preserve">A pixbuf loader.</doc>
|
2861
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2862
|
+
</instance-parameter>
|
2863
|
+
<parameter name="buffer" transfer-ownership="none">
|
2864
|
+
<doc xml:space="preserve">The image data as a #GBytes</doc>
|
2865
|
+
<type name="GLib.Bytes" c:type="GBytes*"/>
|
2866
|
+
</parameter>
|
2867
|
+
</parameters>
|
2868
|
+
</method>
|
2869
|
+
<field name="parent_instance">
|
2870
|
+
<type name="GObject.Object" c:type="GObject"/>
|
2871
|
+
</field>
|
2872
|
+
<field name="priv" readable="0" private="1">
|
2873
|
+
<type name="gpointer" c:type="gpointer"/>
|
2874
|
+
</field>
|
2875
|
+
<glib:signal name="area-prepared" when="last">
|
2876
|
+
<doc xml:space="preserve">This signal is emitted when the pixbuf loader has allocated the
|
2877
|
+
pixbuf in the desired size. After this signal is emitted,
|
2878
|
+
applications can call gdk_pixbuf_loader_get_pixbuf() to fetch
|
2879
|
+
the partially-loaded pixbuf.</doc>
|
2880
|
+
<return-value transfer-ownership="none">
|
2881
|
+
<type name="none" c:type="void"/>
|
2882
|
+
</return-value>
|
2883
|
+
</glib:signal>
|
2884
|
+
<glib:signal name="area-updated" when="last">
|
2885
|
+
<doc xml:space="preserve">This signal is emitted when a significant area of the image being
|
2886
|
+
loaded has been updated. Normally it means that a complete
|
2887
|
+
scanline has been read in, but it could be a different area as
|
2888
|
+
well. Applications can use this signal to know when to repaint
|
2889
|
+
areas of an image that is being loaded.</doc>
|
2890
|
+
<return-value transfer-ownership="none">
|
2891
|
+
<type name="none" c:type="void"/>
|
2892
|
+
</return-value>
|
2893
|
+
<parameters>
|
2894
|
+
<parameter name="x" transfer-ownership="none">
|
2895
|
+
<doc xml:space="preserve">X offset of upper-left corner of the updated area.</doc>
|
2896
|
+
<type name="gint" c:type="gint"/>
|
2897
|
+
</parameter>
|
2898
|
+
<parameter name="y" transfer-ownership="none">
|
2899
|
+
<doc xml:space="preserve">Y offset of upper-left corner of the updated area.</doc>
|
2900
|
+
<type name="gint" c:type="gint"/>
|
2901
|
+
</parameter>
|
2902
|
+
<parameter name="width" transfer-ownership="none">
|
2903
|
+
<doc xml:space="preserve">Width of updated area.</doc>
|
2904
|
+
<type name="gint" c:type="gint"/>
|
2905
|
+
</parameter>
|
2906
|
+
<parameter name="height" transfer-ownership="none">
|
2907
|
+
<doc xml:space="preserve">Height of updated area.</doc>
|
2908
|
+
<type name="gint" c:type="gint"/>
|
2909
|
+
</parameter>
|
2910
|
+
</parameters>
|
2911
|
+
</glib:signal>
|
2912
|
+
<glib:signal name="closed" when="last">
|
2913
|
+
<doc xml:space="preserve">This signal is emitted when gdk_pixbuf_loader_close() is called.
|
2914
|
+
It can be used by different parts of an application to receive
|
2915
|
+
notification when an image loader is closed by the code that
|
2916
|
+
drives it.</doc>
|
2917
|
+
<return-value transfer-ownership="none">
|
2918
|
+
<type name="none" c:type="void"/>
|
2919
|
+
</return-value>
|
2920
|
+
</glib:signal>
|
2921
|
+
<glib:signal name="size-prepared" when="last">
|
2922
|
+
<doc xml:space="preserve">This signal is emitted when the pixbuf loader has been fed the
|
2923
|
+
initial amount of data that is required to figure out the size
|
2924
|
+
of the image that it will create. Applications can call
|
2925
|
+
gdk_pixbuf_loader_set_size() in response to this signal to set
|
2926
|
+
the desired size to which the image should be scaled.</doc>
|
2927
|
+
<return-value transfer-ownership="none">
|
2928
|
+
<type name="none" c:type="void"/>
|
2929
|
+
</return-value>
|
2930
|
+
<parameters>
|
2931
|
+
<parameter name="width" transfer-ownership="none">
|
2932
|
+
<doc xml:space="preserve">the original width of the image</doc>
|
2933
|
+
<type name="gint" c:type="gint"/>
|
2934
|
+
</parameter>
|
2935
|
+
<parameter name="height" transfer-ownership="none">
|
2936
|
+
<doc xml:space="preserve">the original height of the image</doc>
|
2937
|
+
<type name="gint" c:type="gint"/>
|
2938
|
+
</parameter>
|
2939
|
+
</parameters>
|
2940
|
+
</glib:signal>
|
2941
|
+
</class>
|
2942
|
+
<record name="PixbufLoaderClass"
|
2943
|
+
c:type="GdkPixbufLoaderClass"
|
2944
|
+
glib:is-gtype-struct-for="PixbufLoader">
|
2945
|
+
<field name="parent_class">
|
2946
|
+
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
2947
|
+
</field>
|
2948
|
+
<field name="size_prepared">
|
2949
|
+
<callback name="size_prepared">
|
2950
|
+
<return-value transfer-ownership="none">
|
2951
|
+
<type name="none" c:type="void"/>
|
2952
|
+
</return-value>
|
2953
|
+
<parameters>
|
2954
|
+
<parameter name="loader" transfer-ownership="none">
|
2955
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2956
|
+
</parameter>
|
2957
|
+
<parameter name="width" transfer-ownership="none">
|
2958
|
+
<type name="gint" c:type="int"/>
|
2959
|
+
</parameter>
|
2960
|
+
<parameter name="height" transfer-ownership="none">
|
2961
|
+
<type name="gint" c:type="int"/>
|
2962
|
+
</parameter>
|
2963
|
+
</parameters>
|
2964
|
+
</callback>
|
2965
|
+
</field>
|
2966
|
+
<field name="area_prepared">
|
2967
|
+
<callback name="area_prepared">
|
2968
|
+
<return-value transfer-ownership="none">
|
2969
|
+
<type name="none" c:type="void"/>
|
2970
|
+
</return-value>
|
2971
|
+
<parameters>
|
2972
|
+
<parameter name="loader" transfer-ownership="none">
|
2973
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2974
|
+
</parameter>
|
2975
|
+
</parameters>
|
2976
|
+
</callback>
|
2977
|
+
</field>
|
2978
|
+
<field name="area_updated">
|
2979
|
+
<callback name="area_updated">
|
2980
|
+
<return-value transfer-ownership="none">
|
2981
|
+
<type name="none" c:type="void"/>
|
2982
|
+
</return-value>
|
2983
|
+
<parameters>
|
2984
|
+
<parameter name="loader" transfer-ownership="none">
|
2985
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
2986
|
+
</parameter>
|
2987
|
+
<parameter name="x" transfer-ownership="none">
|
2988
|
+
<type name="gint" c:type="int"/>
|
2989
|
+
</parameter>
|
2990
|
+
<parameter name="y" transfer-ownership="none">
|
2991
|
+
<type name="gint" c:type="int"/>
|
2992
|
+
</parameter>
|
2993
|
+
<parameter name="width" transfer-ownership="none">
|
2994
|
+
<type name="gint" c:type="int"/>
|
2995
|
+
</parameter>
|
2996
|
+
<parameter name="height" transfer-ownership="none">
|
2997
|
+
<type name="gint" c:type="int"/>
|
2998
|
+
</parameter>
|
2999
|
+
</parameters>
|
3000
|
+
</callback>
|
3001
|
+
</field>
|
3002
|
+
<field name="closed">
|
3003
|
+
<callback name="closed">
|
3004
|
+
<return-value transfer-ownership="none">
|
3005
|
+
<type name="none" c:type="void"/>
|
3006
|
+
</return-value>
|
3007
|
+
<parameters>
|
3008
|
+
<parameter name="loader" transfer-ownership="none">
|
3009
|
+
<type name="PixbufLoader" c:type="GdkPixbufLoader*"/>
|
3010
|
+
</parameter>
|
3011
|
+
</parameters>
|
3012
|
+
</callback>
|
3013
|
+
</field>
|
3014
|
+
</record>
|
3015
|
+
<enumeration name="PixbufRotation"
|
3016
|
+
glib:type-name="GdkPixbufRotation"
|
3017
|
+
glib:get-type="gdk_pixbuf_rotation_get_type"
|
3018
|
+
c:type="GdkPixbufRotation">
|
3019
|
+
<doc xml:space="preserve">The possible rotations which can be passed to gdk_pixbuf_rotate_simple().
|
3020
|
+
To make them easier to use, their numerical values are the actual degrees.</doc>
|
3021
|
+
<member name="none"
|
3022
|
+
value="0"
|
3023
|
+
c:identifier="GDK_PIXBUF_ROTATE_NONE"
|
3024
|
+
glib:nick="none">
|
3025
|
+
<doc xml:space="preserve">No rotation.</doc>
|
3026
|
+
</member>
|
3027
|
+
<member name="counterclockwise"
|
3028
|
+
value="90"
|
3029
|
+
c:identifier="GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE"
|
3030
|
+
glib:nick="counterclockwise">
|
3031
|
+
<doc xml:space="preserve">Rotate by 90 degrees.</doc>
|
3032
|
+
</member>
|
3033
|
+
<member name="upsidedown"
|
3034
|
+
value="180"
|
3035
|
+
c:identifier="GDK_PIXBUF_ROTATE_UPSIDEDOWN"
|
3036
|
+
glib:nick="upsidedown">
|
3037
|
+
<doc xml:space="preserve">Rotate by 180 degrees.</doc>
|
3038
|
+
</member>
|
3039
|
+
<member name="clockwise"
|
3040
|
+
value="270"
|
3041
|
+
c:identifier="GDK_PIXBUF_ROTATE_CLOCKWISE"
|
3042
|
+
glib:nick="clockwise">
|
3043
|
+
<doc xml:space="preserve">Rotate by 270 degrees.</doc>
|
3044
|
+
</member>
|
3045
|
+
</enumeration>
|
3046
|
+
<callback name="PixbufSaveFunc" c:type="GdkPixbufSaveFunc" version="2.4">
|
3047
|
+
<doc xml:space="preserve">Specifies the type of the function passed to
|
3048
|
+
gdk_pixbuf_save_to_callback(). It is called once for each block of
|
3049
|
+
bytes that is "written" by gdk_pixbuf_save_to_callback(). If
|
3050
|
+
successful it should return %TRUE. If an error occurs it should set
|
3051
|
+
@error and return %FALSE, in which case gdk_pixbuf_save_to_callback()
|
3052
|
+
will fail with the same error.</doc>
|
3053
|
+
<return-value transfer-ownership="none">
|
3054
|
+
<doc xml:space="preserve">%TRUE if successful, %FALSE (with @error set) if failed.</doc>
|
3055
|
+
<type name="gboolean" c:type="gboolean"/>
|
3056
|
+
</return-value>
|
3057
|
+
<parameters>
|
3058
|
+
<parameter name="buf" transfer-ownership="none">
|
3059
|
+
<doc xml:space="preserve">bytes to be written.</doc>
|
3060
|
+
<array length="1" zero-terminated="0" c:type="gchar*">
|
3061
|
+
<type name="guint8"/>
|
3062
|
+
</array>
|
3063
|
+
</parameter>
|
3064
|
+
<parameter name="count" transfer-ownership="none">
|
3065
|
+
<doc xml:space="preserve">number of bytes in @buf.</doc>
|
3066
|
+
<type name="gsize" c:type="gsize"/>
|
3067
|
+
</parameter>
|
3068
|
+
<parameter name="error"
|
3069
|
+
direction="out"
|
3070
|
+
caller-allocates="0"
|
3071
|
+
transfer-ownership="full">
|
3072
|
+
<doc xml:space="preserve">A location to return an error.</doc>
|
3073
|
+
<type name="GLib.Error" c:type="GError**"/>
|
3074
|
+
</parameter>
|
3075
|
+
<parameter name="data" transfer-ownership="none" closure="3">
|
3076
|
+
<doc xml:space="preserve">user data passed to gdk_pixbuf_save_to_callback().</doc>
|
3077
|
+
<type name="gpointer" c:type="gpointer"/>
|
3078
|
+
</parameter>
|
3079
|
+
</parameters>
|
3080
|
+
</callback>
|
3081
|
+
<class name="PixbufSimpleAnim"
|
3082
|
+
c:symbol-prefix="pixbuf_simple_anim"
|
3083
|
+
c:type="GdkPixbufSimpleAnim"
|
3084
|
+
parent="PixbufAnimation"
|
3085
|
+
glib:type-name="GdkPixbufSimpleAnim"
|
3086
|
+
glib:get-type="gdk_pixbuf_simple_anim_get_type"
|
3087
|
+
glib:type-struct="PixbufSimpleAnimClass">
|
3088
|
+
<doc xml:space="preserve">An opaque struct representing a simple animation.</doc>
|
3089
|
+
<constructor name="new"
|
3090
|
+
c:identifier="gdk_pixbuf_simple_anim_new"
|
3091
|
+
version="2.8">
|
3092
|
+
<doc xml:space="preserve">Creates a new, empty animation.</doc>
|
3093
|
+
<return-value transfer-ownership="full">
|
3094
|
+
<doc xml:space="preserve">a newly allocated #GdkPixbufSimpleAnim</doc>
|
3095
|
+
<type name="PixbufSimpleAnim" c:type="GdkPixbufSimpleAnim*"/>
|
3096
|
+
</return-value>
|
3097
|
+
<parameters>
|
3098
|
+
<parameter name="width" transfer-ownership="none">
|
3099
|
+
<doc xml:space="preserve">the width of the animation</doc>
|
3100
|
+
<type name="gint" c:type="gint"/>
|
3101
|
+
</parameter>
|
3102
|
+
<parameter name="height" transfer-ownership="none">
|
3103
|
+
<doc xml:space="preserve">the height of the animation</doc>
|
3104
|
+
<type name="gint" c:type="gint"/>
|
3105
|
+
</parameter>
|
3106
|
+
<parameter name="rate" transfer-ownership="none">
|
3107
|
+
<doc xml:space="preserve">the speed of the animation, in frames per second</doc>
|
3108
|
+
<type name="gfloat" c:type="gfloat"/>
|
3109
|
+
</parameter>
|
3110
|
+
</parameters>
|
3111
|
+
</constructor>
|
3112
|
+
<method name="add_frame"
|
3113
|
+
c:identifier="gdk_pixbuf_simple_anim_add_frame"
|
3114
|
+
version="2.8">
|
3115
|
+
<doc xml:space="preserve">Adds a new frame to @animation. The @pixbuf must
|
3116
|
+
have the dimensions specified when the animation
|
3117
|
+
was constructed.</doc>
|
3118
|
+
<return-value transfer-ownership="none">
|
3119
|
+
<type name="none" c:type="void"/>
|
3120
|
+
</return-value>
|
3121
|
+
<parameters>
|
3122
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
3123
|
+
<doc xml:space="preserve">a #GdkPixbufSimpleAnim</doc>
|
3124
|
+
<type name="PixbufSimpleAnim" c:type="GdkPixbufSimpleAnim*"/>
|
3125
|
+
</instance-parameter>
|
3126
|
+
<parameter name="pixbuf" transfer-ownership="none">
|
3127
|
+
<doc xml:space="preserve">the pixbuf to add</doc>
|
3128
|
+
<type name="Pixbuf" c:type="GdkPixbuf*"/>
|
3129
|
+
</parameter>
|
3130
|
+
</parameters>
|
3131
|
+
</method>
|
3132
|
+
<method name="get_loop"
|
3133
|
+
c:identifier="gdk_pixbuf_simple_anim_get_loop"
|
3134
|
+
version="2.18">
|
3135
|
+
<doc xml:space="preserve">Gets whether @animation should loop indefinitely when it reaches the end.</doc>
|
3136
|
+
<return-value transfer-ownership="none">
|
3137
|
+
<doc xml:space="preserve">%TRUE if the animation loops forever, %FALSE otherwise</doc>
|
3138
|
+
<type name="gboolean" c:type="gboolean"/>
|
3139
|
+
</return-value>
|
3140
|
+
<parameters>
|
3141
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
3142
|
+
<doc xml:space="preserve">a #GdkPixbufSimpleAnim</doc>
|
3143
|
+
<type name="PixbufSimpleAnim" c:type="GdkPixbufSimpleAnim*"/>
|
3144
|
+
</instance-parameter>
|
3145
|
+
</parameters>
|
3146
|
+
</method>
|
3147
|
+
<method name="set_loop"
|
3148
|
+
c:identifier="gdk_pixbuf_simple_anim_set_loop"
|
3149
|
+
version="2.18">
|
3150
|
+
<doc xml:space="preserve">Sets whether @animation should loop indefinitely when it reaches the end.</doc>
|
3151
|
+
<return-value transfer-ownership="none">
|
3152
|
+
<type name="none" c:type="void"/>
|
3153
|
+
</return-value>
|
3154
|
+
<parameters>
|
3155
|
+
<instance-parameter name="animation" transfer-ownership="none">
|
3156
|
+
<doc xml:space="preserve">a #GdkPixbufSimpleAnim</doc>
|
3157
|
+
<type name="PixbufSimpleAnim" c:type="GdkPixbufSimpleAnim*"/>
|
3158
|
+
</instance-parameter>
|
3159
|
+
<parameter name="loop" transfer-ownership="none">
|
3160
|
+
<doc xml:space="preserve">whether to loop the animation</doc>
|
3161
|
+
<type name="gboolean" c:type="gboolean"/>
|
3162
|
+
</parameter>
|
3163
|
+
</parameters>
|
3164
|
+
</method>
|
3165
|
+
<property name="loop"
|
3166
|
+
version="2.18"
|
3167
|
+
writable="1"
|
3168
|
+
transfer-ownership="none">
|
3169
|
+
<doc xml:space="preserve">Whether the animation should loop when it reaches the end.</doc>
|
3170
|
+
<type name="gboolean" c:type="gboolean"/>
|
3171
|
+
</property>
|
3172
|
+
</class>
|
3173
|
+
<record name="PixbufSimpleAnimClass"
|
3174
|
+
c:type="GdkPixbufSimpleAnimClass"
|
3175
|
+
disguised="1"
|
3176
|
+
glib:is-gtype-struct-for="PixbufSimpleAnim">
|
3177
|
+
</record>
|
3178
|
+
<class name="PixbufSimpleAnimIter"
|
3179
|
+
c:symbol-prefix="pixbuf_simple_anim_iter"
|
3180
|
+
parent="PixbufAnimationIter"
|
3181
|
+
glib:type-name="GdkPixbufSimpleAnimIter"
|
3182
|
+
glib:get-type="gdk_pixbuf_simple_anim_iter_get_type">
|
3183
|
+
</class>
|
3184
|
+
<record name="Pixdata" c:type="GdkPixdata">
|
3185
|
+
<doc xml:space="preserve">A #GdkPixdata contains pixbuf information in a form suitable for
|
3186
|
+
serialization and streaming.</doc>
|
3187
|
+
<field name="magic" writable="1">
|
3188
|
+
<doc xml:space="preserve">magic number. A valid #GdkPixdata structure must have
|
3189
|
+
#GDK_PIXBUF_MAGIC_NUMBER here.</doc>
|
3190
|
+
<type name="guint32" c:type="guint32"/>
|
3191
|
+
</field>
|
3192
|
+
<field name="length" writable="1">
|
3193
|
+
<doc xml:space="preserve">less than 1 to disable length checks, otherwise
|
3194
|
+
#GDK_PIXDATA_HEADER_LENGTH + length of @pixel_data.</doc>
|
3195
|
+
<type name="gint32" c:type="gint32"/>
|
3196
|
+
</field>
|
3197
|
+
<field name="pixdata_type" writable="1">
|
3198
|
+
<doc xml:space="preserve">information about colorspace, sample width and
|
3199
|
+
encoding, in a #GdkPixdataType.</doc>
|
3200
|
+
<type name="guint32" c:type="guint32"/>
|
3201
|
+
</field>
|
3202
|
+
<field name="rowstride" writable="1">
|
3203
|
+
<doc xml:space="preserve">Distance in bytes between rows.</doc>
|
3204
|
+
<type name="guint32" c:type="guint32"/>
|
3205
|
+
</field>
|
3206
|
+
<field name="width" writable="1">
|
3207
|
+
<doc xml:space="preserve">Width of the image in pixels.</doc>
|
3208
|
+
<type name="guint32" c:type="guint32"/>
|
3209
|
+
</field>
|
3210
|
+
<field name="height" writable="1">
|
3211
|
+
<doc xml:space="preserve">Height of the image in pixels.</doc>
|
3212
|
+
<type name="guint32" c:type="guint32"/>
|
3213
|
+
</field>
|
3214
|
+
<field name="pixel_data" writable="1">
|
3215
|
+
<doc xml:space="preserve">@width x @height pixels, encoded according to @pixdata_type
|
3216
|
+
and @rowstride.</doc>
|
3217
|
+
<array zero-terminated="0" c:type="guint8*">
|
3218
|
+
<type name="guint8"/>
|
3219
|
+
</array>
|
3220
|
+
</field>
|
3221
|
+
<method name="deserialize"
|
3222
|
+
c:identifier="gdk_pixdata_deserialize"
|
3223
|
+
throws="1">
|
3224
|
+
<doc xml:space="preserve">Deserializes (reconstruct) a #GdkPixdata structure from a byte stream.
|
3225
|
+
The byte stream consists of a straightforward writeout of the
|
3226
|
+
#GdkPixdata fields in network byte order, plus the @pixel_data
|
3227
|
+
bytes the structure points to.
|
3228
|
+
The @pixdata contents are reconstructed byte by byte and are checked
|
3229
|
+
for validity. This function may fail with %GDK_PIXBUF_ERROR_CORRUPT_IMAGE
|
3230
|
+
or %GDK_PIXBUF_ERROR_UNKNOWN_TYPE.</doc>
|
3231
|
+
<return-value transfer-ownership="none">
|
3232
|
+
<doc xml:space="preserve">Upon successful deserialization %TRUE is returned,
|
3233
|
+
%FALSE otherwise.</doc>
|
3234
|
+
<type name="gboolean" c:type="gboolean"/>
|
3235
|
+
</return-value>
|
3236
|
+
<parameters>
|
3237
|
+
<instance-parameter name="pixdata" transfer-ownership="none">
|
3238
|
+
<doc xml:space="preserve">a #GdkPixdata structure to be filled in.</doc>
|
3239
|
+
<type name="Pixdata" c:type="GdkPixdata*"/>
|
3240
|
+
</instance-parameter>
|
3241
|
+
<parameter name="stream_length" transfer-ownership="none">
|
3242
|
+
<doc xml:space="preserve">length of the stream used for deserialization.</doc>
|
3243
|
+
<type name="guint" c:type="guint"/>
|
3244
|
+
</parameter>
|
3245
|
+
<parameter name="stream" transfer-ownership="none">
|
3246
|
+
<doc xml:space="preserve">stream of bytes containing a
|
3247
|
+
serialized #GdkPixdata structure.</doc>
|
3248
|
+
<array length="0" zero-terminated="0" c:type="guint8*">
|
3249
|
+
<type name="guint8" c:type="guint8"/>
|
3250
|
+
</array>
|
3251
|
+
</parameter>
|
3252
|
+
</parameters>
|
3253
|
+
</method>
|
3254
|
+
<method name="from_pixbuf"
|
3255
|
+
c:identifier="gdk_pixdata_from_pixbuf"
|
3256
|
+
introspectable="0">
|
3257
|
+
<doc xml:space="preserve">Converts a #GdkPixbuf to a #GdkPixdata. If @use_rle is %TRUE, the
|
3258
|
+
pixel data is run-length encoded into newly-allocated memory and a
|
3259
|
+
pointer to that memory is returned.</doc>
|
3260
|
+
<return-value nullable="1">
|
3261
|
+
<doc xml:space="preserve">If @use_rle is %TRUE, a pointer to the
|
3262
|
+
newly-allocated memory for the run-length encoded pixel data,
|
3263
|
+
otherwise %NULL.</doc>
|
3264
|
+
<type name="gpointer" c:type="gpointer"/>
|
3265
|
+
</return-value>
|
3266
|
+
<parameters>
|
3267
|
+
<instance-parameter name="pixdata" transfer-ownership="none">
|
3268
|
+
<doc xml:space="preserve">a #GdkPixdata to fill.</doc>
|
3269
|
+
<type name="Pixdata" c:type="GdkPixdata*"/>
|
3270
|
+
</instance-parameter>
|
3271
|
+
<parameter name="pixbuf" transfer-ownership="none">
|
3272
|
+
<doc xml:space="preserve">the data to fill @pixdata with.</doc>
|
3273
|
+
<type name="Pixbuf" c:type="const GdkPixbuf*"/>
|
3274
|
+
</parameter>
|
3275
|
+
<parameter name="use_rle" transfer-ownership="none">
|
3276
|
+
<doc xml:space="preserve">whether to use run-length encoding for the pixel data.</doc>
|
3277
|
+
<type name="gboolean" c:type="gboolean"/>
|
3278
|
+
</parameter>
|
3279
|
+
</parameters>
|
3280
|
+
</method>
|
3281
|
+
<method name="serialize" c:identifier="gdk_pixdata_serialize">
|
3282
|
+
<doc xml:space="preserve">Serializes a #GdkPixdata structure into a byte stream.
|
3283
|
+
The byte stream consists of a straightforward writeout of the
|
3284
|
+
#GdkPixdata fields in network byte order, plus the @pixel_data
|
3285
|
+
bytes the structure points to.</doc>
|
3286
|
+
<return-value transfer-ownership="full">
|
3287
|
+
<doc xml:space="preserve">A
|
3288
|
+
newly-allocated string containing the serialized #GdkPixdata
|
3289
|
+
structure.</doc>
|
3290
|
+
<array length="0" zero-terminated="0" c:type="guint8*">
|
3291
|
+
<type name="guint8" c:type="guint8"/>
|
3292
|
+
</array>
|
3293
|
+
</return-value>
|
3294
|
+
<parameters>
|
3295
|
+
<instance-parameter name="pixdata" transfer-ownership="none">
|
3296
|
+
<doc xml:space="preserve">a valid #GdkPixdata structure to serialize.</doc>
|
3297
|
+
<type name="Pixdata" c:type="const GdkPixdata*"/>
|
3298
|
+
</instance-parameter>
|
3299
|
+
<parameter name="stream_length_p"
|
3300
|
+
direction="out"
|
3301
|
+
caller-allocates="0"
|
3302
|
+
transfer-ownership="full">
|
3303
|
+
<doc xml:space="preserve">location to store the resulting stream length in.</doc>
|
3304
|
+
<type name="guint" c:type="guint*"/>
|
3305
|
+
</parameter>
|
3306
|
+
</parameters>
|
3307
|
+
</method>
|
3308
|
+
<method name="to_csource" c:identifier="gdk_pixdata_to_csource">
|
3309
|
+
<doc xml:space="preserve">Generates C source code suitable for compiling images directly
|
3310
|
+
into programs.
|
3311
|
+
|
3312
|
+
gdk-pixbuf ships with a program called
|
3313
|
+
[gdk-pixbuf-csource][gdk-pixbuf-csource], which offers a command
|
3314
|
+
line interface to this function.</doc>
|
3315
|
+
<return-value transfer-ownership="full">
|
3316
|
+
<doc xml:space="preserve">a newly-allocated string containing the C source form
|
3317
|
+
of @pixdata.</doc>
|
3318
|
+
<type name="GLib.String" c:type="GString*"/>
|
3319
|
+
</return-value>
|
3320
|
+
<parameters>
|
3321
|
+
<instance-parameter name="pixdata" transfer-ownership="none">
|
3322
|
+
<doc xml:space="preserve">a #GdkPixdata to convert to C source.</doc>
|
3323
|
+
<type name="Pixdata" c:type="GdkPixdata*"/>
|
3324
|
+
</instance-parameter>
|
3325
|
+
<parameter name="name" transfer-ownership="none">
|
3326
|
+
<doc xml:space="preserve">used for naming generated data structures or macros.</doc>
|
3327
|
+
<type name="utf8" c:type="const gchar*"/>
|
3328
|
+
</parameter>
|
3329
|
+
<parameter name="dump_type" transfer-ownership="none">
|
3330
|
+
<doc xml:space="preserve">a #GdkPixdataDumpType determining the kind of C
|
3331
|
+
source to be generated.</doc>
|
3332
|
+
<type name="PixdataDumpType" c:type="GdkPixdataDumpType"/>
|
3333
|
+
</parameter>
|
3334
|
+
</parameters>
|
3335
|
+
</method>
|
3336
|
+
</record>
|
3337
|
+
<bitfield name="PixdataDumpType" c:type="GdkPixdataDumpType">
|
3338
|
+
<doc xml:space="preserve">An enumeration which is used by gdk_pixdata_to_csource() to
|
3339
|
+
determine the form of C source to be generated. The three values
|
3340
|
+
@GDK_PIXDATA_DUMP_PIXDATA_STREAM, @GDK_PIXDATA_DUMP_PIXDATA_STRUCT
|
3341
|
+
and @GDK_PIXDATA_DUMP_MACROS are mutually exclusive, as are
|
3342
|
+
@GDK_PIXBUF_DUMP_GTYPES and @GDK_PIXBUF_DUMP_CTYPES. The remaining
|
3343
|
+
elements are optional flags that can be freely added.</doc>
|
3344
|
+
<member name="pixdata_stream"
|
3345
|
+
value="0"
|
3346
|
+
c:identifier="GDK_PIXDATA_DUMP_PIXDATA_STREAM">
|
3347
|
+
<doc xml:space="preserve">Generate pixbuf data stream (a single
|
3348
|
+
string containing a serialized #GdkPixdata structure in network byte
|
3349
|
+
order).</doc>
|
3350
|
+
</member>
|
3351
|
+
<member name="pixdata_struct"
|
3352
|
+
value="1"
|
3353
|
+
c:identifier="GDK_PIXDATA_DUMP_PIXDATA_STRUCT">
|
3354
|
+
<doc xml:space="preserve">Generate #GdkPixdata structure (needs
|
3355
|
+
the #GdkPixdata structure definition from gdk-pixdata.h).</doc>
|
3356
|
+
</member>
|
3357
|
+
<member name="macros" value="2" c:identifier="GDK_PIXDATA_DUMP_MACROS">
|
3358
|
+
<doc xml:space="preserve">Generate <function>*_ROWSTRIDE</function>,
|
3359
|
+
<function>*_WIDTH</function>, <function>*_HEIGHT</function>,
|
3360
|
+
<function>*_BYTES_PER_PIXEL</function> and
|
3361
|
+
<function>*_RLE_PIXEL_DATA</function> or <function>*_PIXEL_DATA</function>
|
3362
|
+
macro definitions for the image.</doc>
|
3363
|
+
</member>
|
3364
|
+
<member name="gtypes" value="0" c:identifier="GDK_PIXDATA_DUMP_GTYPES">
|
3365
|
+
<doc xml:space="preserve">Generate GLib data types instead of
|
3366
|
+
standard C data types.</doc>
|
3367
|
+
</member>
|
3368
|
+
<member name="ctypes" value="256" c:identifier="GDK_PIXDATA_DUMP_CTYPES">
|
3369
|
+
<doc xml:space="preserve">Generate standard C data types instead of
|
3370
|
+
GLib data types.</doc>
|
3371
|
+
</member>
|
3372
|
+
<member name="static" value="512" c:identifier="GDK_PIXDATA_DUMP_STATIC">
|
3373
|
+
<doc xml:space="preserve">Generate static symbols.</doc>
|
3374
|
+
</member>
|
3375
|
+
<member name="const" value="1024" c:identifier="GDK_PIXDATA_DUMP_CONST">
|
3376
|
+
<doc xml:space="preserve">Generate const symbols.</doc>
|
3377
|
+
</member>
|
3378
|
+
<member name="rle_decoder"
|
3379
|
+
value="65536"
|
3380
|
+
c:identifier="GDK_PIXDATA_DUMP_RLE_DECODER">
|
3381
|
+
<doc xml:space="preserve">Provide a <function>*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)</function>
|
3382
|
+
macro definition to decode run-length encoded image data.</doc>
|
3383
|
+
</member>
|
3384
|
+
</bitfield>
|
3385
|
+
<bitfield name="PixdataType" c:type="GdkPixdataType">
|
3386
|
+
<doc xml:space="preserve">An enumeration containing three sets of flags for a #GdkPixdata struct:
|
3387
|
+
one for the used colorspace, one for the width of the samples and one
|
3388
|
+
for the encoding of the pixel data.</doc>
|
3389
|
+
<member name="color_type_rgb"
|
3390
|
+
value="1"
|
3391
|
+
c:identifier="GDK_PIXDATA_COLOR_TYPE_RGB">
|
3392
|
+
<doc xml:space="preserve">each pixel has red, green and blue samples.</doc>
|
3393
|
+
</member>
|
3394
|
+
<member name="color_type_rgba"
|
3395
|
+
value="2"
|
3396
|
+
c:identifier="GDK_PIXDATA_COLOR_TYPE_RGBA">
|
3397
|
+
<doc xml:space="preserve">each pixel has red, green and blue samples
|
3398
|
+
and an alpha value.</doc>
|
3399
|
+
</member>
|
3400
|
+
<member name="color_type_mask"
|
3401
|
+
value="255"
|
3402
|
+
c:identifier="GDK_PIXDATA_COLOR_TYPE_MASK">
|
3403
|
+
<doc xml:space="preserve">mask for the colortype flags of the enum.</doc>
|
3404
|
+
</member>
|
3405
|
+
<member name="sample_width_8"
|
3406
|
+
value="65536"
|
3407
|
+
c:identifier="GDK_PIXDATA_SAMPLE_WIDTH_8">
|
3408
|
+
<doc xml:space="preserve">each sample has 8 bits.</doc>
|
3409
|
+
</member>
|
3410
|
+
<member name="sample_width_mask"
|
3411
|
+
value="983040"
|
3412
|
+
c:identifier="GDK_PIXDATA_SAMPLE_WIDTH_MASK">
|
3413
|
+
<doc xml:space="preserve">mask for the sample width flags of the enum.</doc>
|
3414
|
+
</member>
|
3415
|
+
<member name="encoding_raw"
|
3416
|
+
value="16777216"
|
3417
|
+
c:identifier="GDK_PIXDATA_ENCODING_RAW">
|
3418
|
+
<doc xml:space="preserve">the pixel data is in raw form.</doc>
|
3419
|
+
</member>
|
3420
|
+
<member name="encoding_rle"
|
3421
|
+
value="33554432"
|
3422
|
+
c:identifier="GDK_PIXDATA_ENCODING_RLE">
|
3423
|
+
<doc xml:space="preserve">the pixel data is run-length encoded. Runs may
|
3424
|
+
be up to 127 bytes long; their length is stored in a single byte
|
3425
|
+
preceding the pixel data for the run. If a run is constant, its length
|
3426
|
+
byte has the high bit set and the pixel data consists of a single pixel
|
3427
|
+
which must be repeated.</doc>
|
3428
|
+
</member>
|
3429
|
+
<member name="encoding_mask"
|
3430
|
+
value="251658240"
|
3431
|
+
c:identifier="GDK_PIXDATA_ENCODING_MASK">
|
3432
|
+
<doc xml:space="preserve">mask for the encoding flags of the enum.</doc>
|
3433
|
+
</member>
|
3434
|
+
</bitfield>
|
3435
|
+
<function name="pixbuf_error_quark"
|
3436
|
+
c:identifier="gdk_pixbuf_error_quark"
|
3437
|
+
moved-to="PixbufError.quark">
|
3438
|
+
<return-value transfer-ownership="none">
|
3439
|
+
<type name="GLib.Quark" c:type="GQuark"/>
|
3440
|
+
</return-value>
|
3441
|
+
</function>
|
3442
|
+
</namespace>
|
3443
|
+
</repository>
|