@girs/atrildocument-1.5.0 1.26.2-4.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2328 @@
1
+ /*
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ */
7
+
8
+ import './atrildocument-1.5.0-ambient.d.ts';
9
+
10
+ /**
11
+ * AtrilDocument-1.5.0
12
+ */
13
+
14
+ import type Gtk from '@girs/gtk-3.0';
15
+ import type xlib from '@girs/xlib-2.0';
16
+ import type Gdk from '@girs/gdk-3.0';
17
+ import type cairo from '@girs/cairo-1.0';
18
+ import type GObject from '@girs/gobject-2.0';
19
+ import type GLib from '@girs/glib-2.0';
20
+ import type Pango from '@girs/pango-1.0';
21
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
22
+ import type freetype2 from '@girs/freetype2-2.0';
23
+ import type Gio from '@girs/gio-2.0';
24
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
25
+ import type GModule from '@girs/gmodule-2.0';
26
+ import type Atk from '@girs/atk-1.0';
27
+
28
+ export namespace AtrilDocument {
29
+ enum AnnotationTextIcon {
30
+ NOTE,
31
+ COMMENT,
32
+ KEY,
33
+ HELP,
34
+ NEW_PARAGRAPH,
35
+ PARAGRAPH,
36
+ INSERT,
37
+ CROSS,
38
+ CIRCLE,
39
+ UNKNOWN,
40
+ }
41
+ enum AnnotationType {
42
+ UNKNOWN,
43
+ TEXT,
44
+ ATTACHMENT,
45
+ }
46
+ enum CompressionType {
47
+ NONE,
48
+ BZIP2,
49
+ GZIP,
50
+ LZMA,
51
+ }
52
+ class DocumentError extends GLib.Error {
53
+ static $gtype: GObject.GType<DocumentError>;
54
+
55
+ // Static fields of AtrilDocument.DocumentError
56
+
57
+ static INVALID: number;
58
+ static UNSUPPORTED_CONTENT: number;
59
+ static ENCRYPTED: number;
60
+
61
+ // Constructors of AtrilDocument.DocumentError
62
+
63
+ constructor(options: { message: string; code: number });
64
+ _init(...args: any[]): void;
65
+
66
+ // Own static methods of AtrilDocument.DocumentError
67
+
68
+ static quark(): GLib.Quark;
69
+ }
70
+
71
+ enum DocumentLayout {
72
+ SINGLE_PAGE,
73
+ ONE_COLUMN,
74
+ TWO_COLUMN_LEFT,
75
+ TWO_COLUMN_RIGHT,
76
+ TWO_PAGE_LEFT,
77
+ TWO_PAGE_RIGHT,
78
+ }
79
+ enum DocumentMode {
80
+ NONE,
81
+ USE_OC,
82
+ USE_THUMBS,
83
+ FULL_SCREEN,
84
+ USE_ATTACHMENTS,
85
+ PRESENTATION,
86
+ }
87
+ enum FileExporterFormat {
88
+ UNKNOWN,
89
+ PS,
90
+ PDF,
91
+ }
92
+ enum FormFieldButtonType {
93
+ PUSH,
94
+ CHECK,
95
+ RADIO,
96
+ }
97
+ enum FormFieldChoiceType {
98
+ COMBO,
99
+ LIST,
100
+ }
101
+ enum FormFieldTextType {
102
+ NORMAL,
103
+ MULTILINE,
104
+ FILE_SELECT,
105
+ }
106
+ enum LinkActionType {
107
+ GOTO_DEST,
108
+ GOTO_REMOTE,
109
+ EXTERNAL_URI,
110
+ LAUNCH,
111
+ NAMED,
112
+ LAYERS_STATE,
113
+ }
114
+ enum LinkDestType {
115
+ PAGE,
116
+ XYZ,
117
+ FIT,
118
+ FITH,
119
+ FITV,
120
+ FITR,
121
+ NAMED,
122
+ PAGE_LABEL,
123
+ HLINK,
124
+ UNKNOWN,
125
+ }
126
+ enum SelectionStyle {
127
+ GLYPH,
128
+ WORD,
129
+ LINE,
130
+ }
131
+ enum TransitionEffectAlignment {
132
+ HORIZONTAL,
133
+ VERTICAL,
134
+ }
135
+ enum TransitionEffectDirection {
136
+ INWARD,
137
+ OUTWARD,
138
+ }
139
+ enum TransitionEffectType {
140
+ REPLACE,
141
+ SPLIT,
142
+ BLINDS,
143
+ BOX,
144
+ WIPE,
145
+ DISSOLVE,
146
+ GLITTER,
147
+ FLY,
148
+ PUSH,
149
+ COVER,
150
+ UNCOVER,
151
+ FADE,
152
+ }
153
+ /**
154
+ * The major version number of the EV library
155
+ * (e.g. in version 3.1.4 this is 3).
156
+ */
157
+ const MAJOR_VERSION: number;
158
+ /**
159
+ * The micro version number of the EV library
160
+ * (e.g. in version 3.1.4 this is 4).
161
+ */
162
+ const MICRO_VERSION: number;
163
+ /**
164
+ * The minor version number of the EV library
165
+ * (e.g. in version 3.1.4 this is 1).
166
+ */
167
+ const MINOR_VERSION: number;
168
+ function backends_manager_get_backends_dir(): string;
169
+ function backends_manager_get_document_module_name(document: Document): string;
170
+ function document_error_quark(): GLib.Quark;
171
+ /**
172
+ * Compresses the file at `uri`.
173
+ *
174
+ * If `type` is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
175
+ *
176
+ * Otherwise, it returns the filename of a
177
+ * temporary file containing the compressed data from the file at `uri`.
178
+ *
179
+ * On error it returns %NULL and fills in `error`.
180
+ *
181
+ * It is the caller's responsibility to unlink the temp file after use.
182
+ * @param uri a file URI
183
+ * @param type the compression type
184
+ * @returns a newly allocated string URI, or %NULL on error
185
+ */
186
+ function file_compress(uri: string, type: CompressionType): string;
187
+ /**
188
+ * Note: on unknown MIME types, this may return NULL without `error`
189
+ * being filled in.
190
+ * @param uri the URI
191
+ * @param fast whether to use fast MIME type detection
192
+ * @returns a newly allocated string with the MIME type of the file at @uri, or %NULL on error or if the MIME type could not be determined
193
+ */
194
+ function file_get_mime_type(uri: string, fast: boolean): string;
195
+ function file_is_temp(file: Gio.File): boolean;
196
+ /**
197
+ * Uncompresses the file at `uri`.
198
+ *
199
+ * If `type` is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
200
+ *
201
+ * Otherwise, it returns the filename of a
202
+ * temporary file containing the decompressed data from the file at `uri`.
203
+ * On error it returns %NULL and fills in `error`.
204
+ *
205
+ * It is the caller's responsibility to unlink the temp file after use.
206
+ * @param uri a file URI
207
+ * @param type the compression type
208
+ * @returns a newly allocated string URI, or %NULL on error
209
+ */
210
+ function file_uncompress(uri: string, type: CompressionType): string;
211
+ function get_locale_dir(): string;
212
+ /**
213
+ * Initializes the atril document library.
214
+ *
215
+ * You must call this before calling any other function in the atril
216
+ * document library.
217
+ * @returns %TRUE if any backends were found; %FALSE otherwise
218
+ */
219
+ function init(): boolean;
220
+ /**
221
+ * Creates a temp directory in the atril temp directory.
222
+ * @param template a template string; must end in 'XXXXXX'
223
+ * @returns a newly allocated string with the temp directory name, or %NULL on error with @error filled in
224
+ */
225
+ function mkdtemp(template: string): string;
226
+ /**
227
+ * Creates a temp file in the atril temp directory.
228
+ * @param template a template string; must contain 'XXXXXX', but not necessarily as a suffix
229
+ * @param file_name a location to store the filename of the temp file
230
+ * @returns a file descriptor to the newly created temp file name, or %-1 on error with @error filled in
231
+ */
232
+ function mkstemp(template: string, file_name: string): number;
233
+ function rect_cmp(a: Rectangle, b: Rectangle): number;
234
+ /**
235
+ * Shuts the atril document library down.
236
+ */
237
+ function shutdown(): void;
238
+ function tmp_file_unlink(file: Gio.File): void;
239
+ function tmp_filename_unlink(filename: string): void;
240
+ function tmp_uri_unlink(uri: string): void;
241
+ /**
242
+ * Performs a g_file_copy() from `from` to `to`.
243
+ * @param from the source URI
244
+ * @param to the target URI
245
+ * @returns %TRUE on success, or %FALSE on error with @error filled in
246
+ */
247
+ function xfer_uri_simple(from: string, to: string): boolean;
248
+ enum AnnotationsSaveMask {
249
+ NONE,
250
+ CONTENTS,
251
+ COLOR,
252
+ LABEL,
253
+ OPACITY,
254
+ POPUP_RECT,
255
+ POPUP_IS_OPEN,
256
+ TEXT_IS_OPEN,
257
+ TEXT_ICON,
258
+ ATTACHMENT,
259
+ ALL,
260
+ }
261
+ enum DocumentInfoFields {
262
+ TITLE,
263
+ FORMAT,
264
+ AUTHOR,
265
+ SUBJECT,
266
+ KEYWORDS,
267
+ LAYOUT,
268
+ CREATOR,
269
+ PRODUCER,
270
+ CREATION_DATE,
271
+ MOD_DATE,
272
+ LINEARIZED,
273
+ START_MODE,
274
+ UI_HINTS,
275
+ PERMISSIONS,
276
+ N_PAGES,
277
+ SECURITY,
278
+ PAPER_SIZE,
279
+ LICENSE,
280
+ }
281
+ enum DocumentPermissions {
282
+ OK_TO_PRINT,
283
+ OK_TO_MODIFY,
284
+ OK_TO_COPY,
285
+ OK_TO_ADD_NOTES,
286
+ FULL,
287
+ }
288
+ enum DocumentUIHints {
289
+ HIDE_TOOLBAR,
290
+ HIDE_MENUBAR,
291
+ HIDE_WINDOWUI,
292
+ FIT_WINDOW,
293
+ CENTER_WINDOW,
294
+ DISPLAY_DOC_TITLE,
295
+ DIRECTION_RTL,
296
+ }
297
+ enum FileExporterCapabilities {
298
+ PAGE_SET,
299
+ COPIES,
300
+ COLLATE,
301
+ REVERSE,
302
+ SCALE,
303
+ GENERATE_PDF,
304
+ GENERATE_PS,
305
+ PREVIEW,
306
+ NUMBER_UP,
307
+ }
308
+ module Annotation {
309
+ // Constructor properties interface
310
+
311
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
312
+ color: any;
313
+ contents: string;
314
+ modified: string;
315
+ name: string;
316
+ page: Page;
317
+ rgba: Gdk.RGBA;
318
+ }
319
+ }
320
+
321
+ abstract class Annotation extends GObject.Object {
322
+ static $gtype: GObject.GType<Annotation>;
323
+
324
+ // Own properties of AtrilDocument.Annotation
325
+
326
+ /**
327
+ * The colour of the annotation as a #GdkColor.
328
+ */
329
+ get color(): any;
330
+ set color(val: any);
331
+ get contents(): string;
332
+ set contents(val: string);
333
+ get modified(): string;
334
+ set modified(val: string);
335
+ get name(): string;
336
+ set name(val: string);
337
+ set page(val: Page);
338
+ /**
339
+ * The colour of the annotation as a #GdkRGBA.
340
+ */
341
+ get rgba(): Gdk.RGBA;
342
+ set rgba(val: Gdk.RGBA);
343
+
344
+ // Constructors of AtrilDocument.Annotation
345
+
346
+ constructor(properties?: Partial<Annotation.ConstructorProps>, ...args: any[]);
347
+
348
+ _init(...args: any[]): void;
349
+
350
+ // Own methods of AtrilDocument.Annotation
351
+
352
+ /**
353
+ * Compare `annot` and `other`.
354
+ * @param other another #EvAnnotation
355
+ * @returns %TRUE if @annot is equal to @other, %FALSE otherwise
356
+ */
357
+ equal(other: Annotation): boolean;
358
+ get_annotation_type(): AnnotationType;
359
+ /**
360
+ * Get the color of `annot`.
361
+ */
362
+ get_color(): Gdk.Color;
363
+ /**
364
+ * Get the contents of `annot`. The contents of
365
+ * `annot` is the text that is displayed in the annotation, or an
366
+ * alternate description of the annotation's content for non-text annotations
367
+ * @returns a string with the contents of the annotation or %NULL if @annot has no contents.
368
+ */
369
+ get_contents(): string;
370
+ /**
371
+ * Get the last modification date of `annot`.
372
+ * @returns A string containing the last modification date.
373
+ */
374
+ get_modified(): string;
375
+ /**
376
+ * Get the name of `annot`. The name of the annotation is a string
377
+ * that uniquely indenftifies `annot` amongs all the annotations
378
+ * in the same page.
379
+ * @returns the string with the annotation's name.
380
+ */
381
+ get_name(): string;
382
+ /**
383
+ * Get the page where `annot` appears.
384
+ * @returns the #EvPage where @annot appears
385
+ */
386
+ get_page(): Page;
387
+ /**
388
+ * Get the index of the page where `annot` appears. Note that the index
389
+ * is 0 based.
390
+ * @returns the page index.
391
+ */
392
+ get_page_index(): number;
393
+ /**
394
+ * Gets the color of `annot`.
395
+ */
396
+ get_rgba(): Gdk.RGBA;
397
+ /**
398
+ * Set the color of the annotation to `color`. You can monitor
399
+ * changes to the annotation's color by connecting to
400
+ * notify::color signal on `annot`.
401
+ * @param color a #GdkColor
402
+ * @returns %TRUE when the color has been changed, %FALSE otherwise.
403
+ */
404
+ set_color(color: Gdk.Color): boolean;
405
+ /**
406
+ * Set the contents of `annot`. You can monitor
407
+ * changes in the annotation's contents by connecting to
408
+ * notify::contents signal of `annot`.
409
+ * @param contents
410
+ * @returns %TRUE if the contents have been changed, %FALSE otherwise.
411
+ */
412
+ set_contents(contents: string): boolean;
413
+ /**
414
+ * Set the last modification date of `annot` to `modified`. To
415
+ * set the last modification date using a #gint64, use
416
+ * ev_annotation_set_modified_from_time() instead. You can monitor
417
+ * changes to the last modification date by connecting to the
418
+ * notify::modified signal on `annot`.
419
+ * @param modified string with the last modification date.
420
+ * @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
421
+ */
422
+ set_modified(modified: string): boolean;
423
+ /**
424
+ * Set the last modification date of `annot` to `utime`. You can
425
+ * monitor changes to the last modification date by connectin to the
426
+ * notify::modified sinal on `annot`.
427
+ * For the time-format used, see ev_document_misc_format_date().
428
+ * @param utime a #gint64
429
+ * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
430
+ */
431
+ set_modified_from_time(utime: number): boolean;
432
+ /**
433
+ * Set the name of `annot`.
434
+ * You can monitor changes of the annotation name by connecting
435
+ * to the notify::name signal on `annot`.
436
+ * @param name
437
+ * @returns %TRUE when the name has been changed, %FALSE otherwise.
438
+ */
439
+ set_name(name: string): boolean;
440
+ /**
441
+ * Set the color of the annotation to `rgba`.
442
+ * @param rgba a #GdkRGBA
443
+ * @returns %TRUE if the color has been changed, %FALSE otherwise
444
+ */
445
+ set_rgba(rgba: Gdk.RGBA): boolean;
446
+ }
447
+
448
+ module AnnotationAttachment {
449
+ // Constructor properties interface
450
+
451
+ interface ConstructorProps extends Annotation.ConstructorProps, AnnotationMarkup.ConstructorProps {
452
+ attachment: Attachment;
453
+ }
454
+ }
455
+
456
+ class AnnotationAttachment extends Annotation implements AnnotationMarkup {
457
+ static $gtype: GObject.GType<AnnotationAttachment>;
458
+
459
+ // Own properties of AtrilDocument.AnnotationAttachment
460
+
461
+ get attachment(): Attachment;
462
+ set attachment(val: Attachment);
463
+
464
+ // Constructors of AtrilDocument.AnnotationAttachment
465
+
466
+ constructor(properties?: Partial<AnnotationAttachment.ConstructorProps>, ...args: any[]);
467
+
468
+ _init(...args: any[]): void;
469
+
470
+ static ['new'](page: Page, attachment: Attachment): AnnotationAttachment;
471
+
472
+ // Own methods of AtrilDocument.AnnotationAttachment
473
+
474
+ get_attachment(): Attachment;
475
+ set_attachment(attachment: Attachment): boolean;
476
+
477
+ // Inherited properties
478
+ // This accessor conflicts with a property or field in a parent class or interface.
479
+ has_popup: boolean | any;
480
+ get hasPopup(): boolean;
481
+ set hasPopup(val: boolean);
482
+ get label(): string;
483
+ set label(val: string);
484
+ get opacity(): number;
485
+ set opacity(val: number);
486
+ get popup_is_open(): boolean;
487
+ set popup_is_open(val: boolean);
488
+ get popupIsOpen(): boolean;
489
+ set popupIsOpen(val: boolean);
490
+ get rectangle(): Rectangle;
491
+ set rectangle(val: Rectangle);
492
+ /**
493
+ * The colour of the annotation as a #GdkColor.
494
+ */
495
+ get color(): any;
496
+ set color(val: any);
497
+ get contents(): string;
498
+ set contents(val: string);
499
+ get modified(): string;
500
+ set modified(val: string);
501
+ get name(): string;
502
+ set name(val: string);
503
+ set page(val: Page);
504
+ /**
505
+ * The colour of the annotation as a #GdkRGBA.
506
+ */
507
+ get rgba(): Gdk.RGBA;
508
+ set rgba(val: Gdk.RGBA);
509
+
510
+ // Inherited methods
511
+ get_label(): string;
512
+ get_opacity(): number;
513
+ get_popup_is_open(): boolean;
514
+ get_rectangle(ev_rect: Rectangle): void;
515
+ set_has_popup(has_popup: boolean): boolean;
516
+ set_label(label: string): boolean;
517
+ set_opacity(opacity: number): boolean;
518
+ set_popup_is_open(is_open: boolean): boolean;
519
+ set_rectangle(ev_rect: Rectangle): boolean;
520
+ /**
521
+ * Compare `annot` and `other`.
522
+ * @param other another #EvAnnotation
523
+ * @returns %TRUE if @annot is equal to @other, %FALSE otherwise
524
+ */
525
+ equal(other: Annotation): boolean;
526
+ get_annotation_type(): AnnotationType;
527
+ /**
528
+ * Get the color of `annot`.
529
+ */
530
+ get_color(): Gdk.Color;
531
+ /**
532
+ * Get the contents of `annot`. The contents of
533
+ * `annot` is the text that is displayed in the annotation, or an
534
+ * alternate description of the annotation's content for non-text annotations
535
+ * @returns a string with the contents of the annotation or %NULL if @annot has no contents.
536
+ */
537
+ get_contents(): string;
538
+ /**
539
+ * Get the last modification date of `annot`.
540
+ * @returns A string containing the last modification date.
541
+ */
542
+ get_modified(): string;
543
+ /**
544
+ * Get the name of `annot`. The name of the annotation is a string
545
+ * that uniquely indenftifies `annot` amongs all the annotations
546
+ * in the same page.
547
+ * @returns the string with the annotation's name.
548
+ */
549
+ get_name(): string;
550
+ /**
551
+ * Get the page where `annot` appears.
552
+ * @returns the #EvPage where @annot appears
553
+ */
554
+ get_page(): Page;
555
+ /**
556
+ * Get the index of the page where `annot` appears. Note that the index
557
+ * is 0 based.
558
+ * @returns the page index.
559
+ */
560
+ get_page_index(): number;
561
+ /**
562
+ * Gets the color of `annot`.
563
+ */
564
+ get_rgba(): Gdk.RGBA;
565
+ /**
566
+ * Set the color of the annotation to `color`. You can monitor
567
+ * changes to the annotation's color by connecting to
568
+ * notify::color signal on `annot`.
569
+ * @param color a #GdkColor
570
+ * @returns %TRUE when the color has been changed, %FALSE otherwise.
571
+ */
572
+ set_color(color: Gdk.Color): boolean;
573
+ /**
574
+ * Set the contents of `annot`. You can monitor
575
+ * changes in the annotation's contents by connecting to
576
+ * notify::contents signal of `annot`.
577
+ * @param contents
578
+ * @returns %TRUE if the contents have been changed, %FALSE otherwise.
579
+ */
580
+ set_contents(contents: string): boolean;
581
+ /**
582
+ * Set the last modification date of `annot` to `modified`. To
583
+ * set the last modification date using a #gint64, use
584
+ * ev_annotation_set_modified_from_time() instead. You can monitor
585
+ * changes to the last modification date by connecting to the
586
+ * notify::modified signal on `annot`.
587
+ * @param modified string with the last modification date.
588
+ * @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
589
+ */
590
+ set_modified(modified: string): boolean;
591
+ /**
592
+ * Set the last modification date of `annot` to `utime`. You can
593
+ * monitor changes to the last modification date by connectin to the
594
+ * notify::modified sinal on `annot`.
595
+ * For the time-format used, see ev_document_misc_format_date().
596
+ * @param utime a #gint64
597
+ * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
598
+ */
599
+ set_modified_from_time(utime: number): boolean;
600
+ /**
601
+ * Set the name of `annot`.
602
+ * You can monitor changes of the annotation name by connecting
603
+ * to the notify::name signal on `annot`.
604
+ * @param name
605
+ * @returns %TRUE when the name has been changed, %FALSE otherwise.
606
+ */
607
+ set_name(name: string): boolean;
608
+ /**
609
+ * Set the color of the annotation to `rgba`.
610
+ * @param rgba a #GdkRGBA
611
+ * @returns %TRUE if the color has been changed, %FALSE otherwise
612
+ */
613
+ set_rgba(rgba: Gdk.RGBA): boolean;
614
+ }
615
+
616
+ module AnnotationText {
617
+ // Constructor properties interface
618
+
619
+ interface ConstructorProps extends Annotation.ConstructorProps, AnnotationMarkup.ConstructorProps {
620
+ icon: AnnotationTextIcon;
621
+ is_open: boolean;
622
+ isOpen: boolean;
623
+ }
624
+ }
625
+
626
+ class AnnotationText extends Annotation implements AnnotationMarkup {
627
+ static $gtype: GObject.GType<AnnotationText>;
628
+
629
+ // Own properties of AtrilDocument.AnnotationText
630
+
631
+ get icon(): AnnotationTextIcon;
632
+ set icon(val: AnnotationTextIcon);
633
+ get is_open(): boolean;
634
+ set is_open(val: boolean);
635
+ get isOpen(): boolean;
636
+ set isOpen(val: boolean);
637
+
638
+ // Constructors of AtrilDocument.AnnotationText
639
+
640
+ constructor(properties?: Partial<AnnotationText.ConstructorProps>, ...args: any[]);
641
+
642
+ _init(...args: any[]): void;
643
+
644
+ static ['new'](page: Page): AnnotationText;
645
+
646
+ // Own methods of AtrilDocument.AnnotationText
647
+
648
+ get_icon(): AnnotationTextIcon;
649
+ get_is_open(): boolean;
650
+ set_icon(icon: AnnotationTextIcon): boolean;
651
+ set_is_open(is_open: boolean): boolean;
652
+
653
+ // Inherited properties
654
+ // This accessor conflicts with a property or field in a parent class or interface.
655
+ has_popup: boolean | any;
656
+ get hasPopup(): boolean;
657
+ set hasPopup(val: boolean);
658
+ get label(): string;
659
+ set label(val: string);
660
+ get opacity(): number;
661
+ set opacity(val: number);
662
+ get popup_is_open(): boolean;
663
+ set popup_is_open(val: boolean);
664
+ get popupIsOpen(): boolean;
665
+ set popupIsOpen(val: boolean);
666
+ get rectangle(): Rectangle;
667
+ set rectangle(val: Rectangle);
668
+ /**
669
+ * The colour of the annotation as a #GdkColor.
670
+ */
671
+ get color(): any;
672
+ set color(val: any);
673
+ get contents(): string;
674
+ set contents(val: string);
675
+ get modified(): string;
676
+ set modified(val: string);
677
+ get name(): string;
678
+ set name(val: string);
679
+ set page(val: Page);
680
+ /**
681
+ * The colour of the annotation as a #GdkRGBA.
682
+ */
683
+ get rgba(): Gdk.RGBA;
684
+ set rgba(val: Gdk.RGBA);
685
+
686
+ // Inherited methods
687
+ get_label(): string;
688
+ get_opacity(): number;
689
+ get_popup_is_open(): boolean;
690
+ get_rectangle(ev_rect: Rectangle): void;
691
+ set_has_popup(has_popup: boolean): boolean;
692
+ set_label(label: string): boolean;
693
+ set_opacity(opacity: number): boolean;
694
+ set_popup_is_open(is_open: boolean): boolean;
695
+ set_rectangle(ev_rect: Rectangle): boolean;
696
+ /**
697
+ * Compare `annot` and `other`.
698
+ * @param other another #EvAnnotation
699
+ * @returns %TRUE if @annot is equal to @other, %FALSE otherwise
700
+ */
701
+ equal(other: Annotation): boolean;
702
+ get_annotation_type(): AnnotationType;
703
+ /**
704
+ * Get the color of `annot`.
705
+ */
706
+ get_color(): Gdk.Color;
707
+ /**
708
+ * Get the contents of `annot`. The contents of
709
+ * `annot` is the text that is displayed in the annotation, or an
710
+ * alternate description of the annotation's content for non-text annotations
711
+ * @returns a string with the contents of the annotation or %NULL if @annot has no contents.
712
+ */
713
+ get_contents(): string;
714
+ /**
715
+ * Get the last modification date of `annot`.
716
+ * @returns A string containing the last modification date.
717
+ */
718
+ get_modified(): string;
719
+ /**
720
+ * Get the name of `annot`. The name of the annotation is a string
721
+ * that uniquely indenftifies `annot` amongs all the annotations
722
+ * in the same page.
723
+ * @returns the string with the annotation's name.
724
+ */
725
+ get_name(): string;
726
+ /**
727
+ * Get the page where `annot` appears.
728
+ * @returns the #EvPage where @annot appears
729
+ */
730
+ get_page(): Page;
731
+ /**
732
+ * Get the index of the page where `annot` appears. Note that the index
733
+ * is 0 based.
734
+ * @returns the page index.
735
+ */
736
+ get_page_index(): number;
737
+ /**
738
+ * Gets the color of `annot`.
739
+ */
740
+ get_rgba(): Gdk.RGBA;
741
+ /**
742
+ * Set the color of the annotation to `color`. You can monitor
743
+ * changes to the annotation's color by connecting to
744
+ * notify::color signal on `annot`.
745
+ * @param color a #GdkColor
746
+ * @returns %TRUE when the color has been changed, %FALSE otherwise.
747
+ */
748
+ set_color(color: Gdk.Color): boolean;
749
+ /**
750
+ * Set the contents of `annot`. You can monitor
751
+ * changes in the annotation's contents by connecting to
752
+ * notify::contents signal of `annot`.
753
+ * @param contents
754
+ * @returns %TRUE if the contents have been changed, %FALSE otherwise.
755
+ */
756
+ set_contents(contents: string): boolean;
757
+ /**
758
+ * Set the last modification date of `annot` to `modified`. To
759
+ * set the last modification date using a #gint64, use
760
+ * ev_annotation_set_modified_from_time() instead. You can monitor
761
+ * changes to the last modification date by connecting to the
762
+ * notify::modified signal on `annot`.
763
+ * @param modified string with the last modification date.
764
+ * @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
765
+ */
766
+ set_modified(modified: string): boolean;
767
+ /**
768
+ * Set the last modification date of `annot` to `utime`. You can
769
+ * monitor changes to the last modification date by connectin to the
770
+ * notify::modified sinal on `annot`.
771
+ * For the time-format used, see ev_document_misc_format_date().
772
+ * @param utime a #gint64
773
+ * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
774
+ */
775
+ set_modified_from_time(utime: number): boolean;
776
+ /**
777
+ * Set the name of `annot`.
778
+ * You can monitor changes of the annotation name by connecting
779
+ * to the notify::name signal on `annot`.
780
+ * @param name
781
+ * @returns %TRUE when the name has been changed, %FALSE otherwise.
782
+ */
783
+ set_name(name: string): boolean;
784
+ /**
785
+ * Set the color of the annotation to `rgba`.
786
+ * @param rgba a #GdkRGBA
787
+ * @returns %TRUE if the color has been changed, %FALSE otherwise
788
+ */
789
+ set_rgba(rgba: Gdk.RGBA): boolean;
790
+ }
791
+
792
+ module Attachment {
793
+ // Constructor properties interface
794
+
795
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
796
+ ctime: number;
797
+ data: any;
798
+ description: string;
799
+ mtime: number;
800
+ name: string;
801
+ size: number;
802
+ }
803
+ }
804
+
805
+ class Attachment extends GObject.Object {
806
+ static $gtype: GObject.GType<Attachment>;
807
+
808
+ // Own properties of AtrilDocument.Attachment
809
+
810
+ set ctime(val: number);
811
+ set data(val: any);
812
+ set description(val: string);
813
+ set mtime(val: number);
814
+ set name(val: string);
815
+ set size(val: number);
816
+
817
+ // Own fields of AtrilDocument.Attachment
818
+
819
+ base_instance: GObject.Object;
820
+
821
+ // Constructors of AtrilDocument.Attachment
822
+
823
+ constructor(properties?: Partial<Attachment.ConstructorProps>, ...args: any[]);
824
+
825
+ _init(...args: any[]): void;
826
+
827
+ static ['new'](
828
+ name: string,
829
+ description: string,
830
+ mtime: number,
831
+ ctime: number,
832
+ size: number,
833
+ data?: any | null,
834
+ ): Attachment;
835
+
836
+ // Own static methods of AtrilDocument.Attachment
837
+
838
+ static error_quark(): GLib.Quark;
839
+
840
+ // Own methods of AtrilDocument.Attachment
841
+
842
+ get_creation_date(): number;
843
+ get_description(): string;
844
+ get_mime_type(): string;
845
+ get_modification_date(): number;
846
+ get_name(): string;
847
+ open(screen: Gdk.Screen, timestamp: number): boolean;
848
+ save(file: Gio.File): boolean;
849
+ }
850
+
851
+ module Document {
852
+ // Constructor properties interface
853
+
854
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
855
+ }
856
+
857
+ abstract class Document extends GObject.Object {
858
+ static $gtype: GObject.GType<Document>;
859
+
860
+ // Own fields of AtrilDocument.Document
861
+
862
+ base: GObject.Object;
863
+ iswebdocument: boolean;
864
+ synctex_version: string;
865
+
866
+ // Constructors of AtrilDocument.Document
867
+
868
+ constructor(properties?: Partial<Document.ConstructorProps>, ...args: any[]);
869
+
870
+ _init(...args: any[]): void;
871
+
872
+ // Own static methods of AtrilDocument.Document
873
+
874
+ static doc_mutex_lock(): void;
875
+ static doc_mutex_trylock(): boolean;
876
+ static doc_mutex_unlock(): void;
877
+ /**
878
+ * Adds some file filters to `chooser`.
879
+ *
880
+ * Always add a "All documents" format.
881
+ *
882
+ * If `document` is not %NULL, adds a #GtkFileFilter for `document'`s MIME type.
883
+ *
884
+ * If `document` is %NULL, adds a #GtkFileFilter for each document type that atril
885
+ * can handle.
886
+ * @param chooser a #GtkFileChooser
887
+ * @param document a #EvDocument, or %NULL
888
+ */
889
+ static factory_add_filters(chooser: Gtk.Widget, document: Document): void;
890
+ /**
891
+ * Creates a #EvDocument for the document at `uri;` or, if no backend handling
892
+ * the document's type is found, or an error occurred on opening the document,
893
+ * returns %NULL and fills in `error`.
894
+ * If the document is encrypted, it is returned but also `error` is set to
895
+ * %EV_DOCUMENT_ERROR_ENCRYPTED.
896
+ * @param uri an URI
897
+ */
898
+ static factory_get_document(uri: string): Document;
899
+ static fc_mutex_lock(): void;
900
+ static fc_mutex_trylock(): boolean;
901
+ static fc_mutex_unlock(): void;
902
+ static misc_format_date(utime: number): string;
903
+ static misc_get_loading_thumbnail(width: number, height: number, inverted_colors: boolean): GdkPixbuf.Pixbuf;
904
+ static misc_get_monitor_dpi(monitor: Gdk.Monitor): number;
905
+ static misc_get_page_border_size(page_width: number, page_height: number, border: Gtk.Border): void;
906
+ static misc_get_pointer_position(widget: Gtk.Widget, x: number, y: number): void;
907
+ static misc_get_thumbnail_frame(
908
+ width: number,
909
+ height: number,
910
+ source_pixbuf: GdkPixbuf.Pixbuf,
911
+ ): GdkPixbuf.Pixbuf;
912
+ static misc_invert_pixbuf(pixbuf: GdkPixbuf.Pixbuf): void;
913
+ static misc_invert_surface(surface: cairo.Surface): void;
914
+ static misc_paint_one_page(
915
+ cr: cairo.Context,
916
+ widget: Gtk.Widget,
917
+ area: Gdk.Rectangle,
918
+ border: Gtk.Border,
919
+ highlight: boolean,
920
+ inverted_colors: boolean,
921
+ ): void;
922
+ static misc_pixbuf_from_surface(surface: cairo.Surface): GdkPixbuf.Pixbuf;
923
+ static misc_surface_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf): cairo.Surface;
924
+ static misc_surface_rotate_and_scale(
925
+ surface: cairo.Surface,
926
+ dest_width: number,
927
+ dest_height: number,
928
+ dest_rotation: number,
929
+ ): cairo.Surface;
930
+
931
+ // Own virtual methods of AtrilDocument.Document
932
+
933
+ vfunc_check_add_night_sheet(): void;
934
+ vfunc_get_backend_info(info: DocumentBackendInfo): boolean;
935
+ vfunc_get_info(): DocumentInfo;
936
+ vfunc_get_n_pages(): number;
937
+ vfunc_get_page_label(page: Page): string;
938
+ vfunc_get_page_size(page: Page, width: number, height: number): void;
939
+ /**
940
+ * Loads `document` from `uri`.
941
+ *
942
+ * On failure, %FALSE is returned and `error` is filled in.
943
+ * If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
944
+ * If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
945
+ * is returned. Other errors are possible too, depending on the backend
946
+ * used to load the document and the URI, e.g. #GIOError, #GFileError, and
947
+ * #GConvertError.
948
+ * @param uri the document's URI
949
+ */
950
+ vfunc_load(uri: string): boolean;
951
+ vfunc_render(rc: RenderContext): cairo.Surface;
952
+ /**
953
+ * Saves `document` to `uri`.
954
+ * @param uri the target URI
955
+ */
956
+ vfunc_save(uri: string): boolean;
957
+ vfunc_support_synctex(): boolean;
958
+ vfunc_toggle_night_mode(night: boolean): void;
959
+
960
+ // Own methods of AtrilDocument.Document
961
+
962
+ check_add_night_sheet(): void;
963
+ check_dimensions(): boolean;
964
+ find_page_by_label(page_label: string, page_index: number): boolean;
965
+ get_backend_info(info: DocumentBackendInfo): boolean;
966
+ get_info(): DocumentInfo;
967
+ get_max_label_len(): number;
968
+ get_max_page_size(width: number, height: number): void;
969
+ get_min_page_size(width: number, height: number): void;
970
+ get_n_pages(): number;
971
+ get_page_label(page_index: number): string;
972
+ get_page_size(page_index: number, width: number, height: number): void;
973
+ get_title(): string;
974
+ get_uri(): string;
975
+ has_synctex(): boolean;
976
+ has_text_page_labels(): boolean;
977
+ is_page_size_uniform(): boolean;
978
+ /**
979
+ * Loads `document` from `uri`.
980
+ *
981
+ * On failure, %FALSE is returned and `error` is filled in.
982
+ * If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
983
+ * If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
984
+ * is returned. Other errors are possible too, depending on the backend
985
+ * used to load the document and the URI, e.g. #GIOError, #GFileError, and
986
+ * #GConvertError.
987
+ * @param uri the document's URI
988
+ * @returns %TRUE on success, or %FALSE on failure.
989
+ */
990
+ load(uri: string): boolean;
991
+ render(rc: RenderContext): cairo.Surface;
992
+ /**
993
+ * Saves `document` to `uri`.
994
+ * @param uri the target URI
995
+ * @returns %TRUE on success, or %FALSE on error with @error filled in
996
+ */
997
+ save(uri: string): boolean;
998
+ /**
999
+ * Peforms a Synctex backward search to obtain the TeX input file, line and
1000
+ * (possibly) column corresponding to the position (`x,``y)` (in 72dpi
1001
+ * coordinates) in the `page` of `document`.
1002
+ * @param page_index
1003
+ * @param x
1004
+ * @param y
1005
+ * @returns A pointer to the EvSourceLink structure that holds the result. @NULL if synctex is not enabled for the document or no result is found. The EvSourceLink pointer should be freed with g_free after it is used.
1006
+ */
1007
+ synctex_backward_search(page_index: number, x: number, y: number): SourceLink;
1008
+ toggle_night_mode(night: boolean): void;
1009
+ }
1010
+
1011
+ module FormField {
1012
+ // Constructor properties interface
1013
+
1014
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1015
+ }
1016
+
1017
+ abstract class FormField extends GObject.Object {
1018
+ static $gtype: GObject.GType<FormField>;
1019
+
1020
+ // Own fields of AtrilDocument.FormField
1021
+
1022
+ id: number;
1023
+ is_read_only: boolean;
1024
+ font_size: number;
1025
+ activation_link: Link;
1026
+ page: Page;
1027
+ changed: boolean;
1028
+
1029
+ // Constructors of AtrilDocument.FormField
1030
+
1031
+ constructor(properties?: Partial<FormField.ConstructorProps>, ...args: any[]);
1032
+
1033
+ _init(...args: any[]): void;
1034
+ }
1035
+
1036
+ module FormFieldButton {
1037
+ // Constructor properties interface
1038
+
1039
+ interface ConstructorProps extends FormField.ConstructorProps {}
1040
+ }
1041
+
1042
+ class FormFieldButton extends FormField {
1043
+ static $gtype: GObject.GType<FormFieldButton>;
1044
+
1045
+ // Own fields of AtrilDocument.FormFieldButton
1046
+
1047
+ partent: FormField;
1048
+ type: FormFieldButtonType;
1049
+ state: boolean;
1050
+
1051
+ // Constructors of AtrilDocument.FormFieldButton
1052
+
1053
+ constructor(properties?: Partial<FormFieldButton.ConstructorProps>, ...args: any[]);
1054
+
1055
+ _init(...args: any[]): void;
1056
+
1057
+ static ['new'](id: number, type: FormFieldButtonType): FormFieldButton;
1058
+ }
1059
+
1060
+ module FormFieldChoice {
1061
+ // Constructor properties interface
1062
+
1063
+ interface ConstructorProps extends FormField.ConstructorProps {}
1064
+ }
1065
+
1066
+ class FormFieldChoice extends FormField {
1067
+ static $gtype: GObject.GType<FormFieldChoice>;
1068
+
1069
+ // Own fields of AtrilDocument.FormFieldChoice
1070
+
1071
+ partent: FormField;
1072
+ type: FormFieldChoiceType;
1073
+ multi_select: boolean;
1074
+ is_editable: boolean;
1075
+ do_spell_check: boolean;
1076
+ commit_on_sel_change: boolean;
1077
+ selected_items: any[];
1078
+ text: string;
1079
+
1080
+ // Constructors of AtrilDocument.FormFieldChoice
1081
+
1082
+ constructor(properties?: Partial<FormFieldChoice.ConstructorProps>, ...args: any[]);
1083
+
1084
+ _init(...args: any[]): void;
1085
+
1086
+ static ['new'](id: number, type: FormFieldChoiceType): FormFieldChoice;
1087
+ }
1088
+
1089
+ module FormFieldSignature {
1090
+ // Constructor properties interface
1091
+
1092
+ interface ConstructorProps extends FormField.ConstructorProps {}
1093
+ }
1094
+
1095
+ class FormFieldSignature extends FormField {
1096
+ static $gtype: GObject.GType<FormFieldSignature>;
1097
+
1098
+ // Own fields of AtrilDocument.FormFieldSignature
1099
+
1100
+ partent: FormField;
1101
+
1102
+ // Constructors of AtrilDocument.FormFieldSignature
1103
+
1104
+ constructor(properties?: Partial<FormFieldSignature.ConstructorProps>, ...args: any[]);
1105
+
1106
+ _init(...args: any[]): void;
1107
+
1108
+ static ['new'](id: number): FormFieldSignature;
1109
+ }
1110
+
1111
+ module FormFieldText {
1112
+ // Constructor properties interface
1113
+
1114
+ interface ConstructorProps extends FormField.ConstructorProps {}
1115
+ }
1116
+
1117
+ class FormFieldText extends FormField {
1118
+ static $gtype: GObject.GType<FormFieldText>;
1119
+
1120
+ // Own fields of AtrilDocument.FormFieldText
1121
+
1122
+ partent: FormField;
1123
+ type: FormFieldTextType;
1124
+ do_spell_check: boolean;
1125
+ do_scroll: boolean;
1126
+ comb: boolean;
1127
+ is_rich_text: boolean;
1128
+ is_password: boolean;
1129
+ max_len: number;
1130
+ text: string;
1131
+
1132
+ // Constructors of AtrilDocument.FormFieldText
1133
+
1134
+ constructor(properties?: Partial<FormFieldText.ConstructorProps>, ...args: any[]);
1135
+
1136
+ _init(...args: any[]): void;
1137
+
1138
+ static ['new'](id: number, type: FormFieldTextType): FormFieldText;
1139
+ }
1140
+
1141
+ module Image {
1142
+ // Constructor properties interface
1143
+
1144
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1145
+ }
1146
+
1147
+ class Image extends GObject.Object {
1148
+ static $gtype: GObject.GType<Image>;
1149
+
1150
+ // Own fields of AtrilDocument.Image
1151
+
1152
+ base_instance: GObject.Object;
1153
+
1154
+ // Constructors of AtrilDocument.Image
1155
+
1156
+ constructor(properties?: Partial<Image.ConstructorProps>, ...args: any[]);
1157
+
1158
+ _init(...args: any[]): void;
1159
+
1160
+ static ['new'](page: number, img_id: number): Image;
1161
+
1162
+ static new_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf): Image;
1163
+
1164
+ // Own methods of AtrilDocument.Image
1165
+
1166
+ get_id(): number;
1167
+ get_page(): number;
1168
+ get_tmp_uri(): string;
1169
+ save_tmp(pixbuf: GdkPixbuf.Pixbuf): string;
1170
+ }
1171
+
1172
+ module Layer {
1173
+ // Constructor properties interface
1174
+
1175
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1176
+ }
1177
+
1178
+ class Layer extends GObject.Object {
1179
+ static $gtype: GObject.GType<Layer>;
1180
+
1181
+ // Own fields of AtrilDocument.Layer
1182
+
1183
+ base_instance: GObject.Object;
1184
+
1185
+ // Constructors of AtrilDocument.Layer
1186
+
1187
+ constructor(properties?: Partial<Layer.ConstructorProps>, ...args: any[]);
1188
+
1189
+ _init(...args: any[]): void;
1190
+
1191
+ static ['new'](is_parent: boolean, rb_group: number): Layer;
1192
+
1193
+ // Own methods of AtrilDocument.Layer
1194
+
1195
+ get_rb_group(): number;
1196
+ is_parent(): boolean;
1197
+ }
1198
+
1199
+ module Link {
1200
+ // Constructor properties interface
1201
+
1202
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
1203
+ action: any;
1204
+ title: string;
1205
+ }
1206
+ }
1207
+
1208
+ class Link extends GObject.Object {
1209
+ static $gtype: GObject.GType<Link>;
1210
+
1211
+ // Own properties of AtrilDocument.Link
1212
+
1213
+ get action(): any;
1214
+ get title(): string;
1215
+
1216
+ // Constructors of AtrilDocument.Link
1217
+
1218
+ constructor(properties?: Partial<Link.ConstructorProps>, ...args: any[]);
1219
+
1220
+ _init(...args: any[]): void;
1221
+
1222
+ static ['new'](title: string, action: LinkAction): Link;
1223
+
1224
+ // Own methods of AtrilDocument.Link
1225
+
1226
+ get_title(): string;
1227
+ }
1228
+
1229
+ module LinkAction {
1230
+ // Constructor properties interface
1231
+
1232
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
1233
+ dest: any;
1234
+ filename: string;
1235
+ hide_list: any;
1236
+ hideList: any;
1237
+ name: string;
1238
+ params: string;
1239
+ show_list: any;
1240
+ showList: any;
1241
+ toggle_list: any;
1242
+ toggleList: any;
1243
+ type: LinkActionType;
1244
+ uri: string;
1245
+ }
1246
+ }
1247
+
1248
+ class LinkAction extends GObject.Object {
1249
+ static $gtype: GObject.GType<LinkAction>;
1250
+
1251
+ // Own properties of AtrilDocument.LinkAction
1252
+
1253
+ get dest(): any;
1254
+ get filename(): string;
1255
+ get hide_list(): any;
1256
+ get hideList(): any;
1257
+ get name(): string;
1258
+ get params(): string;
1259
+ get show_list(): any;
1260
+ get showList(): any;
1261
+ get toggle_list(): any;
1262
+ get toggleList(): any;
1263
+ get type(): LinkActionType;
1264
+ get uri(): string;
1265
+
1266
+ // Constructors of AtrilDocument.LinkAction
1267
+
1268
+ constructor(properties?: Partial<LinkAction.ConstructorProps>, ...args: any[]);
1269
+
1270
+ _init(...args: any[]): void;
1271
+
1272
+ static new_dest(dest: LinkDest): LinkAction;
1273
+
1274
+ static new_external_uri(uri: string): LinkAction;
1275
+
1276
+ static new_launch(filename: string, params: string): LinkAction;
1277
+
1278
+ static new_named(name: string): LinkAction;
1279
+
1280
+ static new_remote(dest: LinkDest, filename: string): LinkAction;
1281
+
1282
+ // Own methods of AtrilDocument.LinkAction
1283
+
1284
+ get_action_type(): LinkActionType;
1285
+ get_filename(): string;
1286
+ get_name(): string;
1287
+ get_params(): string;
1288
+ get_uri(): string;
1289
+ }
1290
+
1291
+ module LinkDest {
1292
+ // Constructor properties interface
1293
+
1294
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
1295
+ bottom: number;
1296
+ change: number;
1297
+ left: number;
1298
+ named: string;
1299
+ page: number;
1300
+ page_label: string;
1301
+ pageLabel: string;
1302
+ right: number;
1303
+ top: number;
1304
+ type: LinkDestType;
1305
+ zoom: number;
1306
+ }
1307
+ }
1308
+
1309
+ class LinkDest extends GObject.Object {
1310
+ static $gtype: GObject.GType<LinkDest>;
1311
+
1312
+ // Own properties of AtrilDocument.LinkDest
1313
+
1314
+ get bottom(): number;
1315
+ get change(): number;
1316
+ get left(): number;
1317
+ get named(): string;
1318
+ get page(): number;
1319
+ get page_label(): string;
1320
+ get pageLabel(): string;
1321
+ get right(): number;
1322
+ get top(): number;
1323
+ get type(): LinkDestType;
1324
+ get zoom(): number;
1325
+
1326
+ // Constructors of AtrilDocument.LinkDest
1327
+
1328
+ constructor(properties?: Partial<LinkDest.ConstructorProps>, ...args: any[]);
1329
+
1330
+ _init(...args: any[]): void;
1331
+
1332
+ static new_fit(page: number): LinkDest;
1333
+
1334
+ static new_fith(page: number, top: number, change_top: boolean): LinkDest;
1335
+
1336
+ static new_fitr(page: number, left: number, bottom: number, right: number, top: number): LinkDest;
1337
+
1338
+ static new_fitv(page: number, left: number, change_left: boolean): LinkDest;
1339
+
1340
+ static new_hlink(hlink: string, page: number): LinkDest;
1341
+
1342
+ static new_named(named_dest: string): LinkDest;
1343
+
1344
+ static new_page(page: number): LinkDest;
1345
+
1346
+ static new_page_label(page_label: string): LinkDest;
1347
+
1348
+ static new_xyz(
1349
+ page: number,
1350
+ left: number,
1351
+ top: number,
1352
+ zoom: number,
1353
+ change_left: boolean,
1354
+ change_top: boolean,
1355
+ change_zoom: boolean,
1356
+ ): LinkDest;
1357
+
1358
+ // Own methods of AtrilDocument.LinkDest
1359
+
1360
+ get_bottom(): number;
1361
+ get_dest_type(): LinkDestType;
1362
+ get_left(change_left: boolean): number;
1363
+ get_named_dest(): string;
1364
+ get_page(): number;
1365
+ get_page_label(): string;
1366
+ get_right(): number;
1367
+ get_top(change_top: boolean): number;
1368
+ get_zoom(change_zoom: boolean): number;
1369
+ }
1370
+
1371
+ module Page {
1372
+ // Constructor properties interface
1373
+
1374
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1375
+ }
1376
+
1377
+ class Page extends GObject.Object {
1378
+ static $gtype: GObject.GType<Page>;
1379
+
1380
+ // Own fields of AtrilDocument.Page
1381
+
1382
+ base_instance: GObject.Object;
1383
+ index: number;
1384
+ backend_page: BackendPage;
1385
+ backend_destroy_func: BackendPageDestroyFunc;
1386
+
1387
+ // Constructors of AtrilDocument.Page
1388
+
1389
+ constructor(properties?: Partial<Page.ConstructorProps>, ...args: any[]);
1390
+
1391
+ _init(...args: any[]): void;
1392
+
1393
+ static ['new'](index: number): Page;
1394
+ }
1395
+
1396
+ module RenderContext {
1397
+ // Constructor properties interface
1398
+
1399
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1400
+ }
1401
+
1402
+ class RenderContext extends GObject.Object {
1403
+ static $gtype: GObject.GType<RenderContext>;
1404
+
1405
+ // Own fields of AtrilDocument.RenderContext
1406
+
1407
+ page: Page;
1408
+ rotation: number;
1409
+ scale: number;
1410
+
1411
+ // Constructors of AtrilDocument.RenderContext
1412
+
1413
+ constructor(properties?: Partial<RenderContext.ConstructorProps>, ...args: any[]);
1414
+
1415
+ _init(...args: any[]): void;
1416
+
1417
+ static ['new'](page: Page, rotation: number, scale: number): RenderContext;
1418
+
1419
+ // Own methods of AtrilDocument.RenderContext
1420
+
1421
+ set_page(page: Page): void;
1422
+ set_rotation(rotation: number): void;
1423
+ set_scale(scale: number): void;
1424
+ }
1425
+
1426
+ module TransitionEffect {
1427
+ // Constructor properties interface
1428
+
1429
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
1430
+ alignment: TransitionEffectAlignment;
1431
+ angle: number;
1432
+ direction: TransitionEffectDirection;
1433
+ duration: number;
1434
+ rectangular: boolean;
1435
+ scale: number;
1436
+ type: TransitionEffectType;
1437
+ }
1438
+ }
1439
+
1440
+ class TransitionEffect extends GObject.Object {
1441
+ static $gtype: GObject.GType<TransitionEffect>;
1442
+
1443
+ // Own properties of AtrilDocument.TransitionEffect
1444
+
1445
+ get alignment(): TransitionEffectAlignment;
1446
+ set alignment(val: TransitionEffectAlignment);
1447
+ get angle(): number;
1448
+ set angle(val: number);
1449
+ get direction(): TransitionEffectDirection;
1450
+ set direction(val: TransitionEffectDirection);
1451
+ get duration(): number;
1452
+ set duration(val: number);
1453
+ get rectangular(): boolean;
1454
+ set rectangular(val: boolean);
1455
+ get scale(): number;
1456
+ set scale(val: number);
1457
+ get type(): TransitionEffectType;
1458
+ set type(val: TransitionEffectType);
1459
+
1460
+ // Constructors of AtrilDocument.TransitionEffect
1461
+
1462
+ constructor(properties?: Partial<TransitionEffect.ConstructorProps>, ...args: any[]);
1463
+
1464
+ _init(...args: any[]): void;
1465
+ }
1466
+
1467
+ type AnnotationAttachmentClass = typeof AnnotationAttachment;
1468
+ type AnnotationClass = typeof Annotation;
1469
+ type AnnotationMarkupInterface = typeof AnnotationMarkup;
1470
+ type AnnotationTextClass = typeof AnnotationText;
1471
+ type AsyncRendererInterface = typeof AsyncRenderer;
1472
+ type AttachmentClass = typeof Attachment;
1473
+ abstract class AttachmentPrivate {
1474
+ static $gtype: GObject.GType<AttachmentPrivate>;
1475
+
1476
+ // Constructors of AtrilDocument.AttachmentPrivate
1477
+
1478
+ _init(...args: any[]): void;
1479
+ }
1480
+
1481
+ type DocumentAnnotationsInterface = typeof DocumentAnnotations;
1482
+ type DocumentAttachmentsInterface = typeof DocumentAttachments;
1483
+ class DocumentBackendInfo {
1484
+ static $gtype: GObject.GType<DocumentBackendInfo>;
1485
+
1486
+ // Own fields of AtrilDocument.DocumentBackendInfo
1487
+
1488
+ name: string;
1489
+ version: string;
1490
+
1491
+ // Constructors of AtrilDocument.DocumentBackendInfo
1492
+
1493
+ constructor(
1494
+ properties?: Partial<{
1495
+ name: string;
1496
+ version: string;
1497
+ }>,
1498
+ );
1499
+ _init(...args: any[]): void;
1500
+ }
1501
+
1502
+ type DocumentClass = typeof Document;
1503
+ type DocumentFindInterface = typeof DocumentFind;
1504
+ type DocumentFontsInterface = typeof DocumentFonts;
1505
+ type DocumentFormsInterface = typeof DocumentForms;
1506
+ type DocumentImagesInterface = typeof DocumentImages;
1507
+ class DocumentInfo {
1508
+ static $gtype: GObject.GType<DocumentInfo>;
1509
+
1510
+ // Own fields of AtrilDocument.DocumentInfo
1511
+
1512
+ title: string;
1513
+ format: string;
1514
+ author: string;
1515
+ subject: string;
1516
+ keywords: string;
1517
+ creator: string;
1518
+ producer: string;
1519
+ linearized: string;
1520
+ security: string;
1521
+ creation_date: number;
1522
+ modified_date: number;
1523
+ layout: DocumentLayout;
1524
+ mode: DocumentMode;
1525
+ ui_hints: number;
1526
+ permissions: number;
1527
+ n_pages: number;
1528
+ paper_height: number;
1529
+ paper_width: number;
1530
+ license: DocumentLicense;
1531
+ fields_mask: number;
1532
+
1533
+ // Constructors of AtrilDocument.DocumentInfo
1534
+
1535
+ _init(...args: any[]): void;
1536
+
1537
+ // Own methods of AtrilDocument.DocumentInfo
1538
+
1539
+ copy(): DocumentInfo;
1540
+ free(): void;
1541
+ }
1542
+
1543
+ type DocumentLayersInterface = typeof DocumentLayers;
1544
+ class DocumentLicense {
1545
+ static $gtype: GObject.GType<DocumentLicense>;
1546
+
1547
+ // Own fields of AtrilDocument.DocumentLicense
1548
+
1549
+ text: string;
1550
+ uri: string;
1551
+ web_statement: string;
1552
+
1553
+ // Constructors of AtrilDocument.DocumentLicense
1554
+
1555
+ constructor(
1556
+ properties?: Partial<{
1557
+ text: string;
1558
+ uri: string;
1559
+ web_statement: string;
1560
+ }>,
1561
+ );
1562
+ _init(...args: any[]): void;
1563
+
1564
+ static ['new'](): DocumentLicense;
1565
+
1566
+ // Own methods of AtrilDocument.DocumentLicense
1567
+
1568
+ copy(): DocumentLicense;
1569
+ free(): void;
1570
+ get_text(): string;
1571
+ get_uri(): string;
1572
+ get_web_statement(): string;
1573
+ }
1574
+
1575
+ type DocumentLinksInterface = typeof DocumentLinks;
1576
+ type DocumentPrintInterface = typeof DocumentPrint;
1577
+ abstract class DocumentPrivate {
1578
+ static $gtype: GObject.GType<DocumentPrivate>;
1579
+
1580
+ // Constructors of AtrilDocument.DocumentPrivate
1581
+
1582
+ _init(...args: any[]): void;
1583
+ }
1584
+
1585
+ type DocumentSecurityInterface = typeof DocumentSecurity;
1586
+ type DocumentTextInterface = typeof DocumentText;
1587
+ type DocumentThumbnailsInterface = typeof DocumentThumbnails;
1588
+ type DocumentTransitionInterface = typeof DocumentTransition;
1589
+ class FileExporterContext {
1590
+ static $gtype: GObject.GType<FileExporterContext>;
1591
+
1592
+ // Own fields of AtrilDocument.FileExporterContext
1593
+
1594
+ format: FileExporterFormat;
1595
+ filename: string;
1596
+ first_page: number;
1597
+ last_page: number;
1598
+ paper_width: number;
1599
+ paper_height: number;
1600
+ duplex: boolean;
1601
+ pages_per_sheet: number;
1602
+
1603
+ // Constructors of AtrilDocument.FileExporterContext
1604
+
1605
+ _init(...args: any[]): void;
1606
+ }
1607
+
1608
+ type FileExporterInterface = typeof FileExporter;
1609
+ type FormFieldButtonClass = typeof FormFieldButton;
1610
+ type FormFieldChoiceClass = typeof FormFieldChoice;
1611
+ type FormFieldClass = typeof FormField;
1612
+ type FormFieldSignatureClass = typeof FormFieldSignature;
1613
+ type FormFieldTextClass = typeof FormFieldText;
1614
+ type ImageClass = typeof Image;
1615
+ abstract class ImagePrivate {
1616
+ static $gtype: GObject.GType<ImagePrivate>;
1617
+
1618
+ // Constructors of AtrilDocument.ImagePrivate
1619
+
1620
+ _init(...args: any[]): void;
1621
+ }
1622
+
1623
+ type LayerClass = typeof Layer;
1624
+ abstract class LayerPrivate {
1625
+ static $gtype: GObject.GType<LayerPrivate>;
1626
+
1627
+ // Constructors of AtrilDocument.LayerPrivate
1628
+
1629
+ _init(...args: any[]): void;
1630
+ }
1631
+
1632
+ type LinkActionClass = typeof LinkAction;
1633
+ abstract class LinkActionPrivate {
1634
+ static $gtype: GObject.GType<LinkActionPrivate>;
1635
+
1636
+ // Constructors of AtrilDocument.LinkActionPrivate
1637
+
1638
+ _init(...args: any[]): void;
1639
+ }
1640
+
1641
+ type LinkClass = typeof Link;
1642
+ type LinkDestClass = typeof LinkDest;
1643
+ abstract class LinkDestPrivate {
1644
+ static $gtype: GObject.GType<LinkDestPrivate>;
1645
+
1646
+ // Constructors of AtrilDocument.LinkDestPrivate
1647
+
1648
+ _init(...args: any[]): void;
1649
+ }
1650
+
1651
+ abstract class LinkPrivate {
1652
+ static $gtype: GObject.GType<LinkPrivate>;
1653
+
1654
+ // Constructors of AtrilDocument.LinkPrivate
1655
+
1656
+ _init(...args: any[]): void;
1657
+ }
1658
+
1659
+ class Mapping {
1660
+ static $gtype: GObject.GType<Mapping>;
1661
+
1662
+ // Own fields of AtrilDocument.Mapping
1663
+
1664
+ area: Rectangle;
1665
+ data: any;
1666
+
1667
+ // Constructors of AtrilDocument.Mapping
1668
+
1669
+ constructor(
1670
+ properties?: Partial<{
1671
+ area: Rectangle;
1672
+ data: any;
1673
+ }>,
1674
+ );
1675
+ _init(...args: any[]): void;
1676
+ }
1677
+
1678
+ class MappingList {
1679
+ static $gtype: GObject.GType<MappingList>;
1680
+
1681
+ // Constructors of AtrilDocument.MappingList
1682
+
1683
+ constructor(page: number, list: Mapping[]);
1684
+ _init(...args: any[]): void;
1685
+
1686
+ static ['new'](page: number, list: Mapping[]): MappingList;
1687
+
1688
+ // Own methods of AtrilDocument.MappingList
1689
+
1690
+ find(data?: any | null): Mapping;
1691
+ find_custom(data: any | null, func: GLib.CompareFunc): Mapping;
1692
+ get(x: number, y: number): Mapping;
1693
+ get_data(x: number, y: number): any | null;
1694
+ get_list(): Mapping[];
1695
+ get_page(): number;
1696
+ length(): number;
1697
+ nth(n: number): Mapping;
1698
+ ref(): MappingList;
1699
+ remove(mapping: Mapping): void;
1700
+ unref(): void;
1701
+ }
1702
+
1703
+ type PageClass = typeof Page;
1704
+ class Point {
1705
+ static $gtype: GObject.GType<Point>;
1706
+
1707
+ // Own fields of AtrilDocument.Point
1708
+
1709
+ x: number;
1710
+ y: number;
1711
+
1712
+ // Constructors of AtrilDocument.Point
1713
+
1714
+ constructor(
1715
+ properties?: Partial<{
1716
+ x: number;
1717
+ y: number;
1718
+ }>,
1719
+ );
1720
+ _init(...args: any[]): void;
1721
+ }
1722
+
1723
+ class Rectangle {
1724
+ static $gtype: GObject.GType<Rectangle>;
1725
+
1726
+ // Own fields of AtrilDocument.Rectangle
1727
+
1728
+ x1: number;
1729
+ y1: number;
1730
+ x2: number;
1731
+ y2: number;
1732
+
1733
+ // Constructors of AtrilDocument.Rectangle
1734
+
1735
+ constructor(
1736
+ properties?: Partial<{
1737
+ x1: number;
1738
+ y1: number;
1739
+ x2: number;
1740
+ y2: number;
1741
+ }>,
1742
+ );
1743
+ _init(...args: any[]): void;
1744
+
1745
+ static ['new'](): Rectangle;
1746
+
1747
+ // Own methods of AtrilDocument.Rectangle
1748
+
1749
+ copy(): Rectangle;
1750
+ free(): void;
1751
+ }
1752
+
1753
+ type RenderContextClass = typeof RenderContext;
1754
+ type SelectionInterface = typeof Selection;
1755
+ class SourceLink {
1756
+ static $gtype: GObject.GType<SourceLink>;
1757
+
1758
+ // Own fields of AtrilDocument.SourceLink
1759
+
1760
+ filename: string;
1761
+ line: number;
1762
+ col: number;
1763
+
1764
+ // Constructors of AtrilDocument.SourceLink
1765
+
1766
+ constructor(
1767
+ properties?: Partial<{
1768
+ filename: string;
1769
+ line: number;
1770
+ col: number;
1771
+ }>,
1772
+ );
1773
+ _init(...args: any[]): void;
1774
+
1775
+ static ['new'](filename: string, line: number, col: number): SourceLink;
1776
+
1777
+ // Own methods of AtrilDocument.SourceLink
1778
+
1779
+ copy(): SourceLink;
1780
+ free(): void;
1781
+ }
1782
+
1783
+ type TransitionEffectClass = typeof TransitionEffect;
1784
+ class TypeInfo {
1785
+ static $gtype: GObject.GType<TypeInfo>;
1786
+
1787
+ // Own fields of AtrilDocument.TypeInfo
1788
+
1789
+ desc: string;
1790
+ mime_types: string;
1791
+
1792
+ // Constructors of AtrilDocument.TypeInfo
1793
+
1794
+ constructor(
1795
+ properties?: Partial<{
1796
+ desc: string;
1797
+ mime_types: string;
1798
+ }>,
1799
+ );
1800
+ _init(...args: any[]): void;
1801
+ }
1802
+
1803
+ module AnnotationMarkup {
1804
+ // Constructor properties interface
1805
+
1806
+ interface ConstructorProps extends Annotation.ConstructorProps {
1807
+ has_popup: boolean;
1808
+ hasPopup: boolean;
1809
+ label: string;
1810
+ opacity: number;
1811
+ popup_is_open: boolean;
1812
+ popupIsOpen: boolean;
1813
+ rectangle: Rectangle;
1814
+ }
1815
+ }
1816
+
1817
+ export interface AnnotationMarkupNamespace {
1818
+ $gtype: GObject.GType<AnnotationMarkup>;
1819
+ prototype: AnnotationMarkup;
1820
+ }
1821
+ interface AnnotationMarkup extends Annotation {
1822
+ // Own properties of AtrilDocument.AnnotationMarkup
1823
+
1824
+ get has_popup(): boolean;
1825
+ set has_popup(val: boolean);
1826
+ get hasPopup(): boolean;
1827
+ set hasPopup(val: boolean);
1828
+ get label(): string;
1829
+ set label(val: string);
1830
+ get opacity(): number;
1831
+ set opacity(val: number);
1832
+ get popup_is_open(): boolean;
1833
+ set popup_is_open(val: boolean);
1834
+ get popupIsOpen(): boolean;
1835
+ set popupIsOpen(val: boolean);
1836
+ get rectangle(): Rectangle;
1837
+ set rectangle(val: Rectangle);
1838
+
1839
+ // Own methods of AtrilDocument.AnnotationMarkup
1840
+
1841
+ get_label(): string;
1842
+ get_opacity(): number;
1843
+ get_popup_is_open(): boolean;
1844
+ get_rectangle(ev_rect: Rectangle): void;
1845
+ set_has_popup(has_popup: boolean): boolean;
1846
+ set_label(label: string): boolean;
1847
+ set_opacity(opacity: number): boolean;
1848
+ set_popup_is_open(is_open: boolean): boolean;
1849
+ set_rectangle(ev_rect: Rectangle): boolean;
1850
+ }
1851
+
1852
+ export const AnnotationMarkup: AnnotationMarkupNamespace;
1853
+
1854
+ module AsyncRenderer {
1855
+ // Constructor properties interface
1856
+
1857
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1858
+ }
1859
+
1860
+ export interface AsyncRendererNamespace {
1861
+ $gtype: GObject.GType<AsyncRenderer>;
1862
+ prototype: AsyncRenderer;
1863
+ }
1864
+ interface AsyncRenderer extends GObject.Object {
1865
+ // Own methods of AtrilDocument.AsyncRenderer
1866
+
1867
+ render_pixbuf(page: number, scale: number, rotation: number): void;
1868
+
1869
+ // Own virtual methods of AtrilDocument.AsyncRenderer
1870
+
1871
+ vfunc_render_finished(pixbuf: GdkPixbuf.Pixbuf): void;
1872
+ vfunc_render_pixbuf(page: number, scale: number, rotation: number): void;
1873
+ }
1874
+
1875
+ export const AsyncRenderer: AsyncRendererNamespace;
1876
+
1877
+ module DocumentAnnotations {
1878
+ // Constructor properties interface
1879
+
1880
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1881
+ }
1882
+
1883
+ export interface DocumentAnnotationsNamespace {
1884
+ $gtype: GObject.GType<DocumentAnnotations>;
1885
+ prototype: DocumentAnnotations;
1886
+ }
1887
+ interface DocumentAnnotations extends GObject.Object {
1888
+ // Own methods of AtrilDocument.DocumentAnnotations
1889
+
1890
+ add_annotation(annot: Annotation, rect: Rectangle): void;
1891
+ can_add_annotation(): boolean;
1892
+ can_remove_annotation(): boolean;
1893
+ document_is_modified(): boolean;
1894
+ get_annotations(page: Page): MappingList;
1895
+ remove_annotation(annot: Annotation): void;
1896
+ save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void;
1897
+
1898
+ // Own virtual methods of AtrilDocument.DocumentAnnotations
1899
+
1900
+ vfunc_add_annotation(annot: Annotation, rect: Rectangle): void;
1901
+ vfunc_document_is_modified(): boolean;
1902
+ vfunc_get_annotations(page: Page): MappingList;
1903
+ vfunc_remove_annotation(annot: Annotation): void;
1904
+ vfunc_save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void;
1905
+ }
1906
+
1907
+ export const DocumentAnnotations: DocumentAnnotationsNamespace;
1908
+
1909
+ module DocumentAttachments {
1910
+ // Constructor properties interface
1911
+
1912
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1913
+ }
1914
+
1915
+ export interface DocumentAttachmentsNamespace {
1916
+ $gtype: GObject.GType<DocumentAttachments>;
1917
+ prototype: DocumentAttachments;
1918
+ }
1919
+ interface DocumentAttachments extends GObject.Object {
1920
+ // Own methods of AtrilDocument.DocumentAttachments
1921
+
1922
+ get_attachments(): Attachment[];
1923
+ has_attachments(): boolean;
1924
+
1925
+ // Own virtual methods of AtrilDocument.DocumentAttachments
1926
+
1927
+ vfunc_get_attachments(): Attachment[];
1928
+ vfunc_has_attachments(): boolean;
1929
+ }
1930
+
1931
+ export const DocumentAttachments: DocumentAttachmentsNamespace;
1932
+
1933
+ module DocumentFind {
1934
+ // Constructor properties interface
1935
+
1936
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1937
+ }
1938
+
1939
+ export interface DocumentFindNamespace {
1940
+ $gtype: GObject.GType<DocumentFind>;
1941
+ prototype: DocumentFind;
1942
+ }
1943
+ interface DocumentFind extends GObject.Object {
1944
+ // Own methods of AtrilDocument.DocumentFind
1945
+
1946
+ check_for_hits(page: Page, text: string, case_sensitive: boolean): number;
1947
+ find_text(page: Page, text: string, case_sensitive: boolean): Rectangle[];
1948
+
1949
+ // Own virtual methods of AtrilDocument.DocumentFind
1950
+
1951
+ vfunc_check_for_hits(page: Page, text: string, case_sensitive: boolean): number;
1952
+ vfunc_find_text(page: Page, text: string, case_sensitive: boolean): Rectangle[];
1953
+ }
1954
+
1955
+ export const DocumentFind: DocumentFindNamespace;
1956
+
1957
+ module DocumentFonts {
1958
+ // Constructor properties interface
1959
+
1960
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1961
+ }
1962
+
1963
+ export interface DocumentFontsNamespace {
1964
+ $gtype: GObject.GType<DocumentFonts>;
1965
+ prototype: DocumentFonts;
1966
+ }
1967
+ interface DocumentFonts extends GObject.Object {
1968
+ // Own methods of AtrilDocument.DocumentFonts
1969
+
1970
+ fill_model(model: Gtk.TreeModel): void;
1971
+ get_progress(): number;
1972
+ scan(n_pages: number): boolean;
1973
+
1974
+ // Own virtual methods of AtrilDocument.DocumentFonts
1975
+
1976
+ vfunc_fill_model(model: Gtk.TreeModel): void;
1977
+ vfunc_get_progress(): number;
1978
+ vfunc_scan(n_pages: number): boolean;
1979
+ }
1980
+
1981
+ export const DocumentFonts: DocumentFontsNamespace;
1982
+
1983
+ module DocumentForms {
1984
+ // Constructor properties interface
1985
+
1986
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1987
+ }
1988
+
1989
+ export interface DocumentFormsNamespace {
1990
+ $gtype: GObject.GType<DocumentForms>;
1991
+ prototype: DocumentForms;
1992
+ }
1993
+ interface DocumentForms extends GObject.Object {
1994
+ // Own methods of AtrilDocument.DocumentForms
1995
+
1996
+ document_is_modified(): boolean;
1997
+ form_field_button_get_state(field: FormField): boolean;
1998
+ form_field_button_set_state(field: FormField, state: boolean): void;
1999
+ form_field_choice_get_item(field: FormField, index: number): string;
2000
+ form_field_choice_get_n_items(field: FormField): number;
2001
+ form_field_choice_get_text(field: FormField): string;
2002
+ form_field_choice_is_item_selected(field: FormField, index: number): boolean;
2003
+ form_field_choice_select_item(field: FormField, index: number): void;
2004
+ form_field_choice_set_text(field: FormField, text: string): void;
2005
+ form_field_choice_toggle_item(field: FormField, index: number): void;
2006
+ form_field_choice_unselect_all(field: FormField): void;
2007
+ form_field_text_get_text(field: FormField): string;
2008
+ form_field_text_set_text(field: FormField, text: string): void;
2009
+ get_form_fields(page: Page): MappingList;
2010
+
2011
+ // Own virtual methods of AtrilDocument.DocumentForms
2012
+
2013
+ vfunc_document_is_modified(): boolean;
2014
+ vfunc_form_field_button_get_state(field: FormField): boolean;
2015
+ vfunc_form_field_button_set_state(field: FormField, state: boolean): void;
2016
+ vfunc_form_field_choice_get_item(field: FormField, index: number): string;
2017
+ vfunc_form_field_choice_get_n_items(field: FormField): number;
2018
+ vfunc_form_field_choice_get_text(field: FormField): string;
2019
+ vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean;
2020
+ vfunc_form_field_choice_select_item(field: FormField, index: number): void;
2021
+ vfunc_form_field_choice_set_text(field: FormField, text: string): void;
2022
+ vfunc_form_field_choice_toggle_item(field: FormField, index: number): void;
2023
+ vfunc_form_field_choice_unselect_all(field: FormField): void;
2024
+ vfunc_form_field_text_get_text(field: FormField): string;
2025
+ vfunc_form_field_text_set_text(field: FormField, text: string): void;
2026
+ vfunc_get_form_fields(page: Page): MappingList;
2027
+ }
2028
+
2029
+ export const DocumentForms: DocumentFormsNamespace;
2030
+
2031
+ module DocumentImages {
2032
+ // Constructor properties interface
2033
+
2034
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2035
+ }
2036
+
2037
+ export interface DocumentImagesNamespace {
2038
+ $gtype: GObject.GType<DocumentImages>;
2039
+ prototype: DocumentImages;
2040
+ }
2041
+ interface DocumentImages extends GObject.Object {
2042
+ // Own methods of AtrilDocument.DocumentImages
2043
+
2044
+ get_image(image: Image): GdkPixbuf.Pixbuf;
2045
+ get_image_mapping(page: Page): MappingList;
2046
+
2047
+ // Own virtual methods of AtrilDocument.DocumentImages
2048
+
2049
+ vfunc_get_image(image: Image): GdkPixbuf.Pixbuf;
2050
+ vfunc_get_image_mapping(page: Page): MappingList;
2051
+ }
2052
+
2053
+ export const DocumentImages: DocumentImagesNamespace;
2054
+
2055
+ module DocumentLayers {
2056
+ // Constructor properties interface
2057
+
2058
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2059
+ }
2060
+
2061
+ export interface DocumentLayersNamespace {
2062
+ $gtype: GObject.GType<DocumentLayers>;
2063
+ prototype: DocumentLayers;
2064
+ }
2065
+ interface DocumentLayers extends GObject.Object {
2066
+ // Own methods of AtrilDocument.DocumentLayers
2067
+
2068
+ get_layers(): Gtk.TreeModel;
2069
+ has_layers(): boolean;
2070
+ hide_layer(layer: Layer): void;
2071
+ layer_is_visible(layer: Layer): boolean;
2072
+ show_layer(layer: Layer): void;
2073
+
2074
+ // Own virtual methods of AtrilDocument.DocumentLayers
2075
+
2076
+ vfunc_get_layers(): Gtk.TreeModel;
2077
+ vfunc_has_layers(): boolean;
2078
+ vfunc_hide_layer(layer: Layer): void;
2079
+ vfunc_layer_is_visible(layer: Layer): boolean;
2080
+ vfunc_show_layer(layer: Layer): void;
2081
+ }
2082
+
2083
+ export const DocumentLayers: DocumentLayersNamespace;
2084
+
2085
+ module DocumentLinks {
2086
+ // Constructor properties interface
2087
+
2088
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2089
+ }
2090
+
2091
+ export interface DocumentLinksNamespace {
2092
+ $gtype: GObject.GType<DocumentLinks>;
2093
+ prototype: DocumentLinks;
2094
+ }
2095
+ interface DocumentLinks extends GObject.Object {
2096
+ // Own methods of AtrilDocument.DocumentLinks
2097
+
2098
+ find_link_dest(link_name: string): LinkDest;
2099
+ find_link_page(link_name: string): number;
2100
+ get_dest_page(dest: LinkDest): number;
2101
+ get_dest_page_label(dest: LinkDest): string;
2102
+ get_link_page(link: Link): number;
2103
+ get_link_page_label(link: Link): string;
2104
+ get_links(page: Page): MappingList;
2105
+ get_links_model(): Gtk.TreeModel;
2106
+ has_document_links(): boolean;
2107
+
2108
+ // Own virtual methods of AtrilDocument.DocumentLinks
2109
+
2110
+ vfunc_find_link_dest(link_name: string): LinkDest;
2111
+ vfunc_find_link_page(link_name: string): number;
2112
+ vfunc_get_links(page: Page): MappingList;
2113
+ vfunc_get_links_model(): Gtk.TreeModel;
2114
+ vfunc_has_document_links(): boolean;
2115
+ }
2116
+
2117
+ export const DocumentLinks: DocumentLinksNamespace;
2118
+
2119
+ module DocumentPrint {
2120
+ // Constructor properties interface
2121
+
2122
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2123
+ }
2124
+
2125
+ export interface DocumentPrintNamespace {
2126
+ $gtype: GObject.GType<DocumentPrint>;
2127
+ prototype: DocumentPrint;
2128
+ }
2129
+ interface DocumentPrint extends GObject.Object {
2130
+ // Own methods of AtrilDocument.DocumentPrint
2131
+
2132
+ print_page(page: Page, cr: cairo.Context): void;
2133
+
2134
+ // Own virtual methods of AtrilDocument.DocumentPrint
2135
+
2136
+ vfunc_print_page(page: Page, cr: cairo.Context): void;
2137
+ }
2138
+
2139
+ export const DocumentPrint: DocumentPrintNamespace;
2140
+
2141
+ module DocumentSecurity {
2142
+ // Constructor properties interface
2143
+
2144
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2145
+ }
2146
+
2147
+ export interface DocumentSecurityNamespace {
2148
+ $gtype: GObject.GType<DocumentSecurity>;
2149
+ prototype: DocumentSecurity;
2150
+ }
2151
+ interface DocumentSecurity extends GObject.Object {
2152
+ // Own methods of AtrilDocument.DocumentSecurity
2153
+
2154
+ has_document_security(): boolean;
2155
+ set_password(password: string): void;
2156
+
2157
+ // Own virtual methods of AtrilDocument.DocumentSecurity
2158
+
2159
+ vfunc_has_document_security(): boolean;
2160
+ vfunc_set_password(password: string): void;
2161
+ }
2162
+
2163
+ export const DocumentSecurity: DocumentSecurityNamespace;
2164
+
2165
+ module DocumentText {
2166
+ // Constructor properties interface
2167
+
2168
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2169
+ }
2170
+
2171
+ export interface DocumentTextNamespace {
2172
+ $gtype: GObject.GType<DocumentText>;
2173
+ prototype: DocumentText;
2174
+ }
2175
+ interface DocumentText extends GObject.Object {
2176
+ // Own methods of AtrilDocument.DocumentText
2177
+
2178
+ get_text(page: Page): string;
2179
+ get_text_attrs(page: Page): Pango.AttrList;
2180
+ get_text_layout(page: Page, areas: Rectangle, n_areas: number): boolean;
2181
+ get_text_mapping(page: Page): cairo.Region;
2182
+
2183
+ // Own virtual methods of AtrilDocument.DocumentText
2184
+
2185
+ vfunc_get_text(page: Page): string;
2186
+ vfunc_get_text_attrs(page: Page): Pango.AttrList;
2187
+ vfunc_get_text_layout(page: Page, areas: Rectangle, n_areas: number): boolean;
2188
+ vfunc_get_text_mapping(page: Page): cairo.Region;
2189
+ }
2190
+
2191
+ export const DocumentText: DocumentTextNamespace;
2192
+
2193
+ module DocumentThumbnails {
2194
+ // Constructor properties interface
2195
+
2196
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2197
+ }
2198
+
2199
+ export interface DocumentThumbnailsNamespace {
2200
+ $gtype: GObject.GType<DocumentThumbnails>;
2201
+ prototype: DocumentThumbnails;
2202
+ }
2203
+ interface DocumentThumbnails extends GObject.Object {
2204
+ // Own methods of AtrilDocument.DocumentThumbnails
2205
+
2206
+ get_dimensions(rc: RenderContext, width: number, height: number): void;
2207
+
2208
+ // Own virtual methods of AtrilDocument.DocumentThumbnails
2209
+
2210
+ vfunc_get_dimensions(rc: RenderContext, width: number, height: number): void;
2211
+ }
2212
+
2213
+ export const DocumentThumbnails: DocumentThumbnailsNamespace;
2214
+
2215
+ module DocumentTransition {
2216
+ // Constructor properties interface
2217
+
2218
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2219
+ }
2220
+
2221
+ export interface DocumentTransitionNamespace {
2222
+ $gtype: GObject.GType<DocumentTransition>;
2223
+ prototype: DocumentTransition;
2224
+ }
2225
+ interface DocumentTransition extends GObject.Object {
2226
+ // Own methods of AtrilDocument.DocumentTransition
2227
+
2228
+ get_effect(page: number): TransitionEffect;
2229
+ get_page_duration(page: number): number;
2230
+
2231
+ // Own virtual methods of AtrilDocument.DocumentTransition
2232
+
2233
+ vfunc_get_effect(page: number): TransitionEffect;
2234
+ vfunc_get_page_duration(page: number): number;
2235
+ }
2236
+
2237
+ export const DocumentTransition: DocumentTransitionNamespace;
2238
+
2239
+ module FileExporter {
2240
+ // Constructor properties interface
2241
+
2242
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2243
+ }
2244
+
2245
+ export interface FileExporterNamespace {
2246
+ $gtype: GObject.GType<FileExporter>;
2247
+ prototype: FileExporter;
2248
+ }
2249
+ interface FileExporter extends GObject.Object {
2250
+ // Own methods of AtrilDocument.FileExporter
2251
+
2252
+ begin(fc: FileExporterContext): void;
2253
+ begin_page(): void;
2254
+ do_page(rc: RenderContext): void;
2255
+ end(): void;
2256
+ end_page(): void;
2257
+ get_capabilities(): FileExporterCapabilities;
2258
+
2259
+ // Own virtual methods of AtrilDocument.FileExporter
2260
+
2261
+ vfunc_begin(fc: FileExporterContext): void;
2262
+ vfunc_begin_page(): void;
2263
+ vfunc_do_page(rc: RenderContext): void;
2264
+ vfunc_end(): void;
2265
+ vfunc_end_page(): void;
2266
+ vfunc_get_capabilities(): FileExporterCapabilities;
2267
+ }
2268
+
2269
+ export const FileExporter: FileExporterNamespace;
2270
+
2271
+ module Selection {
2272
+ // Constructor properties interface
2273
+
2274
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2275
+ }
2276
+
2277
+ export interface SelectionNamespace {
2278
+ $gtype: GObject.GType<Selection>;
2279
+ prototype: Selection;
2280
+ }
2281
+ interface Selection extends GObject.Object {
2282
+ // Own methods of AtrilDocument.Selection
2283
+
2284
+ get_selected_text(page: Page, style: SelectionStyle, points: Rectangle): string;
2285
+ get_selection_region(rc: RenderContext, style: SelectionStyle, points: Rectangle): cairo.Region;
2286
+ render_selection(
2287
+ rc: RenderContext,
2288
+ surface: cairo.Surface,
2289
+ points: Rectangle,
2290
+ old_points: Rectangle,
2291
+ style: SelectionStyle,
2292
+ text: Gdk.Color,
2293
+ base: Gdk.Color,
2294
+ ): void;
2295
+
2296
+ // Own virtual methods of AtrilDocument.Selection
2297
+
2298
+ vfunc_get_selected_text(page: Page, style: SelectionStyle, points: Rectangle): string;
2299
+ vfunc_get_selection_region(rc: RenderContext, style: SelectionStyle, points: Rectangle): cairo.Region;
2300
+ vfunc_render_selection(
2301
+ rc: RenderContext,
2302
+ surface: cairo.Surface,
2303
+ points: Rectangle,
2304
+ old_points: Rectangle,
2305
+ style: SelectionStyle,
2306
+ text: Gdk.Color,
2307
+ base: Gdk.Color,
2308
+ ): void;
2309
+ }
2310
+
2311
+ export const Selection: SelectionNamespace;
2312
+
2313
+ type BackendPage = any;
2314
+ type BackendPageDestroyFunc = GLib.DestroyNotify;
2315
+ /**
2316
+ * Name of the imported GIR library
2317
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
2318
+ */
2319
+ const __name__: string;
2320
+ /**
2321
+ * Version of the imported GIR library
2322
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
2323
+ */
2324
+ const __version__: string;
2325
+ }
2326
+
2327
+ export default AtrilDocument;
2328
+ // END