More binary-bundling removal
[pdfmod:pdfmod.git] / lib / poppler-sharp / poppler-sharp / generated / ImageMapping.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 ImageMapping {
13
14                 public Poppler.Rectangle Area;
15                 public int ImageId;
16
17                 public static Poppler.ImageMapping Zero = new Poppler.ImageMapping ();
18
19                 public static Poppler.ImageMapping New(IntPtr raw) {
20                         if (raw == IntPtr.Zero)
21                                 return Poppler.ImageMapping.Zero;
22                         return (Poppler.ImageMapping) Marshal.PtrToStructure (raw, typeof (Poppler.ImageMapping));
23                 }
24
25                 [DllImport("poppler-glib")]
26                 static extern IntPtr poppler_image_mapping_new();
27
28                 public static ImageMapping New()
29                 {
30                         ImageMapping result = ImageMapping.New (poppler_image_mapping_new());
31                         return result;
32                 }
33
34                 [DllImport("poppler-glib")]
35                 static extern IntPtr poppler_image_mapping_copy(IntPtr raw);
36
37                 public Poppler.ImageMapping Copy() {
38                         IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
39                         System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
40                         IntPtr raw_ret = poppler_image_mapping_copy(this_as_native);
41                         Poppler.ImageMapping ret = Poppler.ImageMapping.New (raw_ret);
42                         ReadNative (this_as_native, ref this);
43                         System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
44                         return ret;
45                 }
46
47                 [DllImport("poppler-glib")]
48                 static extern void poppler_image_mapping_free(IntPtr raw);
49
50                 public void Free() {
51                         IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
52                         System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
53                         poppler_image_mapping_free(this_as_native);
54                         ReadNative (this_as_native, ref this);
55                         System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
56                 }
57
58                 [DllImport("poppler-glib")]
59                 static extern IntPtr poppler_image_mapping_get_type();
60
61                 public static GLib.GType GType { 
62                         get {
63                                 IntPtr raw_ret = poppler_image_mapping_get_type();
64                                 GLib.GType ret = new GLib.GType(raw_ret);
65                                 return ret;
66                         }
67                 }
68
69                 static void ReadNative (IntPtr native, ref Poppler.ImageMapping target)
70                 {
71                         target = New (native);
72                 }
73
74 #endregion
75         }
76 }