~daniel-m-kur/eater/trunk

« back to all changes in this revision

Viewing changes to vapi/poppler-glib.vapi

  • Committer: Daniel Kur
  • Date: 2012-06-30 09:25:27 UTC
  • Revision ID: daniel.m.kur@gmail.com-20120630092527-5ud69tklzai79zlt
Init cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* poppler-glib.vapi generated by vapigen, do not modify. */
 
2
 
 
3
[CCode (cprefix = "Poppler", gir_namespace = "Poppler", gir_version = "0.18", lower_case_cprefix = "poppler_")]
 
4
namespace Poppler {
 
5
        namespace AnnotTextIcon {
 
6
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_CIRCLE")]
 
7
                public const string CIRCLE;
 
8
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_COMMENT")]
 
9
                public const string COMMENT;
 
10
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_CROSS")]
 
11
                public const string CROSS;
 
12
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_HELP")]
 
13
                public const string HELP;
 
14
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_INSERT")]
 
15
                public const string INSERT;
 
16
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_KEY")]
 
17
                public const string KEY;
 
18
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_NEW_PARAGRAPH")]
 
19
                public const string NEW_PARAGRAPH;
 
20
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_NOTE")]
 
21
                public const string NOTE;
 
22
                [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_PARAGRAPH")]
 
23
                public const string PARAGRAPH;
 
24
        }
 
25
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_action_get_type ()")]
 
26
        [Compact]
 
27
        public class Action {
 
28
                public Poppler.ActionAny any;
 
29
                public Poppler.ActionGotoDest goto_dest;
 
30
                public Poppler.ActionGotoRemote goto_remote;
 
31
                public Poppler.ActionJavascript javascript;
 
32
                public Poppler.ActionLaunch launch;
 
33
                public Poppler.ActionMovie movie;
 
34
                public Poppler.ActionNamed named;
 
35
                public Poppler.ActionOCGState ocg_state;
 
36
                public Poppler.ActionRendition rendition;
 
37
                public Poppler.ActionType type;
 
38
                public Poppler.ActionUri uri;
 
39
                public Poppler.Action copy ();
 
40
                public void free ();
 
41
        }
 
42
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_get_type ()")]
 
43
        public class Annot : GLib.Object {
 
44
                [CCode (has_construct_function = false)]
 
45
                protected Annot ();
 
46
                public Poppler.AnnotType get_annot_type ();
 
47
                public Poppler.Color get_color ();
 
48
                public string get_contents ();
 
49
                public Poppler.AnnotFlag get_flags ();
 
50
                public string get_modified ();
 
51
                public string get_name ();
 
52
                public int get_page_index ();
 
53
                public void set_color (Poppler.Color? poppler_color);
 
54
                public void set_contents (string contents);
 
55
        }
 
56
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_annot_callout_line_get_type ()")]
 
57
        [Compact]
 
58
        public class AnnotCalloutLine {
 
59
                public bool multiline;
 
60
                public double x1;
 
61
                public double x2;
 
62
                public double x3;
 
63
                public double y1;
 
64
                public double y2;
 
65
                public double y3;
 
66
                [CCode (has_construct_function = false)]
 
67
                public AnnotCalloutLine ();
 
68
                public Poppler.AnnotCalloutLine copy ();
 
69
                public void free ();
 
70
        }
 
71
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_file_attachment_get_type ()")]
 
72
        public class AnnotFileAttachment : Poppler.AnnotMarkup {
 
73
                [CCode (has_construct_function = false)]
 
74
                protected AnnotFileAttachment ();
 
75
                public Poppler.Attachment get_attachment ();
 
76
                public string get_name ();
 
77
        }
 
78
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_free_text_get_type ()")]
 
79
        public class AnnotFreeText : Poppler.AnnotMarkup {
 
80
                [CCode (has_construct_function = false)]
 
81
                protected AnnotFreeText ();
 
82
                public Poppler.AnnotCalloutLine get_callout_line ();
 
83
                public Poppler.AnnotFreeTextQuadding get_quadding ();
 
84
        }
 
85
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_annot_mapping_get_type ()")]
 
86
        [Compact]
 
87
        public class AnnotMapping {
 
88
                public Poppler.Annot annot;
 
89
                public Poppler.Rectangle area;
 
90
                [CCode (has_construct_function = false)]
 
91
                public AnnotMapping ();
 
92
                public Poppler.AnnotMapping copy ();
 
93
                public void free ();
 
94
        }
 
95
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_markup_get_type ()")]
 
96
        public class AnnotMarkup : Poppler.Annot {
 
97
                [CCode (has_construct_function = false)]
 
98
                protected AnnotMarkup ();
 
99
                public GLib.Date get_date ();
 
100
                public Poppler.AnnotExternalDataType get_external_data ();
 
101
                public string get_label ();
 
102
                public double get_opacity ();
 
103
                public bool get_popup_is_open ();
 
104
                public bool get_popup_rectangle (out Poppler.Rectangle poppler_rect);
 
105
                public Poppler.AnnotMarkupReplyType get_reply_to ();
 
106
                public string get_subject ();
 
107
                public bool has_popup ();
 
108
                public void set_label (string? label);
 
109
                public void set_opacity (double opacity);
 
110
                public void set_popup (Poppler.Rectangle popup_rect);
 
111
                public void set_popup_is_open (bool is_open);
 
112
        }
 
113
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_movie_get_type ()")]
 
114
        public class AnnotMovie : Poppler.Annot {
 
115
                [CCode (has_construct_function = false)]
 
116
                protected AnnotMovie ();
 
117
                public unowned Poppler.Movie get_movie ();
 
118
                public string get_title ();
 
119
        }
 
120
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_screen_get_type ()")]
 
121
        public class AnnotScreen : Poppler.Annot {
 
122
                [CCode (has_construct_function = false)]
 
123
                protected AnnotScreen ();
 
124
                public unowned Poppler.Action get_action ();
 
125
        }
 
126
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_text_get_type ()")]
 
127
        public class AnnotText : Poppler.AnnotMarkup {
 
128
                [CCode (has_construct_function = false, type = "PopplerAnnot*")]
 
129
                public AnnotText (Poppler.Document doc, Poppler.Rectangle rect);
 
130
                public string get_icon ();
 
131
                public bool get_is_open ();
 
132
                public Poppler.AnnotTextState get_state ();
 
133
                public void set_icon (string icon);
 
134
                public void set_is_open (bool is_open);
 
135
        }
 
136
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_attachment_get_type ()")]
 
137
        public class Attachment : GLib.Object {
 
138
                public GLib.StringBuilder checksum;
 
139
                public GLib.Time ctime;
 
140
                public string description;
 
141
                public GLib.Time mtime;
 
142
                public string name;
 
143
                public size_t size;
 
144
                [CCode (has_construct_function = false)]
 
145
                protected Attachment ();
 
146
                public bool save (string filename) throws GLib.Error;
 
147
                public bool save_to_callback (Poppler.AttachmentSaveFunc save_func) throws GLib.Error;
 
148
        }
 
149
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_color_get_type ()")]
 
150
        [Compact]
 
151
        public class Color {
 
152
                public uint16 blue;
 
153
                public uint16 green;
 
154
                public uint16 red;
 
155
                [CCode (has_construct_function = false)]
 
156
                public Color ();
 
157
                public Poppler.Color copy ();
 
158
                public void free ();
 
159
        }
 
160
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_dest_get_type ()")]
 
161
        [Compact]
 
162
        public class Dest {
 
163
                public double bottom;
 
164
                public uint change_left;
 
165
                public uint change_top;
 
166
                public uint change_zoom;
 
167
                public double left;
 
168
                public string named_dest;
 
169
                public int page_num;
 
170
                public double right;
 
171
                public double top;
 
172
                public Poppler.DestType type;
 
173
                public double zoom;
 
174
                public Poppler.Dest copy ();
 
175
                public void free ();
 
176
        }
 
177
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_document_get_type ()")]
 
178
        public class Document : GLib.Object {
 
179
                [CCode (has_construct_function = false)]
 
180
                protected Document ();
 
181
                public Poppler.Dest find_dest (string link_name);
 
182
                [CCode (has_construct_function = false)]
 
183
                public Document.from_data (string data, int length, string? password) throws GLib.Error;
 
184
                [CCode (has_construct_function = false)]
 
185
                public Document.from_file (string uri, string? password) throws GLib.Error;
 
186
                public GLib.List<Poppler.Attachment> get_attachments ();
 
187
                public string get_author ();
 
188
                public long get_creation_date ();
 
189
                public string get_creator ();
 
190
                public Poppler.FormField get_form_field (int id);
 
191
                public bool get_id (out string permanent_id, out string update_id);
 
192
                public string get_keywords ();
 
193
                public string get_metadata ();
 
194
                public long get_modification_date ();
 
195
                public uint get_n_attachments ();
 
196
                public int get_n_pages ();
 
197
                public Poppler.Page get_page (int index);
 
198
                public Poppler.Page get_page_by_label (string label);
 
199
                public Poppler.PageLayout get_page_layout ();
 
200
                public Poppler.PageMode get_page_mode ();
 
201
                public void get_pdf_version (out uint major_version, out uint minor_version);
 
202
                public string get_pdf_version_string ();
 
203
                public Poppler.Permissions get_permissions ();
 
204
                public string get_producer ();
 
205
                public string get_subject ();
 
206
                public string get_title ();
 
207
                public bool has_attachments ();
 
208
                public bool is_linearized ();
 
209
                public bool save (string uri) throws GLib.Error;
 
210
                public bool save_a_copy (string uri) throws GLib.Error;
 
211
                public string author { owned get; }
 
212
                public int creation_date { get; }
 
213
                public string creator { owned get; }
 
214
                [NoAccessorMethod]
 
215
                public string format { owned get; }
 
216
                [NoAccessorMethod]
 
217
                public uint format_major { get; }
 
218
                [NoAccessorMethod]
 
219
                public uint format_minor { get; }
 
220
                public string keywords { owned get; }
 
221
                [NoAccessorMethod]
 
222
                public bool linearized { get; }
 
223
                public string metadata { owned get; }
 
224
                [NoAccessorMethod]
 
225
                public int mod_date { get; }
 
226
                public Poppler.PageLayout page_layout { get; }
 
227
                public Poppler.PageMode page_mode { get; }
 
228
                public Poppler.Permissions permissions { get; }
 
229
                public string producer { owned get; }
 
230
                public string subject { owned get; }
 
231
                public string title { owned get; }
 
232
                [NoAccessorMethod]
 
233
                public Poppler.ViewerPreferences viewer_preferences { get; }
 
234
        }
 
235
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_font_info_get_type ()")]
 
236
        public class FontInfo : GLib.Object {
 
237
                [CCode (has_construct_function = false)]
 
238
                public FontInfo (Poppler.Document document);
 
239
                public void free ();
 
240
                public bool scan (int n_pages, out Poppler.FontsIter iter);
 
241
        }
 
242
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_fonts_iter_get_type ()")]
 
243
        [Compact]
 
244
        public class FontsIter {
 
245
                public Poppler.FontsIter copy ();
 
246
                public void free ();
 
247
                public unowned string get_file_name ();
 
248
                public Poppler.FontType get_font_type ();
 
249
                public unowned string get_full_name ();
 
250
                public unowned string get_name ();
 
251
                public bool is_embedded ();
 
252
                public bool is_subset ();
 
253
                public bool next ();
 
254
        }
 
255
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_form_field_get_type ()")]
 
256
        public class FormField : GLib.Object {
 
257
                [CCode (has_construct_function = false)]
 
258
                protected FormField ();
 
259
                public Poppler.FormButtonType button_get_button_type ();
 
260
                public bool button_get_state ();
 
261
                public void button_set_state (bool state);
 
262
                public bool choice_can_select_multiple ();
 
263
                public bool choice_commit_on_change ();
 
264
                public bool choice_do_spell_check ();
 
265
                public Poppler.FormChoiceType choice_get_choice_type ();
 
266
                public string choice_get_item (int index);
 
267
                public int choice_get_n_items ();
 
268
                public string choice_get_text ();
 
269
                public bool choice_is_editable ();
 
270
                public bool choice_is_item_selected (int index);
 
271
                public void choice_select_item (int index);
 
272
                public void choice_set_text (string text);
 
273
                public void choice_toggle_item (int index);
 
274
                public void choice_unselect_all ();
 
275
                public unowned Poppler.Action get_action ();
 
276
                public Poppler.FormFieldType get_field_type ();
 
277
                public double get_font_size ();
 
278
                public int get_id ();
 
279
                public string get_mapping_name ();
 
280
                public string get_name ();
 
281
                public string get_partial_name ();
 
282
                public bool is_read_only ();
 
283
                public bool text_do_scroll ();
 
284
                public bool text_do_spell_check ();
 
285
                public int text_get_max_len ();
 
286
                public string text_get_text ();
 
287
                public Poppler.FormTextType text_get_text_type ();
 
288
                public bool text_is_password ();
 
289
                public bool text_is_rich_text ();
 
290
                public void text_set_text (string text);
 
291
        }
 
292
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_form_field_mapping_get_type ()")]
 
293
        [Compact]
 
294
        public class FormFieldMapping {
 
295
                public Poppler.Rectangle area;
 
296
                public Poppler.FormField field;
 
297
                [CCode (has_construct_function = false)]
 
298
                public FormFieldMapping ();
 
299
                public Poppler.FormFieldMapping copy ();
 
300
                public void free ();
 
301
        }
 
302
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_image_mapping_get_type ()")]
 
303
        [Compact]
 
304
        public class ImageMapping {
 
305
                public Poppler.Rectangle area;
 
306
                public int image_id;
 
307
                [CCode (has_construct_function = false)]
 
308
                public ImageMapping ();
 
309
                public Poppler.ImageMapping copy ();
 
310
                public void free ();
 
311
        }
 
312
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_index_iter_get_type ()")]
 
313
        [Compact]
 
314
        public class IndexIter {
 
315
                [CCode (has_construct_function = false)]
 
316
                public IndexIter (Poppler.Document document);
 
317
                public Poppler.IndexIter copy ();
 
318
                public void free ();
 
319
                public Poppler.Action get_action ();
 
320
                public Poppler.IndexIter get_child ();
 
321
                public bool is_open ();
 
322
                public bool next ();
 
323
        }
 
324
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_layer_get_type ()")]
 
325
        public class Layer : GLib.Object {
 
326
                [CCode (has_construct_function = false)]
 
327
                protected Layer ();
 
328
                public int get_radio_button_group_id ();
 
329
                public unowned string get_title ();
 
330
                public void hide ();
 
331
                public bool is_parent ();
 
332
                public bool is_visible ();
 
333
                public void show ();
 
334
        }
 
335
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_layers_iter_get_type ()")]
 
336
        [Compact]
 
337
        public class LayersIter {
 
338
                [CCode (has_construct_function = false)]
 
339
                public LayersIter (Poppler.Document document);
 
340
                public Poppler.LayersIter copy ();
 
341
                public void free ();
 
342
                public Poppler.LayersIter get_child ();
 
343
                public Poppler.Layer get_layer ();
 
344
                public string get_title ();
 
345
                public bool next ();
 
346
        }
 
347
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_link_mapping_get_type ()")]
 
348
        [Compact]
 
349
        public class LinkMapping {
 
350
                public Poppler.Action action;
 
351
                public Poppler.Rectangle area;
 
352
                [CCode (has_construct_function = false)]
 
353
                public LinkMapping ();
 
354
                public Poppler.LinkMapping copy ();
 
355
                public void free ();
 
356
        }
 
357
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_media_get_type ()")]
 
358
        public class Media : GLib.Object {
 
359
                [CCode (has_construct_function = false)]
 
360
                protected Media ();
 
361
                public unowned string get_filename ();
 
362
                public unowned string get_mime_type ();
 
363
                public bool is_embedded ();
 
364
                public bool save (string filename) throws GLib.Error;
 
365
                public bool save_to_callback (Poppler.MediaSaveFunc save_func) throws GLib.Error;
 
366
        }
 
367
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_movie_get_type ()")]
 
368
        public class Movie : GLib.Object {
 
369
                [CCode (has_construct_function = false)]
 
370
                protected Movie ();
 
371
                public unowned string get_filename ();
 
372
                public bool need_poster ();
 
373
                public bool show_controls ();
 
374
        }
 
375
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_ps_file_get_type ()")]
 
376
        public class PSFile : GLib.Object {
 
377
                [CCode (has_construct_function = false)]
 
378
                public PSFile (Poppler.Document document, string filename, int first_page, int n_pages);
 
379
                public void free ();
 
380
                public void set_duplex (bool duplex);
 
381
                public void set_paper_size (double width, double height);
 
382
        }
 
383
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_page_get_type ()")]
 
384
        public class Page : GLib.Object {
 
385
                [CCode (has_construct_function = false)]
 
386
                protected Page ();
 
387
                public void add_annot (Poppler.Annot annot);
 
388
                public GLib.List<Poppler.Rectangle> find_text (string text);
 
389
                public static void free_annot_mapping (GLib.List<Poppler.AnnotMapping> list);
 
390
                public static void free_form_field_mapping (GLib.List<Poppler.FormFieldMapping> list);
 
391
                public static void free_image_mapping (GLib.List<Poppler.ImageMapping> list);
 
392
                public static void free_link_mapping (GLib.List<Poppler.LinkMapping> list);
 
393
                public static void free_text_attributes (GLib.List<Poppler.TextAttributes> list);
 
394
                public GLib.List<Poppler.AnnotMapping> get_annot_mapping ();
 
395
                public Poppler.Rectangle get_crop_box ();
 
396
                public double get_duration ();
 
397
                public GLib.List<Poppler.FormFieldMapping> get_form_field_mapping ();
 
398
                public Cairo.Surface get_image (int image_id);
 
399
                public GLib.List<Poppler.ImageMapping> get_image_mapping ();
 
400
                public int get_index ();
 
401
                public string get_label ();
 
402
                public GLib.List<Poppler.LinkMapping> get_link_mapping ();
 
403
                public Cairo.Region get_selected_region (double scale, Poppler.SelectionStyle style, Poppler.Rectangle selection);
 
404
                public string get_selected_text (Poppler.SelectionStyle style, Poppler.Rectangle selection);
 
405
                [Deprecated (since = "0.16")]
 
406
                public GLib.List<Poppler.Rectangle> get_selection_region (double scale, Poppler.SelectionStyle style, Poppler.Rectangle selection);
 
407
                public void get_size (out double width, out double height);
 
408
                public string get_text ();
 
409
                public GLib.List<Poppler.TextAttributes> get_text_attributes ();
 
410
                public bool get_text_layout ([CCode (array_length_cname = "n_rectangles", array_length_pos = 1.1, array_length_type = "guint")] out Poppler.Rectangle[] rectangles);
 
411
                public Cairo.Surface get_thumbnail ();
 
412
                public bool get_thumbnail_size (int width, int height);
 
413
                public Poppler.PageTransition get_transition ();
 
414
                public void render ([CCode (type = "cairo_t*")] Cairo.Context cairo);
 
415
                public void render_for_printing ([CCode (type = "cairo_t*")] Cairo.Context cairo);
 
416
                public void render_for_printing_with_options ([CCode (type = "cairo_t*")] Cairo.Context cairo, Poppler.PrintFlags options);
 
417
                public void render_selection ([CCode (type = "cairo_t*")] Cairo.Context cairo, Poppler.Rectangle selection, Poppler.Rectangle old_selection, Poppler.SelectionStyle style, Poppler.Color glyph_color, Poppler.Color background_color);
 
418
                public void render_to_ps (Poppler.PSFile ps_file);
 
419
                public static void selection_region_free (GLib.List<Poppler.Rectangle> region);
 
420
                public string label { owned get; }
 
421
        }
 
422
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_page_transition_get_type ()")]
 
423
        [Compact]
 
424
        public class PageTransition {
 
425
                public Poppler.PageTransitionAlignment alignment;
 
426
                public int angle;
 
427
                public Poppler.PageTransitionDirection direction;
 
428
                public int duration;
 
429
                public bool rectangular;
 
430
                public double scale;
 
431
                public Poppler.PageTransitionType type;
 
432
                [CCode (has_construct_function = false)]
 
433
                public PageTransition ();
 
434
                public Poppler.PageTransition copy ();
 
435
                public void free ();
 
436
        }
 
437
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_text_attributes_get_type ()")]
 
438
        [Compact]
 
439
        public class TextAttributes {
 
440
                public Poppler.Color color;
 
441
                public int end_index;
 
442
                public string font_name;
 
443
                public double font_size;
 
444
                public bool is_underlined;
 
445
                public int start_index;
 
446
                [CCode (has_construct_function = false)]
 
447
                public TextAttributes ();
 
448
                public Poppler.TextAttributes copy ();
 
449
                public void free ();
 
450
        }
 
451
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
452
        public struct ActionAny {
 
453
                public Poppler.ActionType type;
 
454
                public string title;
 
455
        }
 
456
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
457
        public struct ActionGotoDest {
 
458
                public Poppler.ActionType type;
 
459
                public string title;
 
460
                public Poppler.Dest dest;
 
461
        }
 
462
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
463
        public struct ActionGotoRemote {
 
464
                public Poppler.ActionType type;
 
465
                public string title;
 
466
                public string file_name;
 
467
                public Poppler.Dest dest;
 
468
        }
 
469
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
470
        public struct ActionJavascript {
 
471
                public Poppler.ActionType type;
 
472
                public string title;
 
473
                public string script;
 
474
        }
 
475
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
476
        public struct ActionLaunch {
 
477
                public Poppler.ActionType type;
 
478
                public string title;
 
479
                public string file_name;
 
480
                public string @params;
 
481
        }
 
482
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
483
        public struct ActionLayer {
 
484
                public Poppler.ActionLayerAction action;
 
485
                public weak GLib.List<Poppler.ActionLayer> layers;
 
486
        }
 
487
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
488
        public struct ActionMovie {
 
489
                public Poppler.ActionType type;
 
490
                public string title;
 
491
                public Poppler.ActionMovieOperation operation;
 
492
                public Poppler.Movie movie;
 
493
        }
 
494
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
495
        public struct ActionNamed {
 
496
                public Poppler.ActionType type;
 
497
                public string title;
 
498
                public string named_dest;
 
499
        }
 
500
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
501
        public struct ActionOCGState {
 
502
                public Poppler.ActionType type;
 
503
                public string title;
 
504
                public GLib.List<Poppler.ActionLayer> state_list;
 
505
        }
 
506
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
507
        public struct ActionRendition {
 
508
                public Poppler.ActionType type;
 
509
                public string title;
 
510
                public int op;
 
511
                public Poppler.Media media;
 
512
        }
 
513
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
 
514
        public struct ActionUri {
 
515
                public Poppler.ActionType type;
 
516
                public string title;
 
517
                public string uri;
 
518
        }
 
519
        [CCode (cheader_filename = "poppler.h", type_id = "poppler_rectangle_get_type ()")]
 
520
        public struct Rectangle {
 
521
                public double x1;
 
522
                public double y1;
 
523
                public double x2;
 
524
                public double y2;
 
525
                [CCode (has_construct_function = false, type = "PopplerRectangle*")]
 
526
                public Rectangle ();
 
527
                public Poppler.Rectangle copy ();
 
528
                public void free ();
 
529
        }
 
530
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ACTION_LAYER_")]
 
531
        public enum ActionLayerAction {
 
532
                ON,
 
533
                OFF,
 
534
                TOGGLE
 
535
        }
 
536
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ACTION_MOVIE_")]
 
537
        public enum ActionMovieOperation {
 
538
                PLAY,
 
539
                PAUSE,
 
540
                RESUME,
 
541
                STOP
 
542
        }
 
543
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ACTION_")]
 
544
        public enum ActionType {
 
545
                UNKNOWN,
 
546
                NONE,
 
547
                GOTO_DEST,
 
548
                GOTO_REMOTE,
 
549
                LAUNCH,
 
550
                URI,
 
551
                NAMED,
 
552
                MOVIE,
 
553
                RENDITION,
 
554
                OCG_STATE,
 
555
                JAVASCRIPT
 
556
        }
 
557
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_")]
 
558
        public enum AnnotExternalDataType {
 
559
                @3D,
 
560
                UNKNOWN
 
561
        }
 
562
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_FLAG_")]
 
563
        [Flags]
 
564
        public enum AnnotFlag {
 
565
                UNKNOWN,
 
566
                INVISIBLE,
 
567
                HIDDEN,
 
568
                PRINT,
 
569
                NO_ZOOM,
 
570
                NO_ROTATE,
 
571
                NO_VIEW,
 
572
                READ_ONLY,
 
573
                LOCKED,
 
574
                TOGGLE_NO_VIEW,
 
575
                LOCKED_CONTENTS
 
576
        }
 
577
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_FREE_TEXT_QUADDING_")]
 
578
        public enum AnnotFreeTextQuadding {
 
579
                LEFT_JUSTIFIED,
 
580
                CENTERED,
 
581
                RIGHT_JUSTIFIED
 
582
        }
 
583
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_MARKUP_REPLY_TYPE_")]
 
584
        public enum AnnotMarkupReplyType {
 
585
                R,
 
586
                GROUP
 
587
        }
 
588
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_TEXT_STATE_")]
 
589
        public enum AnnotTextState {
 
590
                MARKED,
 
591
                UNMARKED,
 
592
                ACCEPTED,
 
593
                REJECTED,
 
594
                CANCELLED,
 
595
                COMPLETED,
 
596
                NONE,
 
597
                UNKNOWN
 
598
        }
 
599
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_")]
 
600
        public enum AnnotType {
 
601
                UNKNOWN,
 
602
                TEXT,
 
603
                LINK,
 
604
                FREE_TEXT,
 
605
                LINE,
 
606
                SQUARE,
 
607
                CIRCLE,
 
608
                POLYGON,
 
609
                POLY_LINE,
 
610
                HIGHLIGHT,
 
611
                UNDERLINE,
 
612
                SQUIGGLY,
 
613
                STRIKE_OUT,
 
614
                STAMP,
 
615
                CARET,
 
616
                INK,
 
617
                POPUP,
 
618
                FILE_ATTACHMENT,
 
619
                SOUND,
 
620
                MOVIE,
 
621
                WIDGET,
 
622
                SCREEN,
 
623
                PRINTER_MARK,
 
624
                TRAP_NET,
 
625
                WATERMARK,
 
626
                @3D
 
627
        }
 
628
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_BACKEND_")]
 
629
        public enum Backend {
 
630
                UNKNOWN,
 
631
                SPLASH,
 
632
                CAIRO
 
633
        }
 
634
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_DEST_")]
 
635
        public enum DestType {
 
636
                UNKNOWN,
 
637
                XYZ,
 
638
                FIT,
 
639
                FITH,
 
640
                FITV,
 
641
                FITR,
 
642
                FITB,
 
643
                FITBH,
 
644
                FITBV,
 
645
                NAMED
 
646
        }
 
647
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FONT_TYPE_")]
 
648
        public enum FontType {
 
649
                UNKNOWN,
 
650
                TYPE1,
 
651
                TYPE1C,
 
652
                TYPE1COT,
 
653
                TYPE3,
 
654
                TRUETYPE,
 
655
                TRUETYPEOT,
 
656
                CID_TYPE0,
 
657
                CID_TYPE0C,
 
658
                CID_TYPE0COT,
 
659
                CID_TYPE2,
 
660
                CID_TYPE2OT
 
661
        }
 
662
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_BUTTON_")]
 
663
        public enum FormButtonType {
 
664
                PUSH,
 
665
                CHECK,
 
666
                RADIO
 
667
        }
 
668
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_CHOICE_")]
 
669
        public enum FormChoiceType {
 
670
                COMBO,
 
671
                LIST
 
672
        }
 
673
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_FIELD_")]
 
674
        public enum FormFieldType {
 
675
                UNKNOWN,
 
676
                BUTTON,
 
677
                TEXT,
 
678
                CHOICE,
 
679
                SIGNATURE
 
680
        }
 
681
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_TEXT_")]
 
682
        public enum FormTextType {
 
683
                NORMAL,
 
684
                MULTILINE,
 
685
                FILE_SELECT
 
686
        }
 
687
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ORIENTATION_")]
 
688
        public enum Orientation {
 
689
                PORTRAIT,
 
690
                LANDSCAPE,
 
691
                UPSIDEDOWN,
 
692
                SEASCAPE
 
693
        }
 
694
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_LAYOUT_")]
 
695
        public enum PageLayout {
 
696
                UNSET,
 
697
                SINGLE_PAGE,
 
698
                ONE_COLUMN,
 
699
                TWO_COLUMN_LEFT,
 
700
                TWO_COLUMN_RIGHT,
 
701
                TWO_PAGE_LEFT,
 
702
                TWO_PAGE_RIGHT
 
703
        }
 
704
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_MODE_")]
 
705
        public enum PageMode {
 
706
                UNSET,
 
707
                NONE,
 
708
                USE_OUTLINES,
 
709
                USE_THUMBS,
 
710
                FULL_SCREEN,
 
711
                USE_OC,
 
712
                USE_ATTACHMENTS
 
713
        }
 
714
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_")]
 
715
        public enum PageTransitionAlignment {
 
716
                HORIZONTAL,
 
717
                VERTICAL
 
718
        }
 
719
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_")]
 
720
        public enum PageTransitionDirection {
 
721
                INWARD,
 
722
                OUTWARD
 
723
        }
 
724
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_")]
 
725
        public enum PageTransitionType {
 
726
                REPLACE,
 
727
                SPLIT,
 
728
                BLINDS,
 
729
                BOX,
 
730
                WIPE,
 
731
                DISSOLVE,
 
732
                GLITTER,
 
733
                FLY,
 
734
                PUSH,
 
735
                COVER,
 
736
                UNCOVER,
 
737
                FADE
 
738
        }
 
739
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PERMISSIONS_")]
 
740
        [Flags]
 
741
        public enum Permissions {
 
742
                OK_TO_PRINT,
 
743
                OK_TO_MODIFY,
 
744
                OK_TO_COPY,
 
745
                OK_TO_ADD_NOTES,
 
746
                OK_TO_FILL_FORM,
 
747
                OK_TO_EXTRACT_CONTENTS,
 
748
                OK_TO_ASSEMBLE,
 
749
                OK_TO_PRINT_HIGH_RESOLUTION,
 
750
                FULL
 
751
        }
 
752
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PRINT_")]
 
753
        [Flags]
 
754
        public enum PrintFlags {
 
755
                DOCUMENT,
 
756
                MARKUP_ANNOTS,
 
757
                STAMP_ANNOTS_ONLY,
 
758
                ALL
 
759
        }
 
760
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_SELECTION_")]
 
761
        public enum SelectionStyle {
 
762
                GLYPH,
 
763
                WORD,
 
764
                LINE
 
765
        }
 
766
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_VIEWER_PREFERENCES_")]
 
767
        [Flags]
 
768
        public enum ViewerPreferences {
 
769
                UNSET,
 
770
                HIDE_TOOLBAR,
 
771
                HIDE_MENUBAR,
 
772
                HIDE_WINDOWUI,
 
773
                FIT_WINDOW,
 
774
                CENTER_WINDOW,
 
775
                DISPLAY_DOC_TITLE,
 
776
                DIRECTION_RTL
 
777
        }
 
778
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ERROR_")]
 
779
        public errordomain Error {
 
780
                INVALID,
 
781
                ENCRYPTED,
 
782
                OPEN_FILE,
 
783
                BAD_CATALOG,
 
784
                DAMAGED;
 
785
                public static GLib.Quark quark ();
 
786
        }
 
787
        [CCode (cheader_filename = "poppler.h", instance_pos = 1.9)]
 
788
        public delegate bool AttachmentSaveFunc ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
 
789
        [CCode (cheader_filename = "poppler.h", instance_pos = 1.9)]
 
790
        public delegate bool MediaSaveFunc ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
 
791
        [CCode (cheader_filename = "poppler.h", cname = "POPPLER_HAS_CAIRO")]
 
792
        public const int HAS_CAIRO;
 
793
        [CCode (cheader_filename = "poppler.h", cname = "POPPLER_MAJOR_VERSION")]
 
794
        public const int MAJOR_VERSION;
 
795
        [CCode (cheader_filename = "poppler.h", cname = "POPPLER_MICRO_VERSION")]
 
796
        public const int MICRO_VERSION;
 
797
        [CCode (cheader_filename = "poppler.h", cname = "POPPLER_MINOR_VERSION")]
 
798
        public const int MINOR_VERSION;
 
799
        [CCode (cheader_filename = "poppler.h")]
 
800
        public static bool date_parse (string date, long timet);
 
801
        [CCode (cheader_filename = "poppler.h")]
 
802
        public static Poppler.Backend get_backend ();
 
803
        [CCode (cheader_filename = "poppler.h")]
 
804
        public static unowned string get_version ();
 
805
}