// 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 GestureZoom : Gtk.Gesture {

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

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

		public GestureZoom (Gtk.Widget widget) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (GestureZoom)) {
				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_zoom_new(widget == null ? IntPtr.Zero : widget.Handle);
		}

		[GLib.Signal("scale-changed")]
		public event Gtk.ScaleChangedHandler ScaleChanged {
			add {
				this.AddSignalHandler ("scale-changed", value, typeof (Gtk.ScaleChangedArgs));
			}
			remove {
				this.RemoveSignalHandler ("scale-changed", value);
			}
		}

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

		public double ScaleDelta { 
			get {
				double raw_ret = gtk_gesture_zoom_get_scale_delta(Handle);
				double ret = raw_ret;
				return ret;
			}
		}

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

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

#endregion
	}
}
