gdk_pixbuf2 3.0.8-x86-mingw32 → 3.0.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/gdk_pixbuf2.rb +11 -69
- data/lib/gdk_pixbuf2/deprecated.rb +160 -0
- data/lib/gdk_pixbuf2/loader.rb +51 -0
- data/lib/gdk_pixbuf2/pixbuf-loader.rb +24 -0
- data/lib/gdk_pixbuf2/pixbuf.rb +282 -0
- data/lib/gdk_pixbuf2/version.rb +33 -0
- data/sample/anim.rb +2 -2
- data/sample/composite.rb +41 -11
- data/sample/flip.rb +2 -2
- data/sample/format.rb +2 -4
- data/sample/loader.rb +3 -3
- data/sample/rotate.rb +4 -4
- data/sample/save.rb +3 -3
- data/sample/scale.rb +14 -6
- data/sample/simpleanim.rb +10 -4
- data/sample/utils.rb +7 -4
- data/sample/xpm.rb +9 -9
- data/test/fixture/floppybuddy.gif +0 -0
- data/test/fixture/gnome-logo-icon.png +0 -0
- data/test/fixture/image.gresource +0 -0
- data/test/fixture/image.gresource.xml +6 -0
- data/test/gdk_pixbuf2-test-utils.rb +11 -0
- data/test/run-test.rb +6 -3
- data/test/test-animation.rb +30 -0
- data/test/test-loader.rb +31 -0
- data/test/test-pixbuf.rb +334 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +59 -59
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +89 -89
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +85 -85
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +46 -46
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +13 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +52 -52
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +4 -4
- metadata +17 -25
- data/README +0 -29
- data/ext/gdk_pixbuf2/depend +0 -11
- data/ext/gdk_pixbuf2/extconf.rb +0 -68
- data/ext/gdk_pixbuf2/gdk_pixbuf2.def +0 -2
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +0 -179
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +0 -164
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +0 -737
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +0 -41
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +0 -42
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +0 -35
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +0 -93
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +0 -71
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +0 -53
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +0 -213
- data/extconf.rb +0 -49
- data/lib/2.2/gdk_pixbuf2.so +0 -0
- data/lib/2.3/gdk_pixbuf2.so +0 -0
- data/sample/inline.rb +0 -37
- data/sample/pixdata.rb +0 -39
- data/test/test-version.rb +0 -47
@@ -112,7 +112,7 @@ the destroy notification function that will be called when the
|
|
112
112
|
data buffer needs to be freed; this will happen when a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
|
113
113
|
is finalized by the reference counting functions If you have a
|
114
114
|
chunk of static data compiled into your application, you can pass
|
115
|
-
in <a href="
|
115
|
+
in <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> as the destroy notification function so that the data
|
116
116
|
will not be freed.</p>
|
117
117
|
<p>The <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new" title="gdk_pixbuf_new ()"><code class="function">gdk_pixbuf_new()</code></a> function can be used as a convenience to
|
118
118
|
create a pixbuf with an empty buffer. This is equivalent to
|
@@ -123,7 +123,7 @@ with an efficient algorithm.</p>
|
|
123
123
|
<p>As a special case, you can use the <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-xpm-data" title="gdk_pixbuf_new_from_xpm_data ()"><code class="function">gdk_pixbuf_new_from_xpm_data()</code></a>
|
124
124
|
function to create a pixbuf from inline XPM image data.</p>
|
125
125
|
<p>You can also copy an existing pixbuf with the <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-copy" title="gdk_pixbuf_copy ()"><code class="function">gdk_pixbuf_copy()</code></a>
|
126
|
-
function. This is not the same as just doing a <a href="
|
126
|
+
function. This is not the same as just doing a <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>
|
127
127
|
on the old pixbuf; the copy function will actually duplicate the
|
128
128
|
pixel data in memory and create a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure for it.</p>
|
129
129
|
</div>
|
@@ -133,7 +133,7 @@ pixel data in memory and create a new <a class="link" href="gdk-pixbuf-The-GdkPi
|
|
133
133
|
<a name="gdk-pixbuf-new"></a><h3>gdk_pixbuf_new ()</h3>
|
134
134
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
135
135
|
gdk_pixbuf_new (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> colorspace</code></em>,
|
136
|
-
<em class="parameter"><code><a href="
|
136
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
|
137
137
|
<em class="parameter"><code><span class="type">int</span> bits_per_sample</code></em>,
|
138
138
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
139
139
|
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
@@ -180,23 +180,23 @@ you will have to fill it completely yourself.</p>
|
|
180
180
|
<div class="refsect3">
|
181
181
|
<a name="gdk-pixbuf-new.returns"></a><h4>Returns</h4>
|
182
182
|
<p> A newly-created <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> with a reference count of 1, or
|
183
|
-
<a href="
|
183
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be allocated for the image buffer.</p>
|
184
184
|
</div>
|
185
185
|
</div>
|
186
186
|
<hr>
|
187
187
|
<div class="refsect2">
|
188
188
|
<a name="gdk-pixbuf-new-from-bytes"></a><h3>gdk_pixbuf_new_from_bytes ()</h3>
|
189
189
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
190
|
-
gdk_pixbuf_new_from_bytes (<em class="parameter"><code><a href="
|
190
|
+
gdk_pixbuf_new_from_bytes (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *data</code></em>,
|
191
191
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> colorspace</code></em>,
|
192
|
-
<em class="parameter"><code><a href="
|
192
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
|
193
193
|
<em class="parameter"><code><span class="type">int</span> bits_per_sample</code></em>,
|
194
194
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
195
195
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
196
196
|
<em class="parameter"><code><span class="type">int</span> rowstride</code></em>);</pre>
|
197
197
|
<p>Creates a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> out of in-memory readonly image data.
|
198
198
|
Currently only RGB images with 8 bits per sample are supported.
|
199
|
-
This is the <a href="
|
199
|
+
This is the <a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> variant of <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-data" title="gdk_pixbuf_new_from_data ()"><code class="function">gdk_pixbuf_new_from_data()</code></a>.</p>
|
200
200
|
<div class="refsect3">
|
201
201
|
<a name="gdk-pixbuf-new-from-bytes.parameters"></a><h4>Parameters</h4>
|
202
202
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -208,7 +208,7 @@ This is the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gt
|
|
208
208
|
<tbody>
|
209
209
|
<tr>
|
210
210
|
<td class="parameter_name"><p>data</p></td>
|
211
|
-
<td class="parameter_description"><p>Image data in 8-bit/sample packed format inside a <a href="
|
211
|
+
<td class="parameter_description"><p>Image data in 8-bit/sample packed format inside a <a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a></p></td>
|
212
212
|
<td class="parameter_annotations"> </td>
|
213
213
|
</tr>
|
214
214
|
<tr>
|
@@ -255,15 +255,15 @@ This is the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gt
|
|
255
255
|
<div class="refsect2">
|
256
256
|
<a name="gdk-pixbuf-new-from-data"></a><h3>gdk_pixbuf_new_from_data ()</h3>
|
257
257
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
258
|
-
gdk_pixbuf_new_from_data (<em class="parameter"><code>const <a href="
|
258
|
+
gdk_pixbuf_new_from_data (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *data</code></em>,
|
259
259
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> colorspace</code></em>,
|
260
|
-
<em class="parameter"><code><a href="
|
260
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
|
261
261
|
<em class="parameter"><code><span class="type">int</span> bits_per_sample</code></em>,
|
262
262
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
263
263
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
264
264
|
<em class="parameter"><code><span class="type">int</span> rowstride</code></em>,
|
265
265
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html#GdkPixbufDestroyNotify" title="GdkPixbufDestroyNotify ()"><span class="type">GdkPixbufDestroyNotify</span></a> destroy_fn</code></em>,
|
266
|
-
<em class="parameter"><code><a href="
|
266
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> destroy_fn_data</code></em>);</pre>
|
267
267
|
<p>Creates a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> out of in-memory image data. Currently only RGB
|
268
268
|
images with 8 bits per sample are supported.</p>
|
269
269
|
<p>Since you are providing a pre-allocated pixel buffer, you must also
|
@@ -319,7 +319,7 @@ it is its responsibility to free the pixel array.</p>
|
|
319
319
|
<tr>
|
320
320
|
<td class="parameter_name"><p>destroy_fn</p></td>
|
321
321
|
<td class="parameter_description"><p> Function used to free the data when the pixbuf's reference count
|
322
|
-
drops to zero, or <a href="
|
322
|
+
drops to zero, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the data should not be freed. </p></td>
|
323
323
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
324
324
|
</tr>
|
325
325
|
<tr>
|
@@ -367,13 +367,13 @@ the result of including an XPM file into a program's C source.</p>
|
|
367
367
|
<div class="refsect2">
|
368
368
|
<a name="gdk-pixbuf-new-from-inline"></a><h3>gdk_pixbuf_new_from_inline ()</h3>
|
369
369
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
370
|
-
gdk_pixbuf_new_from_inline (<em class="parameter"><code><a href="
|
371
|
-
<em class="parameter"><code>const <a href="
|
372
|
-
<em class="parameter"><code><a href="
|
373
|
-
<em class="parameter"><code><a href="
|
370
|
+
gdk_pixbuf_new_from_inline (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> data_length</code></em>,
|
371
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
|
372
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> copy_pixels</code></em>,
|
373
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
374
374
|
<div class="warning">
|
375
375
|
<p><code class="literal">gdk_pixbuf_new_from_inline</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
376
|
-
<p>Use <a href="
|
376
|
+
<p>Use <a href="https://developer.gnome.org/gio/unstable/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
377
377
|
</div>
|
378
378
|
<p>Create a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> from a flat representation that is suitable for
|
379
379
|
storing as inline data in a program. This is useful if you want to
|
@@ -397,10 +397,10 @@ In almost all cases, you should pass the <code class="literal">--raw</code> opti
|
|
397
397
|
<p></p>
|
398
398
|
<p>For the typical case where the inline pixbuf is read-only static data,
|
399
399
|
you don't need to copy the pixel data unless you intend to write to
|
400
|
-
it, so you can pass <a href="
|
400
|
+
it, so you can pass <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for <em class="parameter"><code>copy_pixels</code></em>
|
401
401
|
. (If you pass <code class="literal">--rle</code> to
|
402
402
|
<code class="literal">gdk-pixbuf-csource</code>, a copy will be made even if <em class="parameter"><code>copy_pixels</code></em>
|
403
|
-
is <a href="
|
403
|
+
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>,
|
404
404
|
so using this option is generally a bad idea.)</p>
|
405
405
|
<p>If you create a pixbuf from const inline data compiled into your
|
406
406
|
program, it's probably safe to ignore errors and disable length checks,
|
@@ -410,7 +410,7 @@ since things will always succeed:</p>
|
|
410
410
|
<tbody>
|
411
411
|
<tr>
|
412
412
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
413
|
-
<td class="listing_code"><pre class="programlisting"><span class="normal">pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-inline">gdk_pixbuf_new_from_inline</a></span><span class="normal"> </span><span class="symbol">(-</span><span class="number">1</span><span class="symbol">,</span><span class="normal"> myimage_inline</span><span class="symbol">,</span><span class="normal"> <a href="
|
413
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-inline">gdk_pixbuf_new_from_inline</a></span><span class="normal"> </span><span class="symbol">(-</span><span class="number">1</span><span class="symbol">,</span><span class="normal"> myimage_inline</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
414
414
|
</tr>
|
415
415
|
</tbody>
|
416
416
|
</table>
|
@@ -451,7 +451,7 @@ for the resulting pixbuf</p></td>
|
|
451
451
|
</tr>
|
452
452
|
<tr>
|
453
453
|
<td class="parameter_name"><p>error</p></td>
|
454
|
-
<td class="parameter_description"><p><a href="
|
454
|
+
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> return location, may be <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors</p></td>
|
455
455
|
<td class="parameter_annotations"> </td>
|
456
456
|
</tr>
|
457
457
|
</tbody>
|
@@ -460,7 +460,7 @@ for the resulting pixbuf</p></td>
|
|
460
460
|
<div class="refsect3">
|
461
461
|
<a name="gdk-pixbuf-new-from-inline.returns"></a><h4>Returns</h4>
|
462
462
|
<p> A newly-created <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure with a reference,
|
463
|
-
count of 1, or <a href="
|
463
|
+
count of 1, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred.</p>
|
464
464
|
</div>
|
465
465
|
</div>
|
466
466
|
<hr>
|
@@ -555,7 +555,7 @@ gdk_pixbuf_copy (<em class="parameter"><code>const <a class="link" href="gdk-pix
|
|
555
555
|
</div>
|
556
556
|
<div class="refsect3">
|
557
557
|
<a name="gdk-pixbuf-copy.returns"></a><h4>Returns</h4>
|
558
|
-
<p> A newly-created pixbuf with a reference count of 1, or <a href="
|
558
|
+
<p> A newly-created pixbuf with a reference count of 1, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
|
559
559
|
not enough memory could be allocated. </p>
|
560
560
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
561
561
|
</div>
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<tbody>
|
42
42
|
<tr>
|
43
43
|
<td class="function_type">
|
44
|
-
<a href="
|
44
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
|
45
45
|
</td>
|
46
46
|
<td class="function_name">
|
47
47
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-from-pixbuf" title="gdk_pixdata_from_pixbuf ()">gdk_pixdata_from_pixbuf</a> <span class="c_punctuation">()</span>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
</tr>
|
58
58
|
<tr>
|
59
59
|
<td class="function_type">
|
60
|
-
<a href="
|
60
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
61
61
|
</td>
|
62
62
|
<td class="function_name">
|
63
63
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-serialize" title="gdk_pixdata_serialize ()">gdk_pixdata_serialize</a> <span class="c_punctuation">()</span>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</tr>
|
66
66
|
<tr>
|
67
67
|
<td class="function_type">
|
68
|
-
<a href="
|
68
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
69
69
|
</td>
|
70
70
|
<td class="function_name">
|
71
71
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-deserialize" title="gdk_pixdata_deserialize ()">gdk_pixdata_deserialize</a> <span class="c_punctuation">()</span>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
</tr>
|
74
74
|
<tr>
|
75
75
|
<td class="function_type">
|
76
|
-
<a href="
|
76
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> *
|
77
77
|
</td>
|
78
78
|
<td class="function_name">
|
79
79
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-to-csource" title="gdk_pixdata_to_csource ()">gdk_pixdata_to_csource</a> <span class="c_punctuation">()</span>
|
@@ -126,23 +126,23 @@ GdkPixBuf includes a utility named gdk-pixbuf-csource, which
|
|
126
126
|
can be used to convert image files into <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures suitable
|
127
127
|
for inclusion in C sources. To convert the <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures back
|
128
128
|
into <a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbufs</span></a>, use gdk_pixbuf_from_pixdata.</p>
|
129
|
-
<p><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> should not be used any more. <a href="
|
129
|
+
<p><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> should not be used any more. <a href="https://developer.gnome.org/gio/unstable/GResource.html#GResource-struct"><span class="type">GResource</span></a> should be used to save
|
130
130
|
the original compressed images inside the program's binary.</p>
|
131
131
|
</div>
|
132
132
|
<div class="refsect1">
|
133
133
|
<a name="gdk-pixbuf-Inline-data.functions_details"></a><h2>Functions</h2>
|
134
134
|
<div class="refsect2">
|
135
135
|
<a name="gdk-pixdata-from-pixbuf"></a><h3>gdk_pixdata_from_pixbuf ()</h3>
|
136
|
-
<pre class="programlisting"><a href="
|
136
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
|
137
137
|
gdk_pixdata_from_pixbuf (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
138
138
|
<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
139
|
-
<em class="parameter"><code><a href="
|
139
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_rle</code></em>);</pre>
|
140
140
|
<div class="warning">
|
141
141
|
<p><code class="literal">gdk_pixdata_from_pixbuf</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
142
|
-
<p>Use <a href="
|
142
|
+
<p>Use <a href="https://developer.gnome.org/gio/unstable/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
143
143
|
</div>
|
144
144
|
<p>Converts a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> to a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>. If <em class="parameter"><code>use_rle</code></em>
|
145
|
-
is <a href="
|
145
|
+
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the
|
146
146
|
pixel data is run-length encoded into newly-allocated memory and a
|
147
147
|
pointer to that memory is returned.</p>
|
148
148
|
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
|
@@ -177,9 +177,9 @@ with.</p></td>
|
|
177
177
|
<div class="refsect3">
|
178
178
|
<a name="gdk-pixdata-from-pixbuf.returns"></a><h4>Returns</h4>
|
179
179
|
<p> If <em class="parameter"><code>use_rle</code></em>
|
180
|
-
is <a href="
|
180
|
+
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a pointer to the
|
181
181
|
newly-allocated memory for the run-length encoded pixel data,
|
182
|
-
otherwise <a href="
|
182
|
+
otherwise <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
183
183
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
184
184
|
</div>
|
185
185
|
</div>
|
@@ -188,14 +188,14 @@ otherwise <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-
|
|
188
188
|
<a name="gdk-pixbuf-from-pixdata"></a><h3>gdk_pixbuf_from_pixdata ()</h3>
|
189
189
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
190
190
|
gdk_pixbuf_from_pixdata (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
191
|
-
<em class="parameter"><code><a href="
|
192
|
-
<em class="parameter"><code><a href="
|
191
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> copy_pixels</code></em>,
|
192
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
193
193
|
<div class="warning">
|
194
194
|
<p><code class="literal">gdk_pixbuf_from_pixdata</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
195
|
-
<p>Use <a href="
|
195
|
+
<p>Use <a href="https://developer.gnome.org/gio/unstable/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
196
196
|
</div>
|
197
197
|
<p>Converts a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. If <em class="parameter"><code>copy_pixels</code></em>
|
198
|
-
is <a href="
|
198
|
+
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> or
|
199
199
|
if the pixel data is run-length-encoded, the pixel data is copied into
|
200
200
|
newly-allocated memory; otherwise it is reused.</p>
|
201
201
|
<div class="refsect3">
|
@@ -235,12 +235,12 @@ pixel data is always copied.</p></td>
|
|
235
235
|
<hr>
|
236
236
|
<div class="refsect2">
|
237
237
|
<a name="gdk-pixdata-serialize"></a><h3>gdk_pixdata_serialize ()</h3>
|
238
|
-
<pre class="programlisting"><a href="
|
238
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
239
239
|
gdk_pixdata_serialize (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
240
|
-
<em class="parameter"><code><a href="
|
240
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *stream_length_p</code></em>);</pre>
|
241
241
|
<div class="warning">
|
242
242
|
<p><code class="literal">gdk_pixdata_serialize</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
243
|
-
<p>Use <a href="
|
243
|
+
<p>Use <a href="https://developer.gnome.org/gio/unstable/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
244
244
|
</div>
|
245
245
|
<p>Serializes a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure into a byte stream.
|
246
246
|
The byte stream consists of a straightforward writeout of the
|
@@ -280,14 +280,14 @@ structure. </p>
|
|
280
280
|
<hr>
|
281
281
|
<div class="refsect2">
|
282
282
|
<a name="gdk-pixdata-deserialize"></a><h3>gdk_pixdata_deserialize ()</h3>
|
283
|
-
<pre class="programlisting"><a href="
|
283
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
284
284
|
gdk_pixdata_deserialize (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
285
|
-
<em class="parameter"><code><a href="
|
286
|
-
<em class="parameter"><code>const <a href="
|
287
|
-
<em class="parameter"><code><a href="
|
285
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> stream_length</code></em>,
|
286
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *stream</code></em>,
|
287
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
288
288
|
<div class="warning">
|
289
289
|
<p><code class="literal">gdk_pixdata_deserialize</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
290
|
-
<p>Use <a href="
|
290
|
+
<p>Use <a href="https://developer.gnome.org/gio/unstable/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
291
291
|
</div>
|
292
292
|
<p>Deserializes (reconstruct) a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure from a byte stream.
|
293
293
|
The byte stream consists of a straightforward writeout of the
|
@@ -325,7 +325,7 @@ serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="
|
|
325
325
|
</tr>
|
326
326
|
<tr>
|
327
327
|
<td class="parameter_name"><p>error</p></td>
|
328
|
-
<td class="parameter_description"><p><a href="
|
328
|
+
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to indicate failures (maybe <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors).</p></td>
|
329
329
|
<td class="parameter_annotations"> </td>
|
330
330
|
</tr>
|
331
331
|
</tbody>
|
@@ -333,20 +333,20 @@ serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="
|
|
333
333
|
</div>
|
334
334
|
<div class="refsect3">
|
335
335
|
<a name="gdk-pixdata-deserialize.returns"></a><h4>Returns</h4>
|
336
|
-
<p> Upon successful deserialization <a href="
|
337
|
-
<a href="
|
336
|
+
<p> Upon successful deserialization <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned,
|
337
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
338
338
|
</div>
|
339
339
|
</div>
|
340
340
|
<hr>
|
341
341
|
<div class="refsect2">
|
342
342
|
<a name="gdk-pixdata-to-csource"></a><h3>gdk_pixdata_to_csource ()</h3>
|
343
|
-
<pre class="programlisting"><a href="
|
343
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> *
|
344
344
|
gdk_pixdata_to_csource (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
345
|
-
<em class="parameter"><code>const <a href="
|
345
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
|
346
346
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType"><span class="type">GdkPixdataDumpType</span></a> dump_type</code></em>);</pre>
|
347
347
|
<div class="warning">
|
348
348
|
<p><code class="literal">gdk_pixdata_to_csource</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
349
|
-
<p>Use <a href="
|
349
|
+
<p>Use <a href="https://developer.gnome.org/gio/unstable/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
350
350
|
</div>
|
351
351
|
<p>Generates C source code suitable for compiling images directly
|
352
352
|
into programs. </p>
|
@@ -418,41 +418,41 @@ serialization and streaming.</p>
|
|
418
418
|
</colgroup>
|
419
419
|
<tbody>
|
420
420
|
<tr>
|
421
|
-
<td class="struct_member_name"><p><a href="
|
421
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.magic"></a>magic</code></em>;</p></td>
|
422
422
|
<td class="struct_member_description"><p>magic number. A valid <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure must have
|
423
423
|
<a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXBUF-MAGIC-NUMBER:CAPS" title="GDK_PIXBUF_MAGIC_NUMBER"><span class="type">GDK_PIXBUF_MAGIC_NUMBER</span></a> here.</p></td>
|
424
424
|
<td class="struct_member_annotations"> </td>
|
425
425
|
</tr>
|
426
426
|
<tr>
|
427
|
-
<td class="struct_member_name"><p><a href="
|
427
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="GdkPixdata.length"></a>length</code></em>;</p></td>
|
428
428
|
<td class="struct_member_description"><p>less than 1 to disable length checks, otherwise
|
429
429
|
<a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXDATA-HEADER-LENGTH:CAPS" title="GDK_PIXDATA_HEADER_LENGTH"><span class="type">GDK_PIXDATA_HEADER_LENGTH</span></a> + length of <em class="parameter"><code>pixel_data</code></em>
|
430
430
|
. </p></td>
|
431
431
|
<td class="struct_member_annotations"> </td>
|
432
432
|
</tr>
|
433
433
|
<tr>
|
434
|
-
<td class="struct_member_name"><p><a href="
|
434
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.pixdata-type"></a>pixdata_type</code></em>;</p></td>
|
435
435
|
<td class="struct_member_description"><p>information about colorspace, sample width and
|
436
436
|
encoding, in a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataType" title="enum GdkPixdataType"><span class="type">GdkPixdataType</span></a>. </p></td>
|
437
437
|
<td class="struct_member_annotations"> </td>
|
438
438
|
</tr>
|
439
439
|
<tr>
|
440
|
-
<td class="struct_member_name"><p><a href="
|
440
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.rowstride"></a>rowstride</code></em>;</p></td>
|
441
441
|
<td class="struct_member_description"><p>Distance in bytes between rows.</p></td>
|
442
442
|
<td class="struct_member_annotations"> </td>
|
443
443
|
</tr>
|
444
444
|
<tr>
|
445
|
-
<td class="struct_member_name"><p><a href="
|
445
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.width"></a>width</code></em>;</p></td>
|
446
446
|
<td class="struct_member_description"><p>Width of the image in pixels.</p></td>
|
447
447
|
<td class="struct_member_annotations"> </td>
|
448
448
|
</tr>
|
449
449
|
<tr>
|
450
|
-
<td class="struct_member_name"><p><a href="
|
450
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.height"></a>height</code></em>;</p></td>
|
451
451
|
<td class="struct_member_description"><p>Height of the image in pixels.</p></td>
|
452
452
|
<td class="struct_member_annotations"> </td>
|
453
453
|
</tr>
|
454
454
|
<tr>
|
455
|
-
<td class="struct_member_name"><p><a href="
|
455
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *<em class="structfield"><code><a name="GdkPixdata.pixel-data"></a>pixel_data</code></em>;</p></td>
|
456
456
|
<td class="struct_member_description"><p> <em class="parameter"><code>width</code></em>
|
457
457
|
x <em class="parameter"><code>height</code></em>
|
458
458
|
pixels, encoded according to <em class="parameter"><code>pixdata_type</code></em>
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<tbody>
|
42
42
|
<tr>
|
43
43
|
<td class="function_type">
|
44
|
-
<a href="
|
44
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
|
45
45
|
</td>
|
46
46
|
<td class="function_name">
|
47
47
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-get-formats" title="gdk_pixbuf_get_formats ()">gdk_pixbuf_get_formats</a> <span class="c_punctuation">()</span>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</tr>
|
66
66
|
<tr>
|
67
67
|
<td class="function_type">
|
68
|
-
<a href="
|
68
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
69
69
|
</td>
|
70
70
|
<td class="function_name">
|
71
71
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-get-name" title="gdk_pixbuf_format_get_name ()">gdk_pixbuf_format_get_name</a> <span class="c_punctuation">()</span>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
</tr>
|
74
74
|
<tr>
|
75
75
|
<td class="function_type">
|
76
|
-
<a href="
|
76
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
77
77
|
</td>
|
78
78
|
<td class="function_name">
|
79
79
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-get-description" title="gdk_pixbuf_format_get_description ()">gdk_pixbuf_format_get_description</a> <span class="c_punctuation">()</span>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
</tr>
|
82
82
|
<tr>
|
83
83
|
<td class="function_type">
|
84
|
-
<a href="
|
84
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
|
85
85
|
</td>
|
86
86
|
<td class="function_name">
|
87
87
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-get-mime-types" title="gdk_pixbuf_format_get_mime_types ()">gdk_pixbuf_format_get_mime_types</a> <span class="c_punctuation">()</span>
|
@@ -89,7 +89,7 @@
|
|
89
89
|
</tr>
|
90
90
|
<tr>
|
91
91
|
<td class="function_type">
|
92
|
-
<a href="
|
92
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
|
93
93
|
</td>
|
94
94
|
<td class="function_name">
|
95
95
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-get-extensions" title="gdk_pixbuf_format_get_extensions ()">gdk_pixbuf_format_get_extensions</a> <span class="c_punctuation">()</span>
|
@@ -97,7 +97,7 @@
|
|
97
97
|
</tr>
|
98
98
|
<tr>
|
99
99
|
<td class="function_type">
|
100
|
-
<a href="
|
100
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
101
101
|
</td>
|
102
102
|
<td class="function_name">
|
103
103
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-is-writable" title="gdk_pixbuf_format_is_writable ()">gdk_pixbuf_format_is_writable</a> <span class="c_punctuation">()</span>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</tr>
|
106
106
|
<tr>
|
107
107
|
<td class="function_type">
|
108
|
-
<a href="
|
108
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
109
109
|
</td>
|
110
110
|
<td class="function_name">
|
111
111
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-is-scalable" title="gdk_pixbuf_format_is_scalable ()">gdk_pixbuf_format_is_scalable</a> <span class="c_punctuation">()</span>
|
@@ -113,7 +113,7 @@
|
|
113
113
|
</tr>
|
114
114
|
<tr>
|
115
115
|
<td class="function_type">
|
116
|
-
<a href="
|
116
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
117
117
|
</td>
|
118
118
|
<td class="function_name">
|
119
119
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-is-disabled" title="gdk_pixbuf_format_is_disabled ()">gdk_pixbuf_format_is_disabled</a> <span class="c_punctuation">()</span>
|
@@ -129,7 +129,7 @@
|
|
129
129
|
</tr>
|
130
130
|
<tr>
|
131
131
|
<td class="function_type">
|
132
|
-
<a href="
|
132
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
133
133
|
</td>
|
134
134
|
<td class="function_name">
|
135
135
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-get-license" title="gdk_pixbuf_format_get_license ()">gdk_pixbuf_format_get_license</a> <span class="c_punctuation">()</span>
|
@@ -259,7 +259,7 @@ regular GdkPixBuf API. To underline this fact, they are protected by
|
|
259
259
|
<a name="gdk-pixbuf-Module-Interface.functions_details"></a><h2>Functions</h2>
|
260
260
|
<div class="refsect2">
|
261
261
|
<a name="gdk-pixbuf-get-formats"></a><h3>gdk_pixbuf_get_formats ()</h3>
|
262
|
-
<pre class="programlisting"><a href="
|
262
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
|
263
263
|
gdk_pixbuf_get_formats (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
264
264
|
<p>Obtains the available information about the image formats supported
|
265
265
|
by GdkPixbuf.</p>
|
@@ -329,7 +329,7 @@ using <a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-c
|
|
329
329
|
<hr>
|
330
330
|
<div class="refsect2">
|
331
331
|
<a name="gdk-pixbuf-format-get-name"></a><h3>gdk_pixbuf_format_get_name ()</h3>
|
332
|
-
<pre class="programlisting"><a href="
|
332
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
333
333
|
gdk_pixbuf_format_get_name (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
334
334
|
<p>Returns the name of the format.</p>
|
335
335
|
<div class="refsect3">
|
@@ -356,7 +356,7 @@ gdk_pixbuf_format_get_name (<em class="parameter"><code><a class="link" href="gd
|
|
356
356
|
<hr>
|
357
357
|
<div class="refsect2">
|
358
358
|
<a name="gdk-pixbuf-format-get-description"></a><h3>gdk_pixbuf_format_get_description ()</h3>
|
359
|
-
<pre class="programlisting"><a href="
|
359
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
360
360
|
gdk_pixbuf_format_get_description (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
361
361
|
<p>Returns a description of the format.</p>
|
362
362
|
<div class="refsect3">
|
@@ -383,7 +383,7 @@ gdk_pixbuf_format_get_description (<em class="parameter"><code><a class="link" h
|
|
383
383
|
<hr>
|
384
384
|
<div class="refsect2">
|
385
385
|
<a name="gdk-pixbuf-format-get-mime-types"></a><h3>gdk_pixbuf_format_get_mime_types ()</h3>
|
386
|
-
<pre class="programlisting"><a href="
|
386
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
|
387
387
|
gdk_pixbuf_format_get_mime_types (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
388
388
|
<p>Returns the mime types supported by the format.</p>
|
389
389
|
<div class="refsect3">
|
@@ -403,8 +403,8 @@ gdk_pixbuf_format_get_mime_types (<em class="parameter"><code><a class="link" hr
|
|
403
403
|
</div>
|
404
404
|
<div class="refsect3">
|
405
405
|
<a name="gdk-pixbuf-format-get-mime-types.returns"></a><h4>Returns</h4>
|
406
|
-
<p> a <a href="
|
407
|
-
<a href="
|
406
|
+
<p> a <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of mime types which must be freed with
|
407
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when it is no longer needed. </p>
|
408
408
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
409
409
|
</div>
|
410
410
|
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
|
@@ -412,7 +412,7 @@ gdk_pixbuf_format_get_mime_types (<em class="parameter"><code><a class="link" hr
|
|
412
412
|
<hr>
|
413
413
|
<div class="refsect2">
|
414
414
|
<a name="gdk-pixbuf-format-get-extensions"></a><h3>gdk_pixbuf_format_get_extensions ()</h3>
|
415
|
-
<pre class="programlisting"><a href="
|
415
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
|
416
416
|
gdk_pixbuf_format_get_extensions (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
417
417
|
<p>Returns the filename extensions typically used for files in the
|
418
418
|
given format.</p>
|
@@ -433,8 +433,8 @@ given format.</p>
|
|
433
433
|
</div>
|
434
434
|
<div class="refsect3">
|
435
435
|
<a name="gdk-pixbuf-format-get-extensions.returns"></a><h4>Returns</h4>
|
436
|
-
<p> a <a href="
|
437
|
-
freed with <a href="
|
436
|
+
<p> a <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of filename extensions which must be
|
437
|
+
freed with <a href="https://developer.gnome.org/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when it is no longer needed. </p>
|
438
438
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
439
439
|
</div>
|
440
440
|
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
|
@@ -442,7 +442,7 @@ freed with <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk
|
|
442
442
|
<hr>
|
443
443
|
<div class="refsect2">
|
444
444
|
<a name="gdk-pixbuf-format-is-writable"></a><h3>gdk_pixbuf_format_is_writable ()</h3>
|
445
|
-
<pre class="programlisting"><a href="
|
445
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
446
446
|
gdk_pixbuf_format_is_writable (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
447
447
|
<p>Returns whether pixbufs can be saved in the given format.</p>
|
448
448
|
<div class="refsect3">
|
@@ -469,7 +469,7 @@ gdk_pixbuf_format_is_writable (<em class="parameter"><code><a class="link" href=
|
|
469
469
|
<hr>
|
470
470
|
<div class="refsect2">
|
471
471
|
<a name="gdk-pixbuf-format-is-scalable"></a><h3>gdk_pixbuf_format_is_scalable ()</h3>
|
472
|
-
<pre class="programlisting"><a href="
|
472
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
473
473
|
gdk_pixbuf_format_is_scalable (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
474
474
|
<p>Returns whether this image format is scalable. If a file is in a
|
475
475
|
scalable format, it is preferable to load it at the desired size,
|
@@ -499,7 +499,7 @@ resulting pixbuf to the desired size.</p>
|
|
499
499
|
<hr>
|
500
500
|
<div class="refsect2">
|
501
501
|
<a name="gdk-pixbuf-format-is-disabled"></a><h3>gdk_pixbuf_format_is_disabled ()</h3>
|
502
|
-
<pre class="programlisting"><a href="
|
502
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
503
503
|
gdk_pixbuf_format_is_disabled (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
504
504
|
<p>Returns whether this image format is disabled. See
|
505
505
|
<a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-set-disabled" title="gdk_pixbuf_format_set_disabled ()"><code class="function">gdk_pixbuf_format_set_disabled()</code></a>.</p>
|
@@ -529,7 +529,7 @@ gdk_pixbuf_format_is_disabled (<em class="parameter"><code><a class="link" href=
|
|
529
529
|
<a name="gdk-pixbuf-format-set-disabled"></a><h3>gdk_pixbuf_format_set_disabled ()</h3>
|
530
530
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
531
531
|
gdk_pixbuf_format_set_disabled (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>,
|
532
|
-
<em class="parameter"><code><a href="
|
532
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> disabled</code></em>);</pre>
|
533
533
|
<p>Disables or enables an image format. If a format is disabled,
|
534
534
|
gdk-pixbuf won't use the image loader for this format to load
|
535
535
|
images. Applications can use this to avoid using image loaders
|
@@ -550,7 +550,7 @@ with an inappropriate license, see <a class="link" href="gdk-pixbuf-Module-Inter
|
|
550
550
|
</tr>
|
551
551
|
<tr>
|
552
552
|
<td class="parameter_name"><p>disabled</p></td>
|
553
|
-
<td class="parameter_description"><p><a href="
|
553
|
+
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to disable the format <em class="parameter"><code>format</code></em>
|
554
554
|
</p></td>
|
555
555
|
<td class="parameter_annotations"> </td>
|
556
556
|
</tr>
|
@@ -562,12 +562,12 @@ with an inappropriate license, see <a class="link" href="gdk-pixbuf-Module-Inter
|
|
562
562
|
<hr>
|
563
563
|
<div class="refsect2">
|
564
564
|
<a name="gdk-pixbuf-format-get-license"></a><h3>gdk_pixbuf_format_get_license ()</h3>
|
565
|
-
<pre class="programlisting"><a href="
|
565
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
566
566
|
gdk_pixbuf_format_get_license (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> *format</code></em>);</pre>
|
567
567
|
<p>Returns information about the license of the image loader for the format. The
|
568
568
|
returned string should be a shorthand for a wellknown license, e.g. "LGPL",
|
569
569
|
"GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. This
|
570
|
-
string should be freed with <a href="
|
570
|
+
string should be freed with <a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when it's no longer needed.</p>
|
571
571
|
<div class="refsect3">
|
572
572
|
<a name="gdk-pixbuf-format-get-license.parameters"></a><h4>Parameters</h4>
|
573
573
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -642,9 +642,9 @@ string should be freed with <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendo
|
|
642
642
|
<div class="refsect2">
|
643
643
|
<a name="GdkPixbufModuleSizeFunc"></a><h3>GdkPixbufModuleSizeFunc ()</h3>
|
644
644
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
645
|
-
<span class="c_punctuation">(</span>*GdkPixbufModuleSizeFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="
|
646
|
-
<em class="parameter"><code><a href="
|
647
|
-
<em class="parameter"><code><a href="
|
645
|
+
<span class="c_punctuation">(</span>*GdkPixbufModuleSizeFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *width</code></em>,
|
646
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>,
|
647
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
648
648
|
<p>Defines the type of the function that gets called once the size
|
649
649
|
of the loaded image is known.</p>
|
650
650
|
<p>The function is expected to set <em class="parameter"><code>width</code></em>
|
@@ -695,7 +695,7 @@ efficiently.</p>
|
|
695
695
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
696
696
|
<span class="c_punctuation">(</span>*GdkPixbufModulePreparedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
697
697
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *anim</code></em>,
|
698
|
-
<em class="parameter"><code><a href="
|
698
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
699
699
|
<p>Defines the type of the function that gets called once the initial
|
700
700
|
setup of <em class="parameter"><code>pixbuf</code></em>
|
701
701
|
is done.</p>
|
@@ -718,7 +718,7 @@ signal.</p>
|
|
718
718
|
</tr>
|
719
719
|
<tr>
|
720
720
|
<td class="parameter_name"><p>anim</p></td>
|
721
|
-
<td class="parameter_description"><p>if an animation is being loaded, the <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a>, else <a href="
|
721
|
+
<td class="parameter_description"><p>if an animation is being loaded, the <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a>, else <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
|
722
722
|
<td class="parameter_annotations"> </td>
|
723
723
|
</tr>
|
724
724
|
<tr>
|
@@ -740,7 +740,7 @@ signal.</p>
|
|
740
740
|
<em class="parameter"><code><span class="type">int</span> y</code></em>,
|
741
741
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
742
742
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
743
|
-
<em class="parameter"><code><a href="
|
743
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
744
744
|
<p>Defines the type of the function that gets called every time a region
|
745
745
|
of <em class="parameter"><code>pixbuf</code></em>
|
746
746
|
is updated.</p>
|
@@ -821,7 +821,7 @@ use the <function>gdk_pixbuf_format_*</function> functions.</p>
|
|
821
821
|
</colgroup>
|
822
822
|
<tbody>
|
823
823
|
<tr>
|
824
|
-
<td class="struct_member_name"><p><a href="
|
824
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdkPixbufFormat.name"></a>name</code></em>;</p></td>
|
825
825
|
<td class="struct_member_description"><p>the name of the image format.</p></td>
|
826
826
|
<td class="struct_member_annotations"> </td>
|
827
827
|
</tr>
|
@@ -831,39 +831,39 @@ use the <function>gdk_pixbuf_format_*</function> functions.</p>
|
|
831
831
|
<td class="struct_member_annotations"> </td>
|
832
832
|
</tr>
|
833
833
|
<tr>
|
834
|
-
<td class="struct_member_name"><p><a href="
|
834
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdkPixbufFormat.domain"></a>domain</code></em>;</p></td>
|
835
835
|
<td class="struct_member_description"><p>the message domain for the <em class="parameter"><code>description</code></em>
|
836
836
|
.</p></td>
|
837
837
|
<td class="struct_member_annotations"> </td>
|
838
838
|
</tr>
|
839
839
|
<tr>
|
840
|
-
<td class="struct_member_name"><p><a href="
|
840
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdkPixbufFormat.description"></a>description</code></em>;</p></td>
|
841
841
|
<td class="struct_member_description"><p>a description of the image format.</p></td>
|
842
842
|
<td class="struct_member_annotations"> </td>
|
843
843
|
</tr>
|
844
844
|
<tr>
|
845
|
-
<td class="struct_member_name"><p><a href="
|
846
|
-
<td class="struct_member_description"><p>a <a href="
|
845
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **<em class="structfield"><code><a name="GdkPixbufFormat.mime-types"></a>mime_types</code></em>;</p></td>
|
846
|
+
<td class="struct_member_description"><p>a <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of MIME types for the image format.</p></td>
|
847
847
|
<td class="struct_member_annotations"> </td>
|
848
848
|
</tr>
|
849
849
|
<tr>
|
850
|
-
<td class="struct_member_name"><p><a href="
|
851
|
-
<td class="struct_member_description"><p>a <a href="
|
850
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **<em class="structfield"><code><a name="GdkPixbufFormat.extensions"></a>extensions</code></em>;</p></td>
|
851
|
+
<td class="struct_member_description"><p>a <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of typical filename extensions for the
|
852
852
|
image format.</p></td>
|
853
853
|
<td class="struct_member_annotations"> </td>
|
854
854
|
</tr>
|
855
855
|
<tr>
|
856
|
-
<td class="struct_member_name"><p><a href="
|
856
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixbufFormat.flags"></a>flags</code></em>;</p></td>
|
857
857
|
<td class="struct_member_description"><p>a combination of <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormatFlags" title="enum GdkPixbufFormatFlags"><span class="type">GdkPixbufFormatFlags</span></a>.</p></td>
|
858
858
|
<td class="struct_member_annotations"> </td>
|
859
859
|
</tr>
|
860
860
|
<tr>
|
861
|
-
<td class="struct_member_name"><p><a href="
|
861
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GdkPixbufFormat.disabled"></a>disabled</code></em>;</p></td>
|
862
862
|
<td class="struct_member_description"><p>a boolean determining whether the loader is disabled.</p></td>
|
863
863
|
<td class="struct_member_annotations"> </td>
|
864
864
|
</tr>
|
865
865
|
<tr>
|
866
|
-
<td class="struct_member_name"><p><a href="
|
866
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdkPixbufFormat.license"></a>license</code></em>;</p></td>
|
867
867
|
<td class="struct_member_description"><p>a string containing license information, typically set to
|
868
868
|
shorthands like "GPL", "LGPL", etc.</p></td>
|
869
869
|
<td class="struct_member_annotations"> </td>
|
@@ -925,7 +925,7 @@ operations.</p>
|
|
925
925
|
</pre>
|
926
926
|
<p>The signature of a module is a set of prefixes. Prefixes are encoded as
|
927
927
|
pairs of ordinary strings, where the second string, called the mask, if
|
928
|
-
not <a href="
|
928
|
+
not <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, must be of the same length as the first one and may contain
|
929
929
|
' ', '!', 'x', 'z', and 'n' to indicate bytes that must be matched,
|
930
930
|
not matched, "don't-care"-bytes, zeros and non-zeros.
|
931
931
|
Each prefix has an associated integer that describes the relevance of
|
@@ -937,7 +937,7 @@ like an 'x'. </p>
|
|
937
937
|
<p>The signature of a module is stored as an array of
|
938
938
|
<a href="gdk-pixbuf-Module-Interface.html#GdkPixbufModulePattern"><span class="type">GdkPixbufModulePatterns</span></a>. The array is terminated by a pattern
|
939
939
|
where the <em class="parameter"><code>prefix</code></em>
|
940
|
-
is <a href="
|
940
|
+
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
|
941
941
|
<p><informalexample><programlisting>
|
942
942
|
GdkPixbufModulePattern *signature[] = {
|
943
943
|
{ "abcdx", " !x z", 100 },
|
@@ -1025,7 +1025,7 @@ test data</p></td>
|
|
1025
1025
|
</pre>
|
1026
1026
|
<p>A <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufModule" title="struct GdkPixbufModule"><span class="type">GdkPixbufModule</span></a> contains the necessary functions to load and save
|
1027
1027
|
images in a certain file format. </p>
|
1028
|
-
<p>A <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufModule" title="struct GdkPixbufModule"><span class="type">GdkPixbufModule</span></a> can be loaded dynamically from a <a href="
|
1028
|
+
<p>A <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufModule" title="struct GdkPixbufModule"><span class="type">GdkPixbufModule</span></a> can be loaded dynamically from a <a href="https://developer.gnome.org/glib/unstable/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a>.
|
1029
1029
|
Each loadable module must contain a <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufModuleFillVtableFunc" title="GdkPixbufModuleFillVtableFunc ()"><span class="type">GdkPixbufModuleFillVtableFunc</span></a> function
|
1030
1030
|
named <function>fill_vtable</function>, which will get called when the module
|
1031
1031
|
is loaded and must set the function pointers of the <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufModule" title="struct GdkPixbufModule"><span class="type">GdkPixbufModule</span></a>.</p>
|
@@ -1050,8 +1050,8 @@ usual file extension for images of this type, eg. "xpm", "jpeg" or "png".</p></t
|
|
1050
1050
|
<td class="struct_member_annotations"> </td>
|
1051
1051
|
</tr>
|
1052
1052
|
<tr>
|
1053
|
-
<td class="struct_member_name"><p><a href="
|
1054
|
-
<td class="struct_member_description"><p>the loaded <a href="
|
1053
|
+
<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a> *<em class="structfield"><code><a name="GdkPixbufModule.module"></a>module</code></em>;</p></td>
|
1054
|
+
<td class="struct_member_description"><p>the loaded <a href="https://developer.gnome.org/glib/unstable/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a>.</p></td>
|
1055
1055
|
<td class="struct_member_annotations"> </td>
|
1056
1056
|
</tr>
|
1057
1057
|
<tr>
|