<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
<!ENTITY pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="GtkGestureRotate">
<refmeta>
<refentrytitle role="top_of_page" id="GtkGestureRotate.top_of_page">GtkGestureRotate</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkGestureRotate</refname>
<refpurpose>Rotate gesture</refpurpose>
</refnamediv>

<refsect1 id="GtkGestureRotate.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkGesture"><returnvalue>GtkGesture</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-gesture-rotate-new">gtk_gesture_rotate_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-gesture-rotate-get-angle-delta">gtk_gesture_rotate_get_angle_delta</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkGestureRotate.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="signal_proto_type" colwidth="150px"/>
<colspec colname="signal_proto_name" colwidth="300px"/>
<colspec colname="signal_proto_flags" colwidth="200px"/>
<tbody>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkGestureRotate-angle-changed">angle-changed</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkGestureRotate.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkGestureRotate-struct">GtkGestureRotate</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkGestureRotate.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkEventController">GtkEventController</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkGesture">GtkGesture</link>
            <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkGestureRotate
</screen>
</refsect1>

<refsect1 id="GtkGestureRotate.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkGestureRotate.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkGestureRotate"><type>GtkGestureRotate</type></link> is a <link linkend="GtkGesture"><type>GtkGesture</type></link> implementation able to recognize
2-finger rotations, whenever the angle between both handled sequences
changes, the <link linkend="GtkGestureRotate-angle-changed"><type>“angle-changed”</type></link> signal is emitted.</para>

</refsect1>
<refsect1 id="GtkGestureRotate.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-gesture-rotate-new" role="function">
<title>gtk_gesture_rotate_new&#160;()</title>
<indexterm zone="gtk-gesture-rotate-new"><primary>gtk_gesture_rotate_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkGesture"><returnvalue>GtkGesture</returnvalue></link>&#160;*
gtk_gesture_rotate_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Returns a newly created <link linkend="GtkGesture"><type>GtkGesture</type></link> that recognizes 2-touch
rotation gestures.</para>
<refsect3 id="gtk-gesture-rotate-new.returns" role="returns">
<title>Returns</title>
<para> a newly created <link linkend="GtkGestureRotate"><type>GtkGestureRotate</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-gesture-rotate-get-angle-delta" role="function">
<title>gtk_gesture_rotate_get_angle_delta&#160;()</title>
<indexterm zone="gtk-gesture-rotate-get-angle-delta"><primary>gtk_gesture_rotate_get_angle_delta</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_gesture_rotate_get_angle_delta (<parameter><link linkend="GtkGestureRotate"><type>GtkGestureRotate</type></link> *gesture</parameter>);</programlisting>
<para>If <parameter>gesture</parameter>
 is active, this function returns the angle difference
in radians since the gesture was first recognized. If <parameter>gesture</parameter>
 is
not active, 0 is returned.</para>
<refsect3 id="gtk-gesture-rotate-get-angle-delta.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>gesture</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkGestureRotate"><type>GtkGestureRotate</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-gesture-rotate-get-angle-delta.returns" role="returns">
<title>Returns</title>
<para> the angle delta in radians</para>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkGestureRotate.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkGestureRotate-struct" role="struct">
<title>GtkGestureRotate</title>
<indexterm zone="GtkGestureRotate-struct"><primary>GtkGestureRotate</primary></indexterm>
<programlisting language="C">typedef struct _GtkGestureRotate GtkGestureRotate;</programlisting>
</refsect2>

</refsect1>
<refsect1 id="GtkGestureRotate.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkGestureRotate-angle-changed" role="signal"><title>The <literal>“angle-changed”</literal> signal</title>
<indexterm zone="GtkGestureRotate-angle-changed"><primary>GtkGestureRotate::angle-changed</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkGestureRotate"><type>GtkGestureRotate</type></link> *gesture,
               <link linkend="gdouble"><type>gdouble</type></link>           angle,
               <link linkend="gdouble"><type>gdouble</type></link>           angle_delta,
               <link linkend="gpointer"><type>gpointer</type></link>          user_data)</programlisting>
<para>This signal is emitted when the angle between both tracked points
changes.</para>
<refsect3 id="GtkGestureRotate-angle-changed.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>gesture</para></entry>
<entry role="parameter_description"><para>the object on which the signal is emitted</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>angle</para></entry>
<entry role="parameter_description"><para>Current angle in radians</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>angle_delta</para></entry>
<entry role="parameter_description"><para>Difference with the starting angle, in radians</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><simpara>user_data</simpara></entry>
<entry role="parameter_description"><simpara>user data set when the signal handler was connected.</simpara></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><para>Flags: <link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></para>
</refsect2>
</refsect1>
<refsect1 id="GtkGestureRotate.see-also">
<title>See Also</title>
<para><link linkend="GtkGestureZoom"><type>GtkGestureZoom</type></link></para>

</refsect1>

</refentry>
