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

namespace Gst {

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

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

		[FieldOffset(0)]
		public bool VBoolean;
		[FieldOffset(0)]
		public int VInt;
		[FieldOffset(0)]
		public uint VUint;
		[FieldOffset(0)]
		public long VInt64;
		[FieldOffset(0)]
		public ulong VUint64;
		[FieldOffset(0)]
		public double VDouble;
		[FieldOffset(0)]
		public string VString;
		[FieldOffset(0)]
		private IntPtr _v_structure;
		public Gst.Structure VStructure {
			get {
				return _v_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (_v_structure, typeof (Gst.Structure), false);
			}
			set {
				_v_structure = value == null ? IntPtr.Zero : value.Handle;
			}
		}
		[FieldOffset(0)]
		private IntPtr _v_object;
		[FieldOffset(0)]
		[MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
		private IntPtr[] _gstGstReserved;

		public static Gst.TraceValue Zero = new Gst.TraceValue ();

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

		public bool Equals (TraceValue other)
		{
			return true && VBoolean.Equals (other.VBoolean) && VInt.Equals (other.VInt) && VUint.Equals (other.VUint) && VInt64.Equals (other.VInt64) && VUint64.Equals (other.VUint64) && VDouble.Equals (other.VDouble) && VString.Equals (other.VString) && VStructure.Equals (other.VStructure) && _v_object.Equals (other._v_object);
		}

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

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ VBoolean.GetHashCode () ^ VInt.GetHashCode () ^ VUint.GetHashCode () ^ VInt64.GetHashCode () ^ VUint64.GetHashCode () ^ VDouble.GetHashCode () ^ VString.GetHashCode () ^ VStructure.GetHashCode () ^ _v_object.GetHashCode ();
		}

#endregion
	}
}
