1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>ClutterGroup</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="Clutter Reference Manual">
8 <link rel="up" href="deprecated.html" title="Part X. Deprecated Classes">
9 <link rel="prev" href="ClutterBehaviourScale.html" title="ClutterBehaviourScale">
10 <link rel="next" href="ClutterBox.html" title="ClutterBox">
11 <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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">
17 <td><a accesskey="p" href="ClutterBehaviourScale.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="deprecated.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 Reference Manual</th>
21 <td><a accesskey="n" href="ClutterBox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#ClutterGroup.synopsis" class="shortcut">Top</a>
26 <a href="#ClutterGroup.description" class="shortcut">Description</a>
28 <a href="#ClutterGroup.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#ClutterGroup.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
33 <div class="refentry">
34 <a name="ClutterGroup"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="ClutterGroup.top_of_page"></a>ClutterGroup</span></h2>
38 <p>ClutterGroup — A fixed layout container</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="ClutterGroup.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis">struct <a class="link" href="ClutterGroup.html#ClutterGroup-struct" title="struct ClutterGroup">ClutterGroup</a>;
45 struct <a class="link" href="ClutterGroup.html#ClutterGroupClass" title="struct ClutterGroupClass">ClutterGroupClass</a>;
46 <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="returnvalue">ClutterActor</span></a> * <a class="link" href="ClutterGroup.html#clutter-group-new" title="clutter_group_new ()">clutter_group_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
47 <span class="returnvalue">void</span> <a class="link" href="ClutterGroup.html#clutter-group-remove-all" title="clutter_group_remove_all ()">clutter_group_remove_all</a> (<em class="parameter"><code><a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> *self</code></em>);
48 <a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="ClutterGroup.html#clutter-group-get-n-children" title="clutter_group_get_n_children ()">clutter_group_get_n_children</a> (<em class="parameter"><code><a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> *self</code></em>);
49 <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="returnvalue">ClutterActor</span></a> * <a class="link" href="ClutterGroup.html#clutter-group-get-nth-child" title="clutter_group_get_nth_child ()">clutter_group_get_nth_child</a> (<em class="parameter"><code><a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> *self</code></em>,
50 <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> index_</code></em>);
53 <div class="refsect1">
54 <a name="ClutterGroup.object-hierarchy"></a><h2>Object Hierarchy</h2>
55 <pre class="synopsis">
56 <a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
57 +----<a href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
58 +----<a class="link" href="ClutterActor.html" title="ClutterActor">ClutterActor</a>
60 +----<a class="link" href="ClutterStage.html" title="ClutterStage">ClutterStage</a>
63 <div class="refsect1">
64 <a name="ClutterGroup.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
66 ClutterGroup implements
67 <a class="link" href="ClutterContainer.html" title="ClutterContainer">ClutterContainer</a>, <a class="link" href="ClutterScriptable.html" title="ClutterScriptable">ClutterScriptable</a>, <a class="link" href="ClutterAnimatable.html" title="ClutterAnimatable">ClutterAnimatable</a> and AtkImplementorIface.</p>
69 <div class="refsect1">
70 <a name="ClutterGroup.description"></a><h2>Description</h2>
72 A <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> is an Actor which contains multiple child actors positioned
73 relative to the <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> position. Other operations such as scaling,
74 rotating and clipping of the group will apply to the child actors.
77 A <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a>'s size is defined by the size and position of its children;
78 it will be the smallest non-negative size that covers the right and bottom
79 edges of all of its children.
82 Setting the size on a Group using <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> methods like
83 <a class="link" href="ClutterActor.html#clutter-actor-set-size" title="clutter_actor_set_size ()"><code class="function">clutter_actor_set_size()</code></a> will override the natural size of the Group,
84 however this will not affect the size of the children and they may still
85 be painted outside of the allocation of the group. One way to constrain
86 the visible area of a <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> to a specified allocation is to
87 explicitly set the size of the <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> and then use the
88 <a class="link" href="ClutterActor.html#ClutterActor--clip-to-allocation" title='The "clip-to-allocation" property'><span class="type">"clip-to-allocation"</span></a> property.
91 <div class="refsect1">
92 <a name="ClutterGroup.details"></a><h2>Details</h2>
93 <div class="refsect2">
94 <a name="ClutterGroup-struct"></a><h3>struct ClutterGroup</h3>
95 <pre class="programlisting">struct ClutterGroup;</pre>
97 The <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> structure contains only private data
98 and should be accessed using the provided API
100 <p class="since">Since 0.1</p>
103 <div class="refsect2">
104 <a name="ClutterGroupClass"></a><h3>struct ClutterGroupClass</h3>
105 <pre class="programlisting">struct ClutterGroupClass {
109 The <a class="link" href="ClutterGroup.html#ClutterGroupClass" title="struct ClutterGroupClass"><span class="type">ClutterGroupClass</span></a> structure contains only private data
111 <p class="since">Since 0.1</p>
114 <div class="refsect2">
115 <a name="clutter-group-new"></a><h3>clutter_group_new ()</h3>
116 <pre class="programlisting"><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="returnvalue">ClutterActor</span></a> * clutter_group_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
117 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
118 <h3 class="title">Warning</h3>
119 <p><code class="literal">clutter_group_new</code> has been deprecated since version 1.10 and should not be used in newly-written code. Use <a class="link" href="ClutterActor.html#clutter-actor-new" title="clutter_actor_new ()"><code class="function">clutter_actor_new()</code></a> instead.</p>
122 Create a new <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a>.
124 <div class="variablelist"><table border="0">
125 <col align="left" valign="top">
127 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
128 <td>the newly created <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> actor</td>
133 <div class="refsect2">
134 <a name="clutter-group-remove-all"></a><h3>clutter_group_remove_all ()</h3>
135 <pre class="programlisting"><span class="returnvalue">void</span> clutter_group_remove_all (<em class="parameter"><code><a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> *self</code></em>);</pre>
136 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
137 <h3 class="title">Warning</h3>
138 <p><code class="literal">clutter_group_remove_all</code> has been deprecated since version 1.10 and should not be used in newly-written code. Use <a class="link" href="ClutterActor.html#clutter-actor-remove-all-children" title="clutter_actor_remove_all_children ()"><code class="function">clutter_actor_remove_all_children()</code></a> instead.</p>
141 Removes all children actors from the <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a>.
143 <div class="variablelist"><table border="0">
144 <col align="left" valign="top">
146 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
147 <td>A <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a>
153 <div class="refsect2">
154 <a name="clutter-group-get-n-children"></a><h3>clutter_group_get_n_children ()</h3>
155 <pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> clutter_group_get_n_children (<em class="parameter"><code><a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> *self</code></em>);</pre>
156 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
157 <h3 class="title">Warning</h3>
158 <p><code class="literal">clutter_group_get_n_children</code> has been deprecated since version 1.10 and should not be used in newly-written code. Use <a class="link" href="ClutterActor.html#clutter-actor-get-n-children" title="clutter_actor_get_n_children ()"><code class="function">clutter_actor_get_n_children()</code></a> instead.</p>
161 Gets the number of actors held in the group.
163 <div class="variablelist"><table border="0">
164 <col align="left" valign="top">
167 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
168 <td>A <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a>
172 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
173 <td>The number of child actors held in the group.</td>
177 <p class="since">Since 0.2</p>
180 <div class="refsect2">
181 <a name="clutter-group-get-nth-child"></a><h3>clutter_group_get_nth_child ()</h3>
182 <pre class="programlisting"><a class="link" href="ClutterActor.html" title="ClutterActor"><span class="returnvalue">ClutterActor</span></a> * clutter_group_get_nth_child (<em class="parameter"><code><a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a> *self</code></em>,
183 <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> index_</code></em>);</pre>
184 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
185 <h3 class="title">Warning</h3>
186 <p><code class="literal">clutter_group_get_nth_child</code> has been deprecated since version 1.10 and should not be used in newly-written code. Use <a class="link" href="ClutterActor.html#clutter-actor-get-child-at-index" title="clutter_actor_get_child_at_index ()"><code class="function">clutter_actor_get_child_at_index()</code></a> instead.</p>
189 Gets a groups child held at <em class="parameter"><code>index_</code></em> in stack.
191 <div class="variablelist"><table border="0">
192 <col align="left" valign="top">
195 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
196 <td>A <a class="link" href="ClutterGroup.html" title="ClutterGroup"><span class="type">ClutterGroup</span></a>
200 <td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
201 <td>the position of the requested actor.</td>
204 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
205 <td>A Clutter actor, or <a href="/home/ebassi/gnome3/install/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if
206 <em class="parameter"><code>index_</code></em> is invalid. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
211 <p class="since">Since 0.2</p>
217 Generated by GTK-Doc V1.18.1</div>