// 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 GestureSwipe : Gtk.GestureSingle {

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

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

		public GestureSwipe (Gtk.Widget widget) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (GestureSwipe)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				if (widget != null) {
					names.Add ("widget");
					vals.Add (new GLib.Value (widget));
				}
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = gtk_gesture_swipe_new(widget == null ? IntPtr.Zero : widget.Handle);
		}

		[GLib.Signal("swipe")]
		public event Gtk.SwipeHandler Swipe {
			add {
				this.AddSignalHandler ("swipe", value, typeof (Gtk.SwipeArgs));
			}
			remove {
				this.RemoveSignalHandler ("swipe", value);
			}
		}

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

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

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate bool d_gtk_gesture_swipe_get_velocity(IntPtr raw, out double velocity_x, out double velocity_y);
		static d_gtk_gesture_swipe_get_velocity gtk_gesture_swipe_get_velocity = FuncLoader.LoadFunction<d_gtk_gesture_swipe_get_velocity>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_gesture_swipe_get_velocity"));

		public bool GetVelocity(out double velocity_x, out double velocity_y) {
			bool raw_ret = gtk_gesture_swipe_get_velocity(Handle, out velocity_x, out velocity_y);
			bool ret = raw_ret;
			return ret;
		}

#endregion
	}
}
