clutter-gtk 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +75 -0
  3. data/lib/clutter-gtk.rb +77 -0
  4. data/sample/events.rb +176 -0
  5. data/sample/multistage.rb +78 -0
  6. data/sample/redhand.png +0 -0
  7. data/sample/test-actor.rb +163 -0
  8. data/sample/test-scroll.rb +174 -0
  9. data/sample/test.rb +169 -0
  10. data/sample/window-test.rb +113 -0
  11. data/sample/window-test2.rb +132 -0
  12. data/test/clutter-gtk-test-utils.rb +21 -0
  13. data/test/run-test.rb +73 -0
  14. data/test/test-clutter-gtk-embed.rb +21 -0
  15. data/vendor/local/bin/libclutter-gtk-1.0-0.dll +0 -0
  16. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/clutter-gtk.h +17 -0
  17. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-actor.h +87 -0
  18. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-embed.h +94 -0
  19. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-texture.h +115 -0
  20. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-util.h +46 -0
  21. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-version.h +111 -0
  22. data/vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-window.h +90 -0
  23. data/vendor/local/lib/girepository-1.0/GtkClutter-1.0.typelib +0 -0
  24. data/vendor/local/lib/libclutter-gtk-1.0.dll.a +0 -0
  25. data/vendor/local/lib/libclutter-gtk-1.0.la +41 -0
  26. data/vendor/local/lib/pkgconfig/clutter-gtk-1.0.pc +13 -0
  27. data/vendor/local/share/gir-1.0/GtkClutter-1.0.gir +696 -0
  28. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/GtkClutterActor.html +307 -0
  29. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/GtkClutterEmbed.html +305 -0
  30. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/GtkClutterWindow.html +179 -0
  31. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/annotation-glossary.html +48 -0
  32. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ch01.html +36 -0
  33. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ch02.html +42 -0
  34. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ch03.html +34 -0
  35. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/clutter-gtk-1.0-Utility-Functions.html +258 -0
  36. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/clutter-gtk-1.0.devhelp2 +50 -0
  37. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-glossary.html +35 -0
  38. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-object-hierarchy.html +45 -0
  39. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-object-index.html +60 -0
  40. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/cluttergtk-objects.html +38 -0
  41. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/home.png +0 -0
  42. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/index.html +83 -0
  43. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/index.sgml +60 -0
  44. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix01.html +100 -0
  45. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix02.html +198 -0
  46. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix03.html +66 -0
  47. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/ix04.html +32 -0
  48. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/left-insensitive.png +0 -0
  49. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/left.png +0 -0
  50. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/license.html +59 -0
  51. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/right-insensitive.png +0 -0
  52. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/right.png +0 -0
  53. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/style.css +476 -0
  54. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/up-insensitive.png +0 -0
  55. data/vendor/local/share/gtk-doc/html/clutter-gtk-1.0/up.png +0 -0
  56. data/vendor/local/share/license/clutter-gtk/COPYING +504 -0
  57. data/vendor/local/share/locale/ja/LC_MESSAGES/cluttergtk-1.0.mo +0 -0
  58. data/vendor/local/share/locale/pl/LC_MESSAGES/cluttergtk-1.0.mo +0 -0
  59. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/cluttergtk-1.0.mo +0 -0
  60. metadata +143 -0
@@ -0,0 +1,307 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Clutter-Gtk 1.6.0
6
+ Reference Manual: GtkClutterActor</title>
7
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
8
+ <link rel="home" href="index.html" title="Clutter-Gtk 1.6.0 Reference Manual">
9
+ <link rel="up" href="ch02.html" title="Clutter-Gtk Widgets">
10
+ <link rel="prev" href="GtkClutterEmbed.html" title="GtkClutterEmbed">
11
+ <link rel="next" href="GtkClutterWindow.html" title="GtkClutterWindow">
12
+ <meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
13
+ <link rel="stylesheet" href="style.css" type="text/css">
14
+ </head>
15
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
17
+ <td width="100%" align="left" class="shortcuts">
18
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
19
+ <a href="#GtkClutterActor.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
20
+ <a href="#GtkClutterActor.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
21
+ <a href="#GtkClutterActor.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
22
+ <a href="#GtkClutterActor.properties" class="shortcut">Properties</a></span>
23
+ </td>
24
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
25
+ <td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
26
+ <td><a accesskey="p" href="GtkClutterEmbed.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
27
+ <td><a accesskey="n" href="GtkClutterWindow.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
28
+ </tr></table>
29
+ <div class="refentry">
30
+ <a name="GtkClutterActor"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="GtkClutterActor.top_of_page"></a>GtkClutterActor</span></h2>
34
+ <p>GtkClutterActor — actor for embedding a Widget in a Clutter stage</p>
35
+ </td>
36
+ <td class="gallery_image" valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsect1">
39
+ <a name="GtkClutterActor.functions"></a><h2>Functions</h2>
40
+ <div class="informaltable"><table width="100%" border="0">
41
+ <colgroup>
42
+ <col width="150px" class="functions_return">
43
+ <col class="functions_name">
44
+ </colgroup>
45
+ <tbody>
46
+ <tr>
47
+ <td class="function_type">
48
+ <span class="returnvalue">ClutterActor</span> *
49
+ </td>
50
+ <td class="function_name">
51
+ <a class="link" href="GtkClutterActor.html#gtk-clutter-actor-new" title="gtk_clutter_actor_new ()">gtk_clutter_actor_new</a> <span class="c_punctuation">()</span>
52
+ </td>
53
+ </tr>
54
+ <tr>
55
+ <td class="function_type">
56
+ <span class="returnvalue">ClutterActor</span> *
57
+ </td>
58
+ <td class="function_name">
59
+ <a class="link" href="GtkClutterActor.html#gtk-clutter-actor-new-with-contents" title="gtk_clutter_actor_new_with_contents ()">gtk_clutter_actor_new_with_contents</a> <span class="c_punctuation">()</span>
60
+ </td>
61
+ </tr>
62
+ <tr>
63
+ <td class="function_type">
64
+ <span class="returnvalue">GtkWidget</span> *
65
+ </td>
66
+ <td class="function_name">
67
+ <a class="link" href="GtkClutterActor.html#gtk-clutter-actor-get-contents" title="gtk_clutter_actor_get_contents ()">gtk_clutter_actor_get_contents</a> <span class="c_punctuation">()</span>
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <td class="function_type">
72
+ <span class="returnvalue">GtkWidget</span> *
73
+ </td>
74
+ <td class="function_name">
75
+ <a class="link" href="GtkClutterActor.html#gtk-clutter-actor-get-widget" title="gtk_clutter_actor_get_widget ()">gtk_clutter_actor_get_widget</a> <span class="c_punctuation">()</span>
76
+ </td>
77
+ </tr>
78
+ </tbody>
79
+ </table></div>
80
+ </div>
81
+ <div class="refsect1">
82
+ <a name="GtkClutterActor.properties"></a><h2>Properties</h2>
83
+ <div class="informaltable"><table border="0">
84
+ <colgroup>
85
+ <col width="150px" class="properties_type">
86
+ <col width="300px" class="properties_name">
87
+ <col width="200px" class="properties_flags">
88
+ </colgroup>
89
+ <tbody><tr>
90
+ <td class="property_type">
91
+ <span class="type">GtkWidget</span> *</td>
92
+ <td class="property_name"><a class="link" href="GtkClutterActor.html#GtkClutterActor--contents" title="The “contents” property">contents</a></td>
93
+ <td class="property_flags">Read / Write / Construct</td>
94
+ </tr></tbody>
95
+ </table></div>
96
+ </div>
97
+ <div class="refsect1">
98
+ <a name="GtkClutterActor.other"></a><h2>Types and Values</h2>
99
+ <div class="informaltable"><table width="100%" border="0">
100
+ <colgroup>
101
+ <col width="150px" class="name">
102
+ <col class="description">
103
+ </colgroup>
104
+ <tbody>
105
+ <tr>
106
+ <td class="datatype_keyword">struct</td>
107
+ <td class="function_name"><a class="link" href="GtkClutterActor.html#GtkClutterActor-struct" title="struct GtkClutterActor">GtkClutterActor</a></td>
108
+ </tr>
109
+ <tr>
110
+ <td class="datatype_keyword">struct</td>
111
+ <td class="function_name"><a class="link" href="GtkClutterActor.html#GtkClutterActorClass" title="struct GtkClutterActorClass">GtkClutterActorClass</a></td>
112
+ </tr>
113
+ </tbody>
114
+ </table></div>
115
+ </div>
116
+ <div class="refsect1">
117
+ <a name="GtkClutterActor.object-hierarchy"></a><h2>Object Hierarchy</h2>
118
+ <pre class="screen"> GObject
119
+ <span class="lineart">╰──</span> GInitiallyUnowned
120
+ <span class="lineart">╰──</span> ClutterActor
121
+ <span class="lineart">╰──</span> GtkClutterActor
122
+ </pre>
123
+ </div>
124
+ <div class="refsect1">
125
+ <a name="GtkClutterActor.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
126
+ <p>
127
+ GtkClutterActor implements
128
+ ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.</p>
129
+ </div>
130
+ <div class="refsect1">
131
+ <a name="GtkClutterActor.description"></a><h2>Description</h2>
132
+ <p><a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> is a <span class="type">ClutterContainer</span> that also allows embedding
133
+ any <span class="type">GtkWidget</span> in a Clutter scenegraph.</p>
134
+ <p><a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> only allows embedding <span class="type">GtkWidget</span>s when inside
135
+ the <span class="type">ClutterStage</span> provided by a <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a>: it is not possible to
136
+ use <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> in a <span class="type">ClutterStage</span> handled by Clutter alone.</p>
137
+ </div>
138
+ <div class="refsect1">
139
+ <a name="GtkClutterActor.functions_details"></a><h2>Functions</h2>
140
+ <div class="refsect2">
141
+ <a name="gtk-clutter-actor-new"></a><h3>gtk_clutter_actor_new ()</h3>
142
+ <pre class="programlisting"><span class="returnvalue">ClutterActor</span> *
143
+ gtk_clutter_actor_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
144
+ <p>Creates a new <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a>.</p>
145
+ <p>This widget can be used to embed a <span class="type">GtkWidget</span> into a Clutter scene,
146
+ by retrieving the internal <span class="type">GtkBin</span> container using
147
+ <a class="link" href="GtkClutterActor.html#gtk-clutter-actor-get-widget" title="gtk_clutter_actor_get_widget ()"><code class="function">gtk_clutter_actor_get_widget()</code></a> and adding the <span class="type">GtkWidget</span> to it.</p>
148
+ <div class="refsect3">
149
+ <a name="id-1.3.3.9.2.6"></a><h4>Returns</h4>
150
+ <p> the newly created <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a></p>
151
+ <p></p>
152
+ </div>
153
+ </div>
154
+ <hr>
155
+ <div class="refsect2">
156
+ <a name="gtk-clutter-actor-new-with-contents"></a><h3>gtk_clutter_actor_new_with_contents ()</h3>
157
+ <pre class="programlisting"><span class="returnvalue">ClutterActor</span> *
158
+ gtk_clutter_actor_new_with_contents (<em class="parameter"><code><span class="type">GtkWidget</span> *contents</code></em>);</pre>
159
+ <p>Creates a new <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> widget. This widget can be
160
+ used to embed a Gtk widget into a clutter scene.</p>
161
+ <p>This function is the logical equivalent of:</p>
162
+ <div class="informalexample">
163
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
164
+ <tbody>
165
+ <tr>
166
+ <td class="listing_lines" align="right"><pre>1
167
+ 2
168
+ 3
169
+ 4</pre></td>
170
+ <td class="listing_code"><pre class="programlisting"><span class="usertype">ClutterActor</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">actor </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkClutterActor.html#gtk-clutter-actor-new">gtk_clutter_actor_new</a></span><span class="normal"> </span><span class="symbol">();</span>
171
+ <span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">bin </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkClutterActor.html#gtk-clutter-actor-get-widget">gtk_clutter_actor_get_widget</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CLUTTER_ACTOR</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actor</span><span class="symbol">));</span>
172
+
173
+ <span class="function">gtk_container_add</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bin</span><span class="symbol">),</span><span class="normal"> contents</span><span class="symbol">);</span></pre></td>
174
+ </tr>
175
+ </tbody>
176
+ </table>
177
+ </div>
178
+
179
+ <p></p>
180
+ <div class="refsect3">
181
+ <a name="id-1.3.3.9.3.8"></a><h4>Parameters</h4>
182
+ <div class="informaltable"><table width="100%" border="0">
183
+ <colgroup>
184
+ <col width="150px" class="parameters_name">
185
+ <col class="parameters_description">
186
+ <col width="200px" class="parameters_annotations">
187
+ </colgroup>
188
+ <tbody><tr>
189
+ <td class="parameter_name"><p>contents</p></td>
190
+ <td class="parameter_description"><p>a <span class="type">GtkWidget</span> to pack into this <span class="type">ClutterActor</span></p></td>
191
+ <td class="parameter_annotations"> </td>
192
+ </tr></tbody>
193
+ </table></div>
194
+ </div>
195
+ <div class="refsect3">
196
+ <a name="id-1.3.3.9.3.9"></a><h4>Returns</h4>
197
+ <p> the newly created <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a></p>
198
+ <p></p>
199
+ </div>
200
+ </div>
201
+ <hr>
202
+ <div class="refsect2">
203
+ <a name="gtk-clutter-actor-get-contents"></a><h3>gtk_clutter_actor_get_contents ()</h3>
204
+ <pre class="programlisting"><span class="returnvalue">GtkWidget</span> *
205
+ gtk_clutter_actor_get_contents (<em class="parameter"><code><a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> *actor</code></em>);</pre>
206
+ <p>Retrieves the child of the <span class="type">GtkBin</span> used to hold the contents of <em class="parameter"><code>actor</code></em>
207
+ .</p>
208
+ <p>This convenience function is the logical equivalent of:</p>
209
+ <div class="informalexample">
210
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
211
+ <tbody>
212
+ <tr>
213
+ <td class="listing_lines" align="right"><pre>1
214
+ 2
215
+ 3
216
+ 4</pre></td>
217
+ <td class="listing_code"><pre class="programlisting"><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">bin</span><span class="symbol">;</span>
218
+
219
+ <span class="normal">bin </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkClutterActor.html#gtk-clutter-actor-get-widget">gtk_clutter_actor_get_widget</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CLUTTER_ACTOR</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actor</span><span class="symbol">));</span>
220
+ <span class="keyword">return</span><span class="normal"> </span><span class="function">gtk_bin_get_child</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_BIN</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">bin</span><span class="symbol">));</span></pre></td>
221
+ </tr>
222
+ </tbody>
223
+ </table>
224
+ </div>
225
+
226
+ <p></p>
227
+ <div class="refsect3">
228
+ <a name="id-1.3.3.9.4.8"></a><h4>Parameters</h4>
229
+ <div class="informaltable"><table width="100%" border="0">
230
+ <colgroup>
231
+ <col width="150px" class="parameters_name">
232
+ <col class="parameters_description">
233
+ <col width="200px" class="parameters_annotations">
234
+ </colgroup>
235
+ <tbody><tr>
236
+ <td class="parameter_name"><p>actor</p></td>
237
+ <td class="parameter_description"><p>a <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a></p></td>
238
+ <td class="parameter_annotations"> </td>
239
+ </tr></tbody>
240
+ </table></div>
241
+ </div>
242
+ <div class="refsect3">
243
+ <a name="id-1.3.3.9.4.9"></a><h4>Returns</h4>
244
+ <p> a <span class="type">GtkWidget</span>, or <code class="literal">NULL</code> if not content
245
+ has been set. </p>
246
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
247
+ </div>
248
+ </div>
249
+ <hr>
250
+ <div class="refsect2">
251
+ <a name="gtk-clutter-actor-get-widget"></a><h3>gtk_clutter_actor_get_widget ()</h3>
252
+ <pre class="programlisting"><span class="returnvalue">GtkWidget</span> *
253
+ gtk_clutter_actor_get_widget (<em class="parameter"><code><a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> *actor</code></em>);</pre>
254
+ <p>Retrieves the <span class="type">GtkBin</span> used to hold the <a class="link" href="GtkClutterActor.html#GtkClutterActor--contents" title="The “contents” property"><span class="type">“contents”</span></a> widget</p>
255
+ <div class="refsect3">
256
+ <a name="id-1.3.3.9.5.5"></a><h4>Parameters</h4>
257
+ <div class="informaltable"><table width="100%" border="0">
258
+ <colgroup>
259
+ <col width="150px" class="parameters_name">
260
+ <col class="parameters_description">
261
+ <col width="200px" class="parameters_annotations">
262
+ </colgroup>
263
+ <tbody><tr>
264
+ <td class="parameter_name"><p>actor</p></td>
265
+ <td class="parameter_description"><p>a <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a></p></td>
266
+ <td class="parameter_annotations"> </td>
267
+ </tr></tbody>
268
+ </table></div>
269
+ </div>
270
+ <div class="refsect3">
271
+ <a name="id-1.3.3.9.5.6"></a><h4>Returns</h4>
272
+ <p> a <span class="type">GtkBin</span>. </p>
273
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ <div class="refsect1">
278
+ <a name="GtkClutterActor.other_details"></a><h2>Types and Values</h2>
279
+ <div class="refsect2">
280
+ <a name="GtkClutterActor-struct"></a><h3>struct GtkClutterActor</h3>
281
+ <pre class="programlisting">struct GtkClutterActor;</pre>
282
+ <p>A ClutterActor containing a <span class="type">GtkWidget</span>.</p>
283
+ </div>
284
+ <hr>
285
+ <div class="refsect2">
286
+ <a name="GtkClutterActorClass"></a><h3>struct GtkClutterActorClass</h3>
287
+ <pre class="programlisting">struct GtkClutterActorClass {
288
+ };
289
+ </pre>
290
+ <p>Base class for <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a>.</p>
291
+ </div>
292
+ </div>
293
+ <div class="refsect1">
294
+ <a name="GtkClutterActor.property-details"></a><h2>Property Details</h2>
295
+ <div class="refsect2">
296
+ <a name="GtkClutterActor--contents"></a><h3>The <code class="literal">“contents”</code> property</h3>
297
+ <pre class="programlisting"> “contents” <span class="type">GtkWidget</span> *</pre>
298
+ <p>The <span class="type">GtkWidget</span> to be embedded into the <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a></p>
299
+ <p>Flags: Read / Write / Construct</p>
300
+ </div>
301
+ </div>
302
+ </div>
303
+ <div class="footer">
304
+ <hr>
305
+ Generated by GTK-Doc V1.20.1</div>
306
+ </body>
307
+ </html>
@@ -0,0 +1,305 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Clutter-Gtk 1.6.0
6
+ Reference Manual: GtkClutterEmbed</title>
7
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
8
+ <link rel="home" href="index.html" title="Clutter-Gtk 1.6.0 Reference Manual">
9
+ <link rel="up" href="ch02.html" title="Clutter-Gtk Widgets">
10
+ <link rel="prev" href="ch02.html" title="Clutter-Gtk Widgets">
11
+ <link rel="next" href="GtkClutterActor.html" title="GtkClutterActor">
12
+ <meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
13
+ <link rel="stylesheet" href="style.css" type="text/css">
14
+ </head>
15
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
17
+ <td width="100%" align="left" class="shortcuts">
18
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
19
+ <a href="#GtkClutterEmbed.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
20
+ <a href="#GtkClutterEmbed.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
21
+ <a href="#GtkClutterEmbed.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
22
+ <a href="#GtkClutterEmbed.properties" class="shortcut">Properties</a></span>
23
+ </td>
24
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
25
+ <td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
26
+ <td><a accesskey="p" href="ch02.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
27
+ <td><a accesskey="n" href="GtkClutterActor.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
28
+ </tr></table>
29
+ <div class="refentry">
30
+ <a name="GtkClutterEmbed"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="GtkClutterEmbed.top_of_page"></a>GtkClutterEmbed</span></h2>
34
+ <p>GtkClutterEmbed — Widget for embedding a Clutter scene</p>
35
+ </td>
36
+ <td class="gallery_image" valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsect1">
39
+ <a name="GtkClutterEmbed.functions"></a><h2>Functions</h2>
40
+ <div class="informaltable"><table width="100%" border="0">
41
+ <colgroup>
42
+ <col width="150px" class="functions_return">
43
+ <col class="functions_name">
44
+ </colgroup>
45
+ <tbody>
46
+ <tr>
47
+ <td class="function_type">
48
+ <span class="returnvalue">GtkWidget</span> *
49
+ </td>
50
+ <td class="function_name">
51
+ <a class="link" href="GtkClutterEmbed.html#gtk-clutter-embed-new" title="gtk_clutter_embed_new ()">gtk_clutter_embed_new</a> <span class="c_punctuation">()</span>
52
+ </td>
53
+ </tr>
54
+ <tr>
55
+ <td class="function_type">
56
+ <span class="returnvalue">ClutterActor</span> *
57
+ </td>
58
+ <td class="function_name">
59
+ <a class="link" href="GtkClutterEmbed.html#gtk-clutter-embed-get-stage" title="gtk_clutter_embed_get_stage ()">gtk_clutter_embed_get_stage</a> <span class="c_punctuation">()</span>
60
+ </td>
61
+ </tr>
62
+ <tr>
63
+ <td class="function_type">
64
+ <span class="returnvalue">void</span>
65
+ </td>
66
+ <td class="function_name">
67
+ <a class="link" href="GtkClutterEmbed.html#gtk-clutter-embed-set-use-layout-size" title="gtk_clutter_embed_set_use_layout_size ()">gtk_clutter_embed_set_use_layout_size</a> <span class="c_punctuation">()</span>
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <td class="function_type">
72
+ <span class="returnvalue">gboolean</span>
73
+ </td>
74
+ <td class="function_name">
75
+ <a class="link" href="GtkClutterEmbed.html#gtk-clutter-embed-get-use-layout-size" title="gtk_clutter_embed_get_use_layout_size ()">gtk_clutter_embed_get_use_layout_size</a> <span class="c_punctuation">()</span>
76
+ </td>
77
+ </tr>
78
+ </tbody>
79
+ </table></div>
80
+ </div>
81
+ <div class="refsect1">
82
+ <a name="GtkClutterEmbed.properties"></a><h2>Properties</h2>
83
+ <div class="informaltable"><table border="0">
84
+ <colgroup>
85
+ <col width="150px" class="properties_type">
86
+ <col width="300px" class="properties_name">
87
+ <col width="200px" class="properties_flags">
88
+ </colgroup>
89
+ <tbody><tr>
90
+ <td class="property_type"><span class="type">gboolean</span></td>
91
+ <td class="property_name"><a class="link" href="GtkClutterEmbed.html#GtkClutterEmbed--use-layout-size" title="The “use-layout-size” property">use-layout-size</a></td>
92
+ <td class="property_flags">Read / Write / Construct</td>
93
+ </tr></tbody>
94
+ </table></div>
95
+ </div>
96
+ <div class="refsect1">
97
+ <a name="GtkClutterEmbed.other"></a><h2>Types and Values</h2>
98
+ <div class="informaltable"><table width="100%" border="0">
99
+ <colgroup>
100
+ <col width="150px" class="name">
101
+ <col class="description">
102
+ </colgroup>
103
+ <tbody>
104
+ <tr>
105
+ <td class="datatype_keyword">struct</td>
106
+ <td class="function_name"><a class="link" href="GtkClutterEmbed.html#GtkClutterEmbed-struct" title="struct GtkClutterEmbed">GtkClutterEmbed</a></td>
107
+ </tr>
108
+ <tr>
109
+ <td class="datatype_keyword">struct</td>
110
+ <td class="function_name"><a class="link" href="GtkClutterEmbed.html#GtkClutterEmbedClass" title="struct GtkClutterEmbedClass">GtkClutterEmbedClass</a></td>
111
+ </tr>
112
+ </tbody>
113
+ </table></div>
114
+ </div>
115
+ <div class="refsect1">
116
+ <a name="GtkClutterEmbed.object-hierarchy"></a><h2>Object Hierarchy</h2>
117
+ <pre class="screen"> GObject
118
+ <span class="lineart">╰──</span> GInitiallyUnowned
119
+ <span class="lineart">╰──</span> GtkWidget
120
+ <span class="lineart">╰──</span> GtkContainer
121
+ <span class="lineart">╰──</span> GtkClutterEmbed
122
+ </pre>
123
+ </div>
124
+ <div class="refsect1">
125
+ <a name="GtkClutterEmbed.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
126
+ <p>
127
+ GtkClutterEmbed implements
128
+ AtkImplementorIface and GtkBuildable.</p>
129
+ </div>
130
+ <div class="refsect1">
131
+ <a name="GtkClutterEmbed.description"></a><h2>Description</h2>
132
+ <p><a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> is a GTK+ widget embedding a <span class="type">ClutterStage</span> inside
133
+ a GTK+ application.</p>
134
+ <p>By using a <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> widget is possible to build, show and
135
+ interact with a scene built using Clutter inside a GTK+ application.</p>
136
+ <div class="warning"><p>Though <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> is a <span class="type">GtkContainer</span> subclass,
137
+ it is not a real GTK+ container; <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> is required to
138
+ implement <span class="type">GtkContainer</span> in order to embed a <span class="type">GtkWidget</span> through the
139
+ <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> class. Calling <code class="function">gtk_container_add()</code> on a <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a>
140
+ will trigger an assertion. It is strongly advised not to override the
141
+ <span class="type">GtkContainer</span> implementation when subclassing
142
+ <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a>.</p></div>
143
+ </div>
144
+ <div class="refsect1">
145
+ <a name="GtkClutterEmbed.functions_details"></a><h2>Functions</h2>
146
+ <div class="refsect2">
147
+ <a name="gtk-clutter-embed-new"></a><h3>gtk_clutter_embed_new ()</h3>
148
+ <pre class="programlisting"><span class="returnvalue">GtkWidget</span> *
149
+ gtk_clutter_embed_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
150
+ <p>Creates a new <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> widget. This widget can be
151
+ used to build a scene using Clutter API into a GTK+ application.</p>
152
+ <div class="refsect3">
153
+ <a name="id-1.3.2.9.2.5"></a><h4>Returns</h4>
154
+ <p> the newly created <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a></p>
155
+ <p></p>
156
+ </div>
157
+ </div>
158
+ <hr>
159
+ <div class="refsect2">
160
+ <a name="gtk-clutter-embed-get-stage"></a><h3>gtk_clutter_embed_get_stage ()</h3>
161
+ <pre class="programlisting"><span class="returnvalue">ClutterActor</span> *
162
+ gtk_clutter_embed_get_stage (<em class="parameter"><code><a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> *embed</code></em>);</pre>
163
+ <p>Retrieves the <span class="type">ClutterStage</span> from <em class="parameter"><code>embed</code></em>
164
+ . The returned stage can be
165
+ used to add actors to the Clutter scene.</p>
166
+ <div class="refsect3">
167
+ <a name="id-1.3.2.9.3.5"></a><h4>Parameters</h4>
168
+ <div class="informaltable"><table width="100%" border="0">
169
+ <colgroup>
170
+ <col width="150px" class="parameters_name">
171
+ <col class="parameters_description">
172
+ <col width="200px" class="parameters_annotations">
173
+ </colgroup>
174
+ <tbody><tr>
175
+ <td class="parameter_name"><p>embed</p></td>
176
+ <td class="parameter_description"><p>a <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a></p></td>
177
+ <td class="parameter_annotations"> </td>
178
+ </tr></tbody>
179
+ </table></div>
180
+ </div>
181
+ <div class="refsect3">
182
+ <a name="id-1.3.2.9.3.6"></a><h4>Returns</h4>
183
+ <p> the Clutter stage. You should never
184
+ destroy or unref the returned actor. </p>
185
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
186
+ </div>
187
+ </div>
188
+ <hr>
189
+ <div class="refsect2">
190
+ <a name="gtk-clutter-embed-set-use-layout-size"></a><h3>gtk_clutter_embed_set_use_layout_size ()</h3>
191
+ <pre class="programlisting"><span class="returnvalue">void</span>
192
+ gtk_clutter_embed_set_use_layout_size (<em class="parameter"><code><a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> *embed</code></em>,
193
+ <em class="parameter"><code><span class="type">gboolean</span> use_layout_size</code></em>);</pre>
194
+ <p>Changes the way <em class="parameter"><code>embed</code></em>
195
+ requests size. If <em class="parameter"><code>use_layout_size</code></em>
196
+ is
197
+ <code class="literal">TRUE</code>, the <em class="parameter"><code>embed</code></em>
198
+ widget will request the size that the
199
+ LayoutManager reports as the preferred size. This means that
200
+ a Gtk+ window will automatically get the natural and minimum
201
+ toplevel window sizes. This is useful when the contents of the
202
+ clutter stage is similar to a traditional UI.</p>
203
+ <p>If <em class="parameter"><code>use_layout_size</code></em>
204
+ is <code class="literal">FALSE</code> (which is the default) then <em class="parameter"><code>embed</code></em>
205
+
206
+ will not request any size and its up to the embedder to make sure
207
+ there is some size (by setting a custom size on the widget or a default
208
+ size on the toplevel. This makes more sense when using the <em class="parameter"><code>embed</code></em>
209
+
210
+ as a viewport into a potentially unlimited clutter space.</p>
211
+ <div class="refsect3">
212
+ <a name="id-1.3.2.9.4.6"></a><h4>Parameters</h4>
213
+ <div class="informaltable"><table width="100%" border="0">
214
+ <colgroup>
215
+ <col width="150px" class="parameters_name">
216
+ <col class="parameters_description">
217
+ <col width="200px" class="parameters_annotations">
218
+ </colgroup>
219
+ <tbody>
220
+ <tr>
221
+ <td class="parameter_name"><p>embed</p></td>
222
+ <td class="parameter_description"><p>a <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a></p></td>
223
+ <td class="parameter_annotations"> </td>
224
+ </tr>
225
+ <tr>
226
+ <td class="parameter_name"><p>use_layout_size</p></td>
227
+ <td class="parameter_description"><p>a boolean</p></td>
228
+ <td class="parameter_annotations"> </td>
229
+ </tr>
230
+ </tbody>
231
+ </table></div>
232
+ </div>
233
+ <p class="since">Since 1.4</p>
234
+ </div>
235
+ <hr>
236
+ <div class="refsect2">
237
+ <a name="gtk-clutter-embed-get-use-layout-size"></a><h3>gtk_clutter_embed_get_use_layout_size ()</h3>
238
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
239
+ gtk_clutter_embed_get_use_layout_size (<em class="parameter"><code><a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a> *embed</code></em>);</pre>
240
+ <p>Retrieves whether the embedding uses the layout size, see
241
+ <a class="link" href="GtkClutterEmbed.html#gtk-clutter-embed-set-use-layout-size" title="gtk_clutter_embed_set_use_layout_size ()"><code class="function">gtk_clutter_embed_set_use_layout_size()</code></a> for details.</p>
242
+ <div class="refsect3">
243
+ <a name="id-1.3.2.9.5.5"></a><h4>Parameters</h4>
244
+ <div class="informaltable"><table width="100%" border="0">
245
+ <colgroup>
246
+ <col width="150px" class="parameters_name">
247
+ <col class="parameters_description">
248
+ <col width="200px" class="parameters_annotations">
249
+ </colgroup>
250
+ <tbody><tr>
251
+ <td class="parameter_name"><p>embed</p></td>
252
+ <td class="parameter_description"><p>a <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a></p></td>
253
+ <td class="parameter_annotations"> </td>
254
+ </tr></tbody>
255
+ </table></div>
256
+ </div>
257
+ <div class="refsect3">
258
+ <a name="id-1.3.2.9.5.6"></a><h4>Returns</h4>
259
+ <p> <code class="literal">TRUE</code> if reporting stage size as widget size, <code class="literal">FALSE</code> otherwise.</p>
260
+ <p></p>
261
+ </div>
262
+ <p class="since">Since 1.4</p>
263
+ </div>
264
+ </div>
265
+ <div class="refsect1">
266
+ <a name="GtkClutterEmbed.other_details"></a><h2>Types and Values</h2>
267
+ <div class="refsect2">
268
+ <a name="GtkClutterEmbed-struct"></a><h3>struct GtkClutterEmbed</h3>
269
+ <pre class="programlisting">struct GtkClutterEmbed;</pre>
270
+ <p>A <span class="type">GtkWidget</span> containing the default Clutter stage.</p>
271
+ <p>The <span class="structname">GtkClutterEmbed</span> structure contains only
272
+ private data and should be accessed using the provided API.</p>
273
+ </div>
274
+ <hr>
275
+ <div class="refsect2">
276
+ <a name="GtkClutterEmbedClass"></a><h3>struct GtkClutterEmbedClass</h3>
277
+ <pre class="programlisting">struct GtkClutterEmbedClass {
278
+ };
279
+ </pre>
280
+ <p>Base class for <a class="link" href="GtkClutterEmbed.html" title="GtkClutterEmbed"><span class="type">GtkClutterEmbed</span></a>.</p>
281
+ <p>The <span class="structname">GtkClutterEmbedClass</span> contains only private
282
+ data.</p>
283
+ </div>
284
+ </div>
285
+ <div class="refsect1">
286
+ <a name="GtkClutterEmbed.property-details"></a><h2>Property Details</h2>
287
+ <div class="refsect2">
288
+ <a name="GtkClutterEmbed--use-layout-size"></a><h3>The <code class="literal">“use-layout-size”</code> property</h3>
289
+ <pre class="programlisting"> “use-layout-size” <span class="type">gboolean</span></pre>
290
+ <p>The <span class="type">GtkWidget</span> to be embedded into the <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a></p>
291
+ <p>Flags: Read / Write / Construct</p>
292
+ <p>Default value: FALSE</p>
293
+ <p class="since">Since 1.4</p>
294
+ </div>
295
+ </div>
296
+ <div class="refsect1">
297
+ <a name="GtkClutterEmbed.see-also"></a><h2>See Also</h2>
298
+ <p><span class="type">ClutterStage</span></p>
299
+ </div>
300
+ </div>
301
+ <div class="footer">
302
+ <hr>
303
+ Generated by GTK-Doc V1.20.1</div>
304
+ </body>
305
+ </html>