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

namespace Gst.Video {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;

#region Autogenerated code
	[StructLayout(LayoutKind.Sequential)]
	public partial struct VideoRectangle : IEquatable<VideoRectangle> {

		public int X;
		public int Y;
		public int W;
		public int H;

		public static Gst.Video.VideoRectangle Zero = new Gst.Video.VideoRectangle ();

		public static Gst.Video.VideoRectangle New(IntPtr raw) {
			if (raw == IntPtr.Zero)
				return Gst.Video.VideoRectangle.Zero;
			return (Gst.Video.VideoRectangle) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoRectangle));
		}

		public bool Equals (VideoRectangle other)
		{
			return true && X.Equals (other.X) && Y.Equals (other.Y) && W.Equals (other.W) && H.Equals (other.H);
		}

		public override bool Equals (object other)
		{
			return other is VideoRectangle && Equals ((VideoRectangle) other);
		}

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ X.GetHashCode () ^ Y.GetHashCode () ^ W.GetHashCode () ^ H.GetHashCode ();
		}

		private static GLib.GType GType {
			get { return GLib.GType.Pointer; }
		}
#endregion
	}
}
