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,179 @@
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: GtkClutterWindow</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="GtkClutterActor.html" title="GtkClutterActor">
11
+ <link rel="next" href="ch03.html" title="Miscellaneous">
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="#GtkClutterWindow.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
20
+ <a href="#GtkClutterWindow.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
21
+ <a href="#GtkClutterWindow.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span>
22
+ </td>
23
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
24
+ <td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
25
+ <td><a accesskey="p" href="GtkClutterActor.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
26
+ <td><a accesskey="n" href="ch03.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
27
+ </tr></table>
28
+ <div class="refentry">
29
+ <a name="GtkClutterWindow"></a><div class="titlepage"></div>
30
+ <div class="refnamediv"><table width="100%"><tr>
31
+ <td valign="top">
32
+ <h2><span class="refentrytitle"><a name="GtkClutterWindow.top_of_page"></a>GtkClutterWindow</span></h2>
33
+ <p>GtkClutterWindow — a GtkWindow that embeds its contents onto a stage</p>
34
+ </td>
35
+ <td class="gallery_image" valign="top" align="right"></td>
36
+ </tr></table></div>
37
+ <div class="refsect1">
38
+ <a name="GtkClutterWindow.functions"></a><h2>Functions</h2>
39
+ <div class="informaltable"><table width="100%" border="0">
40
+ <colgroup>
41
+ <col width="150px" class="functions_return">
42
+ <col class="functions_name">
43
+ </colgroup>
44
+ <tbody>
45
+ <tr>
46
+ <td class="function_type">
47
+ <span class="returnvalue">GtkWidget</span> *
48
+ </td>
49
+ <td class="function_name">
50
+ <a class="link" href="GtkClutterWindow.html#gtk-clutter-window-new" title="gtk_clutter_window_new ()">gtk_clutter_window_new</a> <span class="c_punctuation">()</span>
51
+ </td>
52
+ </tr>
53
+ <tr>
54
+ <td class="function_type">
55
+ <span class="returnvalue">ClutterActor</span> *
56
+ </td>
57
+ <td class="function_name">
58
+ <a class="link" href="GtkClutterWindow.html#gtk-clutter-window-get-stage" title="gtk_clutter_window_get_stage ()">gtk_clutter_window_get_stage</a> <span class="c_punctuation">()</span>
59
+ </td>
60
+ </tr>
61
+ </tbody>
62
+ </table></div>
63
+ </div>
64
+ <div class="refsect1">
65
+ <a name="GtkClutterWindow.other"></a><h2>Types and Values</h2>
66
+ <div class="informaltable"><table width="100%" border="0">
67
+ <colgroup>
68
+ <col width="150px" class="name">
69
+ <col class="description">
70
+ </colgroup>
71
+ <tbody>
72
+ <tr>
73
+ <td class="datatype_keyword">struct</td>
74
+ <td class="function_name"><a class="link" href="GtkClutterWindow.html#GtkClutterWindow-struct" title="struct GtkClutterWindow">GtkClutterWindow</a></td>
75
+ </tr>
76
+ <tr>
77
+ <td class="datatype_keyword">struct</td>
78
+ <td class="function_name"><a class="link" href="GtkClutterWindow.html#GtkClutterWindowClass" title="struct GtkClutterWindowClass">GtkClutterWindowClass</a></td>
79
+ </tr>
80
+ </tbody>
81
+ </table></div>
82
+ </div>
83
+ <div class="refsect1">
84
+ <a name="GtkClutterWindow.object-hierarchy"></a><h2>Object Hierarchy</h2>
85
+ <pre class="screen"> GObject
86
+ <span class="lineart">╰──</span> GInitiallyUnowned
87
+ <span class="lineart">╰──</span> GtkWidget
88
+ <span class="lineart">╰──</span> GtkContainer
89
+ <span class="lineart">╰──</span> GtkBin
90
+ <span class="lineart">╰──</span> GtkWindow
91
+ <span class="lineart">╰──</span> GtkClutterWindow
92
+ </pre>
93
+ </div>
94
+ <div class="refsect1">
95
+ <a name="GtkClutterWindow.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
96
+ <p>
97
+ GtkClutterWindow implements
98
+ AtkImplementorIface and GtkBuildable.</p>
99
+ </div>
100
+ <div class="refsect1">
101
+ <a name="GtkClutterWindow.description"></a><h2>Description</h2>
102
+ <p><a class="link" href="GtkClutterWindow.html" title="GtkClutterWindow"><span class="type">GtkClutterWindow</span></a> is a <span class="type">GtkWindow</span> sub-class that embeds a Clutter stage.</p>
103
+ <p><a class="link" href="GtkClutterWindow.html" title="GtkClutterWindow"><span class="type">GtkClutterWindow</span></a> behaves exactly like a <span class="type">GtkWindow</span>, except that its
104
+ child is automatically embedded inside a <a class="link" href="GtkClutterActor.html" title="GtkClutterActor"><span class="type">GtkClutterActor</span></a> and it is
105
+ thus part of the embedded <span class="type">ClutterStage</span>.</p>
106
+ <p>Clutter actors can be added to the same stage by calling
107
+ <a class="link" href="GtkClutterWindow.html#gtk-clutter-window-get-stage" title="gtk_clutter_window_get_stage ()"><code class="function">gtk_clutter_window_get_stage()</code></a>.</p>
108
+ </div>
109
+ <div class="refsect1">
110
+ <a name="GtkClutterWindow.functions_details"></a><h2>Functions</h2>
111
+ <div class="refsect2">
112
+ <a name="gtk-clutter-window-new"></a><h3>gtk_clutter_window_new ()</h3>
113
+ <pre class="programlisting"><span class="returnvalue">GtkWidget</span> *
114
+ gtk_clutter_window_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
115
+ <p>Creates a new <a class="link" href="GtkClutterWindow.html" title="GtkClutterWindow"><span class="type">GtkClutterWindow</span></a> widget.</p>
116
+ <p>This window provides a hidden <span class="type">ClutterStage</span> on which the child
117
+ <span class="type">GtkWidget</span>s are placed. This allows other <span class="type">ClutterActor</span>s
118
+ to also be placed on the stage.</p>
119
+ <div class="refsect3">
120
+ <a name="id-1.3.4.8.2.6"></a><h4>Returns</h4>
121
+ <p> the newly created <a class="link" href="GtkClutterWindow.html" title="GtkClutterWindow"><span class="type">GtkClutterWindow</span></a></p>
122
+ <p></p>
123
+ </div>
124
+ </div>
125
+ <hr>
126
+ <div class="refsect2">
127
+ <a name="gtk-clutter-window-get-stage"></a><h3>gtk_clutter_window_get_stage ()</h3>
128
+ <pre class="programlisting"><span class="returnvalue">ClutterActor</span> *
129
+ gtk_clutter_window_get_stage (<em class="parameter"><code><a class="link" href="GtkClutterWindow.html" title="GtkClutterWindow"><span class="type">GtkClutterWindow</span></a> *window</code></em>);</pre>
130
+ <p>Retrieves the <span class="type">ClutterStage</span> that this window is embedding</p>
131
+ <p>Use this function if you wish to add other actors to the <span class="type">ClutterStage</span>.</p>
132
+ <div class="refsect3">
133
+ <a name="id-1.3.4.8.3.6"></a><h4>Parameters</h4>
134
+ <div class="informaltable"><table width="100%" border="0">
135
+ <colgroup>
136
+ <col width="150px" class="parameters_name">
137
+ <col class="parameters_description">
138
+ <col width="200px" class="parameters_annotations">
139
+ </colgroup>
140
+ <tbody><tr>
141
+ <td class="parameter_name"><p>window</p></td>
142
+ <td class="parameter_description"><p>the <a class="link" href="GtkClutterWindow.html" title="GtkClutterWindow"><span class="type">GtkClutterWindow</span></a></p></td>
143
+ <td class="parameter_annotations"> </td>
144
+ </tr></tbody>
145
+ </table></div>
146
+ </div>
147
+ <div class="refsect3">
148
+ <a name="id-1.3.4.8.3.7"></a><h4>Returns</h4>
149
+ <p> the window's <span class="type">ClutterStage</span>. </p>
150
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ <div class="refsect1">
155
+ <a name="GtkClutterWindow.other_details"></a><h2>Types and Values</h2>
156
+ <div class="refsect2">
157
+ <a name="GtkClutterWindow-struct"></a><h3>struct GtkClutterWindow</h3>
158
+ <pre class="programlisting">struct GtkClutterWindow;</pre>
159
+ <p>A <span class="type">GtkWindow</span> containing a <span class="type">ClutterStage</span>.</p>
160
+ <p>The <span class="structname">GtkClutterWindow</span> structure contains only
161
+ private data and it should be accessed using the provided API.</p>
162
+ </div>
163
+ <hr>
164
+ <div class="refsect2">
165
+ <a name="GtkClutterWindowClass"></a><h3>struct GtkClutterWindowClass</h3>
166
+ <pre class="programlisting">struct GtkClutterWindowClass {
167
+ };
168
+ </pre>
169
+ <p>Base class for <a class="link" href="GtkClutterWindow.html" title="GtkClutterWindow"><span class="type">GtkClutterWindow</span></a>.</p>
170
+ <p>The <span class="structname">GtkClutterWindowClass</span> structure contains
171
+ only private data.</p>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ <div class="footer">
176
+ <hr>
177
+ Generated by GTK-Doc V1.20.1</div>
178
+ </body>
179
+ </html>
@@ -0,0 +1,48 @@
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: Annotation Glossary</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="cluttergtk-glossary.html" title="Part II. Glossaries">
10
+ <link rel="prev" href="cluttergtk-glossary.html" title="Part II. Glossaries">
11
+ <link rel="next" href="ix02.html" title="Index of all symbols">
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"><span id="nav_glossary"><a class="shortcut" href="#glsA">A</a>
18
+  <span class="dim">|</span> 
19
+ <a class="shortcut" href="#glsI">I</a>
20
+  <span class="dim">|</span> 
21
+ <a class="shortcut" href="#glsT">T</a></span></td>
22
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23
+ <td><a accesskey="u" href="cluttergtk-glossary.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24
+ <td><a accesskey="p" href="cluttergtk-glossary.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25
+ <td><a accesskey="n" href="ix02.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26
+ </tr></table>
27
+ <div class="glossary">
28
+ <div class="titlepage"><div><div><h2 class="title">
29
+ <a name="annotation-glossary"></a>Annotation Glossary</h2></div></div></div>
30
+ <a name="glsA"></a><h3 class="title">A</h3>
31
+ <dt><span class="glossterm"><a name="annotation-glossterm-allow-none"></a>allow-none</span></dt>
32
+ <dd class="glossdef"><p>NULL is OK, both for passing and for returning.</p></dd>
33
+ <dt><span class="glossterm"><a name="annotation-glossterm-array"></a>array</span></dt>
34
+ <dd class="glossdef"><p>Parameter points to an array of items.</p></dd>
35
+ <a name="glsI"></a><h3 class="title">I</h3>
36
+ <dt><span class="glossterm"><a name="annotation-glossterm-inout"></a>inout</span></dt>
37
+ <dd class="glossdef"><p>Parameter for input and for returning results. Default is <acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>.</p></dd>
38
+ <a name="glsT"></a><h3 class="title">T</h3>
39
+ <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20full"></a>transfer full</span></dt>
40
+ <dd class="glossdef"><p>Free data after the code is done.</p></dd>
41
+ <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20none"></a>transfer none</span></dt>
42
+ <dd class="glossdef"><p>Don't free data after the code is done.</p></dd>
43
+ </div>
44
+ <div class="footer">
45
+ <hr>
46
+ Generated by GTK-Doc V1.20.1</div>
47
+ </body>
48
+ </html>
@@ -0,0 +1,36 @@
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: Clutter-Gtk Overview</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="index.html" title="Clutter-Gtk 1.6.0 Reference Manual">
10
+ <link rel="prev" href="index.html" title="Clutter-Gtk 1.6.0 Reference Manual">
11
+ <link rel="next" href="ch02.html" title="Clutter-Gtk Widgets">
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"></td>
18
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
19
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
20
+ <td><a accesskey="p" href="index.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
21
+ <td><a accesskey="n" href="ch02.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
22
+ </tr></table>
23
+ <div class="chapter">
24
+ <div class="titlepage"><div><div><h1 class="title">
25
+ <a name="id-1.2"></a>Clutter-Gtk Overview</h1></div></div></div>
26
+ <p>Clutter-Gtk is an integration library for the Clutter toolkit
27
+ providing access and integration for the GTK+ library.</p>
28
+ <p>Clutter-Gtk allows embedding a Clutter scene graph into a
29
+ GTK+ application; retrieving themeing information; integrate GTK+
30
+ data structures and object classes with Clutter actors.</p>
31
+ </div>
32
+ <div class="footer">
33
+ <hr>
34
+ Generated by GTK-Doc V1.20.1</div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,42 @@
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: Clutter-Gtk Widgets</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="index.html" title="Clutter-Gtk 1.6.0 Reference Manual">
10
+ <link rel="prev" href="ch01.html" title="Clutter-Gtk Overview">
11
+ <link rel="next" href="GtkClutterEmbed.html" title="GtkClutterEmbed">
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"></td>
18
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
19
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
20
+ <td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
21
+ <td><a accesskey="n" href="GtkClutterEmbed.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
22
+ </tr></table>
23
+ <div class="chapter">
24
+ <div class="titlepage"><div><div><h1 class="title">
25
+ <a name="id-1.3"></a>Clutter-Gtk Widgets</h1></div></div></div>
26
+ <div class="toc"><dl class="toc">
27
+ <dt>
28
+ <span class="refentrytitle"><a href="GtkClutterEmbed.html">GtkClutterEmbed</a></span><span class="refpurpose"> — Widget for embedding a Clutter scene</span>
29
+ </dt>
30
+ <dt>
31
+ <span class="refentrytitle"><a href="GtkClutterActor.html">GtkClutterActor</a></span><span class="refpurpose"> — actor for embedding a Widget in a Clutter stage</span>
32
+ </dt>
33
+ <dt>
34
+ <span class="refentrytitle"><a href="GtkClutterWindow.html">GtkClutterWindow</a></span><span class="refpurpose"> — a GtkWindow that embeds its contents onto a stage</span>
35
+ </dt>
36
+ </dl></div>
37
+ </div>
38
+ <div class="footer">
39
+ <hr>
40
+ Generated by GTK-Doc V1.20.1</div>
41
+ </body>
42
+ </html>
@@ -0,0 +1,34 @@
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: Miscellaneous</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="index.html" title="Clutter-Gtk 1.6.0 Reference Manual">
10
+ <link rel="prev" href="GtkClutterWindow.html" title="GtkClutterWindow">
11
+ <link rel="next" href="clutter-gtk-1.0-Utility-Functions.html" title="Utility Functions">
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"></td>
18
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
19
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
20
+ <td><a accesskey="p" href="GtkClutterWindow.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
21
+ <td><a accesskey="n" href="clutter-gtk-1.0-Utility-Functions.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
22
+ </tr></table>
23
+ <div class="chapter">
24
+ <div class="titlepage"><div><div><h1 class="title">
25
+ <a name="id-1.4"></a>Miscellaneous</h1></div></div></div>
26
+ <div class="toc"><dl class="toc"><dt>
27
+ <span class="refentrytitle"><a href="clutter-gtk-1.0-Utility-Functions.html">Utility Functions</a></span><span class="refpurpose"> — Utility functions for integrating Clutter in GTK+</span>
28
+ </dt></dl></div>
29
+ </div>
30
+ <div class="footer">
31
+ <hr>
32
+ Generated by GTK-Doc V1.20.1</div>
33
+ </body>
34
+ </html>
@@ -0,0 +1,258 @@
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: Utility Functions</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="ch03.html" title="Miscellaneous">
10
+ <link rel="prev" href="ch03.html" title="Miscellaneous">
11
+ <link rel="next" href="ix01.html" title="Index">
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="#clutter-gtk-1.0-Utility-Functions.description" class="shortcut">Description</a></span>
20
+ </td>
21
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22
+ <td><a accesskey="u" href="ch03.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23
+ <td><a accesskey="p" href="ch03.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24
+ <td><a accesskey="n" href="ix01.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25
+ </tr></table>
26
+ <div class="refentry">
27
+ <a name="clutter-gtk-1.0-Utility-Functions"></a><div class="titlepage"></div>
28
+ <div class="refnamediv"><table width="100%"><tr>
29
+ <td valign="top">
30
+ <h2><span class="refentrytitle"><a name="clutter-gtk-1.0-Utility-Functions.top_of_page"></a>Utility Functions</span></h2>
31
+ <p>Utility Functions — Utility functions for integrating Clutter in GTK+</p>
32
+ </td>
33
+ <td class="gallery_image" valign="top" align="right"></td>
34
+ </tr></table></div>
35
+ <div class="refsect1">
36
+ <a name="clutter-gtk-1.0-Utility-Functions.functions"></a><h2>Functions</h2>
37
+ <div class="informaltable"><table width="100%" border="0">
38
+ <colgroup>
39
+ <col width="150px" class="functions_return">
40
+ <col class="functions_name">
41
+ </colgroup>
42
+ <tbody>
43
+ <tr>
44
+ <td class="function_type">
45
+ <span class="returnvalue">ClutterInitError</span>
46
+ </td>
47
+ <td class="function_name">
48
+ <a class="link" href="clutter-gtk-1.0-Utility-Functions.html#gtk-clutter-init" title="gtk_clutter_init ()">gtk_clutter_init</a> <span class="c_punctuation">()</span>
49
+ </td>
50
+ </tr>
51
+ <tr>
52
+ <td class="function_type">
53
+ <span class="returnvalue">ClutterInitError</span>
54
+ </td>
55
+ <td class="function_name">
56
+ <a class="link" href="clutter-gtk-1.0-Utility-Functions.html#gtk-clutter-init-with-args" title="gtk_clutter_init_with_args ()">gtk_clutter_init_with_args</a> <span class="c_punctuation">()</span>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <td class="function_type">
61
+ <span class="returnvalue">GOptionGroup</span> *
62
+ </td>
63
+ <td class="function_name">
64
+ <a class="link" href="clutter-gtk-1.0-Utility-Functions.html#gtk-clutter-get-option-group" title="gtk_clutter_get_option_group ()">gtk_clutter_get_option_group</a> <span class="c_punctuation">()</span>
65
+ </td>
66
+ </tr>
67
+ </tbody>
68
+ </table></div>
69
+ </div>
70
+ <div class="refsect1">
71
+ <a name="clutter-gtk-1.0-Utility-Functions.description"></a><h2>Description</h2>
72
+ <p>In order to properly integrate a Clutter scene into a GTK+ applications
73
+ a certain degree of state must be retrieved from GTK+ itself.</p>
74
+ <p>Clutter-GTK provides API for easing the process of synchronizing colors
75
+ with the current GTK+ theme and for loading image sources from <span class="type">GdkPixbuf</span>,
76
+ GTK+ stock items and icon themes.</p>
77
+ </div>
78
+ <div class="refsect1">
79
+ <a name="clutter-gtk-1.0-Utility-Functions.functions_details"></a><h2>Functions</h2>
80
+ <div class="refsect2">
81
+ <a name="gtk-clutter-init"></a><h3>gtk_clutter_init ()</h3>
82
+ <pre class="programlisting"><span class="returnvalue">ClutterInitError</span>
83
+ gtk_clutter_init (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
84
+ <em class="parameter"><code><span class="type">char</span> ***argv</code></em>);</pre>
85
+ <p>This function should be called instead of <code class="function">clutter_init()</code> and
86
+ <code class="function">gtk_init()</code>.</p>
87
+ <div class="refsect3">
88
+ <a name="id-1.4.2.5.2.5"></a><h4>Parameters</h4>
89
+ <div class="informaltable"><table width="100%" border="0">
90
+ <colgroup>
91
+ <col width="150px" class="parameters_name">
92
+ <col class="parameters_description">
93
+ <col width="200px" class="parameters_annotations">
94
+ </colgroup>
95
+ <tbody>
96
+ <tr>
97
+ <td class="parameter_name"><p>argc</p></td>
98
+ <td class="parameter_description"><p> pointer to the arguments count, or <code class="literal">NULL</code>. </p></td>
99
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
100
+ </tr>
101
+ <tr>
102
+ <td class="parameter_name"><p>argv</p></td>
103
+ <td class="parameter_description"><p> pointer to the
104
+ arguments vector, or <code class="literal">NULL</code>. </p></td>
105
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=argc][<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
106
+ </tr>
107
+ </tbody>
108
+ </table></div>
109
+ </div>
110
+ <div class="refsect3">
111
+ <a name="id-1.4.2.5.2.6"></a><h4>Returns</h4>
112
+ <p> <code class="literal">CLUTTER_INIT_SUCCESS</code> on success, a negative integer
113
+ on failure.</p>
114
+ <p></p>
115
+ </div>
116
+ </div>
117
+ <hr>
118
+ <div class="refsect2">
119
+ <a name="gtk-clutter-init-with-args"></a><h3>gtk_clutter_init_with_args ()</h3>
120
+ <pre class="programlisting"><span class="returnvalue">ClutterInitError</span>
121
+ gtk_clutter_init_with_args (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
122
+ <em class="parameter"><code><span class="type">char</span> ***argv</code></em>,
123
+ <em class="parameter"><code>const <span class="type">char</span> *parameter_string</code></em>,
124
+ <em class="parameter"><code><span class="type">GOptionEntry</span> *entries</code></em>,
125
+ <em class="parameter"><code>const <span class="type">char</span> *translation_domain</code></em>,
126
+ <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
127
+ <p>This function should be called instead of <code class="function">clutter_init()</code> and
128
+ <code class="function">gtk_init_with_args()</code>.</p>
129
+ <div class="refsect3">
130
+ <a name="id-1.4.2.5.3.5"></a><h4>Parameters</h4>
131
+ <div class="informaltable"><table width="100%" border="0">
132
+ <colgroup>
133
+ <col width="150px" class="parameters_name">
134
+ <col class="parameters_description">
135
+ <col width="200px" class="parameters_annotations">
136
+ </colgroup>
137
+ <tbody>
138
+ <tr>
139
+ <td class="parameter_name"><p>argc</p></td>
140
+ <td class="parameter_description"><p> a pointer to the number of command line
141
+ arguments, or <code class="literal">NULL</code>. </p></td>
142
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
143
+ </tr>
144
+ <tr>
145
+ <td class="parameter_name"><p>argv</p></td>
146
+ <td class="parameter_description"><p> a pointer to the array
147
+ of command line arguments, or <code class="literal">NULL</code>. </p></td>
148
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=argc]</span></td>
149
+ </tr>
150
+ <tr>
151
+ <td class="parameter_name"><p>parameter_string</p></td>
152
+ <td class="parameter_description"><p> a string which is displayed in
153
+ the first line of <code class="option">--help</code> output, after
154
+ <code class="literal"><em class="replaceable"><code>programname</code></em> [OPTION...]</code>. </p></td>
155
+ <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>
156
+ </tr>
157
+ <tr>
158
+ <td class="parameter_name"><p>entries</p></td>
159
+ <td class="parameter_description"><p> a
160
+ <code class="literal">NULL</code>-terminated array of <span class="type">GOptionEntry</span>s describing the
161
+ options of your program. </p></td>
162
+ <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>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
163
+ </tr>
164
+ <tr>
165
+ <td class="parameter_name"><p>translation_domain</p></td>
166
+ <td class="parameter_description"><p> a translation domain to use for
167
+ translating the <code class="option">--help</code> output for the options
168
+ in <em class="parameter"><code>entries</code></em>
169
+ with <code class="function">gettext()</code>, or <code class="literal">NULL</code>. </p></td>
170
+ <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>
171
+ </tr>
172
+ <tr>
173
+ <td class="parameter_name"><p>error</p></td>
174
+ <td class="parameter_description"><p> a return location for errors, or <code class="literal">NULL</code>. </p></td>
175
+ <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>
176
+ </tr>
177
+ </tbody>
178
+ </table></div>
179
+ </div>
180
+ <div class="refsect3">
181
+ <a name="id-1.4.2.5.3.6"></a><h4>Returns</h4>
182
+ <p> <code class="literal">CLUTTER_INIT_SUCCESS</code> on success, a negative integer
183
+ on failure.</p>
184
+ <p></p>
185
+ </div>
186
+ </div>
187
+ <hr>
188
+ <div class="refsect2">
189
+ <a name="gtk-clutter-get-option-group"></a><h3>gtk_clutter_get_option_group ()</h3>
190
+ <pre class="programlisting"><span class="returnvalue">GOptionGroup</span> *
191
+ gtk_clutter_get_option_group (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
192
+ <p>Returns a <span class="type">GOptionGroup</span> for the command line arguments recognized
193
+ by Clutter. You should add this group to your <span class="type">GOptionContext</span> with
194
+ <code class="function">g_option_context_add_group()</code>, if you are using <code class="function">g_option_context_parse()</code>
195
+ to parse your commandline arguments instead of using <a class="link" href="clutter-gtk-1.0-Utility-Functions.html#gtk-clutter-init" title="gtk_clutter_init ()"><code class="function">gtk_clutter_init()</code></a>
196
+ or <a class="link" href="clutter-gtk-1.0-Utility-Functions.html#gtk-clutter-init-with-args" title="gtk_clutter_init_with_args ()"><code class="function">gtk_clutter_init_with_args()</code></a>.</p>
197
+ <p>You should add this option group to your <span class="type">GOptionContext</span> after
198
+ the GTK option group created with <code class="function">gtk_get_option_group()</code>, and after
199
+ the clutter option group obtained from <code class="function">clutter_get_option_group_without_init()</code>.
200
+ You should not use <code class="function">clutter_get_option_group()</code> together with this function.</p>
201
+ <p>You must pass <code class="literal">TRUE</code> to <code class="function">gtk_get_option_group()</code> since gtk-clutter's option
202
+ group relies on it.</p>
203
+ <p>Parsing options using <code class="function">g_option_context_parse()</code> with a <span class="type">GOptionContext</span>
204
+ containing the returned <span class="type">GOptionGroupwith</span> will result in Clutter's and
205
+ GTK-Clutter's initialisation. That is, the following code:</p>
206
+ <div class="informalexample">
207
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
208
+ <tbody>
209
+ <tr>
210
+ <td class="listing_lines" align="right"><pre>1
211
+ 2
212
+ 3
213
+ 4
214
+ 5</pre></td>
215
+ <td class="listing_code"><pre class="programlisting"><span class="function">g_option_context_add_group</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="function">gtk_get_option_group</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">TRUE</span><span class="symbol">));</span>
216
+ <span class="function">g_option_context_add_group</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="function">cogl_get_option_group</span><span class="normal"> </span><span class="symbol">());</span>
217
+ <span class="function">g_option_context_add_group</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="function">clutter_get_option_group_without_init</span><span class="normal"> </span><span class="symbol">());</span>
218
+ <span class="function">g_option_context_add_group</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="clutter-gtk-1.0-Utility-Functions.html#gtk-clutter-get-option-group">gtk_clutter_get_option_group</a></span><span class="normal"> </span><span class="symbol">());</span>
219
+ <span class="normal">res </span><span class="symbol">=</span><span class="normal"> </span><span class="function">g_option_context_parse</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
220
+ </tr>
221
+ </tbody>
222
+ </table>
223
+ </div>
224
+
225
+ <p></p>
226
+ <p>is functionally equivalent to:</p>
227
+ <div class="informalexample">
228
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
229
+ <tbody>
230
+ <tr>
231
+ <td class="listing_lines" align="right"><pre>1</pre></td>
232
+ <td class="listing_code"><pre class="programlisting"><span class="function"><a href="clutter-gtk-1.0-Utility-Functions.html#gtk-clutter-init">gtk_clutter_init</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span></pre></td>
233
+ </tr>
234
+ </tbody>
235
+ </table>
236
+ </div>
237
+
238
+ <p></p>
239
+ <p>After <code class="function">g_option_context_parse()</code> on a <span class="type">GOptionContext</span> containing the
240
+ the returned <span class="type">GOptionGroup</span> has returned <code class="literal">TRUE</code>, Clutter and GTK-Clutter are
241
+ guaranteed to be initialized.</p>
242
+ <div class="refsect3">
243
+ <a name="id-1.4.2.5.4.14"></a><h4>Returns</h4>
244
+ <p> a <span class="type">GOptionGroup</span> for the commandline arguments
245
+ recognized by ClutterGtk. </p>
246
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
247
+ </div>
248
+ </div>
249
+ </div>
250
+ <div class="refsect1">
251
+ <a name="clutter-gtk-1.0-Utility-Functions.other_details"></a><h2>Types and Values</h2>
252
+ </div>
253
+ </div>
254
+ <div class="footer">
255
+ <hr>
256
+ Generated by GTK-Doc V1.20.1</div>
257
+ </body>
258
+ </html>