clutter-gtk 2.0.0-x86-mingw32

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