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