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 FormatDefinition : IEquatable<FormatDefinition> {
15 public Gst.Format Value;
17 public string Description;
20 public static Gst.FormatDefinition Zero = new Gst.FormatDefinition ();
22 public static Gst.FormatDefinition New(IntPtr raw) {
23 if (raw == IntPtr.Zero)
24 return Gst.FormatDefinition.Zero;
25 return (Gst.FormatDefinition) Marshal.PtrToStructure (raw, typeof (Gst.FormatDefinition));
28 public bool Equals (FormatDefinition other)
30 return true && Value.Equals (other.Value) && Nick.Equals (other.Nick) && Description.Equals (other.Description) && Quark.Equals (other.Quark);
33 public override bool Equals (object other)
35 return other is FormatDefinition && Equals ((FormatDefinition) other);
38 public override int GetHashCode ()
40 return this.GetType ().FullName.GetHashCode () ^ Value.GetHashCode () ^ Nick.GetHashCode () ^ Description.GetHashCode () ^ Quark.GetHashCode ();
43 private static GLib.GType GType {
44 get { return GLib.GType.Pointer; }