gdk_pixbuf2 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -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 +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +2 -2
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +1 -3
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +1 -1
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +1 -1
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +30 -27
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +557 -416
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +10 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +9 -11
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +22 -24
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +10 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +16 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +14 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +11 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +165 -167
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +768 -578
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +546 -428
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +549 -474
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +321 -265
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +467 -349
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +887 -662
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +122 -91
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +656 -518
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +631 -484
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +247 -171
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +110 -89
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +119 -98
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +275 -230
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +784 -581
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +86 -55
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +153 -192
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +98 -97
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +247 -94
- 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 +1 -1
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +1 -1
- metadata +4 -4
@@ -8,19 +8,16 @@
|
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="gdk-pixbuf-Utilities.html" title="Utilities">
|
10
10
|
<link rel="next" href="GdkPixbufLoader.html" title="GdkPixbufLoader">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
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="
|
16
|
-
<td width="100%" align="left">
|
17
|
-
<a href="#" class="shortcut">Top</a>
|
18
|
-
|
19
|
-
<a href="#gdk-pixbuf-Animations.
|
20
|
-
|
21
|
-
<a href="#gdk-pixbuf-Animations.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
22
|
-
|
|
23
|
-
<a href="#gdk-pixbuf-Animations.properties" class="shortcut">Properties</a>
|
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>
|
24
21
|
</td>
|
25
22
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
26
23
|
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
@@ -34,845 +31,1038 @@
|
|
34
31
|
<h2><span class="refentrytitle"><a name="gdk-pixbuf-Animations.top_of_page"></a>Animations</span></h2>
|
35
32
|
<p>Animations — Animated images.</p>
|
36
33
|
</td>
|
37
|
-
<td valign="top" align="right"></td>
|
34
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
38
35
|
</tr></table></div>
|
39
|
-
<div class="
|
40
|
-
<a name="gdk-pixbuf-Animations.
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
<
|
47
|
-
|
48
|
-
<
|
49
|
-
|
50
|
-
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<a class="link" href="gdk-pixbuf-Animations.html#
|
61
|
-
|
62
|
-
|
63
|
-
<
|
64
|
-
<
|
65
|
-
<
|
66
|
-
|
67
|
-
<
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<
|
72
|
-
|
73
|
-
<
|
74
|
-
|
75
|
-
<
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
<
|
89
|
-
|
90
|
-
|
91
|
-
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
92
244
|
</div>
|
93
245
|
<div class="refsect1">
|
94
246
|
<a name="gdk-pixbuf-Animations.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
95
|
-
<pre class="
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
</
|
100
|
-
<
|
101
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
102
|
-
+----GdkPixbufAnimationIter
|
103
|
-
</pre>
|
104
|
-
<pre class="synopsis">
|
105
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
106
|
-
+----<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation">GdkPixbufAnimation</a>
|
107
|
-
+----GdkPixbufSimpleAnim
|
247
|
+
<pre class="screen"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/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
|
108
253
|
</pre>
|
109
254
|
</div>
|
110
255
|
<div class="refsect1">
|
111
|
-
<a name="gdk-pixbuf-Animations.
|
112
|
-
<pre class="synopsis"
|
113
|
-
"<a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim--loop" title='The "loop" property'>loop</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
|
256
|
+
<a name="gdk-pixbuf-Animations.includes"></a><h2>Includes</h2>
|
257
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
114
258
|
</pre>
|
115
259
|
</div>
|
116
260
|
<div class="refsect1">
|
117
261
|
<a name="gdk-pixbuf-Animations.description"></a><h2>Description</h2>
|
118
|
-
<p>
|
119
|
-
The GdkPixBuf library provides a simple mechanism to load and
|
262
|
+
<p>The GdkPixBuf library provides a simple mechanism to load and
|
120
263
|
represent animations. An animation is conceptually a series of
|
121
264
|
frames to be displayed over time. The animation may not be
|
122
265
|
represented as a series of frames internally; for example, it may
|
123
266
|
be stored as a sprite and instructions for moving the sprite around
|
124
267
|
a background. To display an animation you don't need to understand
|
125
268
|
its representation, however; you just ask GdkPixBuf what should
|
126
|
-
be displayed at a given point in time
|
127
|
-
</p>
|
269
|
+
be displayed at a given point in time.</p>
|
128
270
|
</div>
|
129
271
|
<div class="refsect1">
|
130
|
-
<a name="gdk-pixbuf-Animations.
|
272
|
+
<a name="gdk-pixbuf-Animations.functions_details"></a><h2>Functions</h2>
|
131
273
|
<div class="refsect2">
|
132
|
-
<a name="
|
133
|
-
<pre class="programlisting"
|
134
|
-
<
|
135
|
-
|
136
|
-
|
137
|
-
</div>
|
138
|
-
<hr>
|
139
|
-
<div class="refsect2">
|
140
|
-
<a name="GdkPixbufAnimationIter-struct"></a><h3>struct GdkPixbufAnimationIter</h3>
|
141
|
-
<pre class="programlisting">struct GdkPixbufAnimationIter;</pre>
|
142
|
-
<p>
|
143
|
-
An opaque struct representing an iterator which points to a
|
144
|
-
certain position in an animation.
|
145
|
-
</p>
|
146
|
-
</div>
|
147
|
-
<hr>
|
148
|
-
<div class="refsect2">
|
149
|
-
<a name="gdk-pixbuf-animation-new-from-file"></a><h3>gdk_pixbuf_animation_new_from_file ()</h3>
|
150
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a> * gdk_pixbuf_animation_new_from_file (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
151
|
-
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
152
|
-
<p>
|
153
|
-
Creates a new animation by loading it from a file. The file format is
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
154
279
|
detected automatically. If the file's format does not support multi-frame
|
155
280
|
images, then an animation with a single frame will be created. Possible errors
|
156
|
-
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domains
|
157
|
-
|
158
|
-
<
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
159
285
|
<colgroup>
|
160
|
-
<col
|
161
|
-
<col>
|
286
|
+
<col width="150px" class="parameters_name">
|
287
|
+
<col class="parameters_description">
|
288
|
+
<col width="200px" class="parameters_annotations">
|
162
289
|
</colgroup>
|
163
290
|
<tbody>
|
164
291
|
<tr>
|
165
|
-
<td
|
166
|
-
<td>Name of file to load, in the GLib file name encoding</td>
|
167
|
-
</
|
168
|
-
<tr>
|
169
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
170
|
-
<td>return location for error</td>
|
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>
|
171
295
|
</tr>
|
172
296
|
<tr>
|
173
|
-
<td
|
174
|
-
<td
|
175
|
-
|
176
|
-
there was no loader for the file's format, there was not enough memory to
|
177
|
-
allocate the image buffer, or the image file contained invalid data.</td>
|
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>
|
178
300
|
</tr>
|
179
301
|
</tbody>
|
180
302
|
</table></div>
|
181
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
182
313
|
<hr>
|
183
314
|
<div class="refsect2">
|
184
|
-
<a name="gdk-pixbuf-animation-new-from-resource"></a><h3>gdk_pixbuf_animation_new_from_resource
|
185
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a>
|
186
|
-
|
187
|
-
|
188
|
-
<
|
189
|
-
Creates a new pixbuf animation by loading an image from an resource
|
190
|
-
|
191
|
-
<
|
192
|
-
|
193
|
-
<
|
194
|
-
</
|
195
|
-
<div class="
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
196
327
|
<colgroup>
|
197
|
-
<col
|
198
|
-
<col>
|
328
|
+
<col width="150px" class="parameters_name">
|
329
|
+
<col class="parameters_description">
|
330
|
+
<col width="200px" class="parameters_annotations">
|
199
331
|
</colgroup>
|
200
332
|
<tbody>
|
201
333
|
<tr>
|
202
|
-
<td
|
203
|
-
<td>the path of the resource file</td>
|
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>
|
204
337
|
</tr>
|
205
338
|
<tr>
|
206
|
-
<td
|
207
|
-
<td>Return location for an error</td>
|
208
|
-
</
|
209
|
-
<tr>
|
210
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
211
|
-
<td>A newly-created animation, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
212
|
-
conditions occurred: the file could not be opened, the image format is
|
213
|
-
not supported, there was not enough memory to allocate the image buffer,
|
214
|
-
the stream contained invalid data, or the operation was cancelled.</td>
|
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>
|
215
342
|
</tr>
|
216
343
|
</tbody>
|
217
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
218
354
|
<p class="since">Since 2.28</p>
|
219
355
|
</div>
|
220
356
|
<hr>
|
221
357
|
<div class="refsect2">
|
222
|
-
<a name="gdk-pixbuf-animation-new-from-stream"></a><h3>gdk_pixbuf_animation_new_from_stream
|
223
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a>
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
<p>
|
228
|
-
|
229
|
-
</
|
230
|
-
<
|
231
|
-
|
232
|
-
<em class="parameter"><code>error</code></em> will be set. The <em class="parameter"><code>cancellable</code></em> can be used to abort the operation
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
361
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
362
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
233
368
|
from another thread. If the operation was cancelled, the error
|
234
|
-
<
|
235
|
-
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains.
|
236
|
-
|
237
|
-
<
|
238
|
-
|
239
|
-
|
240
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/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">
|
241
375
|
<colgroup>
|
242
|
-
<col
|
243
|
-
<col>
|
376
|
+
<col width="150px" class="parameters_name">
|
377
|
+
<col class="parameters_description">
|
378
|
+
<col width="200px" class="parameters_annotations">
|
244
379
|
</colgroup>
|
245
380
|
<tbody>
|
246
381
|
<tr>
|
247
|
-
<td
|
248
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</td>
|
249
|
-
</
|
250
|
-
<tr>
|
251
|
-
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
252
|
-
<td>optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
253
|
-
</td>
|
382
|
+
<td class="parameter_name"><p>stream</p></td>
|
383
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</p></td>
|
384
|
+
<td class="parameter_annotations"> </td>
|
254
385
|
</tr>
|
255
386
|
<tr>
|
256
|
-
<td
|
257
|
-
<td>
|
387
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
388
|
+
<td class="parameter_description"><p> optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
258
390
|
</tr>
|
259
391
|
<tr>
|
260
|
-
<td
|
261
|
-
<td
|
262
|
-
|
263
|
-
not supported, there was not enough memory to allocate the image buffer,
|
264
|
-
the stream contained invalid data, or the operation was cancelled.</td>
|
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>
|
265
395
|
</tr>
|
266
396
|
</tbody>
|
267
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
268
407
|
<p class="since">Since 2.28</p>
|
269
408
|
</div>
|
270
409
|
<hr>
|
271
410
|
<div class="refsect2">
|
272
|
-
<a name="gdk-pixbuf-animation-new-from-stream-async"></a><h3>gdk_pixbuf_animation_new_from_stream_async
|
273
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
<
|
279
|
-
Creates a new animation by asynchronously loading an image from an input stream
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
</
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
</p>
|
290
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
415
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
416
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
417
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
291
428
|
<colgroup>
|
292
|
-
<col
|
293
|
-
<col>
|
429
|
+
<col width="150px" class="parameters_name">
|
430
|
+
<col class="parameters_description">
|
431
|
+
<col width="200px" class="parameters_annotations">
|
294
432
|
</colgroup>
|
295
433
|
<tbody>
|
296
434
|
<tr>
|
297
|
-
<td
|
298
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the animation</td>
|
435
|
+
<td class="parameter_name"><p>stream</p></td>
|
436
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the animation</p></td>
|
437
|
+
<td class="parameter_annotations"> </td>
|
299
438
|
</tr>
|
300
439
|
<tr>
|
301
|
-
<td
|
302
|
-
<td>optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
303
|
-
</td>
|
440
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
441
|
+
<td class="parameter_description"><p> optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
304
443
|
</tr>
|
305
444
|
<tr>
|
306
|
-
<td
|
307
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</td>
|
445
|
+
<td class="parameter_name"><p>callback</p></td>
|
446
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/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>
|
308
448
|
</tr>
|
309
449
|
<tr>
|
310
|
-
<td
|
311
|
-
<td>the data to pass to the callback function</td>
|
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>
|
312
453
|
</tr>
|
313
454
|
</tbody>
|
314
455
|
</table></div>
|
456
|
+
</div>
|
315
457
|
<p class="since">Since 2.28</p>
|
316
458
|
</div>
|
317
459
|
<hr>
|
318
460
|
<div class="refsect2">
|
319
|
-
<a name="gdk-pixbuf-animation-new-from-stream-finish"></a><h3>gdk_pixbuf_animation_new_from_stream_finish
|
320
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a>
|
321
|
-
|
322
|
-
|
323
|
-
<
|
324
|
-
Finishes an asynchronous pixbuf animation creation operation started with
|
325
|
-
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-stream-async" title="gdk_pixbuf_animation_new_from_stream_async
|
326
|
-
|
327
|
-
<
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *async_result</code></em>,
|
465
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
328
471
|
<colgroup>
|
329
|
-
<col
|
330
|
-
<col>
|
472
|
+
<col width="150px" class="parameters_name">
|
473
|
+
<col class="parameters_description">
|
474
|
+
<col width="200px" class="parameters_annotations">
|
331
475
|
</colgroup>
|
332
476
|
<tbody>
|
333
477
|
<tr>
|
334
|
-
<td
|
335
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
|
336
|
-
</td>
|
337
|
-
</tr>
|
338
|
-
<tr>
|
339
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
340
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
341
|
-
</td>
|
478
|
+
<td class="parameter_name"><p>async_result</p></td>
|
479
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a></p></td>
|
480
|
+
<td class="parameter_annotations"> </td>
|
342
481
|
</tr>
|
343
482
|
<tr>
|
344
|
-
<td
|
345
|
-
<td>a <a
|
346
|
-
|
483
|
+
<td class="parameter_name"><p>error</p></td>
|
484
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
485
|
+
<td class="parameter_annotations"> </td>
|
347
486
|
</tr>
|
348
487
|
</tbody>
|
349
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. Free the returned
|
493
|
+
object with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
494
|
+
<p></p>
|
495
|
+
</div>
|
350
496
|
<p class="since">Since 2.28</p>
|
351
497
|
</div>
|
352
498
|
<hr>
|
353
499
|
<div class="refsect2">
|
354
|
-
<a name="gdk-pixbuf-animation-ref"></a><h3>gdk_pixbuf_animation_ref
|
355
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="returnvalue">GdkPixbufAnimation</span></a>
|
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>
|
356
503
|
<div class="warning">
|
357
|
-
<
|
358
|
-
<p
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>.</p>
|
359
506
|
</div>
|
360
|
-
<p>
|
361
|
-
|
362
|
-
</
|
363
|
-
<div class="
|
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">
|
364
511
|
<colgroup>
|
365
|
-
<col
|
366
|
-
<col>
|
512
|
+
<col width="150px" class="parameters_name">
|
513
|
+
<col class="parameters_description">
|
514
|
+
<col width="200px" class="parameters_annotations">
|
367
515
|
</colgroup>
|
368
|
-
<tbody>
|
369
|
-
<
|
370
|
-
<td
|
371
|
-
<td>
|
372
|
-
</tr>
|
373
|
-
<tr>
|
374
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
375
|
-
<td>The same as the <em class="parameter"><code>animation</code></em> argument.</td>
|
376
|
-
</tr>
|
377
|
-
</tbody>
|
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>
|
378
521
|
</table></div>
|
379
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>
|
380
530
|
<hr>
|
381
531
|
<div class="refsect2">
|
382
|
-
<a name="gdk-pixbuf-animation-unref"></a><h3>gdk_pixbuf_animation_unref
|
383
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
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>
|
384
535
|
<div class="warning">
|
385
|
-
<
|
386
|
-
<p
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
387
538
|
</div>
|
388
|
-
<p>
|
389
|
-
|
390
|
-
</
|
391
|
-
<div class="
|
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">
|
392
543
|
<colgroup>
|
393
|
-
<col
|
394
|
-
<col>
|
544
|
+
<col width="150px" class="parameters_name">
|
545
|
+
<col class="parameters_description">
|
546
|
+
<col width="200px" class="parameters_annotations">
|
395
547
|
</colgroup>
|
396
548
|
<tbody><tr>
|
397
|
-
<td
|
398
|
-
<td>An animation.</td>
|
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>
|
399
552
|
</tr></tbody>
|
400
553
|
</table></div>
|
401
554
|
</div>
|
555
|
+
</div>
|
402
556
|
<hr>
|
403
557
|
<div class="refsect2">
|
404
|
-
<a name="gdk-pixbuf-animation-get-width"></a><h3>gdk_pixbuf_animation_get_width
|
405
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
406
|
-
<
|
407
|
-
Queries the width of the bounding box of a pixbuf animation
|
408
|
-
|
409
|
-
<
|
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">
|
410
565
|
<colgroup>
|
411
|
-
<col
|
412
|
-
<col>
|
566
|
+
<col width="150px" class="parameters_name">
|
567
|
+
<col class="parameters_description">
|
568
|
+
<col width="200px" class="parameters_annotations">
|
413
569
|
</colgroup>
|
414
|
-
<tbody>
|
415
|
-
<
|
416
|
-
<td
|
417
|
-
<td>
|
418
|
-
</tr>
|
419
|
-
<tr>
|
420
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
421
|
-
<td>Width of the bounding box of the animation.</td>
|
422
|
-
</tr>
|
423
|
-
</tbody>
|
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>
|
424
575
|
</table></div>
|
425
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>
|
426
583
|
<hr>
|
427
584
|
<div class="refsect2">
|
428
|
-
<a name="gdk-pixbuf-animation-get-height"></a><h3>gdk_pixbuf_animation_get_height
|
429
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
430
|
-
<
|
431
|
-
Queries the height of the bounding box of a pixbuf animation
|
432
|
-
|
433
|
-
<
|
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">
|
434
592
|
<colgroup>
|
435
|
-
<col
|
436
|
-
<col>
|
593
|
+
<col width="150px" class="parameters_name">
|
594
|
+
<col class="parameters_description">
|
595
|
+
<col width="200px" class="parameters_annotations">
|
437
596
|
</colgroup>
|
438
|
-
<tbody>
|
439
|
-
<
|
440
|
-
<td
|
441
|
-
<td>
|
442
|
-
</tr>
|
443
|
-
<tr>
|
444
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
445
|
-
<td>Height of the bounding box of the animation.</td>
|
446
|
-
</tr>
|
447
|
-
</tbody>
|
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>
|
448
602
|
</table></div>
|
449
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>
|
450
610
|
<hr>
|
451
611
|
<div class="refsect2">
|
452
|
-
<a name="gdk-pixbuf-animation-get-iter"></a><h3>gdk_pixbuf_animation_get_iter
|
453
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="returnvalue">GdkPixbufAnimationIter</span></a>
|
454
|
-
|
455
|
-
<
|
456
|
-
Get an iterator for displaying an animation. The iterator provides
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
457
617
|
the frames that should be displayed at a given time.
|
458
|
-
It should be freed after use with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a
|
459
|
-
|
460
|
-
<
|
461
|
-
<em class="parameter"><code>start_time</code></em> would normally come from <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>, and
|
618
|
+
It should be freed after use with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>, and
|
462
621
|
marks the beginning of animation playback. After creating an
|
463
622
|
iterator, you should immediately display the pixbuf returned by
|
464
|
-
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-pixbuf" title="gdk_pixbuf_animation_iter_get_pixbuf
|
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
|
465
624
|
timeout (with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#g-timeout-add"><code class="function">g_timeout_add()</code></a>) or by some other mechanism ensure
|
466
625
|
that you'll update the image after
|
467
|
-
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-delay-time" title="gdk_pixbuf_animation_iter_get_delay_time
|
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
|
468
627
|
the image is updated, you should reinstall the timeout with the new,
|
469
|
-
possibly-changed delay time
|
470
|
-
|
471
|
-
<
|
472
|
-
|
473
|
-
<
|
474
|
-
</
|
475
|
-
<p>
|
476
|
-
|
477
|
-
<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),
|
478
|
-
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>.
|
479
|
-
</p>
|
480
|
-
<p>
|
481
|
-
If you're using <a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a>, in addition to updating the image
|
628
|
+
possibly-changed delay time.</p>
|
629
|
+
<p>As a shortcut, if <em class="parameter"><code>start_time</code></em>
|
630
|
+
is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the result of
|
631
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
482
636
|
after the delay time, you should also update it whenever you
|
483
637
|
receive the area_updated signal and
|
484
|
-
<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
|
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
|
485
639
|
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. In this case, the frame currently being fed into the loader
|
486
640
|
has received new data, so needs to be refreshed. The delay time for
|
487
641
|
a frame may also be modified after an area_updated signal, for
|
488
642
|
example if the delay time for a frame is encoded in the data after
|
489
643
|
the frame itself. So your timeout should be reinstalled after any
|
490
|
-
area_updated signal
|
491
|
-
</p>
|
492
|
-
<
|
493
|
-
|
494
|
-
|
495
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
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">
|
496
649
|
<colgroup>
|
497
|
-
<col
|
498
|
-
<col>
|
650
|
+
<col width="150px" class="parameters_name">
|
651
|
+
<col class="parameters_description">
|
652
|
+
<col width="200px" class="parameters_annotations">
|
499
653
|
</colgroup>
|
500
654
|
<tbody>
|
501
655
|
<tr>
|
502
|
-
<td
|
503
|
-
<td>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a>
|
504
|
-
</td>
|
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>
|
505
659
|
</tr>
|
506
660
|
<tr>
|
507
|
-
<td
|
508
|
-
<td>time when the animation starts playing.
|
509
|
-
</td>
|
510
|
-
</tr>
|
511
|
-
<tr>
|
512
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
513
|
-
<td>an iterator to move over the animation. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
|
514
|
-
</td>
|
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>
|
515
664
|
</tr>
|
516
665
|
</tbody>
|
517
666
|
</table></div>
|
518
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>
|
519
674
|
<hr>
|
520
675
|
<div class="refsect2">
|
521
|
-
<a name="gdk-pixbuf-animation-is-static-image"></a><h3>gdk_pixbuf_animation_is_static_image
|
522
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
523
|
-
|
524
|
-
<p>
|
525
|
-
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
|
676
|
+
<a name="gdk-pixbuf-animation-is-static-image"></a><h3>gdk_pixbuf_animation_is_static_image ()</h3>
|
677
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
526
680
|
out to be a plain, unanimated image, then this function will return
|
527
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
528
|
-
the image
|
529
|
-
|
530
|
-
<
|
681
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
531
686
|
<colgroup>
|
532
|
-
<col
|
533
|
-
<col>
|
687
|
+
<col width="150px" class="parameters_name">
|
688
|
+
<col class="parameters_description">
|
689
|
+
<col width="200px" class="parameters_annotations">
|
534
690
|
</colgroup>
|
535
|
-
<tbody>
|
536
|
-
<
|
537
|
-
<td><p
|
538
|
-
<td
|
539
|
-
</
|
540
|
-
</tr>
|
541
|
-
<tr>
|
542
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
543
|
-
<td>
|
544
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the "animation" was really just an image</td>
|
545
|
-
</tr>
|
546
|
-
</tbody>
|
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>
|
547
696
|
</table></div>
|
548
697
|
</div>
|
698
|
+
<div class="refsect3">
|
699
|
+
<a name="id-1.2.14.12.12.6"></a><h4>Returns</h4>
|
700
|
+
<p> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
549
704
|
<hr>
|
550
705
|
<div class="refsect2">
|
551
|
-
<a name="gdk-pixbuf-animation-get-static-image"></a><h3>gdk_pixbuf_animation_get_static_image
|
552
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
553
|
-
|
554
|
-
<p>
|
555
|
-
If an animation is really just a plain image (has only one frame),
|
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),
|
556
710
|
this function returns that image. If the animation is an animation,
|
557
711
|
this function returns a reasonable thing to display as a static
|
558
712
|
unanimated image, which might be the first frame, or something more
|
559
713
|
sophisticated. If an animation hasn't loaded any frames yet, this
|
560
|
-
function will return <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a
|
561
|
-
|
562
|
-
<
|
714
|
+
function will return <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
563
718
|
<colgroup>
|
564
|
-
<col
|
565
|
-
<col>
|
719
|
+
<col width="150px" class="parameters_name">
|
720
|
+
<col class="parameters_description">
|
721
|
+
<col width="200px" class="parameters_annotations">
|
566
722
|
</colgroup>
|
567
|
-
<tbody>
|
568
|
-
<
|
569
|
-
<td><p
|
570
|
-
<td
|
571
|
-
</
|
572
|
-
</tr>
|
573
|
-
<tr>
|
574
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
575
|
-
<td>unanimated image representing the animation. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
576
|
-
</td>
|
577
|
-
</tr>
|
578
|
-
</tbody>
|
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>
|
579
728
|
</table></div>
|
580
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>
|
581
736
|
<hr>
|
582
737
|
<div class="refsect2">
|
583
|
-
<a name="gdk-pixbuf-animation-iter-advance"></a><h3>gdk_pixbuf_animation_iter_advance
|
584
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
585
|
-
|
586
|
-
<
|
587
|
-
Possibly advances an animation to a new frame. Chooses the frame based
|
588
|
-
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
|
589
|
-
|
590
|
-
<
|
591
|
-
<em class="parameter"><code>current_time</code></em> would normally come from <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>, and
|
738
|
+
<a name="gdk-pixbuf-animation-iter-advance"></a><h3>gdk_pixbuf_animation_iter_advance ()</h3>
|
739
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>, and
|
592
746
|
must be greater than or equal to the time passed to
|
593
|
-
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-iter" title="gdk_pixbuf_animation_get_iter
|
594
|
-
unchanged each time <a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-pixbuf" title="gdk_pixbuf_animation_iter_get_pixbuf
|
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
|
595
749
|
called. That is, you can't go backward in time; animations only
|
596
|
-
play forward
|
597
|
-
|
598
|
-
<p>
|
599
|
-
As a shortcut, pass <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the current time and <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>
|
750
|
+
play forward.</p>
|
751
|
+
<p>As a shortcut, pass <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the current time and <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#g-get-current-time"><code class="function">g_get_current_time()</code></a>
|
600
752
|
will be invoked on your behalf. So you only need to explicitly pass
|
601
|
-
<em class="parameter"><code>current_time</code></em>
|
602
|
-
|
603
|
-
|
604
|
-
<p>
|
605
|
-
If this function returns <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, there's no need to update the animation
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, there's no need to update the animation
|
606
757
|
display, assuming the display had been rendered prior to advancing;
|
607
|
-
if <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
608
|
-
and update the display with the new pixbuf
|
609
|
-
|
610
|
-
<
|
758
|
+
if <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
611
763
|
<colgroup>
|
612
|
-
<col
|
613
|
-
<col>
|
764
|
+
<col width="150px" class="parameters_name">
|
765
|
+
<col class="parameters_description">
|
766
|
+
<col width="200px" class="parameters_annotations">
|
614
767
|
</colgroup>
|
615
768
|
<tbody>
|
616
769
|
<tr>
|
617
|
-
<td
|
618
|
-
<td>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufAnimationIter"><span class="type">GdkPixbufAnimationIter</span></a>
|
619
|
-
</td>
|
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>
|
620
773
|
</tr>
|
621
774
|
<tr>
|
622
|
-
<td
|
623
|
-
<td
|
624
|
-
</td>
|
625
|
-
</tr>
|
626
|
-
<tr>
|
627
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
628
|
-
<td>
|
629
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the image may need updating</td>
|
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>
|
630
778
|
</tr>
|
631
779
|
</tbody>
|
632
780
|
</table></div>
|
633
781
|
</div>
|
782
|
+
<div class="refsect3">
|
783
|
+
<a name="id-1.2.14.12.14.9"></a><h4>Returns</h4>
|
784
|
+
<p> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
634
788
|
<hr>
|
635
789
|
<div class="refsect2">
|
636
|
-
<a name="gdk-pixbuf-animation-iter-get-delay-time"></a><h3>gdk_pixbuf_animation_iter_get_delay_time
|
637
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
638
|
-
|
639
|
-
<
|
640
|
-
Gets the number of milliseconds the current pixbuf should be displayed,
|
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,
|
641
795
|
or -1 if the current pixbuf should be displayed forever. <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#g-timeout-add"><code class="function">g_timeout_add()</code></a>
|
642
796
|
conveniently takes a timeout in milliseconds, so you can use a timeout
|
643
|
-
to schedule the next update
|
644
|
-
|
645
|
-
<
|
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">
|
646
801
|
<colgroup>
|
647
|
-
<col
|
648
|
-
<col>
|
802
|
+
<col width="150px" class="parameters_name">
|
803
|
+
<col class="parameters_description">
|
804
|
+
<col width="200px" class="parameters_annotations">
|
649
805
|
</colgroup>
|
650
|
-
<tbody>
|
651
|
-
<
|
652
|
-
<td
|
653
|
-
<td>
|
654
|
-
</tr>
|
655
|
-
<tr>
|
656
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
657
|
-
<td>delay time in milliseconds (thousandths of a second)</td>
|
658
|
-
</tr>
|
659
|
-
</tbody>
|
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>
|
660
811
|
</table></div>
|
661
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>
|
662
819
|
<hr>
|
663
820
|
<div class="refsect2">
|
664
|
-
<a name="gdk-pixbuf-animation-iter-on-currently-loading-frame"></a><h3>gdk_pixbuf_animation_iter_on_currently_loading_frame
|
665
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
666
|
-
|
667
|
-
<
|
668
|
-
Used to determine how to respond to the area_updated signal on
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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
|
669
826
|
<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> when loading an animation. area_updated is emitted
|
670
827
|
for an area of the frame currently streaming in to the loader. So if
|
671
828
|
you're on the currently loading frame, you need to redraw the screen for
|
672
|
-
the updated area
|
673
|
-
|
674
|
-
<
|
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">
|
675
833
|
<colgroup>
|
676
|
-
<col
|
677
|
-
<col>
|
834
|
+
<col width="150px" class="parameters_name">
|
835
|
+
<col class="parameters_description">
|
836
|
+
<col width="200px" class="parameters_annotations">
|
678
837
|
</colgroup>
|
679
|
-
<tbody>
|
680
|
-
<
|
681
|
-
<td><p
|
682
|
-
<td
|
683
|
-
</
|
684
|
-
</tr>
|
685
|
-
<tr>
|
686
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
687
|
-
<td>
|
688
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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</td>
|
689
|
-
</tr>
|
690
|
-
</tbody>
|
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>
|
691
843
|
</table></div>
|
692
844
|
</div>
|
845
|
+
<div class="refsect3">
|
846
|
+
<a name="id-1.2.14.12.16.6"></a><h4>Returns</h4>
|
847
|
+
<p> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
693
851
|
<hr>
|
694
852
|
<div class="refsect2">
|
695
|
-
<a name="gdk-pixbuf-animation-iter-get-pixbuf"></a><h3>gdk_pixbuf_animation_iter_get_pixbuf
|
696
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
697
|
-
|
698
|
-
<p>
|
699
|
-
Gets the current pixbuf which should be displayed; the pixbuf might not
|
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
|
700
857
|
be the same size as the animation itself
|
701
|
-
(<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-get-width" title="gdk_pixbuf_animation_get_width
|
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>).
|
702
859
|
This pixbuf should be displayed for
|
703
|
-
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-get-delay-time" title="gdk_pixbuf_animation_iter_get_delay_time
|
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
|
704
861
|
of this function does not own a reference to the returned pixbuf;
|
705
862
|
the returned pixbuf will become invalid when the iterator advances
|
706
863
|
to the next frame, which may happen anytime you call
|
707
|
-
<a class="link" href="gdk-pixbuf-Animations.html#gdk-pixbuf-animation-iter-advance" title="gdk_pixbuf_animation_iter_advance
|
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
|
708
865
|
(don't just add a reference), as it may get recycled as you advance
|
709
|
-
the iterator
|
710
|
-
|
711
|
-
<
|
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">
|
712
870
|
<colgroup>
|
713
|
-
<col
|
714
|
-
<col>
|
871
|
+
<col width="150px" class="parameters_name">
|
872
|
+
<col class="parameters_description">
|
873
|
+
<col width="200px" class="parameters_annotations">
|
715
874
|
</colgroup>
|
716
|
-
<tbody>
|
717
|
-
<
|
718
|
-
<td
|
719
|
-
<td>
|
720
|
-
</tr>
|
721
|
-
<tr>
|
722
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
723
|
-
<td>the pixbuf to be displayed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
724
|
-
</td>
|
725
|
-
</tr>
|
726
|
-
</tbody>
|
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>
|
727
880
|
</table></div>
|
728
881
|
</div>
|
729
|
-
<
|
730
|
-
<
|
731
|
-
<
|
732
|
-
<
|
733
|
-
|
734
|
-
An opaque struct representing a simple animation.
|
735
|
-
</p>
|
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>
|
736
887
|
</div>
|
737
888
|
<hr>
|
738
889
|
<div class="refsect2">
|
739
|
-
<a name="gdk-pixbuf-simple-anim-new"></a><h3>gdk_pixbuf_simple_anim_new
|
740
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="returnvalue">GdkPixbufSimpleAnim</span></a>
|
741
|
-
|
742
|
-
|
743
|
-
<
|
744
|
-
Creates a new, empty animation
|
745
|
-
|
746
|
-
<
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
893
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
894
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
747
899
|
<colgroup>
|
748
|
-
<col
|
749
|
-
<col>
|
900
|
+
<col width="150px" class="parameters_name">
|
901
|
+
<col class="parameters_description">
|
902
|
+
<col width="200px" class="parameters_annotations">
|
750
903
|
</colgroup>
|
751
904
|
<tbody>
|
752
905
|
<tr>
|
753
|
-
<td
|
754
|
-
<td>the width of the animation</td>
|
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>
|
755
909
|
</tr>
|
756
910
|
<tr>
|
757
|
-
<td
|
758
|
-
<td>the height of the animation</td>
|
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>
|
759
914
|
</tr>
|
760
915
|
<tr>
|
761
|
-
<td
|
762
|
-
<td>the speed of the animation, in frames per second</td>
|
763
|
-
</
|
764
|
-
<tr>
|
765
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
766
|
-
<td>a newly allocated <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a>
|
767
|
-
</td>
|
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>
|
768
919
|
</tr>
|
769
920
|
</tbody>
|
770
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>
|
771
928
|
<p class="since">Since 2.8</p>
|
772
929
|
</div>
|
773
930
|
<hr>
|
774
931
|
<div class="refsect2">
|
775
|
-
<a name="gdk-pixbuf-simple-anim-add-frame"></a><h3>gdk_pixbuf_simple_anim_add_frame
|
776
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
777
|
-
|
778
|
-
<
|
779
|
-
Adds a new frame to <em class="parameter"><code>animation</code></em
|
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
|
780
939
|
have the dimensions specified when the animation
|
781
|
-
was constructed
|
782
|
-
|
783
|
-
<
|
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">
|
784
944
|
<colgroup>
|
785
|
-
<col
|
786
|
-
<col>
|
945
|
+
<col width="150px" class="parameters_name">
|
946
|
+
<col class="parameters_description">
|
947
|
+
<col width="200px" class="parameters_annotations">
|
787
948
|
</colgroup>
|
788
949
|
<tbody>
|
789
950
|
<tr>
|
790
|
-
<td
|
791
|
-
<td>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a>
|
792
|
-
</td>
|
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>
|
793
954
|
</tr>
|
794
955
|
<tr>
|
795
|
-
<td
|
796
|
-
<td>the pixbuf to add</td>
|
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>
|
797
959
|
</tr>
|
798
960
|
</tbody>
|
799
961
|
</table></div>
|
962
|
+
</div>
|
800
963
|
<p class="since">Since 2.8</p>
|
801
964
|
</div>
|
802
965
|
<hr>
|
803
966
|
<div class="refsect2">
|
804
|
-
<a name="gdk-pixbuf-simple-anim-set-loop"></a><h3>gdk_pixbuf_simple_anim_set_loop
|
805
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
806
|
-
|
807
|
-
<
|
808
|
-
Sets whether <em class="parameter"><code>animation</code></em>
|
809
|
-
|
810
|
-
<div class="
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
811
976
|
<colgroup>
|
812
|
-
<col
|
813
|
-
<col>
|
977
|
+
<col width="150px" class="parameters_name">
|
978
|
+
<col class="parameters_description">
|
979
|
+
<col width="200px" class="parameters_annotations">
|
814
980
|
</colgroup>
|
815
981
|
<tbody>
|
816
982
|
<tr>
|
817
|
-
<td
|
818
|
-
<td>a <a class="link" href="gdk-pixbuf-Animations.html#GdkPixbufSimpleAnim"><span class="type">GdkPixbufSimpleAnim</span></a>
|
819
|
-
</td>
|
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>
|
820
986
|
</tr>
|
821
987
|
<tr>
|
822
|
-
<td
|
823
|
-
<td>whether to loop the animation</td>
|
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>
|
824
991
|
</tr>
|
825
992
|
</tbody>
|
826
993
|
</table></div>
|
994
|
+
</div>
|
827
995
|
<p class="since">Since 2.18</p>
|
828
996
|
</div>
|
829
997
|
<hr>
|
830
998
|
<div class="refsect2">
|
831
|
-
<a name="gdk-pixbuf-simple-anim-get-loop"></a><h3>gdk_pixbuf_simple_anim_get_loop
|
832
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
833
|
-
<
|
834
|
-
Gets whether <em class="parameter"><code>animation</code></em>
|
835
|
-
|
836
|
-
<div class="
|
999
|
+
<a name="gdk-pixbuf-simple-anim-get-loop"></a><h3>gdk_pixbuf_simple_anim_get_loop ()</h3>
|
1000
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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">
|
837
1007
|
<colgroup>
|
838
|
-
<col
|
839
|
-
<col>
|
1008
|
+
<col width="150px" class="parameters_name">
|
1009
|
+
<col class="parameters_description">
|
1010
|
+
<col width="200px" class="parameters_annotations">
|
840
1011
|
</colgroup>
|
841
|
-
<tbody>
|
842
|
-
<
|
843
|
-
<td><p
|
844
|
-
<td
|
845
|
-
</
|
846
|
-
</tr>
|
847
|
-
<tr>
|
848
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
849
|
-
<td>
|
850
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the animation loops forever, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
|
851
|
-
</tr>
|
852
|
-
</tbody>
|
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>
|
853
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the animation loops forever, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
|
1022
|
+
<p></p>
|
1023
|
+
</div>
|
854
1024
|
<p class="since">Since 2.18</p>
|
855
1025
|
</div>
|
856
1026
|
</div>
|
857
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">
|
858
1049
|
<a name="gdk-pixbuf-Animations.property-details"></a><h2>Property Details</h2>
|
859
1050
|
<div class="refsect2">
|
860
|
-
<a name="GdkPixbufSimpleAnim--loop"></a><h3>The <code class="literal"
|
861
|
-
<pre class="programlisting">
|
862
|
-
<p>
|
863
|
-
|
864
|
-
</p>
|
1051
|
+
<a name="GdkPixbufSimpleAnim--loop"></a><h3>The <code class="literal">“loop”</code> property</h3>
|
1052
|
+
<pre class="programlisting"> “loop” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/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>
|
865
1055
|
<p>Default value: FALSE</p>
|
866
1056
|
<p class="since">Since 2.18</p>
|
867
1057
|
</div>
|
868
1058
|
</div>
|
869
1059
|
<div class="refsect1">
|
870
1060
|
<a name="gdk-pixbuf-Animations.see-also"></a><h2>See Also</h2>
|
871
|
-
<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a
|
1061
|
+
<p><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a>.</p>
|
872
1062
|
</div>
|
873
1063
|
</div>
|
874
1064
|
<div class="footer">
|
875
1065
|
<hr>
|
876
|
-
Generated by GTK-Doc V1.
|
1066
|
+
Generated by GTK-Doc V1.20.1</div>
|
877
1067
|
</body>
|
878
1068
|
</html>
|