1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 [StructLayout(LayoutKind.Sequential)]
13 public partial struct ValueTable : IEquatable<ValueTable> {
15 public GLib.GType Type;
16 private GstSharp.ValueCompareFuncNative _compare;
17 public Gst.ValueCompareFunc Compare {
19 return GstSharp.ValueCompareFuncWrapper.GetManagedDelegate (_compare);
22 private GstSharp.ValueSerializeFuncNative _serialize;
23 public Gst.ValueSerializeFunc Serialize {
25 return GstSharp.ValueSerializeFuncWrapper.GetManagedDelegate (_serialize);
28 private GstSharp.ValueDeserializeFuncNative _deserialize;
29 public Gst.ValueDeserializeFunc Deserialize {
31 return GstSharp.ValueDeserializeFuncWrapper.GetManagedDelegate (_deserialize);
34 private GstSharp.ValueDeserializeWithPSpecFuncNative _deserialize_with_pspec;
35 public Gst.ValueDeserializeWithPSpecFunc DeserializeWithPspec {
37 return GstSharp.ValueDeserializeWithPSpecFuncWrapper.GetManagedDelegate (_deserialize_with_pspec);
40 [MarshalAs (UnmanagedType.ByValArray, SizeConst=3)]
41 private IntPtr[] _gstGstReserved;
43 public static Gst.ValueTable Zero = new Gst.ValueTable ();
45 public static Gst.ValueTable New(IntPtr raw) {
46 if (raw == IntPtr.Zero)
47 return Gst.ValueTable.Zero;
48 return (Gst.ValueTable) Marshal.PtrToStructure (raw, typeof (Gst.ValueTable));
51 public bool Equals (ValueTable other)
53 return true && Type.Equals (other.Type) && Compare.Equals (other.Compare) && Serialize.Equals (other.Serialize) && Deserialize.Equals (other.Deserialize) && DeserializeWithPspec.Equals (other.DeserializeWithPspec);
56 public override bool Equals (object other)
58 return other is ValueTable && Equals ((ValueTable) other);
61 public override int GetHashCode ()
63 return this.GetType ().FullName.GetHashCode () ^ Type.GetHashCode () ^ Compare.GetHashCode () ^ Serialize.GetHashCode () ^ Deserialize.GetHashCode () ^ DeserializeWithPspec.GetHashCode ();
66 private static GLib.GType GType {
67 get { return GLib.GType.Pointer; }