gdk_pixbuf2 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +29 -0
- data/Rakefile +34 -0
- data/ext/gdk_pixbuf2/depend +11 -0
- data/ext/gdk_pixbuf2/extconf.rb +66 -0
- data/ext/gdk_pixbuf2/gdk_pixbuf2.def +2 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +179 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +164 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +737 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +41 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +42 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +35 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +93 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +53 -0
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +213 -0
- data/extconf.rb +49 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -0
- data/lib/2.2/gdk_pixbuf2.so +0 -0
- data/lib/gdk_pixbuf2.rb +57 -0
- data/sample/anim.rb +38 -0
- data/sample/composite.rb +45 -0
- data/sample/flip.rb +47 -0
- data/sample/floppybuddy.gif +0 -0
- data/sample/format.rb +39 -0
- data/sample/gnome-foot.png +0 -0
- data/sample/inline.rb +37 -0
- data/sample/loader.rb +20 -0
- data/sample/pixdata.rb +39 -0
- data/sample/rotate.rb +45 -0
- data/sample/save.rb +25 -0
- data/sample/scale.rb +45 -0
- data/sample/simpleanim.rb +34 -0
- data/sample/utils.rb +44 -0
- data/sample/xpm.rb +40 -0
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +204 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +464 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +33 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +120 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +343 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +108 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +36 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +64 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +158 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +43 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +168 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +139 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +41 -0
- data/vendor/local/lib/gdk_pixbuf-2.0.def +128 -0
- data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +41 -0
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +19 -0
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +3443 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +827 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +46 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +108 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +72 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +39 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +53 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +787 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/composite.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +1068 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +794 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +864 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +491 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +639 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +1298 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +208 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +914 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +898 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +381 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +184 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +197 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +438 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +1115 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +167 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +159 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +45 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +44 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +85 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +226 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +150 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +322 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +59 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +101 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up.png +0 -0
- data/vendor/local/share/license/gdk-pixbuf/AUTHORS +65 -0
- data/vendor/local/share/license/gdk-pixbuf/COPYING +482 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/csb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +135 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +73 -0
- metadata +273 -0
Binary file
|
@@ -0,0 +1,1068 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>GDK-PixBuf Reference Manual: Animations</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
|
+
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
|
8
|
+
<link rel="up" href="rn01.html" title="API Reference">
|
9
|
+
<link rel="prev" href="gdk-pixbuf-Utilities.html" title="Utilities">
|
10
|
+
<link rel="next" href="GdkPixbufLoader.html" title="GdkPixbufLoader">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#gdk-pixbuf-Animations.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#gdk-pixbuf-Animations.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
|
20
|
+
<a href="#gdk-pixbuf-Animations.properties" class="shortcut">Properties</a></span>
|
21
|
+
</td>
|
22
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
23
|
+
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
24
|
+
<td><a accesskey="p" href="gdk-pixbuf-Utilities.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
25
|
+
<td><a accesskey="n" href="GdkPixbufLoader.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
26
|
+
</tr></table>
|
27
|
+
<div class="refentry">
|
28
|
+
<a name="gdk-pixbuf-Animations"></a><div class="titlepage"></div>
|
29
|
+
<div class="refnamediv"><table width="100%"><tr>
|
30
|
+
<td valign="top">
|
31
|
+
<h2><span class="refentrytitle"><a name="gdk-pixbuf-Animations.top_of_page"></a>Animations</span></h2>
|
32
|
+
<p>Animations — Animated images.</p>
|
33
|
+
</td>
|
34
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
35
|
+
</tr></table></div>
|
36
|
+
<div class="refsect1">
|
37
|
+
<a name="gdk-pixbuf-Animations.functions"></a><h2>Functions</h2>
|
38
|
+
<div class="informaltable"><table width="100%" border="0">
|
39
|
+
<colgroup>
|
40
|
+
<col width="150px" class="functions_return">
|
41
|
+
<col class="functions_name">
|
42
|
+
</colgroup>
|
43
|
+
<tbody>
|
44
|
+
<tr>
|
45
|
+
<td class="function_type">
|
46
|
+
<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
47
|
+
</td>
|
48
|
+
<td class="function_name">
|
49
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-file" title="gdk_pixbuf_animation_new_from_file ()">gdk_pixbuf_animation_new_from_file</a> <span class="c_punctuation">()</span>
|
50
|
+
</td>
|
51
|
+
</tr>
|
52
|
+
<tr>
|
53
|
+
<td class="function_type">
|
54
|
+
<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
55
|
+
</td>
|
56
|
+
<td class="function_name">
|
57
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-resource" title="gdk_pixbuf_animation_new_from_resource ()">gdk_pixbuf_animation_new_from_resource</a> <span class="c_punctuation">()</span>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
<tr>
|
61
|
+
<td class="function_type">
|
62
|
+
<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
63
|
+
</td>
|
64
|
+
<td class="function_name">
|
65
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-stream" title="gdk_pixbuf_animation_new_from_stream ()">gdk_pixbuf_animation_new_from_stream</a> <span class="c_punctuation">()</span>
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
<tr>
|
69
|
+
<td class="function_type">
|
70
|
+
<span class="returnvalue">void</span>
|
71
|
+
</td>
|
72
|
+
<td class="function_name">
|
73
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-stream-async" title="gdk_pixbuf_animation_new_from_stream_async ()">gdk_pixbuf_animation_new_from_stream_async</a> <span class="c_punctuation">()</span>
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
<tr>
|
77
|
+
<td class="function_type">
|
78
|
+
<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
79
|
+
</td>
|
80
|
+
<td class="function_name">
|
81
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-stream-finish" title="gdk_pixbuf_animation_new_from_stream_finish ()">gdk_pixbuf_animation_new_from_stream_finish</a> <span class="c_punctuation">()</span>
|
82
|
+
</td>
|
83
|
+
</tr>
|
84
|
+
<tr>
|
85
|
+
<td class="function_type">
|
86
|
+
<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
87
|
+
</td>
|
88
|
+
<td class="function_name">
|
89
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-ref" title="gdk_pixbuf_animation_ref ()">gdk_pixbuf_animation_ref</a> <span class="c_punctuation">()</span>
|
90
|
+
</td>
|
91
|
+
</tr>
|
92
|
+
<tr>
|
93
|
+
<td class="function_type">
|
94
|
+
<span class="returnvalue">void</span>
|
95
|
+
</td>
|
96
|
+
<td class="function_name">
|
97
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-unref" title="gdk_pixbuf_animation_unref ()">gdk_pixbuf_animation_unref</a> <span class="c_punctuation">()</span>
|
98
|
+
</td>
|
99
|
+
</tr>
|
100
|
+
<tr>
|
101
|
+
<td class="function_type">
|
102
|
+
<span class="returnvalue">int</span>
|
103
|
+
</td>
|
104
|
+
<td class="function_name">
|
105
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-width" title="gdk_pixbuf_animation_get_width ()">gdk_pixbuf_animation_get_width</a> <span class="c_punctuation">()</span>
|
106
|
+
</td>
|
107
|
+
</tr>
|
108
|
+
<tr>
|
109
|
+
<td class="function_type">
|
110
|
+
<span class="returnvalue">int</span>
|
111
|
+
</td>
|
112
|
+
<td class="function_name">
|
113
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-height" title="gdk_pixbuf_animation_get_height ()">gdk_pixbuf_animation_get_height</a> <span class="c_punctuation">()</span>
|
114
|
+
</td>
|
115
|
+
</tr>
|
116
|
+
<tr>
|
117
|
+
<td class="function_type">
|
118
|
+
<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="returnvalue">GdkPixbufAnimationIter</span></a> *
|
119
|
+
</td>
|
120
|
+
<td class="function_name">
|
121
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-iter" title="gdk_pixbuf_animation_get_iter ()">gdk_pixbuf_animation_get_iter</a> <span class="c_punctuation">()</span>
|
122
|
+
</td>
|
123
|
+
</tr>
|
124
|
+
<tr>
|
125
|
+
<td class="function_type">
|
126
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
127
|
+
</td>
|
128
|
+
<td class="function_name">
|
129
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-is-static-image" title="gdk_pixbuf_animation_is_static_image ()">gdk_pixbuf_animation_is_static_image</a> <span class="c_punctuation">()</span>
|
130
|
+
</td>
|
131
|
+
</tr>
|
132
|
+
<tr>
|
133
|
+
<td class="function_type">
|
134
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
135
|
+
</td>
|
136
|
+
<td class="function_name">
|
137
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-static-image" title="gdk_pixbuf_animation_get_static_image ()">gdk_pixbuf_animation_get_static_image</a> <span class="c_punctuation">()</span>
|
138
|
+
</td>
|
139
|
+
</tr>
|
140
|
+
<tr>
|
141
|
+
<td class="function_type">
|
142
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
143
|
+
</td>
|
144
|
+
<td class="function_name">
|
145
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-advance" title="gdk_pixbuf_animation_iter_advance ()">gdk_pixbuf_animation_iter_advance</a> <span class="c_punctuation">()</span>
|
146
|
+
</td>
|
147
|
+
</tr>
|
148
|
+
<tr>
|
149
|
+
<td class="function_type">
|
150
|
+
<span class="returnvalue">int</span>
|
151
|
+
</td>
|
152
|
+
<td class="function_name">
|
153
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-delay-time" title="gdk_pixbuf_animation_iter_get_delay_time ()">gdk_pixbuf_animation_iter_get_delay_time</a> <span class="c_punctuation">()</span>
|
154
|
+
</td>
|
155
|
+
</tr>
|
156
|
+
<tr>
|
157
|
+
<td class="function_type">
|
158
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
159
|
+
</td>
|
160
|
+
<td class="function_name">
|
161
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-on-currently-loading-frame" title="gdk_pixbuf_animation_iter_on_currently_loading_frame ()">gdk_pixbuf_animation_iter_on_currently_loading_frame</a> <span class="c_punctuation">()</span>
|
162
|
+
</td>
|
163
|
+
</tr>
|
164
|
+
<tr>
|
165
|
+
<td class="function_type">
|
166
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
167
|
+
</td>
|
168
|
+
<td class="function_name">
|
169
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-pixbuf" title="gdk_pixbuf_animation_iter_get_pixbuf ()">gdk_pixbuf_animation_iter_get_pixbuf</a> <span class="c_punctuation">()</span>
|
170
|
+
</td>
|
171
|
+
</tr>
|
172
|
+
<tr>
|
173
|
+
<td class="function_type">
|
174
|
+
<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="returnvalue">GdkPixbufSimpleAnim</span></a> *
|
175
|
+
</td>
|
176
|
+
<td class="function_name">
|
177
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-simple-anim-new" title="gdk_pixbuf_simple_anim_new ()">gdk_pixbuf_simple_anim_new</a> <span class="c_punctuation">()</span>
|
178
|
+
</td>
|
179
|
+
</tr>
|
180
|
+
<tr>
|
181
|
+
<td class="function_type">
|
182
|
+
<span class="returnvalue">void</span>
|
183
|
+
</td>
|
184
|
+
<td class="function_name">
|
185
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-simple-anim-add-frame" title="gdk_pixbuf_simple_anim_add_frame ()">gdk_pixbuf_simple_anim_add_frame</a> <span class="c_punctuation">()</span>
|
186
|
+
</td>
|
187
|
+
</tr>
|
188
|
+
<tr>
|
189
|
+
<td class="function_type">
|
190
|
+
<span class="returnvalue">void</span>
|
191
|
+
</td>
|
192
|
+
<td class="function_name">
|
193
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-simple-anim-set-loop" title="gdk_pixbuf_simple_anim_set_loop ()">gdk_pixbuf_simple_anim_set_loop</a> <span class="c_punctuation">()</span>
|
194
|
+
</td>
|
195
|
+
</tr>
|
196
|
+
<tr>
|
197
|
+
<td class="function_type">
|
198
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
199
|
+
</td>
|
200
|
+
<td class="function_name">
|
201
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-simple-anim-get-loop" title="gdk_pixbuf_simple_anim_get_loop ()">gdk_pixbuf_simple_anim_get_loop</a> <span class="c_punctuation">()</span>
|
202
|
+
</td>
|
203
|
+
</tr>
|
204
|
+
</tbody>
|
205
|
+
</table></div>
|
206
|
+
</div>
|
207
|
+
<div class="refsect1">
|
208
|
+
<a name="gdk-pixbuf-Animations.properties"></a><h2>Properties</h2>
|
209
|
+
<div class="informaltable"><table border="0">
|
210
|
+
<colgroup>
|
211
|
+
<col width="150px" class="properties_type">
|
212
|
+
<col width="300px" class="properties_name">
|
213
|
+
<col width="200px" class="properties_flags">
|
214
|
+
</colgroup>
|
215
|
+
<tbody><tr>
|
216
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
217
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim--loop" title="The “loop” property">loop</a></td>
|
218
|
+
<td class="property_flags">Read / Write</td>
|
219
|
+
</tr></tbody>
|
220
|
+
</table></div>
|
221
|
+
</div>
|
222
|
+
<a name="GdkPixbufAnimation"></a><a name="GdkPixbufAnimationIter"></a><a name="GdkPixbufSimpleAnim"></a><div class="refsect1">
|
223
|
+
<a name="gdk-pixbuf-Animations.other"></a><h2>Types and Values</h2>
|
224
|
+
<div class="informaltable"><table width="100%" border="0">
|
225
|
+
<colgroup>
|
226
|
+
<col width="150px" class="name">
|
227
|
+
<col class="description">
|
228
|
+
</colgroup>
|
229
|
+
<tbody>
|
230
|
+
<tr>
|
231
|
+
<td class="datatype_keyword">struct</td>
|
232
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation-struct" title="struct GdkPixbufAnimation">GdkPixbufAnimation</a></td>
|
233
|
+
</tr>
|
234
|
+
<tr>
|
235
|
+
<td class="datatype_keyword">struct</td>
|
236
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter-struct" title="struct GdkPixbufAnimationIter">GdkPixbufAnimationIter</a></td>
|
237
|
+
</tr>
|
238
|
+
<tr>
|
239
|
+
<td class="datatype_keyword"> </td>
|
240
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim-struct" title="GdkPixbufSimpleAnim">GdkPixbufSimpleAnim</a></td>
|
241
|
+
</tr>
|
242
|
+
</tbody>
|
243
|
+
</table></div>
|
244
|
+
</div>
|
245
|
+
<div class="refsect1">
|
246
|
+
<a name="gdk-pixbuf-Animations.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
247
|
+
<pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
248
|
+
<span class="lineart">├──</span> <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation">GdkPixbufAnimation</a>
|
249
|
+
<span class="lineart">│</span> <span class="lineart">╰──</span> GdkPixbufSimpleAnim
|
250
|
+
<span class="lineart">├──</span> GdkPixbufAnimation
|
251
|
+
<span class="lineart">│</span> <span class="lineart">╰──</span> <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim">GdkPixbufSimpleAnim</a>
|
252
|
+
<span class="lineart">╰──</span> GdkPixbufAnimationIter
|
253
|
+
</pre>
|
254
|
+
</div>
|
255
|
+
<div class="refsect1">
|
256
|
+
<a name="gdk-pixbuf-Animations.includes"></a><h2>Includes</h2>
|
257
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
258
|
+
</pre>
|
259
|
+
</div>
|
260
|
+
<div class="refsect1">
|
261
|
+
<a name="gdk-pixbuf-Animations.description"></a><h2>Description</h2>
|
262
|
+
<p>The GdkPixBuf library provides a simple mechanism to load and
|
263
|
+
represent animations. An animation is conceptually a series of
|
264
|
+
frames to be displayed over time. The animation may not be
|
265
|
+
represented as a series of frames internally; for example, it may
|
266
|
+
be stored as a sprite and instructions for moving the sprite around
|
267
|
+
a background. To display an animation you don't need to understand
|
268
|
+
its representation, however; you just ask GdkPixBuf what should
|
269
|
+
be displayed at a given point in time.</p>
|
270
|
+
</div>
|
271
|
+
<div class="refsect1">
|
272
|
+
<a name="gdk-pixbuf-Animations.functions_details"></a><h2>Functions</h2>
|
273
|
+
<div class="refsect2">
|
274
|
+
<a name="gdk-pixbuf-animation-new-from-file"></a><h3>gdk_pixbuf_animation_new_from_file ()</h3>
|
275
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
276
|
+
gdk_pixbuf_animation_new_from_file (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
277
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
278
|
+
<p>Creates a new animation by loading it from a file. The file format is
|
279
|
+
detected automatically. If the file's format does not support multi-frame
|
280
|
+
images, then an animation with a single frame will be created. Possible errors
|
281
|
+
are in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> and <a href="http://library.gnome.org/devel/glib/unstable/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domains.</p>
|
282
|
+
<div class="refsect3">
|
283
|
+
<a name="id-1.2.14.12.2.5"></a><h4>Parameters</h4>
|
284
|
+
<div class="informaltable"><table width="100%" border="0">
|
285
|
+
<colgroup>
|
286
|
+
<col width="150px" class="parameters_name">
|
287
|
+
<col class="parameters_description">
|
288
|
+
<col width="200px" class="parameters_annotations">
|
289
|
+
</colgroup>
|
290
|
+
<tbody>
|
291
|
+
<tr>
|
292
|
+
<td class="parameter_name"><p>filename</p></td>
|
293
|
+
<td class="parameter_description"><p>Name of file to load, in the GLib file name encoding</p></td>
|
294
|
+
<td class="parameter_annotations"> </td>
|
295
|
+
</tr>
|
296
|
+
<tr>
|
297
|
+
<td class="parameter_name"><p>error</p></td>
|
298
|
+
<td class="parameter_description"><p>return location for error</p></td>
|
299
|
+
<td class="parameter_annotations"> </td>
|
300
|
+
</tr>
|
301
|
+
</tbody>
|
302
|
+
</table></div>
|
303
|
+
</div>
|
304
|
+
<div class="refsect3">
|
305
|
+
<a name="id-1.2.14.12.2.6"></a><h4>Returns</h4>
|
306
|
+
<p> A newly-created animation with a reference count of 1, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
307
|
+
if any of several error conditions ocurred: the file could not be opened,
|
308
|
+
there was no loader for the file's format, there was not enough memory to
|
309
|
+
allocate the image buffer, or the image file contained invalid data.</p>
|
310
|
+
<p></p>
|
311
|
+
</div>
|
312
|
+
</div>
|
313
|
+
<hr>
|
314
|
+
<div class="refsect2">
|
315
|
+
<a name="gdk-pixbuf-animation-new-from-resource"></a><h3>gdk_pixbuf_animation_new_from_resource ()</h3>
|
316
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
317
|
+
gdk_pixbuf_animation_new_from_resource
|
318
|
+
(<em class="parameter"><code>const <span class="type">char</span> *resource_path</code></em>,
|
319
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
320
|
+
<p>Creates a new pixbuf animation by loading an image from an resource.</p>
|
321
|
+
<p>The file format is detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
322
|
+
<em class="parameter"><code>error</code></em>
|
323
|
+
will be set.</p>
|
324
|
+
<div class="refsect3">
|
325
|
+
<a name="id-1.2.14.12.3.6"></a><h4>Parameters</h4>
|
326
|
+
<div class="informaltable"><table width="100%" border="0">
|
327
|
+
<colgroup>
|
328
|
+
<col width="150px" class="parameters_name">
|
329
|
+
<col class="parameters_description">
|
330
|
+
<col width="200px" class="parameters_annotations">
|
331
|
+
</colgroup>
|
332
|
+
<tbody>
|
333
|
+
<tr>
|
334
|
+
<td class="parameter_name"><p>resource_path</p></td>
|
335
|
+
<td class="parameter_description"><p>the path of the resource file</p></td>
|
336
|
+
<td class="parameter_annotations"> </td>
|
337
|
+
</tr>
|
338
|
+
<tr>
|
339
|
+
<td class="parameter_name"><p>error</p></td>
|
340
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
341
|
+
<td class="parameter_annotations"> </td>
|
342
|
+
</tr>
|
343
|
+
</tbody>
|
344
|
+
</table></div>
|
345
|
+
</div>
|
346
|
+
<div class="refsect3">
|
347
|
+
<a name="id-1.2.14.12.3.7"></a><h4>Returns</h4>
|
348
|
+
<p> A newly-created animation, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
349
|
+
conditions occurred: the file could not be opened, the image format is
|
350
|
+
not supported, there was not enough memory to allocate the image buffer,
|
351
|
+
the stream contained invalid data, or the operation was cancelled.</p>
|
352
|
+
<p></p>
|
353
|
+
</div>
|
354
|
+
<p class="since">Since 2.28</p>
|
355
|
+
</div>
|
356
|
+
<hr>
|
357
|
+
<div class="refsect2">
|
358
|
+
<a name="gdk-pixbuf-animation-new-from-stream"></a><h3>gdk_pixbuf_animation_new_from_stream ()</h3>
|
359
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
360
|
+
gdk_pixbuf_animation_new_from_stream (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
361
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
362
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
363
|
+
<p>Creates a new animation by loading it from an input stream.</p>
|
364
|
+
<p>The file format is detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
365
|
+
<em class="parameter"><code>error</code></em>
|
366
|
+
will be set. The <em class="parameter"><code>cancellable</code></em>
|
367
|
+
can be used to abort the operation
|
368
|
+
from another thread. If the operation was cancelled, the error
|
369
|
+
<code class="literal">G_IO_ERROR_CANCELLED</code> will be returned. Other possible errors are in
|
370
|
+
the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> and <a href="http://library.gnome.org/devel/gio/unstable/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains. </p>
|
371
|
+
<p>The stream is not closed.</p>
|
372
|
+
<div class="refsect3">
|
373
|
+
<a name="id-1.2.14.12.4.7"></a><h4>Parameters</h4>
|
374
|
+
<div class="informaltable"><table width="100%" border="0">
|
375
|
+
<colgroup>
|
376
|
+
<col width="150px" class="parameters_name">
|
377
|
+
<col class="parameters_description">
|
378
|
+
<col width="200px" class="parameters_annotations">
|
379
|
+
</colgroup>
|
380
|
+
<tbody>
|
381
|
+
<tr>
|
382
|
+
<td class="parameter_name"><p>stream</p></td>
|
383
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</p></td>
|
384
|
+
<td class="parameter_annotations"> </td>
|
385
|
+
</tr>
|
386
|
+
<tr>
|
387
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
388
|
+
<td class="parameter_description"><p> optional <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
389
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
390
|
+
</tr>
|
391
|
+
<tr>
|
392
|
+
<td class="parameter_name"><p>error</p></td>
|
393
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
394
|
+
<td class="parameter_annotations"> </td>
|
395
|
+
</tr>
|
396
|
+
</tbody>
|
397
|
+
</table></div>
|
398
|
+
</div>
|
399
|
+
<div class="refsect3">
|
400
|
+
<a name="id-1.2.14.12.4.8"></a><h4>Returns</h4>
|
401
|
+
<p> A newly-created pixbuf, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
402
|
+
conditions occurred: the file could not be opened, the image format is
|
403
|
+
not supported, there was not enough memory to allocate the image buffer,
|
404
|
+
the stream contained invalid data, or the operation was cancelled.</p>
|
405
|
+
<p></p>
|
406
|
+
</div>
|
407
|
+
<p class="since">Since 2.28</p>
|
408
|
+
</div>
|
409
|
+
<hr>
|
410
|
+
<div class="refsect2">
|
411
|
+
<a name="gdk-pixbuf-animation-new-from-stream-async"></a><h3>gdk_pixbuf_animation_new_from_stream_async ()</h3>
|
412
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
413
|
+
gdk_pixbuf_animation_new_from_stream_async
|
414
|
+
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
415
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
416
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
417
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
418
|
+
<p>Creates a new animation by asynchronously loading an image from an input stream.</p>
|
419
|
+
<p>For more details see <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream" title="gdk_pixbuf_new_from_stream ()"><code class="function">gdk_pixbuf_new_from_stream()</code></a>, which is the synchronous
|
420
|
+
version of this function.</p>
|
421
|
+
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
|
422
|
+
will be called in the main thread.
|
423
|
+
You can then call <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-stream-finish" title="gdk_pixbuf_animation_new_from_stream_finish ()"><code class="function">gdk_pixbuf_animation_new_from_stream_finish()</code></a> to get the
|
424
|
+
result of the operation.</p>
|
425
|
+
<div class="refsect3">
|
426
|
+
<a name="id-1.2.14.12.5.7"></a><h4>Parameters</h4>
|
427
|
+
<div class="informaltable"><table width="100%" border="0">
|
428
|
+
<colgroup>
|
429
|
+
<col width="150px" class="parameters_name">
|
430
|
+
<col class="parameters_description">
|
431
|
+
<col width="200px" class="parameters_annotations">
|
432
|
+
</colgroup>
|
433
|
+
<tbody>
|
434
|
+
<tr>
|
435
|
+
<td class="parameter_name"><p>stream</p></td>
|
436
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the animation</p></td>
|
437
|
+
<td class="parameter_annotations"> </td>
|
438
|
+
</tr>
|
439
|
+
<tr>
|
440
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
441
|
+
<td class="parameter_description"><p> optional <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
442
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
443
|
+
</tr>
|
444
|
+
<tr>
|
445
|
+
<td class="parameter_name"><p>callback</p></td>
|
446
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</p></td>
|
447
|
+
<td class="parameter_annotations"> </td>
|
448
|
+
</tr>
|
449
|
+
<tr>
|
450
|
+
<td class="parameter_name"><p>user_data</p></td>
|
451
|
+
<td class="parameter_description"><p>the data to pass to the callback function</p></td>
|
452
|
+
<td class="parameter_annotations"> </td>
|
453
|
+
</tr>
|
454
|
+
</tbody>
|
455
|
+
</table></div>
|
456
|
+
</div>
|
457
|
+
<p class="since">Since 2.28</p>
|
458
|
+
</div>
|
459
|
+
<hr>
|
460
|
+
<div class="refsect2">
|
461
|
+
<a name="gdk-pixbuf-animation-new-from-stream-finish"></a><h3>gdk_pixbuf_animation_new_from_stream_finish ()</h3>
|
462
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
463
|
+
gdk_pixbuf_animation_new_from_stream_finish
|
464
|
+
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *async_result</code></em>,
|
465
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
466
|
+
<p>Finishes an asynchronous pixbuf animation creation operation started with
|
467
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-stream-async" title="gdk_pixbuf_animation_new_from_stream_async ()"><code class="function">gdk_pixbuf_animation_new_from_stream_async()</code></a>.</p>
|
468
|
+
<div class="refsect3">
|
469
|
+
<a name="id-1.2.14.12.6.5"></a><h4>Parameters</h4>
|
470
|
+
<div class="informaltable"><table width="100%" border="0">
|
471
|
+
<colgroup>
|
472
|
+
<col width="150px" class="parameters_name">
|
473
|
+
<col class="parameters_description">
|
474
|
+
<col width="200px" class="parameters_annotations">
|
475
|
+
</colgroup>
|
476
|
+
<tbody>
|
477
|
+
<tr>
|
478
|
+
<td class="parameter_name"><p>async_result</p></td>
|
479
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a></p></td>
|
480
|
+
<td class="parameter_annotations"> </td>
|
481
|
+
</tr>
|
482
|
+
<tr>
|
483
|
+
<td class="parameter_name"><p>error</p></td>
|
484
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
485
|
+
<td class="parameter_annotations"> </td>
|
486
|
+
</tr>
|
487
|
+
</tbody>
|
488
|
+
</table></div>
|
489
|
+
</div>
|
490
|
+
<div class="refsect3">
|
491
|
+
<a name="id-1.2.14.12.6.6"></a><h4>Returns</h4>
|
492
|
+
<p> a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. Free the returned
|
493
|
+
object with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
494
|
+
<p></p>
|
495
|
+
</div>
|
496
|
+
<p class="since">Since 2.28</p>
|
497
|
+
</div>
|
498
|
+
<hr>
|
499
|
+
<div class="refsect2">
|
500
|
+
<a name="gdk-pixbuf-animation-ref"></a><h3>gdk_pixbuf_animation_ref ()</h3>
|
501
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> *
|
502
|
+
gdk_pixbuf_animation_ref (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *animation</code></em>);</pre>
|
503
|
+
<div class="warning">
|
504
|
+
<p><code class="literal">gdk_pixbuf_animation_ref</code> has been deprecated since version 2.0 and should not be used in newly-written code.</p>
|
505
|
+
<p>Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>.</p>
|
506
|
+
</div>
|
507
|
+
<p>Adds a reference to an animation.</p>
|
508
|
+
<div class="refsect3">
|
509
|
+
<a name="id-1.2.14.12.7.6"></a><h4>Parameters</h4>
|
510
|
+
<div class="informaltable"><table width="100%" border="0">
|
511
|
+
<colgroup>
|
512
|
+
<col width="150px" class="parameters_name">
|
513
|
+
<col class="parameters_description">
|
514
|
+
<col width="200px" class="parameters_annotations">
|
515
|
+
</colgroup>
|
516
|
+
<tbody><tr>
|
517
|
+
<td class="parameter_name"><p>animation</p></td>
|
518
|
+
<td class="parameter_description"><p>An animation.</p></td>
|
519
|
+
<td class="parameter_annotations"> </td>
|
520
|
+
</tr></tbody>
|
521
|
+
</table></div>
|
522
|
+
</div>
|
523
|
+
<div class="refsect3">
|
524
|
+
<a name="id-1.2.14.12.7.7"></a><h4>Returns</h4>
|
525
|
+
<p> The same as the <em class="parameter"><code>animation</code></em>
|
526
|
+
argument.</p>
|
527
|
+
<p></p>
|
528
|
+
</div>
|
529
|
+
</div>
|
530
|
+
<hr>
|
531
|
+
<div class="refsect2">
|
532
|
+
<a name="gdk-pixbuf-animation-unref"></a><h3>gdk_pixbuf_animation_unref ()</h3>
|
533
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
534
|
+
gdk_pixbuf_animation_unref (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *animation</code></em>);</pre>
|
535
|
+
<div class="warning">
|
536
|
+
<p><code class="literal">gdk_pixbuf_animation_unref</code> has been deprecated since version 2.0 and should not be used in newly-written code.</p>
|
537
|
+
<p>Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
538
|
+
</div>
|
539
|
+
<p>Removes a reference from an animation.</p>
|
540
|
+
<div class="refsect3">
|
541
|
+
<a name="id-1.2.14.12.8.6"></a><h4>Parameters</h4>
|
542
|
+
<div class="informaltable"><table width="100%" border="0">
|
543
|
+
<colgroup>
|
544
|
+
<col width="150px" class="parameters_name">
|
545
|
+
<col class="parameters_description">
|
546
|
+
<col width="200px" class="parameters_annotations">
|
547
|
+
</colgroup>
|
548
|
+
<tbody><tr>
|
549
|
+
<td class="parameter_name"><p>animation</p></td>
|
550
|
+
<td class="parameter_description"><p>An animation.</p></td>
|
551
|
+
<td class="parameter_annotations"> </td>
|
552
|
+
</tr></tbody>
|
553
|
+
</table></div>
|
554
|
+
</div>
|
555
|
+
</div>
|
556
|
+
<hr>
|
557
|
+
<div class="refsect2">
|
558
|
+
<a name="gdk-pixbuf-animation-get-width"></a><h3>gdk_pixbuf_animation_get_width ()</h3>
|
559
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
560
|
+
gdk_pixbuf_animation_get_width (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *animation</code></em>);</pre>
|
561
|
+
<p>Queries the width of the bounding box of a pixbuf animation.</p>
|
562
|
+
<div class="refsect3">
|
563
|
+
<a name="id-1.2.14.12.9.5"></a><h4>Parameters</h4>
|
564
|
+
<div class="informaltable"><table width="100%" border="0">
|
565
|
+
<colgroup>
|
566
|
+
<col width="150px" class="parameters_name">
|
567
|
+
<col class="parameters_description">
|
568
|
+
<col width="200px" class="parameters_annotations">
|
569
|
+
</colgroup>
|
570
|
+
<tbody><tr>
|
571
|
+
<td class="parameter_name"><p>animation</p></td>
|
572
|
+
<td class="parameter_description"><p>An animation.</p></td>
|
573
|
+
<td class="parameter_annotations"> </td>
|
574
|
+
</tr></tbody>
|
575
|
+
</table></div>
|
576
|
+
</div>
|
577
|
+
<div class="refsect3">
|
578
|
+
<a name="id-1.2.14.12.9.6"></a><h4>Returns</h4>
|
579
|
+
<p> Width of the bounding box of the animation.</p>
|
580
|
+
<p></p>
|
581
|
+
</div>
|
582
|
+
</div>
|
583
|
+
<hr>
|
584
|
+
<div class="refsect2">
|
585
|
+
<a name="gdk-pixbuf-animation-get-height"></a><h3>gdk_pixbuf_animation_get_height ()</h3>
|
586
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
587
|
+
gdk_pixbuf_animation_get_height (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *animation</code></em>);</pre>
|
588
|
+
<p>Queries the height of the bounding box of a pixbuf animation.</p>
|
589
|
+
<div class="refsect3">
|
590
|
+
<a name="id-1.2.14.12.10.5"></a><h4>Parameters</h4>
|
591
|
+
<div class="informaltable"><table width="100%" border="0">
|
592
|
+
<colgroup>
|
593
|
+
<col width="150px" class="parameters_name">
|
594
|
+
<col class="parameters_description">
|
595
|
+
<col width="200px" class="parameters_annotations">
|
596
|
+
</colgroup>
|
597
|
+
<tbody><tr>
|
598
|
+
<td class="parameter_name"><p>animation</p></td>
|
599
|
+
<td class="parameter_description"><p>An animation.</p></td>
|
600
|
+
<td class="parameter_annotations"> </td>
|
601
|
+
</tr></tbody>
|
602
|
+
</table></div>
|
603
|
+
</div>
|
604
|
+
<div class="refsect3">
|
605
|
+
<a name="id-1.2.14.12.10.6"></a><h4>Returns</h4>
|
606
|
+
<p> Height of the bounding box of the animation.</p>
|
607
|
+
<p></p>
|
608
|
+
</div>
|
609
|
+
</div>
|
610
|
+
<hr>
|
611
|
+
<div class="refsect2">
|
612
|
+
<a name="gdk-pixbuf-animation-get-iter"></a><h3>gdk_pixbuf_animation_get_iter ()</h3>
|
613
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="returnvalue">GdkPixbufAnimationIter</span></a> *
|
614
|
+
gdk_pixbuf_animation_get_iter (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *animation</code></em>,
|
615
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *start_time</code></em>);</pre>
|
616
|
+
<p>Get an iterator for displaying an animation. The iterator provides
|
617
|
+
the frames that should be displayed at a given time.
|
618
|
+
It should be freed after use with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
619
|
+
<p><em class="parameter"><code>start_time</code></em>
|
620
|
+
would normally come from <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>, and
|
621
|
+
marks the beginning of animation playback. After creating an
|
622
|
+
iterator, you should immediately display the pixbuf returned by
|
623
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-pixbuf" title="gdk_pixbuf_animation_iter_get_pixbuf ()"><code class="function">gdk_pixbuf_animation_iter_get_pixbuf()</code></a>. Then, you should install a
|
624
|
+
timeout (with <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add"><code class="function">g_timeout_add()</code></a>) or by some other mechanism ensure
|
625
|
+
that you'll update the image after
|
626
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-delay-time" title="gdk_pixbuf_animation_iter_get_delay_time ()"><code class="function">gdk_pixbuf_animation_iter_get_delay_time()</code></a> milliseconds. Each time
|
627
|
+
the image is updated, you should reinstall the timeout with the new,
|
628
|
+
possibly-changed delay time.</p>
|
629
|
+
<p>As a shortcut, if <em class="parameter"><code>start_time</code></em>
|
630
|
+
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the result of
|
631
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a> will be used automatically.</p>
|
632
|
+
<p>To update the image (i.e. possibly change the result of
|
633
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-pixbuf" title="gdk_pixbuf_animation_iter_get_pixbuf ()"><code class="function">gdk_pixbuf_animation_iter_get_pixbuf()</code></a> to a new frame of the animation),
|
634
|
+
call <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-advance" title="gdk_pixbuf_animation_iter_advance ()"><code class="function">gdk_pixbuf_animation_iter_advance()</code></a>.</p>
|
635
|
+
<p>If you're using <a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a>, in addition to updating the image
|
636
|
+
after the delay time, you should also update it whenever you
|
637
|
+
receive the area_updated signal and
|
638
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-on-currently-loading-frame" title="gdk_pixbuf_animation_iter_on_currently_loading_frame ()"><code class="function">gdk_pixbuf_animation_iter_on_currently_loading_frame()</code></a> returns
|
639
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. In this case, the frame currently being fed into the loader
|
640
|
+
has received new data, so needs to be refreshed. The delay time for
|
641
|
+
a frame may also be modified after an area_updated signal, for
|
642
|
+
example if the delay time for a frame is encoded in the data after
|
643
|
+
the frame itself. So your timeout should be reinstalled after any
|
644
|
+
area_updated signal.</p>
|
645
|
+
<p>A delay time of -1 is possible, indicating "infinite."</p>
|
646
|
+
<div class="refsect3">
|
647
|
+
<a name="id-1.2.14.12.11.10"></a><h4>Parameters</h4>
|
648
|
+
<div class="informaltable"><table width="100%" border="0">
|
649
|
+
<colgroup>
|
650
|
+
<col width="150px" class="parameters_name">
|
651
|
+
<col class="parameters_description">
|
652
|
+
<col width="200px" class="parameters_annotations">
|
653
|
+
</colgroup>
|
654
|
+
<tbody>
|
655
|
+
<tr>
|
656
|
+
<td class="parameter_name"><p>animation</p></td>
|
657
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a></p></td>
|
658
|
+
<td class="parameter_annotations"> </td>
|
659
|
+
</tr>
|
660
|
+
<tr>
|
661
|
+
<td class="parameter_name"><p>start_time</p></td>
|
662
|
+
<td class="parameter_description"><p> time when the animation starts playing. </p></td>
|
663
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
664
|
+
</tr>
|
665
|
+
</tbody>
|
666
|
+
</table></div>
|
667
|
+
</div>
|
668
|
+
<div class="refsect3">
|
669
|
+
<a name="id-1.2.14.12.11.11"></a><h4>Returns</h4>
|
670
|
+
<p> an iterator to move over the animation. </p>
|
671
|
+
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
672
|
+
</div>
|
673
|
+
</div>
|
674
|
+
<hr>
|
675
|
+
<div class="refsect2">
|
676
|
+
<a name="gdk-pixbuf-animation-is-static-image"></a><h3>gdk_pixbuf_animation_is_static_image ()</h3>
|
677
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
678
|
+
gdk_pixbuf_animation_is_static_image (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *animation</code></em>);</pre>
|
679
|
+
<p>If you load a file with <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-file" title="gdk_pixbuf_animation_new_from_file ()"><code class="function">gdk_pixbuf_animation_new_from_file()</code></a> and it turns
|
680
|
+
out to be a plain, unanimated image, then this function will return
|
681
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. Use <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-static-image" title="gdk_pixbuf_animation_get_static_image ()"><code class="function">gdk_pixbuf_animation_get_static_image()</code></a> to retrieve
|
682
|
+
the image.</p>
|
683
|
+
<div class="refsect3">
|
684
|
+
<a name="id-1.2.14.12.12.5"></a><h4>Parameters</h4>
|
685
|
+
<div class="informaltable"><table width="100%" border="0">
|
686
|
+
<colgroup>
|
687
|
+
<col width="150px" class="parameters_name">
|
688
|
+
<col class="parameters_description">
|
689
|
+
<col width="200px" class="parameters_annotations">
|
690
|
+
</colgroup>
|
691
|
+
<tbody><tr>
|
692
|
+
<td class="parameter_name"><p>animation</p></td>
|
693
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a></p></td>
|
694
|
+
<td class="parameter_annotations"> </td>
|
695
|
+
</tr></tbody>
|
696
|
+
</table></div>
|
697
|
+
</div>
|
698
|
+
<div class="refsect3">
|
699
|
+
<a name="id-1.2.14.12.12.6"></a><h4>Returns</h4>
|
700
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the "animation" was really just an image</p>
|
701
|
+
<p></p>
|
702
|
+
</div>
|
703
|
+
</div>
|
704
|
+
<hr>
|
705
|
+
<div class="refsect2">
|
706
|
+
<a name="gdk-pixbuf-animation-get-static-image"></a><h3>gdk_pixbuf_animation_get_static_image ()</h3>
|
707
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
708
|
+
gdk_pixbuf_animation_get_static_image (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> *animation</code></em>);</pre>
|
709
|
+
<p>If an animation is really just a plain image (has only one frame),
|
710
|
+
this function returns that image. If the animation is an animation,
|
711
|
+
this function returns a reasonable thing to display as a static
|
712
|
+
unanimated image, which might be the first frame, or something more
|
713
|
+
sophisticated. If an animation hasn't loaded any frames yet, this
|
714
|
+
function will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
|
715
|
+
<div class="refsect3">
|
716
|
+
<a name="id-1.2.14.12.13.5"></a><h4>Parameters</h4>
|
717
|
+
<div class="informaltable"><table width="100%" border="0">
|
718
|
+
<colgroup>
|
719
|
+
<col width="150px" class="parameters_name">
|
720
|
+
<col class="parameters_description">
|
721
|
+
<col width="200px" class="parameters_annotations">
|
722
|
+
</colgroup>
|
723
|
+
<tbody><tr>
|
724
|
+
<td class="parameter_name"><p>animation</p></td>
|
725
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a></p></td>
|
726
|
+
<td class="parameter_annotations"> </td>
|
727
|
+
</tr></tbody>
|
728
|
+
</table></div>
|
729
|
+
</div>
|
730
|
+
<div class="refsect3">
|
731
|
+
<a name="id-1.2.14.12.13.6"></a><h4>Returns</h4>
|
732
|
+
<p> unanimated image representing the animation. </p>
|
733
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
734
|
+
</div>
|
735
|
+
</div>
|
736
|
+
<hr>
|
737
|
+
<div class="refsect2">
|
738
|
+
<a name="gdk-pixbuf-animation-iter-advance"></a><h3>gdk_pixbuf_animation_iter_advance ()</h3>
|
739
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
740
|
+
gdk_pixbuf_animation_iter_advance (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="type">GdkPixbufAnimationIter</span></a> *iter</code></em>,
|
741
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *current_time</code></em>);</pre>
|
742
|
+
<p>Possibly advances an animation to a new frame. Chooses the frame based
|
743
|
+
on the start time passed to <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-iter" title="gdk_pixbuf_animation_get_iter ()"><code class="function">gdk_pixbuf_animation_get_iter()</code></a>.</p>
|
744
|
+
<p><em class="parameter"><code>current_time</code></em>
|
745
|
+
would normally come from <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>, and
|
746
|
+
must be greater than or equal to the time passed to
|
747
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-iter" title="gdk_pixbuf_animation_get_iter ()"><code class="function">gdk_pixbuf_animation_get_iter()</code></a>, and must increase or remain
|
748
|
+
unchanged each time <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-pixbuf" title="gdk_pixbuf_animation_iter_get_pixbuf ()"><code class="function">gdk_pixbuf_animation_iter_get_pixbuf()</code></a> is
|
749
|
+
called. That is, you can't go backward in time; animations only
|
750
|
+
play forward.</p>
|
751
|
+
<p>As a shortcut, pass <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the current time and <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>
|
752
|
+
will be invoked on your behalf. So you only need to explicitly pass
|
753
|
+
<em class="parameter"><code>current_time</code></em>
|
754
|
+
if you're doing something odd like playing the animation
|
755
|
+
at double speed.</p>
|
756
|
+
<p>If this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, there's no need to update the animation
|
757
|
+
display, assuming the display had been rendered prior to advancing;
|
758
|
+
if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, you need to call <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-pixbuf" title="gdk_pixbuf_animation_iter_get_pixbuf ()"><code class="function">gdk_pixbuf_animation_iter_get_pixbuf()</code></a>
|
759
|
+
and update the display with the new pixbuf.</p>
|
760
|
+
<div class="refsect3">
|
761
|
+
<a name="id-1.2.14.12.14.8"></a><h4>Parameters</h4>
|
762
|
+
<div class="informaltable"><table width="100%" border="0">
|
763
|
+
<colgroup>
|
764
|
+
<col width="150px" class="parameters_name">
|
765
|
+
<col class="parameters_description">
|
766
|
+
<col width="200px" class="parameters_annotations">
|
767
|
+
</colgroup>
|
768
|
+
<tbody>
|
769
|
+
<tr>
|
770
|
+
<td class="parameter_name"><p>iter</p></td>
|
771
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="type">GdkPixbufAnimationIter</span></a></p></td>
|
772
|
+
<td class="parameter_annotations"> </td>
|
773
|
+
</tr>
|
774
|
+
<tr>
|
775
|
+
<td class="parameter_name"><p>current_time</p></td>
|
776
|
+
<td class="parameter_description"><p> current time. </p></td>
|
777
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
778
|
+
</tr>
|
779
|
+
</tbody>
|
780
|
+
</table></div>
|
781
|
+
</div>
|
782
|
+
<div class="refsect3">
|
783
|
+
<a name="id-1.2.14.12.14.9"></a><h4>Returns</h4>
|
784
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the image may need updating</p>
|
785
|
+
<p></p>
|
786
|
+
</div>
|
787
|
+
</div>
|
788
|
+
<hr>
|
789
|
+
<div class="refsect2">
|
790
|
+
<a name="gdk-pixbuf-animation-iter-get-delay-time"></a><h3>gdk_pixbuf_animation_iter_get_delay_time ()</h3>
|
791
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
792
|
+
gdk_pixbuf_animation_iter_get_delay_time
|
793
|
+
(<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="type">GdkPixbufAnimationIter</span></a> *iter</code></em>);</pre>
|
794
|
+
<p>Gets the number of milliseconds the current pixbuf should be displayed,
|
795
|
+
or -1 if the current pixbuf should be displayed forever. <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add"><code class="function">g_timeout_add()</code></a>
|
796
|
+
conveniently takes a timeout in milliseconds, so you can use a timeout
|
797
|
+
to schedule the next update.</p>
|
798
|
+
<div class="refsect3">
|
799
|
+
<a name="id-1.2.14.12.15.5"></a><h4>Parameters</h4>
|
800
|
+
<div class="informaltable"><table width="100%" border="0">
|
801
|
+
<colgroup>
|
802
|
+
<col width="150px" class="parameters_name">
|
803
|
+
<col class="parameters_description">
|
804
|
+
<col width="200px" class="parameters_annotations">
|
805
|
+
</colgroup>
|
806
|
+
<tbody><tr>
|
807
|
+
<td class="parameter_name"><p>iter</p></td>
|
808
|
+
<td class="parameter_description"><p>an animation iterator</p></td>
|
809
|
+
<td class="parameter_annotations"> </td>
|
810
|
+
</tr></tbody>
|
811
|
+
</table></div>
|
812
|
+
</div>
|
813
|
+
<div class="refsect3">
|
814
|
+
<a name="id-1.2.14.12.15.6"></a><h4>Returns</h4>
|
815
|
+
<p> delay time in milliseconds (thousandths of a second)</p>
|
816
|
+
<p></p>
|
817
|
+
</div>
|
818
|
+
</div>
|
819
|
+
<hr>
|
820
|
+
<div class="refsect2">
|
821
|
+
<a name="gdk-pixbuf-animation-iter-on-currently-loading-frame"></a><h3>gdk_pixbuf_animation_iter_on_currently_loading_frame ()</h3>
|
822
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
823
|
+
gdk_pixbuf_animation_iter_on_currently_loading_frame
|
824
|
+
(<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="type">GdkPixbufAnimationIter</span></a> *iter</code></em>);</pre>
|
825
|
+
<p>Used to determine how to respond to the area_updated signal on
|
826
|
+
<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> when loading an animation. area_updated is emitted
|
827
|
+
for an area of the frame currently streaming in to the loader. So if
|
828
|
+
you're on the currently loading frame, you need to redraw the screen for
|
829
|
+
the updated area.</p>
|
830
|
+
<div class="refsect3">
|
831
|
+
<a name="id-1.2.14.12.16.5"></a><h4>Parameters</h4>
|
832
|
+
<div class="informaltable"><table width="100%" border="0">
|
833
|
+
<colgroup>
|
834
|
+
<col width="150px" class="parameters_name">
|
835
|
+
<col class="parameters_description">
|
836
|
+
<col width="200px" class="parameters_annotations">
|
837
|
+
</colgroup>
|
838
|
+
<tbody><tr>
|
839
|
+
<td class="parameter_name"><p>iter</p></td>
|
840
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="type">GdkPixbufAnimationIter</span></a></p></td>
|
841
|
+
<td class="parameter_annotations"> </td>
|
842
|
+
</tr></tbody>
|
843
|
+
</table></div>
|
844
|
+
</div>
|
845
|
+
<div class="refsect3">
|
846
|
+
<a name="id-1.2.14.12.16.6"></a><h4>Returns</h4>
|
847
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the frame we're on is partially loaded, or the last frame</p>
|
848
|
+
<p></p>
|
849
|
+
</div>
|
850
|
+
</div>
|
851
|
+
<hr>
|
852
|
+
<div class="refsect2">
|
853
|
+
<a name="gdk-pixbuf-animation-iter-get-pixbuf"></a><h3>gdk_pixbuf_animation_iter_get_pixbuf ()</h3>
|
854
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
855
|
+
gdk_pixbuf_animation_iter_get_pixbuf (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="type">GdkPixbufAnimationIter</span></a> *iter</code></em>);</pre>
|
856
|
+
<p>Gets the current pixbuf which should be displayed; the pixbuf might not
|
857
|
+
be the same size as the animation itself
|
858
|
+
(<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-width" title="gdk_pixbuf_animation_get_width ()"><code class="function">gdk_pixbuf_animation_get_width()</code></a>, <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-height" title="gdk_pixbuf_animation_get_height ()"><code class="function">gdk_pixbuf_animation_get_height()</code></a>).
|
859
|
+
This pixbuf should be displayed for
|
860
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-delay-time" title="gdk_pixbuf_animation_iter_get_delay_time ()"><code class="function">gdk_pixbuf_animation_iter_get_delay_time()</code></a> milliseconds. The caller
|
861
|
+
of this function does not own a reference to the returned pixbuf;
|
862
|
+
the returned pixbuf will become invalid when the iterator advances
|
863
|
+
to the next frame, which may happen anytime you call
|
864
|
+
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-advance" title="gdk_pixbuf_animation_iter_advance ()"><code class="function">gdk_pixbuf_animation_iter_advance()</code></a>. Copy the pixbuf to keep it
|
865
|
+
(don't just add a reference), as it may get recycled as you advance
|
866
|
+
the iterator.</p>
|
867
|
+
<div class="refsect3">
|
868
|
+
<a name="id-1.2.14.12.17.5"></a><h4>Parameters</h4>
|
869
|
+
<div class="informaltable"><table width="100%" border="0">
|
870
|
+
<colgroup>
|
871
|
+
<col width="150px" class="parameters_name">
|
872
|
+
<col class="parameters_description">
|
873
|
+
<col width="200px" class="parameters_annotations">
|
874
|
+
</colgroup>
|
875
|
+
<tbody><tr>
|
876
|
+
<td class="parameter_name"><p>iter</p></td>
|
877
|
+
<td class="parameter_description"><p>an animation iterator</p></td>
|
878
|
+
<td class="parameter_annotations"> </td>
|
879
|
+
</tr></tbody>
|
880
|
+
</table></div>
|
881
|
+
</div>
|
882
|
+
<div class="refsect3">
|
883
|
+
<a name="id-1.2.14.12.17.6"></a><h4>Returns</h4>
|
884
|
+
<p> the pixbuf to be displayed. </p>
|
885
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
886
|
+
</div>
|
887
|
+
</div>
|
888
|
+
<hr>
|
889
|
+
<div class="refsect2">
|
890
|
+
<a name="gdk-pixbuf-simple-anim-new"></a><h3>gdk_pixbuf_simple_anim_new ()</h3>
|
891
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="returnvalue">GdkPixbufSimpleAnim</span></a> *
|
892
|
+
gdk_pixbuf_simple_anim_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
893
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
894
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> rate</code></em>);</pre>
|
895
|
+
<p>Creates a new, empty animation.</p>
|
896
|
+
<div class="refsect3">
|
897
|
+
<a name="id-1.2.14.12.18.5"></a><h4>Parameters</h4>
|
898
|
+
<div class="informaltable"><table width="100%" border="0">
|
899
|
+
<colgroup>
|
900
|
+
<col width="150px" class="parameters_name">
|
901
|
+
<col class="parameters_description">
|
902
|
+
<col width="200px" class="parameters_annotations">
|
903
|
+
</colgroup>
|
904
|
+
<tbody>
|
905
|
+
<tr>
|
906
|
+
<td class="parameter_name"><p>width</p></td>
|
907
|
+
<td class="parameter_description"><p>the width of the animation</p></td>
|
908
|
+
<td class="parameter_annotations"> </td>
|
909
|
+
</tr>
|
910
|
+
<tr>
|
911
|
+
<td class="parameter_name"><p>height</p></td>
|
912
|
+
<td class="parameter_description"><p>the height of the animation</p></td>
|
913
|
+
<td class="parameter_annotations"> </td>
|
914
|
+
</tr>
|
915
|
+
<tr>
|
916
|
+
<td class="parameter_name"><p>rate</p></td>
|
917
|
+
<td class="parameter_description"><p>the speed of the animation, in frames per second</p></td>
|
918
|
+
<td class="parameter_annotations"> </td>
|
919
|
+
</tr>
|
920
|
+
</tbody>
|
921
|
+
</table></div>
|
922
|
+
</div>
|
923
|
+
<div class="refsect3">
|
924
|
+
<a name="id-1.2.14.12.18.6"></a><h4>Returns</h4>
|
925
|
+
<p> a newly allocated <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a> </p>
|
926
|
+
<p></p>
|
927
|
+
</div>
|
928
|
+
<p class="since">Since 2.8</p>
|
929
|
+
</div>
|
930
|
+
<hr>
|
931
|
+
<div class="refsect2">
|
932
|
+
<a name="gdk-pixbuf-simple-anim-add-frame"></a><h3>gdk_pixbuf_simple_anim_add_frame ()</h3>
|
933
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
934
|
+
gdk_pixbuf_simple_anim_add_frame (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a> *animation</code></em>,
|
935
|
+
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
936
|
+
<p>Adds a new frame to <em class="parameter"><code>animation</code></em>
|
937
|
+
. The <em class="parameter"><code>pixbuf</code></em>
|
938
|
+
must
|
939
|
+
have the dimensions specified when the animation
|
940
|
+
was constructed.</p>
|
941
|
+
<div class="refsect3">
|
942
|
+
<a name="id-1.2.14.12.19.5"></a><h4>Parameters</h4>
|
943
|
+
<div class="informaltable"><table width="100%" border="0">
|
944
|
+
<colgroup>
|
945
|
+
<col width="150px" class="parameters_name">
|
946
|
+
<col class="parameters_description">
|
947
|
+
<col width="200px" class="parameters_annotations">
|
948
|
+
</colgroup>
|
949
|
+
<tbody>
|
950
|
+
<tr>
|
951
|
+
<td class="parameter_name"><p>animation</p></td>
|
952
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a></p></td>
|
953
|
+
<td class="parameter_annotations"> </td>
|
954
|
+
</tr>
|
955
|
+
<tr>
|
956
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
957
|
+
<td class="parameter_description"><p>the pixbuf to add </p></td>
|
958
|
+
<td class="parameter_annotations"> </td>
|
959
|
+
</tr>
|
960
|
+
</tbody>
|
961
|
+
</table></div>
|
962
|
+
</div>
|
963
|
+
<p class="since">Since 2.8</p>
|
964
|
+
</div>
|
965
|
+
<hr>
|
966
|
+
<div class="refsect2">
|
967
|
+
<a name="gdk-pixbuf-simple-anim-set-loop"></a><h3>gdk_pixbuf_simple_anim_set_loop ()</h3>
|
968
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
969
|
+
gdk_pixbuf_simple_anim_set_loop (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a> *animation</code></em>,
|
970
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> loop</code></em>);</pre>
|
971
|
+
<p>Sets whether <em class="parameter"><code>animation</code></em>
|
972
|
+
should loop indefinitely when it reaches the end.</p>
|
973
|
+
<div class="refsect3">
|
974
|
+
<a name="id-1.2.14.12.20.5"></a><h4>Parameters</h4>
|
975
|
+
<div class="informaltable"><table width="100%" border="0">
|
976
|
+
<colgroup>
|
977
|
+
<col width="150px" class="parameters_name">
|
978
|
+
<col class="parameters_description">
|
979
|
+
<col width="200px" class="parameters_annotations">
|
980
|
+
</colgroup>
|
981
|
+
<tbody>
|
982
|
+
<tr>
|
983
|
+
<td class="parameter_name"><p>animation</p></td>
|
984
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a></p></td>
|
985
|
+
<td class="parameter_annotations"> </td>
|
986
|
+
</tr>
|
987
|
+
<tr>
|
988
|
+
<td class="parameter_name"><p>loop</p></td>
|
989
|
+
<td class="parameter_description"><p>whether to loop the animation</p></td>
|
990
|
+
<td class="parameter_annotations"> </td>
|
991
|
+
</tr>
|
992
|
+
</tbody>
|
993
|
+
</table></div>
|
994
|
+
</div>
|
995
|
+
<p class="since">Since 2.18</p>
|
996
|
+
</div>
|
997
|
+
<hr>
|
998
|
+
<div class="refsect2">
|
999
|
+
<a name="gdk-pixbuf-simple-anim-get-loop"></a><h3>gdk_pixbuf_simple_anim_get_loop ()</h3>
|
1000
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
1001
|
+
gdk_pixbuf_simple_anim_get_loop (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a> *animation</code></em>);</pre>
|
1002
|
+
<p>Gets whether <em class="parameter"><code>animation</code></em>
|
1003
|
+
should loop indefinitely when it reaches the end.</p>
|
1004
|
+
<div class="refsect3">
|
1005
|
+
<a name="id-1.2.14.12.21.5"></a><h4>Parameters</h4>
|
1006
|
+
<div class="informaltable"><table width="100%" border="0">
|
1007
|
+
<colgroup>
|
1008
|
+
<col width="150px" class="parameters_name">
|
1009
|
+
<col class="parameters_description">
|
1010
|
+
<col width="200px" class="parameters_annotations">
|
1011
|
+
</colgroup>
|
1012
|
+
<tbody><tr>
|
1013
|
+
<td class="parameter_name"><p>animation</p></td>
|
1014
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a></p></td>
|
1015
|
+
<td class="parameter_annotations"> </td>
|
1016
|
+
</tr></tbody>
|
1017
|
+
</table></div>
|
1018
|
+
</div>
|
1019
|
+
<div class="refsect3">
|
1020
|
+
<a name="id-1.2.14.12.21.6"></a><h4>Returns</h4>
|
1021
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the animation loops forever, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
|
1022
|
+
<p></p>
|
1023
|
+
</div>
|
1024
|
+
<p class="since">Since 2.18</p>
|
1025
|
+
</div>
|
1026
|
+
</div>
|
1027
|
+
<div class="refsect1">
|
1028
|
+
<a name="gdk-pixbuf-Animations.other_details"></a><h2>Types and Values</h2>
|
1029
|
+
<div class="refsect2">
|
1030
|
+
<a name="GdkPixbufAnimation-struct"></a><h3>struct GdkPixbufAnimation</h3>
|
1031
|
+
<pre class="programlisting">struct GdkPixbufAnimation;</pre>
|
1032
|
+
<p>An opaque struct representing an animation.</p>
|
1033
|
+
</div>
|
1034
|
+
<hr>
|
1035
|
+
<div class="refsect2">
|
1036
|
+
<a name="GdkPixbufAnimationIter-struct"></a><h3>struct GdkPixbufAnimationIter</h3>
|
1037
|
+
<pre class="programlisting">struct GdkPixbufAnimationIter;</pre>
|
1038
|
+
<p>An opaque struct representing an iterator which points to a
|
1039
|
+
certain position in an animation.</p>
|
1040
|
+
</div>
|
1041
|
+
<hr>
|
1042
|
+
<div class="refsect2">
|
1043
|
+
<a name="GdkPixbufSimpleAnim-struct"></a><h3>GdkPixbufSimpleAnim</h3>
|
1044
|
+
<pre class="programlisting">typedef struct _GdkPixbufSimpleAnim GdkPixbufSimpleAnim;</pre>
|
1045
|
+
<p>An opaque struct representing a simple animation.</p>
|
1046
|
+
</div>
|
1047
|
+
</div>
|
1048
|
+
<div class="refsect1">
|
1049
|
+
<a name="gdk-pixbuf-Animations.property-details"></a><h2>Property Details</h2>
|
1050
|
+
<div class="refsect2">
|
1051
|
+
<a name="GdkPixbufSimpleAnim--loop"></a><h3>The <code class="literal">“loop”</code> property</h3>
|
1052
|
+
<pre class="programlisting"> “loop” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
1053
|
+
<p>Whether the animation should loop when it reaches the end.</p>
|
1054
|
+
<p>Flags: Read / Write</p>
|
1055
|
+
<p>Default value: FALSE</p>
|
1056
|
+
<p class="since">Since 2.18</p>
|
1057
|
+
</div>
|
1058
|
+
</div>
|
1059
|
+
<div class="refsect1">
|
1060
|
+
<a name="gdk-pixbuf-Animations.see-also"></a><h2>See Also</h2>
|
1061
|
+
<p><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a>.</p>
|
1062
|
+
</div>
|
1063
|
+
</div>
|
1064
|
+
<div class="footer">
|
1065
|
+
<hr>
|
1066
|
+
Generated by GTK-Doc V1.20.1</div>
|
1067
|
+
</body>
|
1068
|
+
</html>
|