<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ClutterRotateAction: Clutter Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Clutter Reference Manual">
<link rel="up" href="ch04.html" title="Actions">
<link rel="prev" href="ClutterSwipeAction.html" title="ClutterSwipeAction">
<link rel="next" href="ClutterZoomAction.html" title="ClutterZoomAction">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#ClutterRotateAction.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#ClutterRotateAction.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#ClutterRotateAction.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ClutterSwipeAction.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ClutterZoomAction.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="ClutterRotateAction"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="ClutterRotateAction.top_of_page"></a>ClutterRotateAction</span></h2>
<p>ClutterRotateAction — Action to rotate an actor</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="ClutterRotateAction.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody><tr>
<td class="function_type">
<a class="link" href="ClutterAction.html" title="ClutterAction"><span class="returnvalue">ClutterAction</span></a> *
</td>
<td class="function_name">
<a class="link" href="ClutterRotateAction.html#clutter-rotate-action-new" title="clutter_rotate_action_new ()">clutter_rotate_action_new</a> <span class="c_punctuation">()</span>
</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="ClutterRotateAction.signals"></a><h2>Signals</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">gboolean</span></td>
<td class="signal_name"><a class="link" href="ClutterRotateAction.html#ClutterRotateAction-rotate" title="The “rotate” signal">rotate</a></td>
<td class="signal_flags">Run Last</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="ClutterRotateAction.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="ClutterRotateAction.html#ClutterRotateAction-struct" title="struct ClutterRotateAction">ClutterRotateAction</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="ClutterRotateAction.html#ClutterRotateActionClass" title="struct ClutterRotateActionClass">ClutterRotateActionClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="ClutterRotateAction.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    GObject
    <span class="lineart">╰──</span> GInitiallyUnowned
        <span class="lineart">╰──</span> <a class="link" href="ClutterActorMeta.html" title="ClutterActorMeta">ClutterActorMeta</a>
            <span class="lineart">╰──</span> <a class="link" href="ClutterAction.html" title="ClutterAction">ClutterAction</a>
                <span class="lineart">╰──</span> <a class="link" href="ClutterGestureAction.html" title="ClutterGestureAction">ClutterGestureAction</a>
                    <span class="lineart">╰──</span> ClutterRotateAction
</pre>
</div>
<div class="refsect1">
<a name="ClutterRotateAction.description"></a><h2>Description</h2>
<p><a class="link" href="ClutterRotateAction.html" title="ClutterRotateAction"><span class="type">ClutterRotateAction</span></a> is a sub-class of <a class="link" href="ClutterGestureAction.html" title="ClutterGestureAction"><span class="type">ClutterGestureAction</span></a> that implements
the logic for recognizing rotate gestures using two touch points.</p>
</div>
<div class="refsect1">
<a name="ClutterRotateAction.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="clutter-rotate-action-new"></a><h3>clutter_rotate_action_new ()</h3>
<pre class="programlisting"><a class="link" href="ClutterAction.html" title="ClutterAction"><span class="returnvalue">ClutterAction</span></a> *
clutter_rotate_action_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new <a class="link" href="ClutterRotateAction.html" title="ClutterRotateAction"><span class="type">ClutterRotateAction</span></a> instance</p>
<div class="refsect3">
<a name="id-1.5.5.8.8.2.5"></a><h4>Returns</h4>
<p> the newly created <a class="link" href="ClutterRotateAction.html" title="ClutterRotateAction"><span class="type">ClutterRotateAction</span></a></p>
</div>
<p class="since">Since: <a class="link" href="ix13.html#api-index-1.12">1.12</a></p>
</div>
</div>
<div class="refsect1">
<a name="ClutterRotateAction.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="ClutterRotateAction-struct"></a><h3>struct ClutterRotateAction</h3>
<pre class="programlisting">struct ClutterRotateAction;</pre>
<p>The <a class="link" href="ClutterRotateAction.html" title="ClutterRotateAction"><span class="type">ClutterRotateAction</span></a> structure contains
only private data and should be accessed using the provided API</p>
<p class="since">Since: <a class="link" href="ix13.html#api-index-1.12">1.12</a></p>
</div>
<hr>
<div class="refsect2">
<a name="ClutterRotateActionClass"></a><h3>struct ClutterRotateActionClass</h3>
<pre class="programlisting">struct ClutterRotateActionClass {
  gboolean (* rotate)  (ClutterRotateAction *action,
                        ClutterActor        *actor,
                        gdouble              angle);
};
</pre>
<p>The <a class="link" href="ClutterRotateAction.html#ClutterRotateActionClass" title="struct ClutterRotateActionClass"><span class="type">ClutterRotateActionClass</span></a> structure contains
only private data.</p>
<div class="refsect3">
<a name="id-1.5.5.8.9.3.5"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody><tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="ClutterRotateActionClass.rotate"></a>rotate</code></em> ()</p></td>
<td class="struct_member_description"><p>class handler for the <a class="link" href="ClutterRotateAction.html#ClutterRotateAction-rotate" title="The “rotate” signal"><span class="type">“rotate”</span></a> signal</p></td>
<td class="struct_member_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="ix13.html#api-index-1.12">1.12</a></p>
</div>
</div>
<div class="refsect1">
<a name="ClutterRotateAction.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="ClutterRotateAction-rotate"></a><h3>The <code class="literal">“rotate”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
user_function (<a class="link" href="ClutterRotateAction.html" title="ClutterRotateAction"><span class="type">ClutterRotateAction</span></a> *action,
               <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a>        *actor,
               <span class="type">gdouble</span>              angle,
               <span class="type">gpointer</span>             user_data)</pre>
<p>The ::rotate signal is emitted when a rotate gesture is
recognized on the attached actor and when the gesture is
cancelled (in this case with an angle value of 0).</p>
<div class="refsect3">
<a name="id-1.5.5.8.10.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>action</p></td>
<td class="parameter_description"><p>the <a class="link" href="ClutterRotateAction.html" title="ClutterRotateAction"><span class="type">ClutterRotateAction</span></a> that emitted the signal</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>actor</p></td>
<td class="parameter_description"><p>the <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> attached to the <em class="parameter"><code>action</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>angle</p></td>
<td class="parameter_description"><p>the difference of angle of rotation between the initial
rotation and the current rotation</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.5.8.10.2.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the rotation should continue, and <code class="literal">FALSE</code> if
the rotation should be cancelled.</p>
</div>
<p>Flags: Run Last</p>
<p class="since">Since: <a class="link" href="ix13.html#api-index-1.12">1.12</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>