@girs/evincedocument-3.0 44.0.0-3.0.0-beta.12

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,3862 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * EvinceDocument-3.0
10
+ */
11
+
12
+ import type Gtk from '@girs/gtk-3.0';
13
+ import type xlib from '@girs/xlib-2.0';
14
+ import type Gdk from '@girs/gdk-3.0';
15
+ import type cairo from '@girs/cairo-1.0';
16
+ import type Pango from '@girs/pango-1.0';
17
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
18
+ import type freetype2 from '@girs/freetype2-2.0';
19
+ import type GObject from '@girs/gobject-2.0';
20
+ import type GLib from '@girs/glib-2.0';
21
+ import type Gio from '@girs/gio-2.0';
22
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
23
+ import type GModule from '@girs/gmodule-2.0';
24
+ import type Atk from '@girs/atk-1.0';
25
+
26
+ export enum AnnotationTextIcon {
27
+ NOTE,
28
+ COMMENT,
29
+ KEY,
30
+ HELP,
31
+ NEW_PARAGRAPH,
32
+ PARAGRAPH,
33
+ INSERT,
34
+ CROSS,
35
+ CIRCLE,
36
+ UNKNOWN,
37
+ }
38
+ export enum AnnotationTextMarkupType {
39
+ HIGHLIGHT,
40
+ STRIKE_OUT,
41
+ UNDERLINE,
42
+ SQUIGGLY,
43
+ }
44
+ export enum AnnotationType {
45
+ UNKNOWN,
46
+ TEXT,
47
+ ATTACHMENT,
48
+ TEXT_MARKUP,
49
+ }
50
+ export enum AnnotationsOverMarkup {
51
+ NOT_IMPLEMENTED,
52
+ UNKNOWN,
53
+ YES,
54
+ NOT,
55
+ }
56
+ export enum CompressionType {
57
+ NONE,
58
+ BZIP2,
59
+ GZIP,
60
+ LZMA,
61
+ }
62
+ export enum DocumentContainsJS {
63
+ UNKNOWN,
64
+ NO,
65
+ YES,
66
+ }
67
+ export enum DocumentError {
68
+ INVALID,
69
+ UNSUPPORTED_CONTENT,
70
+ ENCRYPTED,
71
+ }
72
+ export enum DocumentLayout {
73
+ SINGLE_PAGE,
74
+ ONE_COLUMN,
75
+ TWO_COLUMN_LEFT,
76
+ TWO_COLUMN_RIGHT,
77
+ TWO_PAGE_LEFT,
78
+ TWO_PAGE_RIGHT,
79
+ }
80
+ export enum DocumentMode {
81
+ NONE,
82
+ USE_OC,
83
+ USE_THUMBS,
84
+ FULL_SCREEN,
85
+ USE_ATTACHMENTS,
86
+ PRESENTATION,
87
+ }
88
+ export enum FileExporterFormat {
89
+ UNKNOWN,
90
+ PS,
91
+ PDF,
92
+ }
93
+ export enum FormFieldButtonType {
94
+ PUSH,
95
+ CHECK,
96
+ RADIO,
97
+ }
98
+ export enum FormFieldChoiceType {
99
+ COMBO,
100
+ LIST,
101
+ }
102
+ export enum FormFieldTextType {
103
+ NORMAL,
104
+ MULTILINE,
105
+ FILE_SELECT,
106
+ }
107
+ export enum LinkActionType {
108
+ GOTO_DEST,
109
+ GOTO_REMOTE,
110
+ EXTERNAL_URI,
111
+ LAUNCH,
112
+ NAMED,
113
+ LAYERS_STATE,
114
+ RESET_FORM,
115
+ }
116
+ export enum LinkDestType {
117
+ PAGE,
118
+ XYZ,
119
+ FIT,
120
+ FITH,
121
+ FITV,
122
+ FITR,
123
+ NAMED,
124
+ PAGE_LABEL,
125
+ UNKNOWN,
126
+ }
127
+ export enum SelectionStyle {
128
+ GLYPH,
129
+ WORD,
130
+ LINE,
131
+ }
132
+ export enum TransitionEffectAlignment {
133
+ HORIZONTAL,
134
+ VERTICAL,
135
+ }
136
+ export enum TransitionEffectDirection {
137
+ INWARD,
138
+ OUTWARD,
139
+ }
140
+ export enum TransitionEffectType {
141
+ REPLACE,
142
+ SPLIT,
143
+ BLINDS,
144
+ BOX,
145
+ WIPE,
146
+ DISSOLVE,
147
+ GLITTER,
148
+ FLY,
149
+ PUSH,
150
+ COVER,
151
+ UNCOVER,
152
+ FADE,
153
+ }
154
+ export enum AnnotationsSaveMask {
155
+ NONE,
156
+ CONTENTS,
157
+ COLOR,
158
+ AREA,
159
+ LABEL,
160
+ OPACITY,
161
+ POPUP_RECT,
162
+ POPUP_IS_OPEN,
163
+ TEXT_IS_OPEN,
164
+ TEXT_ICON,
165
+ ATTACHMENT,
166
+ TEXT_MARKUP_TYPE,
167
+ ALL,
168
+ }
169
+ export enum DocumentInfoFields {
170
+ TITLE,
171
+ FORMAT,
172
+ AUTHOR,
173
+ SUBJECT,
174
+ KEYWORDS,
175
+ LAYOUT,
176
+ CREATOR,
177
+ PRODUCER,
178
+ CREATION_DATE,
179
+ MOD_DATE,
180
+ LINEARIZED,
181
+ START_MODE,
182
+ UI_HINTS,
183
+ PERMISSIONS,
184
+ N_PAGES,
185
+ SECURITY,
186
+ PAPER_SIZE,
187
+ LICENSE,
188
+ CONTAINS_JS,
189
+ }
190
+ export enum DocumentLoadFlags {
191
+ NONE,
192
+ NO_CACHE,
193
+ }
194
+ export enum DocumentPermissions {
195
+ OK_TO_PRINT,
196
+ OK_TO_MODIFY,
197
+ OK_TO_COPY,
198
+ OK_TO_ADD_NOTES,
199
+ FULL,
200
+ }
201
+ export enum DocumentUIHints {
202
+ HIDE_TOOLBAR,
203
+ HIDE_MENUBAR,
204
+ HIDE_WINDOWUI,
205
+ FIT_WINDOW,
206
+ CENTER_WINDOW,
207
+ DISPLAY_DOC_TITLE,
208
+ DIRECTION_RTL,
209
+ }
210
+ export enum FileExporterCapabilities {
211
+ PAGE_SET,
212
+ COPIES,
213
+ COLLATE,
214
+ REVERSE,
215
+ SCALE,
216
+ GENERATE_PDF,
217
+ GENERATE_PS,
218
+ PREVIEW,
219
+ NUMBER_UP,
220
+ }
221
+ export enum FindOptions {
222
+ DEFAULT,
223
+ CASE_SENSITIVE,
224
+ WHOLE_WORDS_ONLY,
225
+ }
226
+ /**
227
+ * The major version number of the EV library
228
+ * (e.g. in version 3.1.4 this is 3).
229
+ */
230
+ export const MAJOR_VERSION: number
231
+ export function backends_manager_get_document(mime_type: string | null): Document
232
+ export function backends_manager_get_document_module_name(document: Document): string | null
233
+ export function document_error_quark(): GLib.Quark
234
+ /**
235
+ * Compresses the file at `uri`.
236
+ *
237
+ * If `type` is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
238
+ *
239
+ * Otherwise, it returns the filename of a
240
+ * temporary file containing the compressed data from the file at `uri`.
241
+ *
242
+ * On error it returns %NULL and fills in `error`.
243
+ *
244
+ * It is the caller's responsibility to unlink the temp file after use.
245
+ * @param uri a file URI
246
+ * @param type the compression type
247
+ * @returns a newly allocated string URI, or %NULL on error
248
+ */
249
+ export function file_compress(uri: string | null, type: CompressionType): string | null
250
+ /**
251
+ * Performs a g_file_copy_attributes() with %G_FILE_COPY_ALL_METADATA
252
+ * from `from` to `to`.
253
+ * @param from the source URI
254
+ * @param to the target URI
255
+ * @returns %TRUE if the attributes were copied successfully, %FALSE otherwise.
256
+ */
257
+ export function file_copy_metadata(from: string | null, to: string | null): boolean
258
+ export function file_get_mime_type(uri: string | null, fast: boolean): string | null
259
+ export function file_get_mime_type_from_fd(fd: number): string | null
260
+ export function file_is_temp(file: Gio.File): boolean
261
+ /**
262
+ * Uncompresses the file at `uri`.
263
+ *
264
+ * If `type` is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
265
+ *
266
+ * Otherwise, it returns the filename of a
267
+ * temporary file containing the decompressed data from the file at `uri`.
268
+ * On error it returns %NULL and fills in `error`.
269
+ *
270
+ * It is the caller's responsibility to unlink the temp file after use.
271
+ * @param uri a file URI
272
+ * @param type the compression type
273
+ * @returns a newly allocated string URI, or %NULL on error
274
+ */
275
+ export function file_uncompress(uri: string | null, type: CompressionType): string | null
276
+ export function get_locale_dir(): string | null
277
+ /**
278
+ * Initializes the evince document library, and binds the evince
279
+ * gettext domain.
280
+ *
281
+ * You must call this before calling any other function in the evince
282
+ * document library.
283
+ * @returns %TRUE if any backends were found; %FALSE otherwise
284
+ */
285
+ export function init(): boolean
286
+ /**
287
+ * Creates a temp directory in the evince temp directory.
288
+ * @param tmpl a template string; must end in 'XXXXXX'
289
+ * @returns a newly allocated string with the temp directory name, or %NULL on error with @error filled in
290
+ */
291
+ export function mkdtemp(tmpl: string | null): string | null
292
+ /**
293
+ * Creates a temp file in the evince temp directory.
294
+ * @param tmpl a template string; must contain 'XXXXXX', but not necessarily as a suffix
295
+ * @param file_name a location to store the filename of the temp file
296
+ * @returns a file descriptor to the newly created temp file name, or %-1 on error with @error filled in
297
+ */
298
+ export function mkstemp(tmpl: string | null, file_name: string | null): number
299
+ /**
300
+ * Creates a temp #GFile in the evince temp directory. See ev_mkstemp() for more information.
301
+ * @param tmpl a template string; must contain 'XXXXXX', but not necessarily as a suffix
302
+ * @returns a newly allocated #GFile for the newly created temp file name, or %NULL on error with @error filled in
303
+ */
304
+ export function mkstemp_file(tmpl: string | null): Gio.File
305
+ export function rect_cmp(a: Rectangle, b: Rectangle): number
306
+ /**
307
+ * Checks whether evince should use the portal.
308
+ * @returns whether evince should use the portal
309
+ */
310
+ export function should_use_portal(): boolean
311
+ /**
312
+ * Shuts the evince document library down.
313
+ */
314
+ export function shutdown(): void
315
+ export function tmp_file_unlink(file: Gio.File): void
316
+ export function tmp_filename_unlink(filename: string | null): void
317
+ export function tmp_uri_unlink(uri: string | null): void
318
+ /**
319
+ * Performs a g_file_copy() from `from` to `to`.
320
+ * @param from the source URI
321
+ * @param to the target URI
322
+ * @returns %TRUE on success, or %FALSE on error with @error filled in
323
+ */
324
+ export function xfer_uri_simple(from: string | null, to: string | null): boolean
325
+ export function xmp_parse(xmp: string | null, size: number, info: DocumentInfo): boolean
326
+ export module AnnotationMarkup {
327
+
328
+ // Constructor properties interface
329
+
330
+ export interface ConstructorProperties extends Annotation.ConstructorProperties, GObject.Object.ConstructorProperties {
331
+
332
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
333
+
334
+ can_have_popup?: boolean | null
335
+ has_popup?: boolean | null
336
+ label?: string | null
337
+ opacity?: number | null
338
+ popup_is_open?: boolean | null
339
+ rectangle?: Rectangle | null
340
+ }
341
+
342
+ }
343
+
344
+ export interface AnnotationMarkup extends Annotation {
345
+
346
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
347
+
348
+ can_have_popup: boolean
349
+ has_popup: boolean
350
+ label: string | null
351
+ opacity: number
352
+ popup_is_open: boolean
353
+ rectangle: Rectangle
354
+
355
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
356
+
357
+ get_label(): string | null
358
+ get_opacity(): number
359
+ get_popup_is_open(): boolean
360
+ get_rectangle(ev_rect: Rectangle): void
361
+ set_has_popup(has_popup: boolean): boolean
362
+ set_label(label: string | null): boolean
363
+ set_opacity(opacity: number): boolean
364
+ set_popup_is_open(is_open: boolean): boolean
365
+ set_rectangle(ev_rect: Rectangle): boolean
366
+
367
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
368
+
369
+ connect(sigName: "notify::can-have-popup", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
370
+ connect_after(sigName: "notify::can-have-popup", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
371
+ emit(sigName: "notify::can-have-popup", ...args: any[]): void
372
+ connect(sigName: "notify::has-popup", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
373
+ connect_after(sigName: "notify::has-popup", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
374
+ emit(sigName: "notify::has-popup", ...args: any[]): void
375
+ connect(sigName: "notify::label", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
376
+ connect_after(sigName: "notify::label", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
377
+ emit(sigName: "notify::label", ...args: any[]): void
378
+ connect(sigName: "notify::opacity", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
379
+ connect_after(sigName: "notify::opacity", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
380
+ emit(sigName: "notify::opacity", ...args: any[]): void
381
+ connect(sigName: "notify::popup-is-open", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
382
+ connect_after(sigName: "notify::popup-is-open", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
383
+ emit(sigName: "notify::popup-is-open", ...args: any[]): void
384
+ connect(sigName: "notify::rectangle", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
385
+ connect_after(sigName: "notify::rectangle", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
386
+ emit(sigName: "notify::rectangle", ...args: any[]): void
387
+ connect(sigName: "notify::area", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
388
+ connect_after(sigName: "notify::area", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
389
+ emit(sigName: "notify::area", ...args: any[]): void
390
+ connect(sigName: "notify::color", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
391
+ connect_after(sigName: "notify::color", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
392
+ emit(sigName: "notify::color", ...args: any[]): void
393
+ connect(sigName: "notify::contents", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
394
+ connect_after(sigName: "notify::contents", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
395
+ emit(sigName: "notify::contents", ...args: any[]): void
396
+ connect(sigName: "notify::modified", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
397
+ connect_after(sigName: "notify::modified", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
398
+ emit(sigName: "notify::modified", ...args: any[]): void
399
+ connect(sigName: "notify::name", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
400
+ connect_after(sigName: "notify::name", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
401
+ emit(sigName: "notify::name", ...args: any[]): void
402
+ connect(sigName: "notify::page", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
403
+ connect_after(sigName: "notify::page", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
404
+ emit(sigName: "notify::page", ...args: any[]): void
405
+ connect(sigName: "notify::rgba", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
406
+ connect_after(sigName: "notify::rgba", callback: (($obj: AnnotationMarkup, pspec: GObject.ParamSpec) => void)): number
407
+ emit(sigName: "notify::rgba", ...args: any[]): void
408
+ connect(sigName: string, callback: (...args: any[]) => void): number
409
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
410
+ emit(sigName: string, ...args: any[]): void
411
+ disconnect(id: number): void
412
+ }
413
+
414
+ export class AnnotationMarkup extends GObject.Object {
415
+
416
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
417
+
418
+ static name: string
419
+ static $gtype: GObject.GType<AnnotationMarkup>
420
+
421
+ // Constructors of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
422
+
423
+ constructor(config?: AnnotationMarkup.ConstructorProperties)
424
+ _init(config?: AnnotationMarkup.ConstructorProperties): void
425
+ }
426
+
427
+ export module AsyncRenderer {
428
+
429
+ // Signal callback interfaces
430
+
431
+ /**
432
+ * Signal callback interface for `render-finished`
433
+ */
434
+ export interface RenderFinishedSignalCallback {
435
+ ($obj: AsyncRenderer, object: GdkPixbuf.Pixbuf): void
436
+ }
437
+
438
+
439
+ // Constructor properties interface
440
+
441
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
442
+ }
443
+
444
+ }
445
+
446
+ export interface AsyncRenderer {
447
+
448
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.AsyncRenderer
449
+
450
+ render_pixbuf(page: number, scale: number, rotation: number): void
451
+
452
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.AsyncRenderer
453
+
454
+ vfunc_render_finished(pixbuf: GdkPixbuf.Pixbuf): void
455
+ vfunc_render_pixbuf(page: number, scale: number, rotation: number): void
456
+
457
+ // Own signals of EvinceDocument-3.0.EvinceDocument.AsyncRenderer
458
+
459
+ connect(sigName: "render-finished", callback: AsyncRenderer.RenderFinishedSignalCallback): number
460
+ connect_after(sigName: "render-finished", callback: AsyncRenderer.RenderFinishedSignalCallback): number
461
+ emit(sigName: "render-finished", object: GdkPixbuf.Pixbuf, ...args: any[]): void
462
+
463
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.AsyncRenderer
464
+
465
+ connect(sigName: string, callback: (...args: any[]) => void): number
466
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
467
+ emit(sigName: string, ...args: any[]): void
468
+ disconnect(id: number): void
469
+ }
470
+
471
+ export class AsyncRenderer extends GObject.Object {
472
+
473
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AsyncRenderer
474
+
475
+ static name: string
476
+ static $gtype: GObject.GType<AsyncRenderer>
477
+
478
+ // Constructors of EvinceDocument-3.0.EvinceDocument.AsyncRenderer
479
+
480
+ constructor(config?: AsyncRenderer.ConstructorProperties)
481
+ _init(config?: AsyncRenderer.ConstructorProperties): void
482
+ }
483
+
484
+ export module DocumentAnnotations {
485
+
486
+ // Constructor properties interface
487
+
488
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
489
+ }
490
+
491
+ }
492
+
493
+ export interface DocumentAnnotations {
494
+
495
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentAnnotations
496
+
497
+ add_annotation(annot: Annotation, rect: Rectangle): void
498
+ can_add_annotation(): boolean
499
+ can_remove_annotation(): boolean
500
+ document_is_modified(): boolean
501
+ get_annotations(page: Page): MappingList
502
+ over_markup(annot: Annotation, x: number, y: number): AnnotationsOverMarkup
503
+ remove_annotation(annot: Annotation): void
504
+ save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void
505
+
506
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentAnnotations
507
+
508
+ vfunc_add_annotation(annot: Annotation, rect: Rectangle): void
509
+ vfunc_document_is_modified(): boolean
510
+ vfunc_get_annotations(page: Page): MappingList
511
+ vfunc_over_markup(annot: Annotation, x: number, y: number): AnnotationsOverMarkup
512
+ vfunc_remove_annotation(annot: Annotation): void
513
+ vfunc_save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void
514
+
515
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentAnnotations
516
+
517
+ connect(sigName: string, callback: (...args: any[]) => void): number
518
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
519
+ emit(sigName: string, ...args: any[]): void
520
+ disconnect(id: number): void
521
+ }
522
+
523
+ export class DocumentAnnotations extends GObject.Object {
524
+
525
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentAnnotations
526
+
527
+ static name: string
528
+ static $gtype: GObject.GType<DocumentAnnotations>
529
+
530
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentAnnotations
531
+
532
+ constructor(config?: DocumentAnnotations.ConstructorProperties)
533
+ _init(config?: DocumentAnnotations.ConstructorProperties): void
534
+ }
535
+
536
+ export module DocumentAttachments {
537
+
538
+ // Constructor properties interface
539
+
540
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
541
+ }
542
+
543
+ }
544
+
545
+ export interface DocumentAttachments {
546
+
547
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentAttachments
548
+
549
+ get_attachments(): Attachment[]
550
+ has_attachments(): boolean
551
+
552
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentAttachments
553
+
554
+ vfunc_get_attachments(): Attachment[]
555
+ vfunc_has_attachments(): boolean
556
+
557
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentAttachments
558
+
559
+ connect(sigName: string, callback: (...args: any[]) => void): number
560
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
561
+ emit(sigName: string, ...args: any[]): void
562
+ disconnect(id: number): void
563
+ }
564
+
565
+ export class DocumentAttachments extends GObject.Object {
566
+
567
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentAttachments
568
+
569
+ static name: string
570
+ static $gtype: GObject.GType<DocumentAttachments>
571
+
572
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentAttachments
573
+
574
+ constructor(config?: DocumentAttachments.ConstructorProperties)
575
+ _init(config?: DocumentAttachments.ConstructorProperties): void
576
+ }
577
+
578
+ export module DocumentFind {
579
+
580
+ // Constructor properties interface
581
+
582
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
583
+ }
584
+
585
+ }
586
+
587
+ export interface DocumentFind {
588
+
589
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
590
+
591
+ find_text(page: Page, text: string | null, case_sensitive: boolean): Rectangle[]
592
+ find_text_extended(page: Page, text: string | null, options: FindOptions): FindRectangle[]
593
+ find_text_with_options(page: Page, text: string | null, options: FindOptions): Rectangle[]
594
+ get_supported_options(): FindOptions
595
+
596
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
597
+
598
+ vfunc_find_text(page: Page, text: string | null, case_sensitive: boolean): Rectangle[]
599
+ vfunc_find_text_extended(page: Page, text: string | null, options: FindOptions): FindRectangle[]
600
+ vfunc_find_text_with_options(page: Page, text: string | null, options: FindOptions): Rectangle[]
601
+ vfunc_get_supported_options(): FindOptions
602
+
603
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentFind
604
+
605
+ connect(sigName: string, callback: (...args: any[]) => void): number
606
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
607
+ emit(sigName: string, ...args: any[]): void
608
+ disconnect(id: number): void
609
+ }
610
+
611
+ export class DocumentFind extends GObject.Object {
612
+
613
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentFind
614
+
615
+ static name: string
616
+ static $gtype: GObject.GType<DocumentFind>
617
+
618
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentFind
619
+
620
+ constructor(config?: DocumentFind.ConstructorProperties)
621
+ _init(config?: DocumentFind.ConstructorProperties): void
622
+ }
623
+
624
+ export module DocumentFonts {
625
+
626
+ // Constructor properties interface
627
+
628
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
629
+ }
630
+
631
+ }
632
+
633
+ export interface DocumentFonts {
634
+
635
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
636
+
637
+ fill_model(model: Gtk.TreeModel): void
638
+ get_fonts_summary(): string | null
639
+ get_progress(): number
640
+ scan(n_pages: number): boolean
641
+
642
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
643
+
644
+ vfunc_fill_model(model: Gtk.TreeModel): void
645
+ vfunc_get_fonts_summary(): string | null
646
+ vfunc_get_progress(): number
647
+ vfunc_scan(n_pages: number): boolean
648
+
649
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentFonts
650
+
651
+ connect(sigName: string, callback: (...args: any[]) => void): number
652
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
653
+ emit(sigName: string, ...args: any[]): void
654
+ disconnect(id: number): void
655
+ }
656
+
657
+ export class DocumentFonts extends GObject.Object {
658
+
659
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentFonts
660
+
661
+ static name: string
662
+ static $gtype: GObject.GType<DocumentFonts>
663
+
664
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentFonts
665
+
666
+ constructor(config?: DocumentFonts.ConstructorProperties)
667
+ _init(config?: DocumentFonts.ConstructorProperties): void
668
+ }
669
+
670
+ export module DocumentForms {
671
+
672
+ // Constructor properties interface
673
+
674
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
675
+ }
676
+
677
+ }
678
+
679
+ export interface DocumentForms {
680
+
681
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentForms
682
+
683
+ document_is_modified(): boolean
684
+ form_field_button_get_state(field: FormField): boolean
685
+ form_field_button_set_state(field: FormField, state: boolean): void
686
+ form_field_choice_get_item(field: FormField, index: number): string | null
687
+ form_field_choice_get_n_items(field: FormField): number
688
+ form_field_choice_get_text(field: FormField): string | null
689
+ form_field_choice_is_item_selected(field: FormField, index: number): boolean
690
+ form_field_choice_select_item(field: FormField, index: number): void
691
+ form_field_choice_set_text(field: FormField, text: string | null): void
692
+ form_field_choice_toggle_item(field: FormField, index: number): void
693
+ form_field_choice_unselect_all(field: FormField): void
694
+ form_field_text_get_text(field: FormField): string | null
695
+ form_field_text_set_text(field: FormField, text: string | null): void
696
+ get_form_fields(page: Page): MappingList
697
+ reset_form(action: LinkAction): void
698
+
699
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentForms
700
+
701
+ vfunc_document_is_modified(): boolean
702
+ vfunc_form_field_button_get_state(field: FormField): boolean
703
+ vfunc_form_field_button_set_state(field: FormField, state: boolean): void
704
+ vfunc_form_field_choice_get_item(field: FormField, index: number): string | null
705
+ vfunc_form_field_choice_get_n_items(field: FormField): number
706
+ vfunc_form_field_choice_get_text(field: FormField): string | null
707
+ vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean
708
+ vfunc_form_field_choice_select_item(field: FormField, index: number): void
709
+ vfunc_form_field_choice_set_text(field: FormField, text: string | null): void
710
+ vfunc_form_field_choice_toggle_item(field: FormField, index: number): void
711
+ vfunc_form_field_choice_unselect_all(field: FormField): void
712
+ vfunc_form_field_text_get_text(field: FormField): string | null
713
+ vfunc_form_field_text_set_text(field: FormField, text: string | null): void
714
+ vfunc_get_form_fields(page: Page): MappingList
715
+ vfunc_reset_form(action: LinkAction): void
716
+
717
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentForms
718
+
719
+ connect(sigName: string, callback: (...args: any[]) => void): number
720
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
721
+ emit(sigName: string, ...args: any[]): void
722
+ disconnect(id: number): void
723
+ }
724
+
725
+ export class DocumentForms extends GObject.Object {
726
+
727
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentForms
728
+
729
+ static name: string
730
+ static $gtype: GObject.GType<DocumentForms>
731
+
732
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentForms
733
+
734
+ constructor(config?: DocumentForms.ConstructorProperties)
735
+ _init(config?: DocumentForms.ConstructorProperties): void
736
+ }
737
+
738
+ export module DocumentImages {
739
+
740
+ // Constructor properties interface
741
+
742
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
743
+ }
744
+
745
+ }
746
+
747
+ export interface DocumentImages {
748
+
749
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentImages
750
+
751
+ get_image(image: Image): GdkPixbuf.Pixbuf
752
+ get_image_mapping(page: Page): MappingList
753
+
754
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentImages
755
+
756
+ vfunc_get_image(image: Image): GdkPixbuf.Pixbuf
757
+ vfunc_get_image_mapping(page: Page): MappingList
758
+
759
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentImages
760
+
761
+ connect(sigName: string, callback: (...args: any[]) => void): number
762
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
763
+ emit(sigName: string, ...args: any[]): void
764
+ disconnect(id: number): void
765
+ }
766
+
767
+ export class DocumentImages extends GObject.Object {
768
+
769
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentImages
770
+
771
+ static name: string
772
+ static $gtype: GObject.GType<DocumentImages>
773
+
774
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentImages
775
+
776
+ constructor(config?: DocumentImages.ConstructorProperties)
777
+ _init(config?: DocumentImages.ConstructorProperties): void
778
+ }
779
+
780
+ export module DocumentLayers {
781
+
782
+ // Constructor properties interface
783
+
784
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
785
+ }
786
+
787
+ }
788
+
789
+ export interface DocumentLayers {
790
+
791
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentLayers
792
+
793
+ get_layers(): Gtk.TreeModel
794
+ has_layers(): boolean
795
+ hide_layer(layer: Layer): void
796
+ layer_is_visible(layer: Layer): boolean
797
+ show_layer(layer: Layer): void
798
+
799
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentLayers
800
+
801
+ vfunc_get_layers(): Gtk.TreeModel
802
+ vfunc_has_layers(): boolean
803
+ vfunc_hide_layer(layer: Layer): void
804
+ vfunc_layer_is_visible(layer: Layer): boolean
805
+ vfunc_show_layer(layer: Layer): void
806
+
807
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentLayers
808
+
809
+ connect(sigName: string, callback: (...args: any[]) => void): number
810
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
811
+ emit(sigName: string, ...args: any[]): void
812
+ disconnect(id: number): void
813
+ }
814
+
815
+ export class DocumentLayers extends GObject.Object {
816
+
817
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentLayers
818
+
819
+ static name: string
820
+ static $gtype: GObject.GType<DocumentLayers>
821
+
822
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentLayers
823
+
824
+ constructor(config?: DocumentLayers.ConstructorProperties)
825
+ _init(config?: DocumentLayers.ConstructorProperties): void
826
+ }
827
+
828
+ export module DocumentLinks {
829
+
830
+ // Constructor properties interface
831
+
832
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
833
+ }
834
+
835
+ }
836
+
837
+ export interface DocumentLinks {
838
+
839
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
840
+
841
+ find_link_dest(link_name: string | null): LinkDest
842
+ find_link_page(link_name: string | null): number
843
+ get_dest_page(dest: LinkDest): number
844
+ get_dest_page_label(dest: LinkDest): string | null
845
+ get_link_page(link: Link): number
846
+ get_link_page_label(link: Link): string | null
847
+ get_links(page: Page): MappingList
848
+ get_links_model(): Gtk.TreeModel
849
+ has_document_links(): boolean
850
+
851
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
852
+
853
+ vfunc_find_link_dest(link_name: string | null): LinkDest
854
+ vfunc_find_link_page(link_name: string | null): number
855
+ vfunc_get_links(page: Page): MappingList
856
+ vfunc_get_links_model(): Gtk.TreeModel
857
+ vfunc_has_document_links(): boolean
858
+
859
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentLinks
860
+
861
+ connect(sigName: string, callback: (...args: any[]) => void): number
862
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
863
+ emit(sigName: string, ...args: any[]): void
864
+ disconnect(id: number): void
865
+ }
866
+
867
+ export class DocumentLinks extends GObject.Object {
868
+
869
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentLinks
870
+
871
+ static name: string
872
+ static $gtype: GObject.GType<DocumentLinks>
873
+
874
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentLinks
875
+
876
+ constructor(config?: DocumentLinks.ConstructorProperties)
877
+ _init(config?: DocumentLinks.ConstructorProperties): void
878
+ }
879
+
880
+ export module DocumentMedia {
881
+
882
+ // Constructor properties interface
883
+
884
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
885
+ }
886
+
887
+ }
888
+
889
+ export interface DocumentMedia {
890
+
891
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentMedia
892
+
893
+ get_media_mapping(page: Page): MappingList
894
+
895
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentMedia
896
+
897
+ vfunc_get_media_mapping(page: Page): MappingList
898
+
899
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentMedia
900
+
901
+ connect(sigName: string, callback: (...args: any[]) => void): number
902
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
903
+ emit(sigName: string, ...args: any[]): void
904
+ disconnect(id: number): void
905
+ }
906
+
907
+ export class DocumentMedia extends GObject.Object {
908
+
909
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentMedia
910
+
911
+ static name: string
912
+ static $gtype: GObject.GType<DocumentMedia>
913
+
914
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentMedia
915
+
916
+ constructor(config?: DocumentMedia.ConstructorProperties)
917
+ _init(config?: DocumentMedia.ConstructorProperties): void
918
+ }
919
+
920
+ export module DocumentPrint {
921
+
922
+ // Constructor properties interface
923
+
924
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
925
+ }
926
+
927
+ }
928
+
929
+ export interface DocumentPrint {
930
+
931
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentPrint
932
+
933
+ print_page(page: Page, cr: cairo.Context): void
934
+
935
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentPrint
936
+
937
+ vfunc_print_page(page: Page, cr: cairo.Context): void
938
+
939
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentPrint
940
+
941
+ connect(sigName: string, callback: (...args: any[]) => void): number
942
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
943
+ emit(sigName: string, ...args: any[]): void
944
+ disconnect(id: number): void
945
+ }
946
+
947
+ export class DocumentPrint extends GObject.Object {
948
+
949
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentPrint
950
+
951
+ static name: string
952
+ static $gtype: GObject.GType<DocumentPrint>
953
+
954
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentPrint
955
+
956
+ constructor(config?: DocumentPrint.ConstructorProperties)
957
+ _init(config?: DocumentPrint.ConstructorProperties): void
958
+ }
959
+
960
+ export module DocumentSecurity {
961
+
962
+ // Constructor properties interface
963
+
964
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
965
+ }
966
+
967
+ }
968
+
969
+ export interface DocumentSecurity {
970
+
971
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
972
+
973
+ has_document_security(): boolean
974
+ set_password(password: string | null): void
975
+
976
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
977
+
978
+ vfunc_has_document_security(): boolean
979
+ vfunc_set_password(password: string | null): void
980
+
981
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
982
+
983
+ connect(sigName: string, callback: (...args: any[]) => void): number
984
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
985
+ emit(sigName: string, ...args: any[]): void
986
+ disconnect(id: number): void
987
+ }
988
+
989
+ export class DocumentSecurity extends GObject.Object {
990
+
991
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
992
+
993
+ static name: string
994
+ static $gtype: GObject.GType<DocumentSecurity>
995
+
996
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
997
+
998
+ constructor(config?: DocumentSecurity.ConstructorProperties)
999
+ _init(config?: DocumentSecurity.ConstructorProperties): void
1000
+ }
1001
+
1002
+ export module DocumentText {
1003
+
1004
+ // Constructor properties interface
1005
+
1006
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1007
+ }
1008
+
1009
+ }
1010
+
1011
+ export interface DocumentText {
1012
+
1013
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentText
1014
+
1015
+ get_text(page: Page): string | null
1016
+ /**
1017
+ * FIXME
1018
+ * @param page a #EvPage
1019
+ * @returns a newly created #PangoAttrList
1020
+ */
1021
+ get_text_attrs(page: Page): Pango.AttrList
1022
+ get_text_layout(page: Page, areas: Rectangle, n_areas: number): boolean
1023
+ get_text_mapping(page: Page): cairo.Region
1024
+
1025
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentText
1026
+
1027
+ vfunc_get_text(page: Page): string | null
1028
+ /**
1029
+ * FIXME
1030
+ * @virtual
1031
+ * @param page a #EvPage
1032
+ * @returns a newly created #PangoAttrList
1033
+ */
1034
+ vfunc_get_text_attrs(page: Page): Pango.AttrList
1035
+ vfunc_get_text_layout(page: Page, areas: Rectangle, n_areas: number): boolean
1036
+ vfunc_get_text_mapping(page: Page): cairo.Region
1037
+
1038
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentText
1039
+
1040
+ connect(sigName: string, callback: (...args: any[]) => void): number
1041
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1042
+ emit(sigName: string, ...args: any[]): void
1043
+ disconnect(id: number): void
1044
+ }
1045
+
1046
+ export class DocumentText extends GObject.Object {
1047
+
1048
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentText
1049
+
1050
+ static name: string
1051
+ static $gtype: GObject.GType<DocumentText>
1052
+
1053
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentText
1054
+
1055
+ constructor(config?: DocumentText.ConstructorProperties)
1056
+ _init(config?: DocumentText.ConstructorProperties): void
1057
+ }
1058
+
1059
+ export module DocumentTransition {
1060
+
1061
+ // Constructor properties interface
1062
+
1063
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1064
+ }
1065
+
1066
+ }
1067
+
1068
+ export interface DocumentTransition {
1069
+
1070
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentTransition
1071
+
1072
+ get_effect(page: number): TransitionEffect
1073
+ get_page_duration(page: number): number
1074
+
1075
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentTransition
1076
+
1077
+ vfunc_get_effect(page: number): TransitionEffect
1078
+ vfunc_get_page_duration(page: number): number
1079
+
1080
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentTransition
1081
+
1082
+ connect(sigName: string, callback: (...args: any[]) => void): number
1083
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1084
+ emit(sigName: string, ...args: any[]): void
1085
+ disconnect(id: number): void
1086
+ }
1087
+
1088
+ export class DocumentTransition extends GObject.Object {
1089
+
1090
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentTransition
1091
+
1092
+ static name: string
1093
+ static $gtype: GObject.GType<DocumentTransition>
1094
+
1095
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentTransition
1096
+
1097
+ constructor(config?: DocumentTransition.ConstructorProperties)
1098
+ _init(config?: DocumentTransition.ConstructorProperties): void
1099
+ }
1100
+
1101
+ export module FileExporter {
1102
+
1103
+ // Constructor properties interface
1104
+
1105
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1106
+ }
1107
+
1108
+ }
1109
+
1110
+ export interface FileExporter {
1111
+
1112
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.FileExporter
1113
+
1114
+ begin(fc: FileExporterContext): void
1115
+ begin_page(): void
1116
+ do_page(rc: RenderContext): void
1117
+ end(): void
1118
+ end_page(): void
1119
+ get_capabilities(): FileExporterCapabilities
1120
+
1121
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.FileExporter
1122
+
1123
+ vfunc_begin(fc: FileExporterContext): void
1124
+ vfunc_begin_page(): void
1125
+ vfunc_do_page(rc: RenderContext): void
1126
+ vfunc_end(): void
1127
+ vfunc_end_page(): void
1128
+ vfunc_get_capabilities(): FileExporterCapabilities
1129
+
1130
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.FileExporter
1131
+
1132
+ connect(sigName: string, callback: (...args: any[]) => void): number
1133
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1134
+ emit(sigName: string, ...args: any[]): void
1135
+ disconnect(id: number): void
1136
+ }
1137
+
1138
+ export class FileExporter extends GObject.Object {
1139
+
1140
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FileExporter
1141
+
1142
+ static name: string
1143
+ static $gtype: GObject.GType<FileExporter>
1144
+
1145
+ // Constructors of EvinceDocument-3.0.EvinceDocument.FileExporter
1146
+
1147
+ constructor(config?: FileExporter.ConstructorProperties)
1148
+ _init(config?: FileExporter.ConstructorProperties): void
1149
+ }
1150
+
1151
+ export module Selection {
1152
+
1153
+ // Constructor properties interface
1154
+
1155
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1156
+ }
1157
+
1158
+ }
1159
+
1160
+ export interface Selection {
1161
+
1162
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Selection
1163
+
1164
+ get_selected_text(page: Page, style: SelectionStyle, points: Rectangle): string | null
1165
+ get_selection_region(rc: RenderContext, style: SelectionStyle, points: Rectangle): cairo.Region
1166
+ render_selection(rc: RenderContext, surface: cairo.Surface, points: Rectangle, old_points: Rectangle, style: SelectionStyle, text: Gdk.Color, base: Gdk.Color): void
1167
+
1168
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.Selection
1169
+
1170
+ vfunc_get_selected_text(page: Page, style: SelectionStyle, points: Rectangle): string | null
1171
+ vfunc_get_selection_region(rc: RenderContext, style: SelectionStyle, points: Rectangle): cairo.Region
1172
+ vfunc_render_selection(rc: RenderContext, surface: cairo.Surface, points: Rectangle, old_points: Rectangle, style: SelectionStyle, text: Gdk.Color, base: Gdk.Color): void
1173
+
1174
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Selection
1175
+
1176
+ connect(sigName: string, callback: (...args: any[]) => void): number
1177
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1178
+ emit(sigName: string, ...args: any[]): void
1179
+ disconnect(id: number): void
1180
+ }
1181
+
1182
+ export class Selection extends GObject.Object {
1183
+
1184
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Selection
1185
+
1186
+ static name: string
1187
+ static $gtype: GObject.GType<Selection>
1188
+
1189
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Selection
1190
+
1191
+ constructor(config?: Selection.ConstructorProperties)
1192
+ _init(config?: Selection.ConstructorProperties): void
1193
+ }
1194
+
1195
+ export module Annotation {
1196
+
1197
+ // Constructor properties interface
1198
+
1199
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1200
+
1201
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.Annotation
1202
+
1203
+ /**
1204
+ * The area of the page where the annotation is placed.
1205
+ *
1206
+ * Since 3.18
1207
+ */
1208
+ area?: Rectangle | null
1209
+ /**
1210
+ * The colour of the annotation as a #GdkColor.
1211
+ */
1212
+ color?: any | null
1213
+ contents?: string | null
1214
+ modified?: string | null
1215
+ name?: string | null
1216
+ page?: Page | null
1217
+ /**
1218
+ * The colour of the annotation as a #GdkRGBA.
1219
+ */
1220
+ rgba?: Gdk.RGBA | null
1221
+ }
1222
+
1223
+ }
1224
+
1225
+ export interface Annotation {
1226
+
1227
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Annotation
1228
+
1229
+ /**
1230
+ * The area of the page where the annotation is placed.
1231
+ *
1232
+ * Since 3.18
1233
+ */
1234
+ area: Rectangle
1235
+ /**
1236
+ * The colour of the annotation as a #GdkColor.
1237
+ */
1238
+ color: any
1239
+ contents: string | null
1240
+ modified: string | null
1241
+ name: string | null
1242
+ readonly page: Page
1243
+ /**
1244
+ * The colour of the annotation as a #GdkRGBA.
1245
+ */
1246
+ rgba: Gdk.RGBA
1247
+
1248
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Annotation
1249
+
1250
+ /**
1251
+ * Compare `annot` and `other`.
1252
+ * @param other another #EvAnnotation
1253
+ * @returns %TRUE if @annot is equal to @other, %FALSE otherwise
1254
+ */
1255
+ equal(other: Annotation): boolean
1256
+ get_annotation_type(): AnnotationType
1257
+ /**
1258
+ * Gets the area of `annot`.
1259
+ */
1260
+ get_area(): /* area */ Rectangle
1261
+ /**
1262
+ * Get the color of `annot`.
1263
+ */
1264
+ get_color(): /* color */ Gdk.Color
1265
+ /**
1266
+ * Get the contents of `annot`. The contents of
1267
+ * `annot` is the text that is displayed in the annotation, or an
1268
+ * alternate description of the annotation's content for non-text annotations
1269
+ * @returns a string with the contents of the annotation or %NULL if @annot has no contents.
1270
+ */
1271
+ get_contents(): string | null
1272
+ /**
1273
+ * Get the last modification date of `annot`.
1274
+ * @returns A string containing the last modification date.
1275
+ */
1276
+ get_modified(): string | null
1277
+ /**
1278
+ * Get the name of `annot`. The name of the annotation is a string
1279
+ * that uniquely indenftifies `annot` amongs all the annotations
1280
+ * in the same page.
1281
+ * @returns the string with the annotation's name.
1282
+ */
1283
+ get_name(): string | null
1284
+ /**
1285
+ * Get the page where `annot` appears.
1286
+ * @returns the #EvPage where @annot appears
1287
+ */
1288
+ get_page(): Page
1289
+ /**
1290
+ * Get the index of the page where `annot` appears. Note that the index
1291
+ * is 0 based.
1292
+ * @returns the page index.
1293
+ */
1294
+ get_page_index(): number
1295
+ /**
1296
+ * Gets the color of `annot`.
1297
+ */
1298
+ get_rgba(): /* rgba */ Gdk.RGBA
1299
+ /**
1300
+ * Set the area of the annotation to `area`.
1301
+ * @param area a #EvRectangle
1302
+ * @returns %TRUE if the area has been changed, %FALSE otherwise
1303
+ */
1304
+ set_area(area: Rectangle): boolean
1305
+ /**
1306
+ * Set the color of the annotation to `color`. You can monitor
1307
+ * changes to the annotation's color by connecting to
1308
+ * notify::color signal on `annot`.
1309
+ * @param color a #GdkColor
1310
+ * @returns %TRUE when the color has been changed, %FALSE otherwise.
1311
+ */
1312
+ set_color(color: Gdk.Color): boolean
1313
+ /**
1314
+ * Set the contents of `annot`. You can monitor
1315
+ * changes in the annotation's contents by connecting to
1316
+ * notify::contents signal of `annot`.
1317
+ * @param contents
1318
+ * @returns %TRUE if the contents have been changed, %FALSE otherwise.
1319
+ */
1320
+ set_contents(contents: string | null): boolean
1321
+ /**
1322
+ * Set the last modification date of `annot` to `modified`. To
1323
+ * set the last modification date using a #time_t, use
1324
+ * ev_annotation_set_modified_from_time_t() instead. You can monitor
1325
+ * changes to the last modification date by connecting to the
1326
+ * notify::modified signal on `annot`.
1327
+ * @param modified string with the last modification date.
1328
+ * @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
1329
+ */
1330
+ set_modified(modified: string | null): boolean
1331
+ /**
1332
+ * Set the last modification date of `annot` to `utime`. You can
1333
+ * monitor changes to the last modification date by connecting to the
1334
+ * notify::modified sinal on `annot`.
1335
+ * For the time-format used, see ev_document_misc_format_date().
1336
+ * @param utime a #GTime
1337
+ * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
1338
+ */
1339
+ set_modified_from_time(utime: GLib.Time): boolean
1340
+ /**
1341
+ * Set the last modification date of `annot` to `utime`. You can
1342
+ * monitor changes to the last modification date by connecting to the
1343
+ * notify::modified sinal on `annot`.
1344
+ * For the time-format used, see ev_document_misc_format_datetime().
1345
+ * @param utime a #time_t
1346
+ * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
1347
+ */
1348
+ set_modified_from_time_t(utime: number): boolean
1349
+ /**
1350
+ * Set the name of `annot`.
1351
+ * You can monitor changes of the annotation name by connecting
1352
+ * to the notify::name signal on `annot`.
1353
+ * @param name
1354
+ * @returns %TRUE when the name has been changed, %FALSE otherwise.
1355
+ */
1356
+ set_name(name: string | null): boolean
1357
+ /**
1358
+ * Set the color of the annotation to `rgba`.
1359
+ * @param rgba a #GdkRGBA
1360
+ * @returns %TRUE if the color has been changed, %FALSE otherwise
1361
+ */
1362
+ set_rgba(rgba: Gdk.RGBA): boolean
1363
+
1364
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Annotation
1365
+
1366
+ connect(sigName: "notify::area", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1367
+ connect_after(sigName: "notify::area", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1368
+ emit(sigName: "notify::area", ...args: any[]): void
1369
+ connect(sigName: "notify::color", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1370
+ connect_after(sigName: "notify::color", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1371
+ emit(sigName: "notify::color", ...args: any[]): void
1372
+ connect(sigName: "notify::contents", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1373
+ connect_after(sigName: "notify::contents", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1374
+ emit(sigName: "notify::contents", ...args: any[]): void
1375
+ connect(sigName: "notify::modified", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1376
+ connect_after(sigName: "notify::modified", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1377
+ emit(sigName: "notify::modified", ...args: any[]): void
1378
+ connect(sigName: "notify::name", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1379
+ connect_after(sigName: "notify::name", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1380
+ emit(sigName: "notify::name", ...args: any[]): void
1381
+ connect(sigName: "notify::page", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1382
+ connect_after(sigName: "notify::page", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1383
+ emit(sigName: "notify::page", ...args: any[]): void
1384
+ connect(sigName: "notify::rgba", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1385
+ connect_after(sigName: "notify::rgba", callback: (($obj: Annotation, pspec: GObject.ParamSpec) => void)): number
1386
+ emit(sigName: "notify::rgba", ...args: any[]): void
1387
+ connect(sigName: string, callback: (...args: any[]) => void): number
1388
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1389
+ emit(sigName: string, ...args: any[]): void
1390
+ disconnect(id: number): void
1391
+ }
1392
+
1393
+ export class Annotation extends GObject.Object {
1394
+
1395
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Annotation
1396
+
1397
+ static name: string
1398
+ static $gtype: GObject.GType<Annotation>
1399
+
1400
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Annotation
1401
+
1402
+ constructor(config?: Annotation.ConstructorProperties)
1403
+ _init(config?: Annotation.ConstructorProperties): void
1404
+ }
1405
+
1406
+ export module AnnotationAttachment {
1407
+
1408
+ // Constructor properties interface
1409
+
1410
+ export interface ConstructorProperties extends AnnotationMarkup.ConstructorProperties, Annotation.ConstructorProperties {
1411
+
1412
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.AnnotationAttachment
1413
+
1414
+ attachment?: Attachment | null
1415
+ }
1416
+
1417
+ }
1418
+
1419
+ export interface AnnotationAttachment extends AnnotationMarkup {
1420
+
1421
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationAttachment
1422
+
1423
+ attachment: Attachment
1424
+
1425
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationAttachment
1426
+
1427
+ get_attachment(): Attachment
1428
+ set_attachment(attachment: Attachment): boolean
1429
+
1430
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.AnnotationAttachment
1431
+
1432
+ connect(sigName: "notify::attachment", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1433
+ connect_after(sigName: "notify::attachment", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1434
+ emit(sigName: "notify::attachment", ...args: any[]): void
1435
+ connect(sigName: "notify::area", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1436
+ connect_after(sigName: "notify::area", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1437
+ emit(sigName: "notify::area", ...args: any[]): void
1438
+ connect(sigName: "notify::color", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1439
+ connect_after(sigName: "notify::color", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1440
+ emit(sigName: "notify::color", ...args: any[]): void
1441
+ connect(sigName: "notify::contents", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1442
+ connect_after(sigName: "notify::contents", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1443
+ emit(sigName: "notify::contents", ...args: any[]): void
1444
+ connect(sigName: "notify::modified", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1445
+ connect_after(sigName: "notify::modified", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1446
+ emit(sigName: "notify::modified", ...args: any[]): void
1447
+ connect(sigName: "notify::name", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1448
+ connect_after(sigName: "notify::name", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1449
+ emit(sigName: "notify::name", ...args: any[]): void
1450
+ connect(sigName: "notify::page", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1451
+ connect_after(sigName: "notify::page", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1452
+ emit(sigName: "notify::page", ...args: any[]): void
1453
+ connect(sigName: "notify::rgba", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1454
+ connect_after(sigName: "notify::rgba", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1455
+ emit(sigName: "notify::rgba", ...args: any[]): void
1456
+ connect(sigName: "notify::can-have-popup", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1457
+ connect_after(sigName: "notify::can-have-popup", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1458
+ emit(sigName: "notify::can-have-popup", ...args: any[]): void
1459
+ connect(sigName: "notify::has-popup", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1460
+ connect_after(sigName: "notify::has-popup", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1461
+ emit(sigName: "notify::has-popup", ...args: any[]): void
1462
+ connect(sigName: "notify::label", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1463
+ connect_after(sigName: "notify::label", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1464
+ emit(sigName: "notify::label", ...args: any[]): void
1465
+ connect(sigName: "notify::opacity", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1466
+ connect_after(sigName: "notify::opacity", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1467
+ emit(sigName: "notify::opacity", ...args: any[]): void
1468
+ connect(sigName: "notify::popup-is-open", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1469
+ connect_after(sigName: "notify::popup-is-open", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1470
+ emit(sigName: "notify::popup-is-open", ...args: any[]): void
1471
+ connect(sigName: "notify::rectangle", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1472
+ connect_after(sigName: "notify::rectangle", callback: (($obj: AnnotationAttachment, pspec: GObject.ParamSpec) => void)): number
1473
+ emit(sigName: "notify::rectangle", ...args: any[]): void
1474
+ connect(sigName: string, callback: (...args: any[]) => void): number
1475
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1476
+ emit(sigName: string, ...args: any[]): void
1477
+ disconnect(id: number): void
1478
+ }
1479
+
1480
+ export class AnnotationAttachment extends Annotation {
1481
+
1482
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationAttachment
1483
+
1484
+ static name: string
1485
+ static $gtype: GObject.GType<AnnotationAttachment>
1486
+
1487
+ // Constructors of EvinceDocument-3.0.EvinceDocument.AnnotationAttachment
1488
+
1489
+ constructor(config?: AnnotationAttachment.ConstructorProperties)
1490
+ constructor(page: Page, attachment: Attachment)
1491
+ static new(page: Page, attachment: Attachment): AnnotationAttachment
1492
+ _init(config?: AnnotationAttachment.ConstructorProperties): void
1493
+ }
1494
+
1495
+ export module AnnotationText {
1496
+
1497
+ // Constructor properties interface
1498
+
1499
+ export interface ConstructorProperties extends AnnotationMarkup.ConstructorProperties, Annotation.ConstructorProperties {
1500
+
1501
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.AnnotationText
1502
+
1503
+ icon?: AnnotationTextIcon | null
1504
+ is_open?: boolean | null
1505
+ }
1506
+
1507
+ }
1508
+
1509
+ export interface AnnotationText extends AnnotationMarkup {
1510
+
1511
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationText
1512
+
1513
+ icon: AnnotationTextIcon
1514
+ is_open: boolean
1515
+
1516
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationText
1517
+
1518
+ get_icon(): AnnotationTextIcon
1519
+ get_is_open(): boolean
1520
+ set_icon(icon: AnnotationTextIcon): boolean
1521
+ set_is_open(is_open: boolean): boolean
1522
+
1523
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.AnnotationText
1524
+
1525
+ connect(sigName: "notify::icon", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1526
+ connect_after(sigName: "notify::icon", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1527
+ emit(sigName: "notify::icon", ...args: any[]): void
1528
+ connect(sigName: "notify::is-open", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1529
+ connect_after(sigName: "notify::is-open", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1530
+ emit(sigName: "notify::is-open", ...args: any[]): void
1531
+ connect(sigName: "notify::area", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1532
+ connect_after(sigName: "notify::area", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1533
+ emit(sigName: "notify::area", ...args: any[]): void
1534
+ connect(sigName: "notify::color", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1535
+ connect_after(sigName: "notify::color", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1536
+ emit(sigName: "notify::color", ...args: any[]): void
1537
+ connect(sigName: "notify::contents", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1538
+ connect_after(sigName: "notify::contents", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1539
+ emit(sigName: "notify::contents", ...args: any[]): void
1540
+ connect(sigName: "notify::modified", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1541
+ connect_after(sigName: "notify::modified", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1542
+ emit(sigName: "notify::modified", ...args: any[]): void
1543
+ connect(sigName: "notify::name", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1544
+ connect_after(sigName: "notify::name", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1545
+ emit(sigName: "notify::name", ...args: any[]): void
1546
+ connect(sigName: "notify::page", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1547
+ connect_after(sigName: "notify::page", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1548
+ emit(sigName: "notify::page", ...args: any[]): void
1549
+ connect(sigName: "notify::rgba", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1550
+ connect_after(sigName: "notify::rgba", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1551
+ emit(sigName: "notify::rgba", ...args: any[]): void
1552
+ connect(sigName: "notify::can-have-popup", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1553
+ connect_after(sigName: "notify::can-have-popup", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1554
+ emit(sigName: "notify::can-have-popup", ...args: any[]): void
1555
+ connect(sigName: "notify::has-popup", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1556
+ connect_after(sigName: "notify::has-popup", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1557
+ emit(sigName: "notify::has-popup", ...args: any[]): void
1558
+ connect(sigName: "notify::label", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1559
+ connect_after(sigName: "notify::label", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1560
+ emit(sigName: "notify::label", ...args: any[]): void
1561
+ connect(sigName: "notify::opacity", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1562
+ connect_after(sigName: "notify::opacity", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1563
+ emit(sigName: "notify::opacity", ...args: any[]): void
1564
+ connect(sigName: "notify::popup-is-open", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1565
+ connect_after(sigName: "notify::popup-is-open", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1566
+ emit(sigName: "notify::popup-is-open", ...args: any[]): void
1567
+ connect(sigName: "notify::rectangle", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1568
+ connect_after(sigName: "notify::rectangle", callback: (($obj: AnnotationText, pspec: GObject.ParamSpec) => void)): number
1569
+ emit(sigName: "notify::rectangle", ...args: any[]): void
1570
+ connect(sigName: string, callback: (...args: any[]) => void): number
1571
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1572
+ emit(sigName: string, ...args: any[]): void
1573
+ disconnect(id: number): void
1574
+ }
1575
+
1576
+ export class AnnotationText extends Annotation {
1577
+
1578
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationText
1579
+
1580
+ static name: string
1581
+ static $gtype: GObject.GType<AnnotationText>
1582
+
1583
+ // Constructors of EvinceDocument-3.0.EvinceDocument.AnnotationText
1584
+
1585
+ constructor(config?: AnnotationText.ConstructorProperties)
1586
+ constructor(page: Page)
1587
+ static new(page: Page): AnnotationText
1588
+ _init(config?: AnnotationText.ConstructorProperties): void
1589
+ }
1590
+
1591
+ export module AnnotationTextMarkup {
1592
+
1593
+ // Constructor properties interface
1594
+
1595
+ export interface ConstructorProperties extends AnnotationMarkup.ConstructorProperties, Annotation.ConstructorProperties {
1596
+
1597
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.AnnotationTextMarkup
1598
+
1599
+ type?: AnnotationTextMarkupType | null
1600
+ }
1601
+
1602
+ }
1603
+
1604
+ export interface AnnotationTextMarkup extends AnnotationMarkup {
1605
+
1606
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationTextMarkup
1607
+
1608
+ type: AnnotationTextMarkupType
1609
+
1610
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationTextMarkup
1611
+
1612
+ get_markup_type(): AnnotationTextMarkupType
1613
+ set_markup_type(markup_type: AnnotationTextMarkupType): boolean
1614
+
1615
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.AnnotationTextMarkup
1616
+
1617
+ connect(sigName: "notify::type", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1618
+ connect_after(sigName: "notify::type", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1619
+ emit(sigName: "notify::type", ...args: any[]): void
1620
+ connect(sigName: "notify::area", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1621
+ connect_after(sigName: "notify::area", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1622
+ emit(sigName: "notify::area", ...args: any[]): void
1623
+ connect(sigName: "notify::color", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1624
+ connect_after(sigName: "notify::color", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1625
+ emit(sigName: "notify::color", ...args: any[]): void
1626
+ connect(sigName: "notify::contents", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1627
+ connect_after(sigName: "notify::contents", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1628
+ emit(sigName: "notify::contents", ...args: any[]): void
1629
+ connect(sigName: "notify::modified", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1630
+ connect_after(sigName: "notify::modified", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1631
+ emit(sigName: "notify::modified", ...args: any[]): void
1632
+ connect(sigName: "notify::name", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1633
+ connect_after(sigName: "notify::name", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1634
+ emit(sigName: "notify::name", ...args: any[]): void
1635
+ connect(sigName: "notify::page", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1636
+ connect_after(sigName: "notify::page", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1637
+ emit(sigName: "notify::page", ...args: any[]): void
1638
+ connect(sigName: "notify::rgba", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1639
+ connect_after(sigName: "notify::rgba", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1640
+ emit(sigName: "notify::rgba", ...args: any[]): void
1641
+ connect(sigName: "notify::can-have-popup", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1642
+ connect_after(sigName: "notify::can-have-popup", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1643
+ emit(sigName: "notify::can-have-popup", ...args: any[]): void
1644
+ connect(sigName: "notify::has-popup", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1645
+ connect_after(sigName: "notify::has-popup", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1646
+ emit(sigName: "notify::has-popup", ...args: any[]): void
1647
+ connect(sigName: "notify::label", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1648
+ connect_after(sigName: "notify::label", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1649
+ emit(sigName: "notify::label", ...args: any[]): void
1650
+ connect(sigName: "notify::opacity", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1651
+ connect_after(sigName: "notify::opacity", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1652
+ emit(sigName: "notify::opacity", ...args: any[]): void
1653
+ connect(sigName: "notify::popup-is-open", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1654
+ connect_after(sigName: "notify::popup-is-open", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1655
+ emit(sigName: "notify::popup-is-open", ...args: any[]): void
1656
+ connect(sigName: "notify::rectangle", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1657
+ connect_after(sigName: "notify::rectangle", callback: (($obj: AnnotationTextMarkup, pspec: GObject.ParamSpec) => void)): number
1658
+ emit(sigName: "notify::rectangle", ...args: any[]): void
1659
+ connect(sigName: string, callback: (...args: any[]) => void): number
1660
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1661
+ emit(sigName: string, ...args: any[]): void
1662
+ disconnect(id: number): void
1663
+ }
1664
+
1665
+ export class AnnotationTextMarkup extends Annotation {
1666
+
1667
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationTextMarkup
1668
+
1669
+ static name: string
1670
+ static $gtype: GObject.GType<AnnotationTextMarkup>
1671
+
1672
+ // Constructors of EvinceDocument-3.0.EvinceDocument.AnnotationTextMarkup
1673
+
1674
+ constructor(config?: AnnotationTextMarkup.ConstructorProperties)
1675
+ static highlight_new(page: Page): AnnotationTextMarkup
1676
+ static squiggly_new(page: Page): AnnotationTextMarkup
1677
+ static strike_out_new(page: Page): AnnotationTextMarkup
1678
+ static underline_new(page: Page): AnnotationTextMarkup
1679
+ _init(config?: AnnotationTextMarkup.ConstructorProperties): void
1680
+ }
1681
+
1682
+ export module Attachment {
1683
+
1684
+ // Constructor properties interface
1685
+
1686
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1687
+
1688
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.Attachment
1689
+
1690
+ ctime?: number | null
1691
+ data?: any | null
1692
+ description?: string | null
1693
+ mtime?: number | null
1694
+ name?: string | null
1695
+ size?: number | null
1696
+ }
1697
+
1698
+ }
1699
+
1700
+ export interface Attachment {
1701
+
1702
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Attachment
1703
+
1704
+ readonly ctime: number
1705
+ readonly data: any
1706
+ readonly description: string | null
1707
+ readonly mtime: number
1708
+ readonly name: string | null
1709
+ readonly size: number
1710
+
1711
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Attachment
1712
+
1713
+ base_instance: GObject.Object
1714
+
1715
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Attachment
1716
+
1717
+ get_creation_date(): GLib.Time
1718
+ get_description(): string | null
1719
+ get_mime_type(): string | null
1720
+ get_modification_date(): GLib.Time
1721
+ get_name(): string | null
1722
+ open(screen: Gdk.Screen, timestamp: number): boolean
1723
+ save(file: Gio.File): boolean
1724
+
1725
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Attachment
1726
+
1727
+ connect(sigName: "notify::ctime", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1728
+ connect_after(sigName: "notify::ctime", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1729
+ emit(sigName: "notify::ctime", ...args: any[]): void
1730
+ connect(sigName: "notify::data", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1731
+ connect_after(sigName: "notify::data", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1732
+ emit(sigName: "notify::data", ...args: any[]): void
1733
+ connect(sigName: "notify::description", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1734
+ connect_after(sigName: "notify::description", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1735
+ emit(sigName: "notify::description", ...args: any[]): void
1736
+ connect(sigName: "notify::mtime", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1737
+ connect_after(sigName: "notify::mtime", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1738
+ emit(sigName: "notify::mtime", ...args: any[]): void
1739
+ connect(sigName: "notify::name", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1740
+ connect_after(sigName: "notify::name", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1741
+ emit(sigName: "notify::name", ...args: any[]): void
1742
+ connect(sigName: "notify::size", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1743
+ connect_after(sigName: "notify::size", callback: (($obj: Attachment, pspec: GObject.ParamSpec) => void)): number
1744
+ emit(sigName: "notify::size", ...args: any[]): void
1745
+ connect(sigName: string, callback: (...args: any[]) => void): number
1746
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1747
+ emit(sigName: string, ...args: any[]): void
1748
+ disconnect(id: number): void
1749
+ }
1750
+
1751
+ export class Attachment extends GObject.Object {
1752
+
1753
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Attachment
1754
+
1755
+ static name: string
1756
+ static $gtype: GObject.GType<Attachment>
1757
+
1758
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Attachment
1759
+
1760
+ constructor(config?: Attachment.ConstructorProperties)
1761
+ constructor(name: string | null, description: string | null, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null)
1762
+ static new(name: string | null, description: string | null, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null): Attachment
1763
+ _init(config?: Attachment.ConstructorProperties): void
1764
+ static error_quark(): GLib.Quark
1765
+ }
1766
+
1767
+ export module Document {
1768
+
1769
+ // Constructor properties interface
1770
+
1771
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1772
+
1773
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.Document
1774
+
1775
+ modified?: boolean | null
1776
+ }
1777
+
1778
+ }
1779
+
1780
+ export interface Document {
1781
+
1782
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Document
1783
+
1784
+ modified: boolean
1785
+
1786
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Document
1787
+
1788
+ base: GObject.Object
1789
+ priv: DocumentPrivate
1790
+
1791
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Document
1792
+
1793
+ check_dimensions(): boolean
1794
+ find_page_by_label(page_label: string | null, page_index: number): boolean
1795
+ get_backend_info(info: DocumentBackendInfo): boolean
1796
+ /**
1797
+ * Returns the #EvDocumentInfo for the document.
1798
+ * @returns a #EvDocumentInfo
1799
+ */
1800
+ get_info(): DocumentInfo
1801
+ get_max_label_len(): number
1802
+ get_max_page_size(width: number, height: number): void
1803
+ get_min_page_size(width: number, height: number): void
1804
+ get_modified(): boolean
1805
+ get_n_pages(): number
1806
+ get_page(index: number): Page
1807
+ get_page_label(page_index: number): string | null
1808
+ get_page_size(page_index: number): [ /* width */ number, /* height */ number ]
1809
+ get_size(): number
1810
+ get_thumbnail(rc: RenderContext): GdkPixbuf.Pixbuf
1811
+ get_thumbnail_surface(rc: RenderContext): cairo.Surface
1812
+ get_title(): string | null
1813
+ get_uri(): string | null
1814
+ has_synctex(): boolean
1815
+ has_text_page_labels(): boolean
1816
+ is_page_size_uniform(): boolean
1817
+ /**
1818
+ * Loads `document` from `uri`.
1819
+ *
1820
+ * On failure, %FALSE is returned and `error` is filled in.
1821
+ * If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
1822
+ * If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
1823
+ * is returned. If the backend does not support the format for the document's
1824
+ * contents, EV_DOCUMENT_ERROR_UNSUPPORTED_CONTENT is returned. Other errors
1825
+ * are possible too, depending on the backend used to load the document and
1826
+ * the URI, e.g. #GIOError, #GFileError, and #GConvertError.
1827
+ * @param uri the document's URI
1828
+ * @returns %TRUE on success, or %FALSE on failure.
1829
+ */
1830
+ load(uri: string | null): boolean
1831
+ /**
1832
+ * Synchronously loads the document from `fd,` which must refer to
1833
+ * a regular file.
1834
+ *
1835
+ * Note that this function takes ownership of `fd;` you must not ever
1836
+ * operate on it again. It will be closed automatically if the document
1837
+ * is destroyed, or if this function returns %NULL.
1838
+ *
1839
+ * See ev_document_load() for more information.
1840
+ * @param fd a file descriptor
1841
+ * @param flags flags from #EvDocumentLoadFlags
1842
+ * @param cancellable a #GCancellable, or %NULL
1843
+ * @returns %TRUE if loading succeeded, or %FALSE on error with @error filled in
1844
+ */
1845
+ load_fd(fd: number, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): boolean
1846
+ /**
1847
+ * Loads `document` from `uri`.
1848
+ *
1849
+ * On failure, %FALSE is returned and `error` is filled in.
1850
+ * If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
1851
+ * If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
1852
+ * is returned. Other errors are possible too, depending on the backend
1853
+ * used to load the document and the URI, e.g. #GIOError, #GFileError, and
1854
+ * #GConvertError.
1855
+ * @param uri the document's URI
1856
+ * @param flags flags from #EvDocumentLoadFlags
1857
+ * @returns %TRUE on success, or %FALSE on failure.
1858
+ */
1859
+ load_full(uri: string | null, flags: DocumentLoadFlags): boolean
1860
+ /**
1861
+ * Synchronously loads the document from `file`.
1862
+ * See ev_document_load() for more information.
1863
+ * @param file a #GFile
1864
+ * @param flags flags from #EvDocumentLoadFlags
1865
+ * @param cancellable a #GCancellable, or %NULL
1866
+ * @returns %TRUE if loading succeeded, or %FALSE on error with @error filled in
1867
+ */
1868
+ load_gfile(file: Gio.File, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): boolean
1869
+ /**
1870
+ * Synchronously loads the document from `stream`.
1871
+ * See ev_document_load() for more information.
1872
+ * @param stream a #GInputStream
1873
+ * @param flags flags from #EvDocumentLoadFlags
1874
+ * @param cancellable a #GCancellable, or %NULL
1875
+ * @returns %TRUE if loading succeeded, or %FALSE on error with @error filled in
1876
+ */
1877
+ load_stream(stream: Gio.InputStream, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): boolean
1878
+ render(rc: RenderContext): cairo.Surface
1879
+ /**
1880
+ * Saves `document` to `uri`.
1881
+ * @param uri the target URI
1882
+ * @returns %TRUE on success, or %FALSE on error with @error filled in
1883
+ */
1884
+ save(uri: string | null): boolean
1885
+ /**
1886
+ * Set the `document` modification state as `modified`.
1887
+ * @param modified a boolean value to set the document as modified or not.
1888
+ */
1889
+ set_modified(modified: boolean): void
1890
+ /**
1891
+ * Peforms a Synctex backward search to obtain the TeX input file, line and
1892
+ * (possibly) column corresponding to the position (`x,``y)` (in 72dpi
1893
+ * coordinates) in the `page` of `document`.
1894
+ * @param page_index the target page
1895
+ * @param x X coordinate
1896
+ * @param y Y coordinate
1897
+ * @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.
1898
+ */
1899
+ synctex_backward_search(page_index: number, x: number, y: number): SourceLink
1900
+
1901
+ // Own virtual methods of EvinceDocument-3.0.EvinceDocument.Document
1902
+
1903
+ vfunc_get_backend_info(info: DocumentBackendInfo): boolean
1904
+ /**
1905
+ * Returns the #EvDocumentInfo for the document.
1906
+ * @virtual
1907
+ * @returns a #EvDocumentInfo
1908
+ */
1909
+ vfunc_get_info(): DocumentInfo
1910
+ vfunc_get_n_pages(): number
1911
+ vfunc_get_page(index: number): Page
1912
+ vfunc_get_page_label(page: Page): string | null
1913
+ vfunc_get_page_size(page_index: Page): [ /* width */ number, /* height */ number ]
1914
+ vfunc_get_thumbnail(rc: RenderContext): GdkPixbuf.Pixbuf
1915
+ vfunc_get_thumbnail_surface(rc: RenderContext): cairo.Surface
1916
+ /**
1917
+ * Loads `document` from `uri`.
1918
+ *
1919
+ * On failure, %FALSE is returned and `error` is filled in.
1920
+ * If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
1921
+ * If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
1922
+ * is returned. If the backend does not support the format for the document's
1923
+ * contents, EV_DOCUMENT_ERROR_UNSUPPORTED_CONTENT is returned. Other errors
1924
+ * are possible too, depending on the backend used to load the document and
1925
+ * the URI, e.g. #GIOError, #GFileError, and #GConvertError.
1926
+ * @virtual
1927
+ * @param uri the document's URI
1928
+ * @returns %TRUE on success, or %FALSE on failure.
1929
+ */
1930
+ vfunc_load(uri: string | null): boolean
1931
+ /**
1932
+ * Synchronously loads the document from `fd,` which must refer to
1933
+ * a regular file.
1934
+ *
1935
+ * Note that this function takes ownership of `fd;` you must not ever
1936
+ * operate on it again. It will be closed automatically if the document
1937
+ * is destroyed, or if this function returns %NULL.
1938
+ *
1939
+ * See ev_document_load() for more information.
1940
+ * @virtual
1941
+ * @param fd a file descriptor
1942
+ * @param flags flags from #EvDocumentLoadFlags
1943
+ * @param cancellable a #GCancellable, or %NULL
1944
+ * @returns %TRUE if loading succeeded, or %FALSE on error with @error filled in
1945
+ */
1946
+ vfunc_load_fd(fd: number, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): boolean
1947
+ /**
1948
+ * Synchronously loads the document from `file`.
1949
+ * See ev_document_load() for more information.
1950
+ * @virtual
1951
+ * @param file a #GFile
1952
+ * @param flags flags from #EvDocumentLoadFlags
1953
+ * @param cancellable a #GCancellable, or %NULL
1954
+ * @returns %TRUE if loading succeeded, or %FALSE on error with @error filled in
1955
+ */
1956
+ vfunc_load_gfile(file: Gio.File, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): boolean
1957
+ /**
1958
+ * Synchronously loads the document from `stream`.
1959
+ * See ev_document_load() for more information.
1960
+ * @virtual
1961
+ * @param stream a #GInputStream
1962
+ * @param flags flags from #EvDocumentLoadFlags
1963
+ * @param cancellable a #GCancellable, or %NULL
1964
+ * @returns %TRUE if loading succeeded, or %FALSE on error with @error filled in
1965
+ */
1966
+ vfunc_load_stream(stream: Gio.InputStream, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): boolean
1967
+ vfunc_render(rc: RenderContext): cairo.Surface
1968
+ /**
1969
+ * Saves `document` to `uri`.
1970
+ * @virtual
1971
+ * @param uri the target URI
1972
+ * @returns %TRUE on success, or %FALSE on error with @error filled in
1973
+ */
1974
+ vfunc_save(uri: string | null): boolean
1975
+ vfunc_support_synctex(): boolean
1976
+
1977
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Document
1978
+
1979
+ connect(sigName: "notify::modified", callback: (($obj: Document, pspec: GObject.ParamSpec) => void)): number
1980
+ connect_after(sigName: "notify::modified", callback: (($obj: Document, pspec: GObject.ParamSpec) => void)): number
1981
+ emit(sigName: "notify::modified", ...args: any[]): void
1982
+ connect(sigName: string, callback: (...args: any[]) => void): number
1983
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1984
+ emit(sigName: string, ...args: any[]): void
1985
+ disconnect(id: number): void
1986
+ }
1987
+
1988
+ export class Document extends GObject.Object {
1989
+
1990
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Document
1991
+
1992
+ static name: string
1993
+ static $gtype: GObject.GType<Document>
1994
+
1995
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Document
1996
+
1997
+ constructor(config?: Document.ConstructorProperties)
1998
+ _init(config?: Document.ConstructorProperties): void
1999
+ static doc_mutex_lock(): void
2000
+ static doc_mutex_trylock(): boolean
2001
+ static doc_mutex_unlock(): void
2002
+ /**
2003
+ * Adds some file filters to `chooser`.
2004
+ *
2005
+ * Always add a "All documents" format.
2006
+ *
2007
+ * If `document` is not %NULL, adds a #GtkFileFilter for `document'`s MIME type.
2008
+ *
2009
+ * If `document` is %NULL, adds a #GtkFileFilter for each document type that evince
2010
+ * can handle.
2011
+ * @param chooser a #GtkFileChooser
2012
+ * @param document a #EvDocument, or %NULL
2013
+ */
2014
+ static factory_add_filters(chooser: Gtk.Widget, document: Document): void
2015
+ /**
2016
+ * Creates a #EvDocument for the document at `uri;` or, if no backend handling
2017
+ * the document's type is found, or an error occurred on opening the document,
2018
+ * returns %NULL and fills in `error`.
2019
+ * If the document is encrypted, it is returned but also `error` is set to
2020
+ * %EV_DOCUMENT_ERROR_ENCRYPTED.
2021
+ * @param uri an URI
2022
+ * @returns a new #EvDocument, or %NULL
2023
+ */
2024
+ static factory_get_document(uri: string | null): Document
2025
+ /**
2026
+ * Synchronously creates a #EvDocument for the document from `fd` using the backend
2027
+ * for loading documents of type `mime_type;` or, if the backend does not support
2028
+ * loading from file descriptors, or an error occurred on opening the document,
2029
+ * returns %NULL and fills in `error`.
2030
+ * If the document is encrypted, it is returned but also `error` is set to
2031
+ * %EV_DOCUMENT_ERROR_ENCRYPTED.
2032
+ *
2033
+ * If the mime type cannot be inferred from the file descriptor, and `mime_type` is %NULL,
2034
+ * an error is returned.
2035
+ *
2036
+ * Note that this function takes ownership of `fd;` you must not ever
2037
+ * operate on it again. It will be closed automatically if the document
2038
+ * is destroyed, or if this function returns %NULL.
2039
+ * @param fd a file descriptor
2040
+ * @param mime_type the mime type
2041
+ * @param flags flags from #EvDocumentLoadFlags
2042
+ * @param cancellable a #GCancellable, or %NULL
2043
+ * @returns a new #EvDocument, or %NULL
2044
+ */
2045
+ static factory_get_document_for_fd(fd: number, mime_type: string | null, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): Document
2046
+ /**
2047
+ * Synchronously creates a #EvDocument for the document at `file;` or, if no
2048
+ * backend handling the document's type is found, or an error occurred on
2049
+ * opening the document, returns %NULL and fills in `error`.
2050
+ * If the document is encrypted, it is returned but also `error` is set to
2051
+ * %EV_DOCUMENT_ERROR_ENCRYPTED.
2052
+ * @param file a #GFile
2053
+ * @param flags flags from #EvDocumentLoadFlags
2054
+ * @param cancellable a #GCancellable, or %NULL
2055
+ * @returns a new #EvDocument, or %NULL
2056
+ */
2057
+ static factory_get_document_for_gfile(file: Gio.File, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): Document
2058
+ /**
2059
+ * Synchronously creates a #EvDocument for the document from `stream;` or, if no
2060
+ * backend handling the document's type is found, or an error occurred
2061
+ * on opening the document, returns %NULL and fills in `error`.
2062
+ * If the document is encrypted, it is returned but also `error` is set to
2063
+ * %EV_DOCUMENT_ERROR_ENCRYPTED.
2064
+ *
2065
+ * If `mime_type` is non-%NULL, this overrides any type inferred from the stream.
2066
+ * If the mime type cannot be inferred from the stream, and `mime_type` is %NULL,
2067
+ * an error is returned.
2068
+ * @param stream a #GInputStream
2069
+ * @param mime_type a mime type hint
2070
+ * @param flags flags from #EvDocumentLoadFlags
2071
+ * @param cancellable a #GCancellable, or %NULL
2072
+ * @returns a new #EvDocument, or %NULL
2073
+ */
2074
+ static factory_get_document_for_stream(stream: Gio.InputStream, mime_type: string | null, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): Document
2075
+ /**
2076
+ * Creates a #EvDocument for the document at `uri;` or, if no backend handling
2077
+ * the document's type is found, or an error occurred on opening the document,
2078
+ * returns %NULL and fills in `error`.
2079
+ * If the document is encrypted, it is returned but also `error` is set to
2080
+ * %EV_DOCUMENT_ERROR_ENCRYPTED.
2081
+ * @param uri an URI
2082
+ * @param flags flags from #EvDocumentLoadFlags
2083
+ * @returns a new #EvDocument, or %NULL
2084
+ */
2085
+ static factory_get_document_full(uri: string | null, flags: DocumentLoadFlags): Document
2086
+ static fc_mutex_lock(): void
2087
+ static fc_mutex_trylock(): boolean
2088
+ static fc_mutex_unlock(): void
2089
+ static misc_format_date(utime: GLib.Time): string | null
2090
+ /**
2091
+ * Determine the preferred date and time representation for the current locale
2092
+ * for `dt`.
2093
+ * @param dt a #GDateTime
2094
+ * @returns a new allocated string or NULL in the case that there was an error (such as a format specifier not being supported in the current locale). The string should be freed with g_free().
2095
+ */
2096
+ static misc_format_datetime(dt: GLib.DateTime): string | null
2097
+ static misc_get_loading_thumbnail(width: number, height: number, inverted_colors: boolean): GdkPixbuf.Pixbuf
2098
+ static misc_get_page_border_size(page_width: number, page_height: number, border: Gtk.Border): void
2099
+ /**
2100
+ * Get the pointer's x and y position relative to `widget`.
2101
+ * @param widget a #GtkWidget
2102
+ */
2103
+ static misc_get_pointer_position(widget: Gtk.Widget): [ /* x */ number, /* y */ number ]
2104
+ static misc_get_screen_dpi(screen: Gdk.Screen): number
2105
+ static misc_get_thumbnail_frame(width: number, height: number, source_pixbuf: GdkPixbuf.Pixbuf): GdkPixbuf.Pixbuf
2106
+ /**
2107
+ * Returns sensible guess for DPI of monitor on which given widget has been
2108
+ * realized. If HiDPI display, use 192, else 96.
2109
+ * Returns 96 as fallback value.
2110
+ * @param widget a #GtkWidget
2111
+ * @returns DPI as gdouble
2112
+ */
2113
+ static misc_get_widget_dpi(widget: Gtk.Widget): number
2114
+ static misc_invert_pixbuf(pixbuf: GdkPixbuf.Pixbuf): void
2115
+ static misc_invert_surface(surface: cairo.Surface): void
2116
+ static misc_paint_one_page(cr: cairo.Context, widget: Gtk.Widget, area: Gdk.Rectangle, border: Gtk.Border, highlight: boolean, inverted_colors: boolean): void
2117
+ static misc_pixbuf_from_surface(surface: cairo.Surface): GdkPixbuf.Pixbuf
2118
+ static misc_render_loading_thumbnail(widget: Gtk.Widget, width: number, height: number, inverted_colors: boolean): GdkPixbuf.Pixbuf
2119
+ static misc_render_loading_thumbnail_surface(widget: Gtk.Widget, width: number, height: number, inverted_colors: boolean): cairo.Surface
2120
+ static misc_render_thumbnail_surface_with_frame(widget: Gtk.Widget, source_surface: cairo.Surface, width: number, height: number): cairo.Surface
2121
+ static misc_render_thumbnail_with_frame(widget: Gtk.Widget, source_pixbuf: GdkPixbuf.Pixbuf): GdkPixbuf.Pixbuf
2122
+ static misc_surface_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf): cairo.Surface
2123
+ static misc_surface_rotate_and_scale(surface: cairo.Surface, dest_width: number, dest_height: number, dest_rotation: number): cairo.Surface
2124
+ }
2125
+
2126
+ export module FormField {
2127
+
2128
+ // Constructor properties interface
2129
+
2130
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2131
+ }
2132
+
2133
+ }
2134
+
2135
+ export interface FormField {
2136
+
2137
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormField
2138
+
2139
+ parent: GObject.Object
2140
+ id: number
2141
+ is_read_only: boolean
2142
+ font_size: number
2143
+ activation_link: Link
2144
+ page: Page
2145
+ changed: boolean
2146
+
2147
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.FormField
2148
+
2149
+ connect(sigName: string, callback: (...args: any[]) => void): number
2150
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2151
+ emit(sigName: string, ...args: any[]): void
2152
+ disconnect(id: number): void
2153
+ }
2154
+
2155
+ export class FormField extends GObject.Object {
2156
+
2157
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormField
2158
+
2159
+ static name: string
2160
+ static $gtype: GObject.GType<FormField>
2161
+
2162
+ // Constructors of EvinceDocument-3.0.EvinceDocument.FormField
2163
+
2164
+ constructor(config?: FormField.ConstructorProperties)
2165
+ _init(config?: FormField.ConstructorProperties): void
2166
+ }
2167
+
2168
+ export module FormFieldButton {
2169
+
2170
+ // Constructor properties interface
2171
+
2172
+ export interface ConstructorProperties extends FormField.ConstructorProperties {
2173
+ }
2174
+
2175
+ }
2176
+
2177
+ export interface FormFieldButton {
2178
+
2179
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldButton
2180
+
2181
+ parent: FormField & GObject.Object
2182
+ type: FormFieldButtonType
2183
+ state: boolean
2184
+
2185
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.FormFieldButton
2186
+
2187
+ connect(sigName: string, callback: (...args: any[]) => void): number
2188
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2189
+ emit(sigName: string, ...args: any[]): void
2190
+ disconnect(id: number): void
2191
+ }
2192
+
2193
+ export class FormFieldButton extends FormField {
2194
+
2195
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldButton
2196
+
2197
+ static name: string
2198
+ static $gtype: GObject.GType<FormFieldButton>
2199
+
2200
+ // Constructors of EvinceDocument-3.0.EvinceDocument.FormFieldButton
2201
+
2202
+ constructor(config?: FormFieldButton.ConstructorProperties)
2203
+ constructor(id: number, type: FormFieldButtonType)
2204
+ static new(id: number, type: FormFieldButtonType): FormFieldButton
2205
+ _init(config?: FormFieldButton.ConstructorProperties): void
2206
+ }
2207
+
2208
+ export module FormFieldChoice {
2209
+
2210
+ // Constructor properties interface
2211
+
2212
+ export interface ConstructorProperties extends FormField.ConstructorProperties {
2213
+ }
2214
+
2215
+ }
2216
+
2217
+ export interface FormFieldChoice {
2218
+
2219
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldChoice
2220
+
2221
+ parent: FormField & GObject.Object
2222
+ type: FormFieldChoiceType
2223
+ multi_select: boolean
2224
+ is_editable: boolean
2225
+ do_spell_check: boolean
2226
+ commit_on_sel_change: boolean
2227
+ selected_items: any[]
2228
+ text: string | null
2229
+
2230
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.FormFieldChoice
2231
+
2232
+ connect(sigName: string, callback: (...args: any[]) => void): number
2233
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2234
+ emit(sigName: string, ...args: any[]): void
2235
+ disconnect(id: number): void
2236
+ }
2237
+
2238
+ export class FormFieldChoice extends FormField {
2239
+
2240
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldChoice
2241
+
2242
+ static name: string
2243
+ static $gtype: GObject.GType<FormFieldChoice>
2244
+
2245
+ // Constructors of EvinceDocument-3.0.EvinceDocument.FormFieldChoice
2246
+
2247
+ constructor(config?: FormFieldChoice.ConstructorProperties)
2248
+ constructor(id: number, type: FormFieldChoiceType)
2249
+ static new(id: number, type: FormFieldChoiceType): FormFieldChoice
2250
+ _init(config?: FormFieldChoice.ConstructorProperties): void
2251
+ }
2252
+
2253
+ export module FormFieldSignature {
2254
+
2255
+ // Constructor properties interface
2256
+
2257
+ export interface ConstructorProperties extends FormField.ConstructorProperties {
2258
+ }
2259
+
2260
+ }
2261
+
2262
+ export interface FormFieldSignature {
2263
+
2264
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldSignature
2265
+
2266
+ parent: FormField & GObject.Object
2267
+
2268
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.FormFieldSignature
2269
+
2270
+ connect(sigName: string, callback: (...args: any[]) => void): number
2271
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2272
+ emit(sigName: string, ...args: any[]): void
2273
+ disconnect(id: number): void
2274
+ }
2275
+
2276
+ export class FormFieldSignature extends FormField {
2277
+
2278
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldSignature
2279
+
2280
+ static name: string
2281
+ static $gtype: GObject.GType<FormFieldSignature>
2282
+
2283
+ // Constructors of EvinceDocument-3.0.EvinceDocument.FormFieldSignature
2284
+
2285
+ constructor(config?: FormFieldSignature.ConstructorProperties)
2286
+ constructor(id: number)
2287
+ static new(id: number): FormFieldSignature
2288
+ _init(config?: FormFieldSignature.ConstructorProperties): void
2289
+ }
2290
+
2291
+ export module FormFieldText {
2292
+
2293
+ // Constructor properties interface
2294
+
2295
+ export interface ConstructorProperties extends FormField.ConstructorProperties {
2296
+ }
2297
+
2298
+ }
2299
+
2300
+ export interface FormFieldText {
2301
+
2302
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldText
2303
+
2304
+ parent: FormField & GObject.Object
2305
+ type: FormFieldTextType
2306
+ do_spell_check: boolean
2307
+ do_scroll: boolean
2308
+ comb: boolean
2309
+ is_rich_text: boolean
2310
+ is_password: boolean
2311
+ max_len: number
2312
+ text: string | null
2313
+
2314
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.FormFieldText
2315
+
2316
+ connect(sigName: string, callback: (...args: any[]) => void): number
2317
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2318
+ emit(sigName: string, ...args: any[]): void
2319
+ disconnect(id: number): void
2320
+ }
2321
+
2322
+ export class FormFieldText extends FormField {
2323
+
2324
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldText
2325
+
2326
+ static name: string
2327
+ static $gtype: GObject.GType<FormFieldText>
2328
+
2329
+ // Constructors of EvinceDocument-3.0.EvinceDocument.FormFieldText
2330
+
2331
+ constructor(config?: FormFieldText.ConstructorProperties)
2332
+ constructor(id: number, type: FormFieldTextType)
2333
+ static new(id: number, type: FormFieldTextType): FormFieldText
2334
+ _init(config?: FormFieldText.ConstructorProperties): void
2335
+ }
2336
+
2337
+ export module Image {
2338
+
2339
+ // Constructor properties interface
2340
+
2341
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2342
+ }
2343
+
2344
+ }
2345
+
2346
+ export interface Image {
2347
+
2348
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Image
2349
+
2350
+ base_instance: GObject.Object
2351
+ priv: ImagePrivate
2352
+
2353
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Image
2354
+
2355
+ get_id(): number
2356
+ get_page(): number
2357
+ get_pixbuf(): GdkPixbuf.Pixbuf
2358
+ get_tmp_uri(): string | null
2359
+ save_tmp(pixbuf: GdkPixbuf.Pixbuf): string | null
2360
+
2361
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Image
2362
+
2363
+ connect(sigName: string, callback: (...args: any[]) => void): number
2364
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2365
+ emit(sigName: string, ...args: any[]): void
2366
+ disconnect(id: number): void
2367
+ }
2368
+
2369
+ export class Image extends GObject.Object {
2370
+
2371
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Image
2372
+
2373
+ static name: string
2374
+ static $gtype: GObject.GType<Image>
2375
+
2376
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Image
2377
+
2378
+ constructor(config?: Image.ConstructorProperties)
2379
+ constructor(page: number, img_id: number)
2380
+ static new(page: number, img_id: number): Image
2381
+ static new_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf): Image
2382
+ _init(config?: Image.ConstructorProperties): void
2383
+ }
2384
+
2385
+ export module Layer {
2386
+
2387
+ // Constructor properties interface
2388
+
2389
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2390
+ }
2391
+
2392
+ }
2393
+
2394
+ export interface Layer {
2395
+
2396
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Layer
2397
+
2398
+ base_instance: GObject.Object
2399
+ priv: LayerPrivate
2400
+
2401
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Layer
2402
+
2403
+ get_rb_group(): number
2404
+ is_parent(): boolean
2405
+
2406
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Layer
2407
+
2408
+ connect(sigName: string, callback: (...args: any[]) => void): number
2409
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2410
+ emit(sigName: string, ...args: any[]): void
2411
+ disconnect(id: number): void
2412
+ }
2413
+
2414
+ export class Layer extends GObject.Object {
2415
+
2416
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Layer
2417
+
2418
+ static name: string
2419
+ static $gtype: GObject.GType<Layer>
2420
+
2421
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Layer
2422
+
2423
+ constructor(config?: Layer.ConstructorProperties)
2424
+ constructor(is_parent: boolean, rb_group: number)
2425
+ static new(is_parent: boolean, rb_group: number): Layer
2426
+ _init(config?: Layer.ConstructorProperties): void
2427
+ }
2428
+
2429
+ export module Link {
2430
+
2431
+ // Constructor properties interface
2432
+
2433
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2434
+
2435
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.Link
2436
+
2437
+ action?: LinkAction | null
2438
+ title?: string | null
2439
+ }
2440
+
2441
+ }
2442
+
2443
+ export interface Link {
2444
+
2445
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Link
2446
+
2447
+ readonly action: LinkAction
2448
+ readonly title: string | null
2449
+
2450
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Link
2451
+
2452
+ get_action(): LinkAction
2453
+ get_title(): string | null
2454
+
2455
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Link
2456
+
2457
+ connect(sigName: "notify::action", callback: (($obj: Link, pspec: GObject.ParamSpec) => void)): number
2458
+ connect_after(sigName: "notify::action", callback: (($obj: Link, pspec: GObject.ParamSpec) => void)): number
2459
+ emit(sigName: "notify::action", ...args: any[]): void
2460
+ connect(sigName: "notify::title", callback: (($obj: Link, pspec: GObject.ParamSpec) => void)): number
2461
+ connect_after(sigName: "notify::title", callback: (($obj: Link, pspec: GObject.ParamSpec) => void)): number
2462
+ emit(sigName: "notify::title", ...args: any[]): void
2463
+ connect(sigName: string, callback: (...args: any[]) => void): number
2464
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2465
+ emit(sigName: string, ...args: any[]): void
2466
+ disconnect(id: number): void
2467
+ }
2468
+
2469
+ export class Link extends GObject.Object {
2470
+
2471
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Link
2472
+
2473
+ static name: string
2474
+ static $gtype: GObject.GType<Link>
2475
+
2476
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Link
2477
+
2478
+ constructor(config?: Link.ConstructorProperties)
2479
+ constructor(title: string | null, action: LinkAction)
2480
+ static new(title: string | null, action: LinkAction): Link
2481
+ _init(config?: Link.ConstructorProperties): void
2482
+ }
2483
+
2484
+ export module LinkAction {
2485
+
2486
+ // Constructor properties interface
2487
+
2488
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2489
+
2490
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.LinkAction
2491
+
2492
+ dest?: LinkDest | null
2493
+ exclude_reset_fields?: boolean | null
2494
+ filename?: string | null
2495
+ hide_list?: any | null
2496
+ name?: string | null
2497
+ params?: string | null
2498
+ reset_fields?: any | null
2499
+ show_list?: any | null
2500
+ toggle_list?: any | null
2501
+ type?: LinkActionType | null
2502
+ uri?: string | null
2503
+ }
2504
+
2505
+ }
2506
+
2507
+ export interface LinkAction {
2508
+
2509
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkAction
2510
+
2511
+ readonly dest: LinkDest
2512
+ readonly exclude_reset_fields: boolean
2513
+ readonly filename: string | null
2514
+ readonly hide_list: any
2515
+ readonly name: string | null
2516
+ readonly params: string | null
2517
+ readonly reset_fields: any
2518
+ readonly show_list: any
2519
+ readonly toggle_list: any
2520
+ readonly type: LinkActionType
2521
+ readonly uri: string | null
2522
+
2523
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.LinkAction
2524
+
2525
+ /**
2526
+ * Checks whether `a` and `b` are equal.
2527
+ * @param b a #EvLinkAction
2528
+ * @returns %TRUE iff @a and @b are equal
2529
+ */
2530
+ equal(b: LinkAction): boolean
2531
+ get_action_type(): LinkActionType
2532
+ get_dest(): LinkDest
2533
+ get_exclude_reset_fields(): boolean
2534
+ get_filename(): string | null
2535
+ get_hide_list(): Layer[]
2536
+ get_name(): string | null
2537
+ get_params(): string | null
2538
+ get_reset_fields(): string[]
2539
+ get_show_list(): Layer[]
2540
+ get_toggle_list(): Layer[]
2541
+ get_uri(): string | null
2542
+
2543
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.LinkAction
2544
+
2545
+ connect(sigName: "notify::dest", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2546
+ connect_after(sigName: "notify::dest", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2547
+ emit(sigName: "notify::dest", ...args: any[]): void
2548
+ connect(sigName: "notify::exclude-reset-fields", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2549
+ connect_after(sigName: "notify::exclude-reset-fields", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2550
+ emit(sigName: "notify::exclude-reset-fields", ...args: any[]): void
2551
+ connect(sigName: "notify::filename", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2552
+ connect_after(sigName: "notify::filename", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2553
+ emit(sigName: "notify::filename", ...args: any[]): void
2554
+ connect(sigName: "notify::hide-list", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2555
+ connect_after(sigName: "notify::hide-list", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2556
+ emit(sigName: "notify::hide-list", ...args: any[]): void
2557
+ connect(sigName: "notify::name", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2558
+ connect_after(sigName: "notify::name", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2559
+ emit(sigName: "notify::name", ...args: any[]): void
2560
+ connect(sigName: "notify::params", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2561
+ connect_after(sigName: "notify::params", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2562
+ emit(sigName: "notify::params", ...args: any[]): void
2563
+ connect(sigName: "notify::reset-fields", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2564
+ connect_after(sigName: "notify::reset-fields", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2565
+ emit(sigName: "notify::reset-fields", ...args: any[]): void
2566
+ connect(sigName: "notify::show-list", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2567
+ connect_after(sigName: "notify::show-list", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2568
+ emit(sigName: "notify::show-list", ...args: any[]): void
2569
+ connect(sigName: "notify::toggle-list", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2570
+ connect_after(sigName: "notify::toggle-list", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2571
+ emit(sigName: "notify::toggle-list", ...args: any[]): void
2572
+ connect(sigName: "notify::type", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2573
+ connect_after(sigName: "notify::type", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2574
+ emit(sigName: "notify::type", ...args: any[]): void
2575
+ connect(sigName: "notify::uri", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2576
+ connect_after(sigName: "notify::uri", callback: (($obj: LinkAction, pspec: GObject.ParamSpec) => void)): number
2577
+ emit(sigName: "notify::uri", ...args: any[]): void
2578
+ connect(sigName: string, callback: (...args: any[]) => void): number
2579
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2580
+ emit(sigName: string, ...args: any[]): void
2581
+ disconnect(id: number): void
2582
+ }
2583
+
2584
+ export class LinkAction extends GObject.Object {
2585
+
2586
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkAction
2587
+
2588
+ static name: string
2589
+ static $gtype: GObject.GType<LinkAction>
2590
+
2591
+ // Constructors of EvinceDocument-3.0.EvinceDocument.LinkAction
2592
+
2593
+ constructor(config?: LinkAction.ConstructorProperties)
2594
+ static new_dest(dest: LinkDest): LinkAction
2595
+ static new_external_uri(uri: string | null): LinkAction
2596
+ static new_launch(filename: string | null, params: string | null): LinkAction
2597
+ static new_layers_state(show_list: Layer[], hide_list: Layer[], toggle_list: Layer[]): LinkAction
2598
+ static new_named(name: string | null): LinkAction
2599
+ static new_remote(dest: LinkDest, filename: string | null): LinkAction
2600
+ static new_reset_form(fields: string[], exclude_fields: boolean): LinkAction
2601
+ _init(config?: LinkAction.ConstructorProperties): void
2602
+ }
2603
+
2604
+ export module LinkDest {
2605
+
2606
+ // Constructor properties interface
2607
+
2608
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2609
+
2610
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.LinkDest
2611
+
2612
+ bottom?: number | null
2613
+ change?: number | null
2614
+ left?: number | null
2615
+ named?: string | null
2616
+ page?: number | null
2617
+ page_label?: string | null
2618
+ right?: number | null
2619
+ top?: number | null
2620
+ type?: LinkDestType | null
2621
+ zoom?: number | null
2622
+ }
2623
+
2624
+ }
2625
+
2626
+ export interface LinkDest {
2627
+
2628
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkDest
2629
+
2630
+ readonly bottom: number
2631
+ readonly change: number
2632
+ readonly left: number
2633
+ readonly named: string | null
2634
+ readonly page: number
2635
+ readonly page_label: string | null
2636
+ readonly right: number
2637
+ readonly top: number
2638
+ readonly type: LinkDestType
2639
+ readonly zoom: number
2640
+
2641
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.LinkDest
2642
+
2643
+ /**
2644
+ * Checks whether `a` and `b` are equal.
2645
+ * @param b a #EvLinkDest
2646
+ * @returns %TRUE iff @a and @b are equal
2647
+ */
2648
+ equal(b: LinkDest): boolean
2649
+ get_bottom(): number
2650
+ get_dest_type(): LinkDestType
2651
+ get_left(change_left: boolean): number
2652
+ get_named_dest(): string | null
2653
+ get_page(): number
2654
+ get_page_label(): string | null
2655
+ get_right(): number
2656
+ get_top(change_top: boolean): number
2657
+ get_zoom(change_zoom: boolean): number
2658
+
2659
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.LinkDest
2660
+
2661
+ connect(sigName: "notify::bottom", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2662
+ connect_after(sigName: "notify::bottom", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2663
+ emit(sigName: "notify::bottom", ...args: any[]): void
2664
+ connect(sigName: "notify::change", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2665
+ connect_after(sigName: "notify::change", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2666
+ emit(sigName: "notify::change", ...args: any[]): void
2667
+ connect(sigName: "notify::left", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2668
+ connect_after(sigName: "notify::left", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2669
+ emit(sigName: "notify::left", ...args: any[]): void
2670
+ connect(sigName: "notify::named", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2671
+ connect_after(sigName: "notify::named", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2672
+ emit(sigName: "notify::named", ...args: any[]): void
2673
+ connect(sigName: "notify::page", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2674
+ connect_after(sigName: "notify::page", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2675
+ emit(sigName: "notify::page", ...args: any[]): void
2676
+ connect(sigName: "notify::page-label", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2677
+ connect_after(sigName: "notify::page-label", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2678
+ emit(sigName: "notify::page-label", ...args: any[]): void
2679
+ connect(sigName: "notify::right", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2680
+ connect_after(sigName: "notify::right", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2681
+ emit(sigName: "notify::right", ...args: any[]): void
2682
+ connect(sigName: "notify::top", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2683
+ connect_after(sigName: "notify::top", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2684
+ emit(sigName: "notify::top", ...args: any[]): void
2685
+ connect(sigName: "notify::type", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2686
+ connect_after(sigName: "notify::type", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2687
+ emit(sigName: "notify::type", ...args: any[]): void
2688
+ connect(sigName: "notify::zoom", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2689
+ connect_after(sigName: "notify::zoom", callback: (($obj: LinkDest, pspec: GObject.ParamSpec) => void)): number
2690
+ emit(sigName: "notify::zoom", ...args: any[]): void
2691
+ connect(sigName: string, callback: (...args: any[]) => void): number
2692
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2693
+ emit(sigName: string, ...args: any[]): void
2694
+ disconnect(id: number): void
2695
+ }
2696
+
2697
+ export class LinkDest extends GObject.Object {
2698
+
2699
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkDest
2700
+
2701
+ static name: string
2702
+ static $gtype: GObject.GType<LinkDest>
2703
+
2704
+ // Constructors of EvinceDocument-3.0.EvinceDocument.LinkDest
2705
+
2706
+ constructor(config?: LinkDest.ConstructorProperties)
2707
+ static new_fit(page: number): LinkDest
2708
+ static new_fith(page: number, top: number, change_top: boolean): LinkDest
2709
+ static new_fitr(page: number, left: number, bottom: number, right: number, top: number): LinkDest
2710
+ static new_fitv(page: number, left: number, change_left: boolean): LinkDest
2711
+ static new_named(named_dest: string | null): LinkDest
2712
+ static new_page(page: number): LinkDest
2713
+ static new_page_label(page_label: string | null): LinkDest
2714
+ static new_xyz(page: number, left: number, top: number, zoom: number, change_left: boolean, change_top: boolean, change_zoom: boolean): LinkDest
2715
+ _init(config?: LinkDest.ConstructorProperties): void
2716
+ }
2717
+
2718
+ export module Media {
2719
+
2720
+ // Constructor properties interface
2721
+
2722
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2723
+ }
2724
+
2725
+ }
2726
+
2727
+ export interface Media {
2728
+
2729
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Media
2730
+
2731
+ base_instance: GObject.Object
2732
+ priv: MediaPrivate
2733
+
2734
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Media
2735
+
2736
+ get_page_index(): number
2737
+ get_show_controls(): boolean
2738
+ get_uri(): string | null
2739
+ set_show_controls(show_controls: boolean): void
2740
+
2741
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Media
2742
+
2743
+ connect(sigName: string, callback: (...args: any[]) => void): number
2744
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2745
+ emit(sigName: string, ...args: any[]): void
2746
+ disconnect(id: number): void
2747
+ }
2748
+
2749
+ export class Media extends GObject.Object {
2750
+
2751
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Media
2752
+
2753
+ static name: string
2754
+ static $gtype: GObject.GType<Media>
2755
+
2756
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Media
2757
+
2758
+ constructor(config?: Media.ConstructorProperties)
2759
+ static new_for_uri(page: Page, uri: string | null): Media
2760
+ _init(config?: Media.ConstructorProperties): void
2761
+ }
2762
+
2763
+ export module Page {
2764
+
2765
+ // Constructor properties interface
2766
+
2767
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2768
+ }
2769
+
2770
+ }
2771
+
2772
+ export interface Page {
2773
+
2774
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Page
2775
+
2776
+ base_instance: GObject.Object
2777
+ index: number
2778
+ backend_page: BackendPage
2779
+ backend_destroy_func: BackendPageDestroyFunc
2780
+
2781
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.Page
2782
+
2783
+ connect(sigName: string, callback: (...args: any[]) => void): number
2784
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2785
+ emit(sigName: string, ...args: any[]): void
2786
+ disconnect(id: number): void
2787
+ }
2788
+
2789
+ export class Page extends GObject.Object {
2790
+
2791
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Page
2792
+
2793
+ static name: string
2794
+ static $gtype: GObject.GType<Page>
2795
+
2796
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Page
2797
+
2798
+ constructor(config?: Page.ConstructorProperties)
2799
+ constructor(index: number)
2800
+ static new(index: number): Page
2801
+ _init(config?: Page.ConstructorProperties): void
2802
+ }
2803
+
2804
+ export module RenderContext {
2805
+
2806
+ // Constructor properties interface
2807
+
2808
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2809
+ }
2810
+
2811
+ }
2812
+
2813
+ export interface RenderContext {
2814
+
2815
+ // Own fields of EvinceDocument-3.0.EvinceDocument.RenderContext
2816
+
2817
+ parent: GObject.Object
2818
+ page: Page
2819
+ rotation: number
2820
+ scale: number
2821
+ target_width: number
2822
+ target_height: number
2823
+
2824
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.RenderContext
2825
+
2826
+ compute_scaled_size(width_points: number, height_points: number, scaled_width: number, scaled_height: number): void
2827
+ compute_scales(width_points: number, height_points: number, scale_x: number, scale_y: number): void
2828
+ compute_transformed_size(width_points: number, height_points: number, transformed_width: number, transformed_height: number): void
2829
+ set_page(page: Page): void
2830
+ set_rotation(rotation: number): void
2831
+ set_scale(scale: number): void
2832
+ set_target_size(target_width: number, target_height: number): void
2833
+
2834
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.RenderContext
2835
+
2836
+ connect(sigName: string, callback: (...args: any[]) => void): number
2837
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2838
+ emit(sigName: string, ...args: any[]): void
2839
+ disconnect(id: number): void
2840
+ }
2841
+
2842
+ export class RenderContext extends GObject.Object {
2843
+
2844
+ // Own properties of EvinceDocument-3.0.EvinceDocument.RenderContext
2845
+
2846
+ static name: string
2847
+ static $gtype: GObject.GType<RenderContext>
2848
+
2849
+ // Constructors of EvinceDocument-3.0.EvinceDocument.RenderContext
2850
+
2851
+ constructor(config?: RenderContext.ConstructorProperties)
2852
+ constructor(page: Page, rotation: number, scale: number)
2853
+ static new(page: Page, rotation: number, scale: number): RenderContext
2854
+ _init(config?: RenderContext.ConstructorProperties): void
2855
+ }
2856
+
2857
+ export module TransitionEffect {
2858
+
2859
+ // Constructor properties interface
2860
+
2861
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2862
+
2863
+ // Own constructor properties of EvinceDocument-3.0.EvinceDocument.TransitionEffect
2864
+
2865
+ alignment?: TransitionEffectAlignment | null
2866
+ angle?: number | null
2867
+ direction?: TransitionEffectDirection | null
2868
+ duration?: number | null
2869
+ duration_real?: number | null
2870
+ rectangular?: boolean | null
2871
+ scale?: number | null
2872
+ type?: TransitionEffectType | null
2873
+ }
2874
+
2875
+ }
2876
+
2877
+ export interface TransitionEffect {
2878
+
2879
+ // Own properties of EvinceDocument-3.0.EvinceDocument.TransitionEffect
2880
+
2881
+ alignment: TransitionEffectAlignment
2882
+ angle: number
2883
+ direction: TransitionEffectDirection
2884
+ duration: number
2885
+ duration_real: number
2886
+ rectangular: boolean
2887
+ scale: number
2888
+ type: TransitionEffectType
2889
+
2890
+ // Own fields of EvinceDocument-3.0.EvinceDocument.TransitionEffect
2891
+
2892
+ parent_instance: GObject.Object
2893
+
2894
+ // Class property signals of EvinceDocument-3.0.EvinceDocument.TransitionEffect
2895
+
2896
+ connect(sigName: "notify::alignment", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2897
+ connect_after(sigName: "notify::alignment", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2898
+ emit(sigName: "notify::alignment", ...args: any[]): void
2899
+ connect(sigName: "notify::angle", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2900
+ connect_after(sigName: "notify::angle", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2901
+ emit(sigName: "notify::angle", ...args: any[]): void
2902
+ connect(sigName: "notify::direction", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2903
+ connect_after(sigName: "notify::direction", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2904
+ emit(sigName: "notify::direction", ...args: any[]): void
2905
+ connect(sigName: "notify::duration", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2906
+ connect_after(sigName: "notify::duration", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2907
+ emit(sigName: "notify::duration", ...args: any[]): void
2908
+ connect(sigName: "notify::duration-real", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2909
+ connect_after(sigName: "notify::duration-real", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2910
+ emit(sigName: "notify::duration-real", ...args: any[]): void
2911
+ connect(sigName: "notify::rectangular", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2912
+ connect_after(sigName: "notify::rectangular", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2913
+ emit(sigName: "notify::rectangular", ...args: any[]): void
2914
+ connect(sigName: "notify::scale", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2915
+ connect_after(sigName: "notify::scale", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2916
+ emit(sigName: "notify::scale", ...args: any[]): void
2917
+ connect(sigName: "notify::type", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2918
+ connect_after(sigName: "notify::type", callback: (($obj: TransitionEffect, pspec: GObject.ParamSpec) => void)): number
2919
+ emit(sigName: "notify::type", ...args: any[]): void
2920
+ connect(sigName: string, callback: (...args: any[]) => void): number
2921
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2922
+ emit(sigName: string, ...args: any[]): void
2923
+ disconnect(id: number): void
2924
+ }
2925
+
2926
+ export class TransitionEffect extends GObject.Object {
2927
+
2928
+ // Own properties of EvinceDocument-3.0.EvinceDocument.TransitionEffect
2929
+
2930
+ static name: string
2931
+ static $gtype: GObject.GType<TransitionEffect>
2932
+
2933
+ // Constructors of EvinceDocument-3.0.EvinceDocument.TransitionEffect
2934
+
2935
+ constructor(config?: TransitionEffect.ConstructorProperties)
2936
+ _init(config?: TransitionEffect.ConstructorProperties): void
2937
+ }
2938
+
2939
+ export interface AnnotationAttachmentClass {
2940
+ }
2941
+
2942
+ export abstract class AnnotationAttachmentClass {
2943
+
2944
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationAttachmentClass
2945
+
2946
+ static name: string
2947
+ }
2948
+
2949
+ export interface AnnotationClass {
2950
+ }
2951
+
2952
+ export abstract class AnnotationClass {
2953
+
2954
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationClass
2955
+
2956
+ static name: string
2957
+ }
2958
+
2959
+ export interface AnnotationMarkupInterface {
2960
+ }
2961
+
2962
+ export abstract class AnnotationMarkupInterface {
2963
+
2964
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkupInterface
2965
+
2966
+ static name: string
2967
+ }
2968
+
2969
+ export interface AnnotationTextClass {
2970
+ }
2971
+
2972
+ export abstract class AnnotationTextClass {
2973
+
2974
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationTextClass
2975
+
2976
+ static name: string
2977
+ }
2978
+
2979
+ export interface AnnotationTextMarkupClass {
2980
+ }
2981
+
2982
+ export abstract class AnnotationTextMarkupClass {
2983
+
2984
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationTextMarkupClass
2985
+
2986
+ static name: string
2987
+ }
2988
+
2989
+ export interface AsyncRendererInterface {
2990
+
2991
+ // Own fields of EvinceDocument-3.0.EvinceDocument.AsyncRendererInterface
2992
+
2993
+ base_iface: GObject.TypeInterface
2994
+ render_finished: (renderer: AsyncRenderer, pixbuf: GdkPixbuf.Pixbuf) => void
2995
+ render_pixbuf: (renderer: AsyncRenderer, page: number, scale: number, rotation: number) => void
2996
+ }
2997
+
2998
+ export abstract class AsyncRendererInterface {
2999
+
3000
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AsyncRendererInterface
3001
+
3002
+ static name: string
3003
+ }
3004
+
3005
+ export interface AttachmentClass {
3006
+
3007
+ // Own fields of EvinceDocument-3.0.EvinceDocument.AttachmentClass
3008
+
3009
+ base_class: GObject.ObjectClass
3010
+ }
3011
+
3012
+ export abstract class AttachmentClass {
3013
+
3014
+ // Own properties of EvinceDocument-3.0.EvinceDocument.AttachmentClass
3015
+
3016
+ static name: string
3017
+ }
3018
+
3019
+ export interface DocumentAnnotationsInterface {
3020
+
3021
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentAnnotationsInterface
3022
+
3023
+ base_iface: GObject.TypeInterface
3024
+ get_annotations: (document_annots: DocumentAnnotations, page: Page) => MappingList
3025
+ document_is_modified: (document_annots: DocumentAnnotations) => boolean
3026
+ add_annotation: (document_annots: DocumentAnnotations, annot: Annotation, rect: Rectangle) => void
3027
+ save_annotation: (document_annots: DocumentAnnotations, annot: Annotation, mask: AnnotationsSaveMask) => void
3028
+ remove_annotation: (document_annots: DocumentAnnotations, annot: Annotation) => void
3029
+ over_markup: (document_annots: DocumentAnnotations, annot: Annotation, x: number, y: number) => AnnotationsOverMarkup
3030
+ }
3031
+
3032
+ export abstract class DocumentAnnotationsInterface {
3033
+
3034
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentAnnotationsInterface
3035
+
3036
+ static name: string
3037
+ }
3038
+
3039
+ export interface DocumentAttachmentsInterface {
3040
+
3041
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentAttachmentsInterface
3042
+
3043
+ base_iface: GObject.TypeInterface
3044
+ has_attachments: (document_attachments: DocumentAttachments) => boolean
3045
+ get_attachments: (document_attachments: DocumentAttachments) => Attachment[]
3046
+ }
3047
+
3048
+ export abstract class DocumentAttachmentsInterface {
3049
+
3050
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentAttachmentsInterface
3051
+
3052
+ static name: string
3053
+ }
3054
+
3055
+ export interface DocumentBackendInfo {
3056
+
3057
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentBackendInfo
3058
+
3059
+ name: string | null
3060
+ version: string | null
3061
+ }
3062
+
3063
+ export class DocumentBackendInfo {
3064
+
3065
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentBackendInfo
3066
+
3067
+ static name: string
3068
+ }
3069
+
3070
+ export interface DocumentClass {
3071
+
3072
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentClass
3073
+
3074
+ base_class: GObject.ObjectClass
3075
+ load: (document: Document, uri: string | null) => boolean
3076
+ save: (document: Document, uri: string | null) => boolean
3077
+ get_n_pages: (document: Document) => number
3078
+ get_page: (document: Document, index: number) => Page
3079
+ get_page_size: (document: Document, page_index: Page) => [ /* width */ number, /* height */ number ]
3080
+ get_page_label: (document: Document, page: Page) => string | null
3081
+ render: (document: Document, rc: RenderContext) => cairo.Surface
3082
+ get_thumbnail: (document: Document, rc: RenderContext) => GdkPixbuf.Pixbuf
3083
+ get_info: (document: Document) => DocumentInfo
3084
+ get_backend_info: (document: Document, info: DocumentBackendInfo) => boolean
3085
+ support_synctex: (document: Document) => boolean
3086
+ load_stream: (document: Document, stream: Gio.InputStream, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null) => boolean
3087
+ load_gfile: (document: Document, file: Gio.File, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null) => boolean
3088
+ get_thumbnail_surface: (document: Document, rc: RenderContext) => cairo.Surface
3089
+ load_fd: (document: Document, fd: number, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null) => boolean
3090
+ }
3091
+
3092
+ export abstract class DocumentClass {
3093
+
3094
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentClass
3095
+
3096
+ static name: string
3097
+ }
3098
+
3099
+ export interface DocumentFindInterface {
3100
+
3101
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentFindInterface
3102
+
3103
+ base_iface: GObject.TypeInterface
3104
+ find_text: (document_find: DocumentFind, page: Page, text: string | null, case_sensitive: boolean) => Rectangle[]
3105
+ find_text_with_options: (document_find: DocumentFind, page: Page, text: string | null, options: FindOptions) => Rectangle[]
3106
+ get_supported_options: (document_find: DocumentFind) => FindOptions
3107
+ find_text_extended: (document_find: DocumentFind, page: Page, text: string | null, options: FindOptions) => FindRectangle[]
3108
+ }
3109
+
3110
+ export abstract class DocumentFindInterface {
3111
+
3112
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentFindInterface
3113
+
3114
+ static name: string
3115
+ }
3116
+
3117
+ export interface DocumentFontsInterface {
3118
+
3119
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentFontsInterface
3120
+
3121
+ base_iface: GObject.TypeInterface
3122
+ scan: (document_fonts: DocumentFonts, n_pages: number) => boolean
3123
+ get_progress: (document_fonts: DocumentFonts) => number
3124
+ fill_model: (document_fonts: DocumentFonts, model: Gtk.TreeModel) => void
3125
+ get_fonts_summary: (document_fonts: DocumentFonts) => string | null
3126
+ }
3127
+
3128
+ export abstract class DocumentFontsInterface {
3129
+
3130
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentFontsInterface
3131
+
3132
+ static name: string
3133
+ }
3134
+
3135
+ export interface DocumentFormsInterface {
3136
+
3137
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentFormsInterface
3138
+
3139
+ base_iface: GObject.TypeInterface
3140
+ get_form_fields: (document_forms: DocumentForms, page: Page) => MappingList
3141
+ document_is_modified: (document_forms: DocumentForms) => boolean
3142
+ form_field_text_get_text: (document_forms: DocumentForms, field: FormField) => string | null
3143
+ form_field_text_set_text: (document_forms: DocumentForms, field: FormField, text: string | null) => void
3144
+ form_field_button_get_state: (document_forms: DocumentForms, field: FormField) => boolean
3145
+ form_field_button_set_state: (document_forms: DocumentForms, field: FormField, state: boolean) => void
3146
+ form_field_choice_get_item: (document_forms: DocumentForms, field: FormField, index: number) => string | null
3147
+ form_field_choice_get_n_items: (document_forms: DocumentForms, field: FormField) => number
3148
+ form_field_choice_is_item_selected: (document_forms: DocumentForms, field: FormField, index: number) => boolean
3149
+ form_field_choice_select_item: (document_forms: DocumentForms, field: FormField, index: number) => void
3150
+ form_field_choice_toggle_item: (document_forms: DocumentForms, field: FormField, index: number) => void
3151
+ form_field_choice_unselect_all: (document_forms: DocumentForms, field: FormField) => void
3152
+ form_field_choice_set_text: (document_forms: DocumentForms, field: FormField, text: string | null) => void
3153
+ form_field_choice_get_text: (document_forms: DocumentForms, field: FormField) => string | null
3154
+ reset_form: (document_forms: DocumentForms, action: LinkAction) => void
3155
+ }
3156
+
3157
+ export abstract class DocumentFormsInterface {
3158
+
3159
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentFormsInterface
3160
+
3161
+ static name: string
3162
+ }
3163
+
3164
+ export interface DocumentImagesInterface {
3165
+
3166
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentImagesInterface
3167
+
3168
+ base_iface: GObject.TypeInterface
3169
+ get_image_mapping: (document_images: DocumentImages, page: Page) => MappingList
3170
+ get_image: (document_images: DocumentImages, image: Image) => GdkPixbuf.Pixbuf
3171
+ }
3172
+
3173
+ export abstract class DocumentImagesInterface {
3174
+
3175
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentImagesInterface
3176
+
3177
+ static name: string
3178
+ }
3179
+
3180
+ export interface DocumentInfo {
3181
+
3182
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentInfo
3183
+
3184
+ title: string | null
3185
+ format: string | null
3186
+ author: string | null
3187
+ subject: string | null
3188
+ keywords: string | null
3189
+ creator: string | null
3190
+ producer: string | null
3191
+ linearized: string | null
3192
+ security: string | null
3193
+ creation_date: GLib.Time
3194
+ modified_date: GLib.Time
3195
+ layout: DocumentLayout
3196
+ mode: DocumentMode
3197
+ ui_hints: number
3198
+ permissions: number
3199
+ n_pages: number
3200
+ paper_height: number
3201
+ paper_width: number
3202
+ license: DocumentLicense
3203
+ contains_js: DocumentContainsJS
3204
+ fields_mask: number
3205
+
3206
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentInfo
3207
+
3208
+ copy(): DocumentInfo
3209
+ /**
3210
+ * Frees `info`.
3211
+ */
3212
+ free(): void
3213
+ get_created_datetime(): GLib.DateTime | null
3214
+ get_modified_datetime(): GLib.DateTime | null
3215
+ set_from_xmp(xmp: string | null, size: number): boolean
3216
+ take_created_datetime(datetime: GLib.DateTime): void
3217
+ take_modified_datetime(datetime: GLib.DateTime): void
3218
+ }
3219
+
3220
+ export class DocumentInfo {
3221
+
3222
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentInfo
3223
+
3224
+ static name: string
3225
+
3226
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentInfo
3227
+
3228
+ constructor()
3229
+ static new(): DocumentInfo
3230
+ }
3231
+
3232
+ export interface DocumentLayersInterface {
3233
+
3234
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentLayersInterface
3235
+
3236
+ base_iface: GObject.TypeInterface
3237
+ has_layers: (document_layers: DocumentLayers) => boolean
3238
+ get_layers: (document_layers: DocumentLayers) => Gtk.TreeModel
3239
+ show_layer: (document_layers: DocumentLayers, layer: Layer) => void
3240
+ hide_layer: (document_layers: DocumentLayers, layer: Layer) => void
3241
+ layer_is_visible: (document_layers: DocumentLayers, layer: Layer) => boolean
3242
+ }
3243
+
3244
+ export abstract class DocumentLayersInterface {
3245
+
3246
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentLayersInterface
3247
+
3248
+ static name: string
3249
+ }
3250
+
3251
+ export interface DocumentLicense {
3252
+
3253
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentLicense
3254
+
3255
+ text: string | null
3256
+ uri: string | null
3257
+ web_statement: string | null
3258
+
3259
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentLicense
3260
+
3261
+ copy(): DocumentLicense
3262
+ /**
3263
+ * Frees `license`.
3264
+ */
3265
+ free(): void
3266
+ get_text(): string | null
3267
+ get_uri(): string | null
3268
+ get_web_statement(): string | null
3269
+ }
3270
+
3271
+ export class DocumentLicense {
3272
+
3273
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentLicense
3274
+
3275
+ static name: string
3276
+
3277
+ // Constructors of EvinceDocument-3.0.EvinceDocument.DocumentLicense
3278
+
3279
+ constructor()
3280
+ static new(): DocumentLicense
3281
+ }
3282
+
3283
+ export interface DocumentLinksInterface {
3284
+
3285
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentLinksInterface
3286
+
3287
+ base_iface: GObject.TypeInterface
3288
+ has_document_links: (document_links: DocumentLinks) => boolean
3289
+ get_links_model: (document_links: DocumentLinks) => Gtk.TreeModel
3290
+ get_links: (document_links: DocumentLinks, page: Page) => MappingList
3291
+ find_link_dest: (document_links: DocumentLinks, link_name: string | null) => LinkDest
3292
+ find_link_page: (document_links: DocumentLinks, link_name: string | null) => number
3293
+ }
3294
+
3295
+ export abstract class DocumentLinksInterface {
3296
+
3297
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentLinksInterface
3298
+
3299
+ static name: string
3300
+ }
3301
+
3302
+ export interface DocumentMediaInterface {
3303
+
3304
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentMediaInterface
3305
+
3306
+ base_iface: GObject.TypeInterface
3307
+ get_media_mapping: (document_media: DocumentMedia, page: Page) => MappingList
3308
+ }
3309
+
3310
+ export abstract class DocumentMediaInterface {
3311
+
3312
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentMediaInterface
3313
+
3314
+ static name: string
3315
+ }
3316
+
3317
+ export interface DocumentPrintInterface {
3318
+
3319
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentPrintInterface
3320
+
3321
+ base_iface: GObject.TypeInterface
3322
+ print_page: (document_print: DocumentPrint, page: Page, cr: cairo.Context) => void
3323
+ }
3324
+
3325
+ export abstract class DocumentPrintInterface {
3326
+
3327
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentPrintInterface
3328
+
3329
+ static name: string
3330
+ }
3331
+
3332
+ export interface DocumentPrivate {
3333
+ }
3334
+
3335
+ export class DocumentPrivate {
3336
+
3337
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentPrivate
3338
+
3339
+ static name: string
3340
+ }
3341
+
3342
+ export interface DocumentSecurityInterface {
3343
+
3344
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentSecurityInterface
3345
+
3346
+ base_iface: GObject.TypeInterface
3347
+ has_document_security: (document_security: DocumentSecurity) => boolean
3348
+ set_password: (document_security: DocumentSecurity, password: string | null) => void
3349
+ }
3350
+
3351
+ export abstract class DocumentSecurityInterface {
3352
+
3353
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentSecurityInterface
3354
+
3355
+ static name: string
3356
+ }
3357
+
3358
+ export interface DocumentTextInterface {
3359
+
3360
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentTextInterface
3361
+
3362
+ base_iface: GObject.TypeInterface
3363
+ get_text_mapping: (document_text: DocumentText, page: Page) => cairo.Region
3364
+ get_text: (document_text: DocumentText, page: Page) => string | null
3365
+ get_text_layout: (document_text: DocumentText, page: Page, areas: Rectangle, n_areas: number) => boolean
3366
+ get_text_attrs: (document_text: DocumentText, page: Page) => Pango.AttrList
3367
+ }
3368
+
3369
+ export abstract class DocumentTextInterface {
3370
+
3371
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentTextInterface
3372
+
3373
+ static name: string
3374
+ }
3375
+
3376
+ export interface DocumentTransitionInterface {
3377
+
3378
+ // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentTransitionInterface
3379
+
3380
+ base_iface: GObject.TypeInterface
3381
+ get_page_duration: (document_trans: DocumentTransition, page: number) => number
3382
+ get_effect: (document_trans: DocumentTransition, page: number) => TransitionEffect
3383
+ }
3384
+
3385
+ export abstract class DocumentTransitionInterface {
3386
+
3387
+ // Own properties of EvinceDocument-3.0.EvinceDocument.DocumentTransitionInterface
3388
+
3389
+ static name: string
3390
+ }
3391
+
3392
+ export interface FileExporterContext {
3393
+
3394
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FileExporterContext
3395
+
3396
+ format: FileExporterFormat
3397
+ filename: string | null
3398
+ first_page: number
3399
+ last_page: number
3400
+ paper_width: number
3401
+ paper_height: number
3402
+ duplex: boolean
3403
+ pages_per_sheet: number
3404
+ }
3405
+
3406
+ export class FileExporterContext {
3407
+
3408
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FileExporterContext
3409
+
3410
+ static name: string
3411
+ }
3412
+
3413
+ export interface FileExporterInterface {
3414
+
3415
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FileExporterInterface
3416
+
3417
+ base_iface: GObject.TypeInterface
3418
+ begin: (exporter: FileExporter, fc: FileExporterContext) => void
3419
+ begin_page: (exporter: FileExporter) => void
3420
+ do_page: (exporter: FileExporter, rc: RenderContext) => void
3421
+ end_page: (exporter: FileExporter) => void
3422
+ end: (exporter: FileExporter) => void
3423
+ get_capabilities: (exporter: FileExporter) => FileExporterCapabilities
3424
+ }
3425
+
3426
+ export abstract class FileExporterInterface {
3427
+
3428
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FileExporterInterface
3429
+
3430
+ static name: string
3431
+ }
3432
+
3433
+ export interface FindRectangle {
3434
+
3435
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FindRectangle
3436
+
3437
+ x1: number
3438
+ y1: number
3439
+ x2: number
3440
+ y2: number
3441
+ next_line: boolean
3442
+ after_hyphen: boolean
3443
+
3444
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.FindRectangle
3445
+
3446
+ copy(): FindRectangle
3447
+ free(): void
3448
+ }
3449
+
3450
+ export class FindRectangle {
3451
+
3452
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FindRectangle
3453
+
3454
+ static name: string
3455
+
3456
+ // Constructors of EvinceDocument-3.0.EvinceDocument.FindRectangle
3457
+
3458
+ constructor()
3459
+ static new(): FindRectangle
3460
+ }
3461
+
3462
+ export interface FormFieldButtonClass {
3463
+
3464
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldButtonClass
3465
+
3466
+ parent_class: FormFieldClass
3467
+ }
3468
+
3469
+ export abstract class FormFieldButtonClass {
3470
+
3471
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldButtonClass
3472
+
3473
+ static name: string
3474
+ }
3475
+
3476
+ export interface FormFieldChoiceClass {
3477
+
3478
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldChoiceClass
3479
+
3480
+ parent_class: FormFieldClass
3481
+ }
3482
+
3483
+ export abstract class FormFieldChoiceClass {
3484
+
3485
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldChoiceClass
3486
+
3487
+ static name: string
3488
+ }
3489
+
3490
+ export interface FormFieldClass {
3491
+
3492
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldClass
3493
+
3494
+ parent_class: GObject.ObjectClass
3495
+ }
3496
+
3497
+ export abstract class FormFieldClass {
3498
+
3499
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldClass
3500
+
3501
+ static name: string
3502
+ }
3503
+
3504
+ export interface FormFieldSignatureClass {
3505
+
3506
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldSignatureClass
3507
+
3508
+ parent_class: FormFieldClass
3509
+ }
3510
+
3511
+ export abstract class FormFieldSignatureClass {
3512
+
3513
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldSignatureClass
3514
+
3515
+ static name: string
3516
+ }
3517
+
3518
+ export interface FormFieldTextClass {
3519
+
3520
+ // Own fields of EvinceDocument-3.0.EvinceDocument.FormFieldTextClass
3521
+
3522
+ parent_class: FormFieldClass
3523
+ }
3524
+
3525
+ export abstract class FormFieldTextClass {
3526
+
3527
+ // Own properties of EvinceDocument-3.0.EvinceDocument.FormFieldTextClass
3528
+
3529
+ static name: string
3530
+ }
3531
+
3532
+ export interface ImageClass {
3533
+
3534
+ // Own fields of EvinceDocument-3.0.EvinceDocument.ImageClass
3535
+
3536
+ base_class: GObject.ObjectClass
3537
+ }
3538
+
3539
+ export abstract class ImageClass {
3540
+
3541
+ // Own properties of EvinceDocument-3.0.EvinceDocument.ImageClass
3542
+
3543
+ static name: string
3544
+ }
3545
+
3546
+ export interface ImagePrivate {
3547
+ }
3548
+
3549
+ export class ImagePrivate {
3550
+
3551
+ // Own properties of EvinceDocument-3.0.EvinceDocument.ImagePrivate
3552
+
3553
+ static name: string
3554
+ }
3555
+
3556
+ export interface LayerClass {
3557
+
3558
+ // Own fields of EvinceDocument-3.0.EvinceDocument.LayerClass
3559
+
3560
+ base_class: GObject.ObjectClass
3561
+ }
3562
+
3563
+ export abstract class LayerClass {
3564
+
3565
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LayerClass
3566
+
3567
+ static name: string
3568
+ }
3569
+
3570
+ export interface LayerPrivate {
3571
+ }
3572
+
3573
+ export class LayerPrivate {
3574
+
3575
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LayerPrivate
3576
+
3577
+ static name: string
3578
+ }
3579
+
3580
+ export interface LinkActionClass {
3581
+ }
3582
+
3583
+ export abstract class LinkActionClass {
3584
+
3585
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkActionClass
3586
+
3587
+ static name: string
3588
+ }
3589
+
3590
+ export interface LinkActionPrivate {
3591
+ }
3592
+
3593
+ export class LinkActionPrivate {
3594
+
3595
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkActionPrivate
3596
+
3597
+ static name: string
3598
+ }
3599
+
3600
+ export interface LinkClass {
3601
+ }
3602
+
3603
+ export abstract class LinkClass {
3604
+
3605
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkClass
3606
+
3607
+ static name: string
3608
+ }
3609
+
3610
+ export interface LinkDestClass {
3611
+ }
3612
+
3613
+ export abstract class LinkDestClass {
3614
+
3615
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkDestClass
3616
+
3617
+ static name: string
3618
+ }
3619
+
3620
+ export interface LinkDestPrivate {
3621
+ }
3622
+
3623
+ export class LinkDestPrivate {
3624
+
3625
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkDestPrivate
3626
+
3627
+ static name: string
3628
+ }
3629
+
3630
+ export interface LinkPrivate {
3631
+ }
3632
+
3633
+ export class LinkPrivate {
3634
+
3635
+ // Own properties of EvinceDocument-3.0.EvinceDocument.LinkPrivate
3636
+
3637
+ static name: string
3638
+ }
3639
+
3640
+ export interface Mapping {
3641
+
3642
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Mapping
3643
+
3644
+ area: Rectangle
3645
+ data: any
3646
+ }
3647
+
3648
+ export class Mapping {
3649
+
3650
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Mapping
3651
+
3652
+ static name: string
3653
+ }
3654
+
3655
+ export interface MappingList {
3656
+
3657
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.MappingList
3658
+
3659
+ find(data: any | null): Mapping
3660
+ find_custom(data: any | null, func: GLib.CompareFunc): Mapping
3661
+ get(x: number, y: number): Mapping
3662
+ get_data(x: number, y: number): any | null
3663
+ get_list(): Mapping[]
3664
+ get_page(): number
3665
+ length(): number
3666
+ nth(n: number): Mapping
3667
+ ref(): MappingList
3668
+ remove(mapping: Mapping): void
3669
+ unref(): void
3670
+ }
3671
+
3672
+ export class MappingList {
3673
+
3674
+ // Own properties of EvinceDocument-3.0.EvinceDocument.MappingList
3675
+
3676
+ static name: string
3677
+
3678
+ // Constructors of EvinceDocument-3.0.EvinceDocument.MappingList
3679
+
3680
+ constructor(page: number, list: Mapping[], data_destroy_func: GLib.DestroyNotify)
3681
+ static new(page: number, list: Mapping[], data_destroy_func: GLib.DestroyNotify): MappingList
3682
+ }
3683
+
3684
+ export interface MediaClass {
3685
+
3686
+ // Own fields of EvinceDocument-3.0.EvinceDocument.MediaClass
3687
+
3688
+ base_class: GObject.ObjectClass
3689
+ }
3690
+
3691
+ export abstract class MediaClass {
3692
+
3693
+ // Own properties of EvinceDocument-3.0.EvinceDocument.MediaClass
3694
+
3695
+ static name: string
3696
+ }
3697
+
3698
+ export interface MediaPrivate {
3699
+ }
3700
+
3701
+ export class MediaPrivate {
3702
+
3703
+ // Own properties of EvinceDocument-3.0.EvinceDocument.MediaPrivate
3704
+
3705
+ static name: string
3706
+ }
3707
+
3708
+ export interface PageClass {
3709
+
3710
+ // Own fields of EvinceDocument-3.0.EvinceDocument.PageClass
3711
+
3712
+ base_class: GObject.ObjectClass
3713
+ }
3714
+
3715
+ export abstract class PageClass {
3716
+
3717
+ // Own properties of EvinceDocument-3.0.EvinceDocument.PageClass
3718
+
3719
+ static name: string
3720
+ }
3721
+
3722
+ export interface Point {
3723
+
3724
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Point
3725
+
3726
+ x: number
3727
+ y: number
3728
+ }
3729
+
3730
+ export class Point {
3731
+
3732
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Point
3733
+
3734
+ static name: string
3735
+ }
3736
+
3737
+ export interface Rectangle {
3738
+
3739
+ // Own fields of EvinceDocument-3.0.EvinceDocument.Rectangle
3740
+
3741
+ x1: number
3742
+ y1: number
3743
+ x2: number
3744
+ y2: number
3745
+
3746
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.Rectangle
3747
+
3748
+ copy(): Rectangle
3749
+ free(): void
3750
+ }
3751
+
3752
+ export class Rectangle {
3753
+
3754
+ // Own properties of EvinceDocument-3.0.EvinceDocument.Rectangle
3755
+
3756
+ static name: string
3757
+
3758
+ // Constructors of EvinceDocument-3.0.EvinceDocument.Rectangle
3759
+
3760
+ constructor()
3761
+ static new(): Rectangle
3762
+ }
3763
+
3764
+ export interface RenderContextClass {
3765
+
3766
+ // Own fields of EvinceDocument-3.0.EvinceDocument.RenderContextClass
3767
+
3768
+ klass: GObject.ObjectClass
3769
+ }
3770
+
3771
+ export abstract class RenderContextClass {
3772
+
3773
+ // Own properties of EvinceDocument-3.0.EvinceDocument.RenderContextClass
3774
+
3775
+ static name: string
3776
+ }
3777
+
3778
+ export interface SelectionInterface {
3779
+
3780
+ // Own fields of EvinceDocument-3.0.EvinceDocument.SelectionInterface
3781
+
3782
+ base_iface: GObject.TypeInterface
3783
+ render_selection: (selection: Selection, rc: RenderContext, surface: cairo.Surface, points: Rectangle, old_points: Rectangle, style: SelectionStyle, text: Gdk.Color, base: Gdk.Color) => void
3784
+ get_selected_text: (selection: Selection, page: Page, style: SelectionStyle, points: Rectangle) => string | null
3785
+ get_selection_region: (selection: Selection, rc: RenderContext, style: SelectionStyle, points: Rectangle) => cairo.Region
3786
+ }
3787
+
3788
+ export abstract class SelectionInterface {
3789
+
3790
+ // Own properties of EvinceDocument-3.0.EvinceDocument.SelectionInterface
3791
+
3792
+ static name: string
3793
+ }
3794
+
3795
+ export interface SourceLink {
3796
+
3797
+ // Own fields of EvinceDocument-3.0.EvinceDocument.SourceLink
3798
+
3799
+ filename: string | null
3800
+ line: number
3801
+ col: number
3802
+
3803
+ // Owm methods of EvinceDocument-3.0.EvinceDocument.SourceLink
3804
+
3805
+ copy(): SourceLink
3806
+ free(): void
3807
+ }
3808
+
3809
+ export class SourceLink {
3810
+
3811
+ // Own properties of EvinceDocument-3.0.EvinceDocument.SourceLink
3812
+
3813
+ static name: string
3814
+
3815
+ // Constructors of EvinceDocument-3.0.EvinceDocument.SourceLink
3816
+
3817
+ constructor(filename: string | null, line: number, col: number)
3818
+ static new(filename: string | null, line: number, col: number): SourceLink
3819
+ }
3820
+
3821
+ export interface TransitionEffectClass {
3822
+
3823
+ // Own fields of EvinceDocument-3.0.EvinceDocument.TransitionEffectClass
3824
+
3825
+ parent_class: GObject.ObjectClass
3826
+ }
3827
+
3828
+ export abstract class TransitionEffectClass {
3829
+
3830
+ // Own properties of EvinceDocument-3.0.EvinceDocument.TransitionEffectClass
3831
+
3832
+ static name: string
3833
+ }
3834
+
3835
+ export interface TypeInfo {
3836
+
3837
+ // Own fields of EvinceDocument-3.0.EvinceDocument.TypeInfo
3838
+
3839
+ desc: string | null
3840
+ mime_types: string | null
3841
+ }
3842
+
3843
+ export class TypeInfo {
3844
+
3845
+ // Own properties of EvinceDocument-3.0.EvinceDocument.TypeInfo
3846
+
3847
+ static name: string
3848
+ }
3849
+
3850
+ export type BackendPage = any
3851
+ export type BackendPageDestroyFunc = GLib.DestroyNotify
3852
+ /**
3853
+ * Name of the imported GIR library
3854
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
3855
+ */
3856
+ export const __name__: string
3857
+ /**
3858
+ * Version of the imported GIR library
3859
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
3860
+ */
3861
+ export const __version__: string
3862
+ // END