Back to development
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst / FormatDefinition.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         [StructLayout(LayoutKind.Sequential)]
13         public partial struct FormatDefinition : IEquatable<FormatDefinition> {
14
15                 public Gst.Format Value;
16                 public string Nick;
17                 public string Description;
18                 public uint Quark;
19
20                 public static Gst.FormatDefinition Zero = new Gst.FormatDefinition ();
21
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));
26                 }
27
28                 public bool Equals (FormatDefinition other)
29                 {
30                         return true && Value.Equals (other.Value) && Nick.Equals (other.Nick) && Description.Equals (other.Description) && Quark.Equals (other.Quark);
31                 }
32
33                 public override bool Equals (object other)
34                 {
35                         return other is FormatDefinition && Equals ((FormatDefinition) other);
36                 }
37
38                 public override int GetHashCode ()
39                 {
40                         return this.GetType ().FullName.GetHashCode () ^ Value.GetHashCode () ^ Nick.GetHashCode () ^ Description.GetHashCode () ^ Quark.GetHashCode ();
41                 }
42
43                 private static GLib.GType GType {
44                         get { return GLib.GType.Pointer; }
45                 }
46 #endregion
47         }
48 }