<?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="GtkEventControllerLegacy">
<refmeta>
<refentrytitle role="top_of_page" id="GtkEventControllerLegacy.top_of_page">GtkEventControllerLegacy</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkEventControllerLegacy</refname>
<refpurpose>Event controller for miscellaneous events</refpurpose>
</refnamediv>

<refsect1 id="GtkEventControllerLegacy.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-event-controller-legacy-new">gtk_event_controller_legacy_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkEventControllerLegacy.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="gboolean"><returnvalue>gboolean</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkEventControllerLegacy-event">event</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></entry></row>

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

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkEventControllerLegacy.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> GtkEventControllerLegacy
</screen>
</refsect1>

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

<refsect1 id="GtkEventControllerLegacy.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkEventControllerLegacy"><type>GtkEventControllerLegacy</type></link> is an event controller that gives you
direct access to the event stream. It should only be used as a
last resort if none of the other event controllers or gestures
do the job.</para>

</refsect1>
<refsect1 id="GtkEventControllerLegacy.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-event-controller-legacy-new" role="function">
<title>gtk_event_controller_legacy_new&#160;()</title>
<indexterm zone="gtk-event-controller-legacy-new"><primary>gtk_event_controller_legacy_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkEventController"><returnvalue>GtkEventController</returnvalue></link>&#160;*
gtk_event_controller_legacy_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Creates a new legacy event controller.</para>
<refsect3 id="gtk-event-controller-legacy-new.returns" role="returns">
<title>Returns</title>
<para> the newly created event controller.</para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkEventControllerLegacy.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkEventControllerLegacy-event" role="signal"><title>The <literal>“event”</literal> signal</title>
<indexterm zone="GtkEventControllerLegacy-event"><primary>GtkEventControllerLegacy::event</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
user_function (<link linkend="GtkEventControllerLegacy"><type>GtkEventControllerLegacy</type></link> *controller,
               <link linkend="GdkEvent"><type>GdkEvent</type></link>                 *event,
               <link linkend="gpointer"><type>gpointer</type></link>                  user_data)</programlisting>
<para>Emitted for each GDK event delivered to <parameter>controller</parameter>
.</para>
<refsect3 id="GtkEventControllerLegacy-event.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>controller</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>event</para></entry>
<entry role="parameter_description"><para>the <link linkend="GdkEvent"><type>GdkEvent</type></link> which triggered this 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><refsect3 id="GtkEventControllerLegacy-event.returns" role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> to stop other handlers from being invoked for the event
and the emission of this signal. <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> to propagate the event further.</para>
</refsect3><para>Flags: <link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></para>
</refsect2>
</refsect1>
<refsect1 id="GtkEventControllerLegacy.see-also">
<title>See Also</title>
<para><link linkend="GtkEventController"><type>GtkEventController</type></link></para>

</refsect1>

</refentry>
