gdk_pixbuf2 1.2.6-x86-mingw32 → 2.0.0-x86-mingw32

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