<?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="gtk4-GtkDropControllerMotion">
<refmeta>
<refentrytitle role="top_of_page" id="gtk4-GtkDropControllerMotion.top_of_page">GtkDropControllerMotion</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkDropControllerMotion</refname>
<refpurpose>Event controller for motion events during a drop</refpurpose>
</refnamediv>

<refsect1 id="gtk4-GtkDropControllerMotion.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="GtkEventController"><returnvalue>GtkEventController</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-drop-controller-motion-new">gtk_drop_controller_motion_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-drop-controller-motion-contains-pointer">gtk_drop_controller_motion_contains_pointer</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-drop-controller-motion-is-pointer">gtk_drop_controller_motion_is_pointer</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GdkDrop"><returnvalue>GdkDrop</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-drop-controller-motion-get-drop">gtk_drop_controller_motion_get_drop</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

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

</tbody>
</tgroup>
</informaltable>
</refsect1>

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

<refsect1 id="gtk4-GtkDropControllerMotion.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link> is an event controller meant for tracking
the pointer hovering over a widget during a drag and drop operation.</para>
<para>It is modeled after <link linkend="GtkEventControllerMotion"><type>GtkEventControllerMotion</type></link> so if you have used
that, this should feel really familiar.</para>
<para>The drop controller is not able to accept drops, use <link linkend="GtkDropTarget"><type>GtkDropTarget</type></link>
for that purpose.</para>

</refsect1>
<refsect1 id="gtk4-GtkDropControllerMotion.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-drop-controller-motion-new" role="function">
<title>gtk_drop_controller_motion_new&#160;()</title>
<indexterm zone="gtk-drop-controller-motion-new"><primary>gtk_drop_controller_motion_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkEventController"><returnvalue>GtkEventController</returnvalue></link>&#160;*
gtk_drop_controller_motion_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Creates a new event controller that will handle pointer motion
events during drag and drop.</para>
<refsect3 id="gtk-drop-controller-motion-new.returns" role="returns">
<title>Returns</title>
<para> a new <link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-drop-controller-motion-contains-pointer" role="function">
<title>gtk_drop_controller_motion_contains_pointer&#160;()</title>
<indexterm zone="gtk-drop-controller-motion-contains-pointer"><primary>gtk_drop_controller_motion_contains_pointer</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_drop_controller_motion_contains_pointer
                               (<parameter><link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link> *self</parameter>);</programlisting>
<para>Returns the value of the GtkDropControllerMotion:contains-pointer property.</para>
<refsect3 id="gtk-drop-controller-motion-contains-pointer.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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-drop-controller-motion-contains-pointer.returns" role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if a dragging pointer is within <parameter>self</parameter>
or one of its children.</para>
</refsect3></refsect2>
<refsect2 id="gtk-drop-controller-motion-is-pointer" role="function">
<title>gtk_drop_controller_motion_is_pointer&#160;()</title>
<indexterm zone="gtk-drop-controller-motion-is-pointer"><primary>gtk_drop_controller_motion_is_pointer</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_drop_controller_motion_is_pointer (<parameter><link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link> *self</parameter>);</programlisting>
<para>Returns the value of the GtkDropControllerMotion:is-pointer property.</para>
<refsect3 id="gtk-drop-controller-motion-is-pointer.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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkEventControllerKey"><type>GtkEventControllerKey</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-drop-controller-motion-is-pointer.returns" role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if a dragging pointer is within <parameter>self</parameter>
but not one of its children</para>
</refsect3></refsect2>
<refsect2 id="gtk-drop-controller-motion-get-drop" role="function">
<title>gtk_drop_controller_motion_get_drop&#160;()</title>
<indexterm zone="gtk-drop-controller-motion-get-drop"><primary>gtk_drop_controller_motion_get_drop</primary></indexterm>
<programlisting language="C"><link linkend="GdkDrop"><returnvalue>GdkDrop</returnvalue></link>&#160;*
gtk_drop_controller_motion_get_drop (<parameter><link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link> *self</parameter>);</programlisting>
<para>Returns the value of the GtkDropControllerMotion:drop property.</para>
<refsect3 id="gtk-drop-controller-motion-get-drop.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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-drop-controller-motion-get-drop.returns" role="returns">
<title>Returns</title>
<para>The <link linkend="GdkDrop"><type>GdkDrop</type></link> currently happening
within <parameter>self</parameter>
or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if none. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>][<acronym>nullable</acronym>]</emphasis></para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="gtk4-GtkDropControllerMotion.see-also">
<title>See Also</title>
<para><link linkend="GtkDropControllerMotion"><type>GtkDropControllerMotion</type></link>, <link linkend="GdkDrop"><type>GdkDrop</type></link>, <link linkend="GtkDropTarget"><type>GtkDropTarget</type></link></para>

</refsect1>

</refentry>
