~ubuntu-branches/ubuntu/trusty/pdfmod/trusty

« back to all changes in this revision

Viewing changes to lib/poppler-sharp/poppler-sharp/generated/AnnotMapping.cs

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-06-18 03:44:46 UTC
  • Revision ID: james.westby@ubuntu.com-20100618034446-bogifrsscpayp361
Tags: upstream-0.8.3
ImportĀ upstreamĀ versionĀ 0.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 AnnotMapping : GLib.Opaque {
 
12
 
 
13
                [DllImport("poppler-glib")]
 
14
                static extern IntPtr poppler_annot_mapping_copy(IntPtr raw);
 
15
 
 
16
                public Poppler.AnnotMapping Copy() {
 
17
                        IntPtr raw_ret = poppler_annot_mapping_copy(Handle);
 
18
                        Poppler.AnnotMapping ret = raw_ret == IntPtr.Zero ? null : (Poppler.AnnotMapping) GLib.Opaque.GetOpaque (raw_ret, typeof (Poppler.AnnotMapping), true);
 
19
                        return ret;
 
20
                }
 
21
 
 
22
                [DllImport("poppler-glib")]
 
23
                static extern IntPtr poppler_annot_mapping_get_type();
 
24
 
 
25
                public static GLib.GType GType { 
 
26
                        get {
 
27
                                IntPtr raw_ret = poppler_annot_mapping_get_type();
 
28
                                GLib.GType ret = new GLib.GType(raw_ret);
 
29
                                return ret;
 
30
                        }
 
31
                }
 
32
 
 
33
                public AnnotMapping(IntPtr raw) : base(raw) {}
 
34
 
 
35
                [DllImport("poppler-glib")]
 
36
                static extern IntPtr poppler_annot_mapping_new();
 
37
 
 
38
                public AnnotMapping () 
 
39
                {
 
40
                        Raw = poppler_annot_mapping_new();
 
41
                }
 
42
 
 
43
                [DllImport("poppler-glib")]
 
44
                static extern void poppler_annot_mapping_free(IntPtr raw);
 
45
 
 
46
                protected override void Free (IntPtr raw)
 
47
                {
 
48
                        poppler_annot_mapping_free (raw);
 
49
                }
 
50
 
 
51
                class FinalizerInfo {
 
52
                        IntPtr handle;
 
53
 
 
54
                        public FinalizerInfo (IntPtr handle)
 
55
                        {
 
56
                                this.handle = handle;
 
57
                        }
 
58
 
 
59
                        public bool Handler ()
 
60
                        {
 
61
                                poppler_annot_mapping_free (handle);
 
62
                                return false;
 
63
                        }
 
64
                }
 
65
 
 
66
                ~AnnotMapping ()
 
67
                {
 
68
                        if (!Owned)
 
69
                                return;
 
70
                        FinalizerInfo info = new FinalizerInfo (Handle);
 
71
                        GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
 
72
                }
 
73
 
 
74
#endregion
 
75
        }
 
76
}