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