// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gtk {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;
	using static GLib.AbiStructExtension;

#region Autogenerated code
	public partial class EventController : GLib.Object {

		public EventController (IntPtr raw) : base(raw) {}

		protected EventController() : base(IntPtr.Zero)
		{
			CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_event_controller_get_widget(IntPtr raw);
		static d_gtk_event_controller_get_widget gtk_event_controller_get_widget = FuncLoader.LoadFunction<d_gtk_event_controller_get_widget>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_event_controller_get_widget"));

		[GLib.Property ("widget")]
		public Gtk.Widget Widget {
			get  {
				IntPtr raw_ret = gtk_event_controller_get_widget(Handle);
				Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget;
				return ret;
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate int d_gtk_event_controller_get_propagation_phase(IntPtr raw);
		static d_gtk_event_controller_get_propagation_phase gtk_event_controller_get_propagation_phase = FuncLoader.LoadFunction<d_gtk_event_controller_get_propagation_phase>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_event_controller_get_propagation_phase"));

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_event_controller_set_propagation_phase(IntPtr raw, int phase);
		static d_gtk_event_controller_set_propagation_phase gtk_event_controller_set_propagation_phase = FuncLoader.LoadFunction<d_gtk_event_controller_set_propagation_phase>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_event_controller_set_propagation_phase"));

		[GLib.Property ("propagation-phase")]
		public Gtk.PropagationPhase PropagationPhase {
			get  {
				int raw_ret = gtk_event_controller_get_propagation_phase(Handle);
				Gtk.PropagationPhase ret = (Gtk.PropagationPhase) raw_ret;
				return ret;
			}
			set  {
				gtk_event_controller_set_propagation_phase(Handle, (int) value);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr d_gtk_event_controller_get_type();
		static d_gtk_event_controller_get_type gtk_event_controller_get_type = FuncLoader.LoadFunction<d_gtk_event_controller_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_event_controller_get_type"));

		public static new GLib.GType GType { 
			get {
				IntPtr raw_ret = gtk_event_controller_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate bool d_gtk_event_controller_handle_event(IntPtr raw, IntPtr evnt);
		static d_gtk_event_controller_handle_event gtk_event_controller_handle_event = FuncLoader.LoadFunction<d_gtk_event_controller_handle_event>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_event_controller_handle_event"));

		public bool HandleEvent(Gdk.Event evnt) {
			bool raw_ret = gtk_event_controller_handle_event(Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
			bool ret = raw_ret;
			return ret;
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_event_controller_reset(IntPtr raw);
		static d_gtk_event_controller_reset gtk_event_controller_reset = FuncLoader.LoadFunction<d_gtk_event_controller_reset>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_event_controller_reset"));

		public void Reset() {
			gtk_event_controller_reset(Handle);
		}

#endregion
	}
}
