More binary-bundling removal
[pdfmod:pdfmod.git] / lib / poppler-sharp / poppler-sharp / generated / LinkMapping.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Poppler {
5
6         using System;
7         using System.Collections;
8         using System.Runtime.InteropServices;
9
10 #region Autogenerated code
11         [StructLayout(LayoutKind.Sequential)]
12         public struct LinkMapping {
13
14                 public Poppler.Rectangle Area;
15                 private IntPtr _action;
16                 public Poppler.Action Action {
17                         get {
18                                 return GLib.Object.GetObject(_action) as Poppler.Action;
19                         }
20                         set {
21                                 _action = value == null ? IntPtr.Zero : value.Handle;
22                         }
23                 }
24
25                 public static Poppler.LinkMapping Zero = new Poppler.LinkMapping ();
26
27                 public static Poppler.LinkMapping New(IntPtr raw) {
28                         if (raw == IntPtr.Zero)
29                                 return Poppler.LinkMapping.Zero;
30                         return (Poppler.LinkMapping) Marshal.PtrToStructure (raw, typeof (Poppler.LinkMapping));
31                 }
32
33                 [DllImport("poppler-glib")]
34                 static extern IntPtr poppler_link_mapping_new();
35
36                 public static LinkMapping New()
37                 {
38                         LinkMapping result = LinkMapping.New (poppler_link_mapping_new());
39                         return result;
40                 }
41
42                 [DllImport("poppler-glib")]
43                 static extern IntPtr poppler_link_mapping_copy(IntPtr raw);
44
45                 public Poppler.LinkMapping Copy() {
46                         IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
47                         System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
48                         IntPtr raw_ret = poppler_link_mapping_copy(this_as_native);
49                         Poppler.LinkMapping ret = Poppler.LinkMapping.New (raw_ret);
50                         ReadNative (this_as_native, ref this);
51                         System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
52                         return ret;
53                 }
54
55                 [DllImport("poppler-glib")]
56                 static extern void poppler_link_mapping_free(IntPtr raw);
57
58                 public void Free() {
59                         IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
60                         System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
61                         poppler_link_mapping_free(this_as_native);
62                         ReadNative (this_as_native, ref this);
63                         System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
64                 }
65
66                 [DllImport("poppler-glib")]
67                 static extern IntPtr poppler_link_mapping_get_type();
68
69                 public static GLib.GType GType { 
70                         get {
71                                 IntPtr raw_ret = poppler_link_mapping_get_type();
72                                 GLib.GType ret = new GLib.GType(raw_ret);
73                                 return ret;
74                         }
75                 }
76
77                 static void ReadNative (IntPtr native, ref Poppler.LinkMapping target)
78                 {
79                         target = New (native);
80                 }
81
82 #endregion
83         }
84 }