More binary-bundling removal
[pdfmod:pdfmod.git] / lib / poppler-sharp / poppler-sharp / generated / IndexIter.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         public class IndexIter : GLib.Opaque {
12
13                 [DllImport("poppler-glib")]
14                 static extern IntPtr poppler_index_iter_copy(IntPtr raw);
15
16                 public Poppler.IndexIter Copy() {
17                         IntPtr raw_ret = poppler_index_iter_copy(Handle);
18                         Poppler.IndexIter ret = raw_ret == IntPtr.Zero ? null : (Poppler.IndexIter) GLib.Opaque.GetOpaque (raw_ret, typeof (Poppler.IndexIter), true);
19                         return ret;
20                 }
21
22                 [DllImport("poppler-glib")]
23                 static extern IntPtr poppler_index_iter_get_action(IntPtr raw);
24
25                 public Poppler.Action Action { 
26                         get {
27                                 IntPtr raw_ret = poppler_index_iter_get_action(Handle);
28                                 Poppler.Action ret = GLib.Object.GetObject(raw_ret) as Poppler.Action;
29                                 return ret;
30                         }
31                 }
32
33                 [DllImport("poppler-glib")]
34                 static extern IntPtr poppler_index_iter_get_child(IntPtr raw);
35
36                 public Poppler.IndexIter Child { 
37                         get {
38                                 IntPtr raw_ret = poppler_index_iter_get_child(Handle);
39                                 Poppler.IndexIter ret = raw_ret == IntPtr.Zero ? null : (Poppler.IndexIter) GLib.Opaque.GetOpaque (raw_ret, typeof (Poppler.IndexIter), false);
40                                 return ret;
41                         }
42                 }
43
44                 [DllImport("poppler-glib")]
45                 static extern IntPtr poppler_index_iter_get_type();
46
47                 public static GLib.GType GType { 
48                         get {
49                                 IntPtr raw_ret = poppler_index_iter_get_type();
50                                 GLib.GType ret = new GLib.GType(raw_ret);
51                                 return ret;
52                         }
53                 }
54
55                 [DllImport("poppler-glib")]
56                 static extern bool poppler_index_iter_next(IntPtr raw);
57
58                 public bool Next() {
59                         bool raw_ret = poppler_index_iter_next(Handle);
60                         bool ret = raw_ret;
61                         return ret;
62                 }
63
64                 [DllImport("poppler-glib")]
65                 static extern bool poppler_index_iter_is_open(IntPtr raw);
66
67                 public bool IsOpen { 
68                         get {
69                                 bool raw_ret = poppler_index_iter_is_open(Handle);
70                                 bool ret = raw_ret;
71                                 return ret;
72                         }
73                 }
74
75                 public IndexIter(IntPtr raw) : base(raw) {}
76
77                 [DllImport("poppler-glib")]
78                 static extern IntPtr poppler_index_iter_new(IntPtr document);
79
80                 public IndexIter (Poppler.Document document) 
81                 {
82                         Raw = poppler_index_iter_new(document == null ? IntPtr.Zero : document.Handle);
83                 }
84
85                 [DllImport("poppler-glib")]
86                 static extern void poppler_index_iter_free(IntPtr raw);
87
88                 protected override void Free (IntPtr raw)
89                 {
90                         poppler_index_iter_free (raw);
91                 }
92
93                 class FinalizerInfo {
94                         IntPtr handle;
95
96                         public FinalizerInfo (IntPtr handle)
97                         {
98                                 this.handle = handle;
99                         }
100
101                         public bool Handler ()
102                         {
103                                 poppler_index_iter_free (handle);
104                                 return false;
105                         }
106                 }
107
108                 ~IndexIter ()
109                 {
110                         if (!Owned)
111                                 return;
112                         FinalizerInfo info = new FinalizerInfo (Handle);
113                         GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
114                 }
115
116 #endregion
117         }
118 }