More binary-bundling removal
[pdfmod:pdfmod.git] / lib / poppler-sharp / poppler-sharp / generated / PageTransition.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 PageTransition {
13
14                 public Poppler.PageTransitionType Type;
15                 public Poppler.PageTransitionAlignment Alignment;
16                 public Poppler.PageTransitionDirection Direction;
17                 public int Duration;
18                 public int Angle;
19                 public double Scale;
20                 public bool Rectangular;
21
22                 public static Poppler.PageTransition Zero = new Poppler.PageTransition ();
23
24                 public static Poppler.PageTransition New(IntPtr raw) {
25                         if (raw == IntPtr.Zero)
26                                 return Poppler.PageTransition.Zero;
27                         return (Poppler.PageTransition) Marshal.PtrToStructure (raw, typeof (Poppler.PageTransition));
28                 }
29
30                 [DllImport("poppler-glib")]
31                 static extern IntPtr poppler_page_transition_new();
32
33                 public static PageTransition New()
34                 {
35                         PageTransition result = PageTransition.New (poppler_page_transition_new());
36                         return result;
37                 }
38
39                 [DllImport("poppler-glib")]
40                 static extern IntPtr poppler_page_transition_copy(IntPtr raw);
41
42                 public Poppler.PageTransition 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_page_transition_copy(this_as_native);
46                         Poppler.PageTransition ret = Poppler.PageTransition.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_page_transition_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_page_transition_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_page_transition_get_type();
65
66                 public static GLib.GType GType { 
67                         get {
68                                 IntPtr raw_ret = poppler_page_transition_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.PageTransition target)
75                 {
76                         target = New (native);
77                 }
78
79 #endregion
80         }
81 }