1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
4 namespace Gst.PbUtils {
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 InstallPluginsContext : IEquatable<InstallPluginsContext> {
16 public static Gst.PbUtils.InstallPluginsContext Zero = new Gst.PbUtils.InstallPluginsContext ();
18 public static Gst.PbUtils.InstallPluginsContext New(IntPtr raw) {
19 if (raw == IntPtr.Zero)
20 return Gst.PbUtils.InstallPluginsContext.Zero;
21 return (Gst.PbUtils.InstallPluginsContext) Marshal.PtrToStructure (raw, typeof (Gst.PbUtils.InstallPluginsContext));
24 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
25 static extern IntPtr gst_install_plugins_context_new();
27 public static InstallPluginsContext New()
29 InstallPluginsContext result = InstallPluginsContext.New (gst_install_plugins_context_new());
33 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
34 static extern IntPtr gst_install_plugins_context_get_type();
36 public static GLib.GType GType {
38 IntPtr raw_ret = gst_install_plugins_context_get_type();
39 GLib.GType ret = new GLib.GType(raw_ret);
44 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
45 static extern void gst_install_plugins_context_set_confirm_search(IntPtr raw, bool confirm_search);
47 public bool ConfirmSearch {
49 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
50 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
51 gst_install_plugins_context_set_confirm_search(this_as_native, value);
52 ReadNative (this_as_native, ref this);
53 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
57 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
58 static extern void gst_install_plugins_context_set_desktop_id(IntPtr raw, IntPtr desktop_id);
60 public string DesktopId {
62 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
63 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
64 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
65 gst_install_plugins_context_set_desktop_id(this_as_native, native_value);
66 ReadNative (this_as_native, ref this);
67 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
68 GLib.Marshaller.Free (native_value);
72 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
73 static extern void gst_install_plugins_context_set_startup_notification_id(IntPtr raw, IntPtr startup_id);
75 public string StartupNotificationId {
77 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
78 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
79 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
80 gst_install_plugins_context_set_startup_notification_id(this_as_native, native_value);
81 ReadNative (this_as_native, ref this);
82 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
83 GLib.Marshaller.Free (native_value);
87 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
88 static extern void gst_install_plugins_context_set_xid(IntPtr raw, uint xid);
92 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
93 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
94 gst_install_plugins_context_set_xid(this_as_native, value);
95 ReadNative (this_as_native, ref this);
96 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
100 static void ReadNative (IntPtr native, ref Gst.PbUtils.InstallPluginsContext target)
102 target = New (native);
105 public bool Equals (InstallPluginsContext other)
110 public override bool Equals (object other)
112 return other is InstallPluginsContext && Equals ((InstallPluginsContext) other);
115 public override int GetHashCode ()
117 return this.GetType ().FullName.GetHashCode ();
120 public static explicit operator GLib.Value (Gst.PbUtils.InstallPluginsContext boxed)
122 GLib.Value val = GLib.Value.Empty;
123 val.Init (Gst.PbUtils.InstallPluginsContext.GType);
128 public static explicit operator Gst.PbUtils.InstallPluginsContext (GLib.Value val)
130 return (Gst.PbUtils.InstallPluginsContext) val.Val;