<?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="GtkGestureClick">
<refmeta>
<refentrytitle role="top_of_page" id="GtkGestureClick.top_of_page">GtkGestureClick</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkGestureClick</refname>
<refpurpose>Multipress gesture</refpurpose>
</refnamediv>

<refsect1 id="GtkGestureClick.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-click-new">gtk_gesture_click_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkGestureClick.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="GtkGestureClick-pressed">pressed</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></entry></row>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkGestureClick-released">released</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></entry></row>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkGestureClick-stopped">stopped</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></entry></row>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkGestureClick-unpaired-release">unpaired-release</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkGestureClick.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="GtkGestureClick-struct">GtkGestureClick</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkGestureClick.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> <link linkend="GtkGestureSingle">GtkGestureSingle</link>
                <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkGestureClick
</screen>
</refsect1>

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

<refsect1 id="GtkGestureClick.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkGestureClick"><type>GtkGestureClick</type></link> is a <link linkend="GtkGesture"><type>GtkGesture</type></link> implementation able to recognize
multiple clicks on a nearby zone, which can be listened for through
the <link linkend="GtkGestureClick-pressed"><type>“pressed”</type></link> signal. Whenever time or distance
between clicks exceed the GTK+ defaults, <link linkend="GtkGestureClick-stopped"><type>“stopped”</type></link>
is emitted, and the click counter is reset.</para>
<para>Callers may also restrict the area that is considered valid for a &gt;1
touch/button press through <link linkend="gtk-gesture-click-set-area"><function>gtk_gesture_click_set_area()</function></link>, so any
click happening outside that area is considered to be a first click
of its own.</para>

</refsect1>
<refsect1 id="GtkGestureClick.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-gesture-click-new" role="function">
<title>gtk_gesture_click_new&#160;()</title>
<indexterm zone="gtk-gesture-click-new"><primary>gtk_gesture_click_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkGesture"><returnvalue>GtkGesture</returnvalue></link>&#160;*
gtk_gesture_click_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Returns a newly created <link linkend="GtkGesture"><type>GtkGesture</type></link> that recognizes single and multiple
presses.</para>
<refsect3 id="gtk-gesture-click-new.returns" role="returns">
<title>Returns</title>
<para> a newly created <link linkend="GtkGestureClick"><type>GtkGestureClick</type></link></para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkGestureClick.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkGestureClick-pressed" role="signal"><title>The <literal>“pressed”</literal> signal</title>
<indexterm zone="GtkGestureClick-pressed"><primary>GtkGestureClick::pressed</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkGestureClick"><type>GtkGestureClick</type></link> *gesture,
               <link linkend="gint"><type>gint</type></link>             n_press,
               <link linkend="gdouble"><type>gdouble</type></link>          x,
               <link linkend="gdouble"><type>gdouble</type></link>          y,
               <link linkend="gpointer"><type>gpointer</type></link>         user_data)</programlisting>
<para>This signal is emitted whenever a button or touch press happens.</para>
<refsect3 id="GtkGestureClick-pressed.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 which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>n_press</para></entry>
<entry role="parameter_description"><para>how many touch/button presses happened with this one</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>The X coordinate, in widget allocation coordinates</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>The Y coordinate, in widget allocation coordinates</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-LAST:CAPS">Run Last</link></para>
</refsect2><refsect2 id="GtkGestureClick-released" role="signal"><title>The <literal>“released”</literal> signal</title>
<indexterm zone="GtkGestureClick-released"><primary>GtkGestureClick::released</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkGestureClick"><type>GtkGestureClick</type></link> *gesture,
               <link linkend="gint"><type>gint</type></link>             n_press,
               <link linkend="gdouble"><type>gdouble</type></link>          x,
               <link linkend="gdouble"><type>gdouble</type></link>          y,
               <link linkend="gpointer"><type>gpointer</type></link>         user_data)</programlisting>
<para>This signal is emitted when a button or touch is released. <parameter>n_press</parameter>

will report the number of press that is paired to this event, note
that <link linkend="GtkGestureClick-stopped"><type>“stopped”</type></link> may have been emitted between the
press and its release, <parameter>n_press</parameter>
 will only start over at the next press.</para>
<refsect3 id="GtkGestureClick-released.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 which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>n_press</para></entry>
<entry role="parameter_description"><para>number of press that is paired with this release</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>The X coordinate, in widget allocation coordinates</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>The Y coordinate, in widget allocation coordinates</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-LAST:CAPS">Run Last</link></para>
</refsect2><refsect2 id="GtkGestureClick-stopped" role="signal"><title>The <literal>“stopped”</literal> signal</title>
<indexterm zone="GtkGestureClick-stopped"><primary>GtkGestureClick::stopped</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkGestureClick"><type>GtkGestureClick</type></link> *gesture,
               <link linkend="gpointer"><type>gpointer</type></link>         user_data)</programlisting>
<para>This signal is emitted whenever any time/distance threshold has
been exceeded.</para>
<refsect3 id="GtkGestureClick-stopped.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 which received the signal</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-LAST:CAPS">Run Last</link></para>
</refsect2><refsect2 id="GtkGestureClick-unpaired-release" role="signal"><title>The <literal>“unpaired-release”</literal> signal</title>
<indexterm zone="GtkGestureClick-unpaired-release"><primary>GtkGestureClick::unpaired-release</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkGestureClick"><type>GtkGestureClick</type></link>  *gesture,
               <link linkend="gdouble"><type>gdouble</type></link>           x,
               <link linkend="gdouble"><type>gdouble</type></link>           y,
               <link linkend="guint"><type>guint</type></link>             button,
               <link linkend="GdkEventSequence"><type>GdkEventSequence</type></link> *sequence,
               <link linkend="gpointer"><type>gpointer</type></link>          user_data)</programlisting>
<para>This signal is emitted whenever the gesture receives a release
event that had no previous corresponding press. Due to implicit
grabs, this can only happen on situations where input is grabbed
elsewhere mid-press or the pressed widget voluntarily relinquishes
its implicit grab.</para>
<refsect3 id="GtkGestureClick-unpaired-release.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 which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X coordinate of the event</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y coordinate of the event</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>button</para></entry>
<entry role="parameter_description"><para>Button being released</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>sequence</para></entry>
<entry role="parameter_description"><para>Sequence being released</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-LAST:CAPS">Run Last</link></para>
</refsect2>
</refsect1>

</refentry>
