@girs/xreaderdocument-1.5 4.2.2-4.0.0-beta.18 → 4.2.2-4.0.0-beta.20
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 +1 -1
- package/package.json +15 -15
- package/tsconfig.json +3 -1
- package/xreaderdocument-1.5.d.ts +96 -62
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for XreaderDocument-1.5, generated from library version 4.2.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for XreaderDocument-1.5, generated from library version 4.2.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.20.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/xreaderdocument-1.5",
|
|
3
|
-
"version": "4.2.2-4.0.0-beta.
|
|
3
|
+
"version": "4.2.2-4.0.0-beta.20",
|
|
4
4
|
"description": "GJS TypeScript type definitions for XreaderDocument-1.5, generated from library version 4.2.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "xreaderdocument-1.5.js",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/atk-1.0": "^2.54.0-4.0.0-beta.
|
|
35
|
-
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.
|
|
36
|
-
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.
|
|
37
|
-
"@girs/gdk-3.0": "^3.24.
|
|
38
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.
|
|
39
|
-
"@girs/gio-2.0": "^2.82.
|
|
40
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
41
|
-
"@girs/glib-2.0": "^2.82.
|
|
42
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
43
|
-
"@girs/gobject-2.0": "^2.82.
|
|
44
|
-
"@girs/gtk-3.0": "^3.24.
|
|
45
|
-
"@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.
|
|
46
|
-
"@girs/pango-1.0": "^1.54.0-4.0.0-beta.
|
|
47
|
-
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.
|
|
34
|
+
"@girs/atk-1.0": "^2.54.0-4.0.0-beta.20",
|
|
35
|
+
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.20",
|
|
36
|
+
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.20",
|
|
37
|
+
"@girs/gdk-3.0": "^3.24.48-4.0.0-beta.20",
|
|
38
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.20",
|
|
39
|
+
"@girs/gio-2.0": "^2.82.4-4.0.0-beta.20",
|
|
40
|
+
"@girs/gjs": "^4.0.0-beta.20",
|
|
41
|
+
"@girs/glib-2.0": "^2.82.4-4.0.0-beta.20",
|
|
42
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.20",
|
|
43
|
+
"@girs/gobject-2.0": "^2.82.4-4.0.0-beta.20",
|
|
44
|
+
"@girs/gtk-3.0": "^3.24.48-4.0.0-beta.20",
|
|
45
|
+
"@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.20",
|
|
46
|
+
"@girs/pango-1.0": "^1.54.0-4.0.0-beta.20",
|
|
47
|
+
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.20"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "*"
|
package/tsconfig.json
CHANGED
package/xreaderdocument-1.5.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import type Pango from '@girs/pango-1.0';
|
|
|
18
18
|
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
19
19
|
import type freetype2 from '@girs/freetype2-2.0';
|
|
20
20
|
import type Gio from '@girs/gio-2.0';
|
|
21
|
-
import type GModule from '@girs/gmodule-2.0';
|
|
22
21
|
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
22
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
23
23
|
import type Atk from '@girs/atk-1.0';
|
|
24
24
|
|
|
25
25
|
export namespace XreaderDocument {
|
|
@@ -269,7 +269,7 @@ export namespace XreaderDocument {
|
|
|
269
269
|
* @param type the compression type
|
|
270
270
|
* @returns a newly allocated string URI, or %NULL on error
|
|
271
271
|
*/
|
|
272
|
-
function file_compress(uri: string, type: CompressionType): string;
|
|
272
|
+
function file_compress(uri: string, type: CompressionType | null): string;
|
|
273
273
|
/**
|
|
274
274
|
* Note: on unknown MIME types, this may return NULL without `error`
|
|
275
275
|
* being filled in.
|
|
@@ -293,7 +293,7 @@ export namespace XreaderDocument {
|
|
|
293
293
|
* @param type the compression type
|
|
294
294
|
* @returns a newly allocated string URI, or %NULL on error
|
|
295
295
|
*/
|
|
296
|
-
function file_uncompress(uri: string, type: CompressionType): string;
|
|
296
|
+
function file_uncompress(uri: string, type: CompressionType | null): string;
|
|
297
297
|
/**
|
|
298
298
|
* Initializes the xreader document library, and binds the xreader
|
|
299
299
|
* gettext domain.
|
|
@@ -418,7 +418,7 @@ export namespace XreaderDocument {
|
|
|
418
418
|
PREVIEW,
|
|
419
419
|
NUMBER_UP,
|
|
420
420
|
}
|
|
421
|
-
|
|
421
|
+
namespace Annotation {
|
|
422
422
|
// Constructor properties interface
|
|
423
423
|
|
|
424
424
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -573,7 +573,7 @@ export namespace XreaderDocument {
|
|
|
573
573
|
set_rgba(rgba: Gdk.RGBA): boolean;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
|
|
576
|
+
namespace AnnotationAttachment {
|
|
577
577
|
// Constructor properties interface
|
|
578
578
|
|
|
579
579
|
interface ConstructorProps extends Annotation.ConstructorProps, AnnotationMarkup.ConstructorProps {
|
|
@@ -759,7 +759,7 @@ export namespace XreaderDocument {
|
|
|
759
759
|
set_rgba(rgba: Gdk.RGBA): boolean;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
-
|
|
762
|
+
namespace AnnotationText {
|
|
763
763
|
// Constructor properties interface
|
|
764
764
|
|
|
765
765
|
interface ConstructorProps extends Annotation.ConstructorProps, AnnotationMarkup.ConstructorProps {
|
|
@@ -793,7 +793,7 @@ export namespace XreaderDocument {
|
|
|
793
793
|
|
|
794
794
|
get_icon(): AnnotationTextIcon;
|
|
795
795
|
get_is_open(): boolean;
|
|
796
|
-
set_icon(icon: AnnotationTextIcon): boolean;
|
|
796
|
+
set_icon(icon: AnnotationTextIcon | null): boolean;
|
|
797
797
|
set_is_open(is_open: boolean): boolean;
|
|
798
798
|
|
|
799
799
|
// Inherited properties
|
|
@@ -953,7 +953,7 @@ export namespace XreaderDocument {
|
|
|
953
953
|
set_rgba(rgba: Gdk.RGBA): boolean;
|
|
954
954
|
}
|
|
955
955
|
|
|
956
|
-
|
|
956
|
+
namespace AnnotationTextMarkup {
|
|
957
957
|
// Constructor properties interface
|
|
958
958
|
|
|
959
959
|
interface ConstructorProps extends Annotation.ConstructorProps, AnnotationMarkup.ConstructorProps {
|
|
@@ -986,7 +986,7 @@ export namespace XreaderDocument {
|
|
|
986
986
|
// Methods
|
|
987
987
|
|
|
988
988
|
get_markup_type(): AnnotationTextMarkupType;
|
|
989
|
-
set_markup_type(markup_type: AnnotationTextMarkupType): boolean;
|
|
989
|
+
set_markup_type(markup_type: AnnotationTextMarkupType | null): boolean;
|
|
990
990
|
|
|
991
991
|
// Inherited properties
|
|
992
992
|
// This accessor conflicts with a property or field in a parent class or interface.
|
|
@@ -1145,7 +1145,7 @@ export namespace XreaderDocument {
|
|
|
1145
1145
|
set_rgba(rgba: Gdk.RGBA): boolean;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
|
-
|
|
1148
|
+
namespace Attachment {
|
|
1149
1149
|
// Constructor properties interface
|
|
1150
1150
|
|
|
1151
1151
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1204,7 +1204,7 @@ export namespace XreaderDocument {
|
|
|
1204
1204
|
save(file: Gio.File): boolean;
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
|
-
|
|
1207
|
+
namespace Document {
|
|
1208
1208
|
// Constructor properties interface
|
|
1209
1209
|
|
|
1210
1210
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -1358,7 +1358,7 @@ export namespace XreaderDocument {
|
|
|
1358
1358
|
toggle_night_mode(night: boolean): void;
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
|
|
1361
|
+
namespace FormField {
|
|
1362
1362
|
// Constructor properties interface
|
|
1363
1363
|
|
|
1364
1364
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -1382,7 +1382,7 @@ export namespace XreaderDocument {
|
|
|
1382
1382
|
_init(...args: any[]): void;
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
|
-
|
|
1385
|
+
namespace FormFieldButton {
|
|
1386
1386
|
// Constructor properties interface
|
|
1387
1387
|
|
|
1388
1388
|
interface ConstructorProps extends FormField.ConstructorProps {}
|
|
@@ -1406,7 +1406,7 @@ export namespace XreaderDocument {
|
|
|
1406
1406
|
static ['new'](id: number, type: FormFieldButtonType): FormFieldButton;
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
|
-
|
|
1409
|
+
namespace FormFieldChoice {
|
|
1410
1410
|
// Constructor properties interface
|
|
1411
1411
|
|
|
1412
1412
|
interface ConstructorProps extends FormField.ConstructorProps {}
|
|
@@ -1435,7 +1435,7 @@ export namespace XreaderDocument {
|
|
|
1435
1435
|
static ['new'](id: number, type: FormFieldChoiceType): FormFieldChoice;
|
|
1436
1436
|
}
|
|
1437
1437
|
|
|
1438
|
-
|
|
1438
|
+
namespace FormFieldSignature {
|
|
1439
1439
|
// Constructor properties interface
|
|
1440
1440
|
|
|
1441
1441
|
interface ConstructorProps extends FormField.ConstructorProps {}
|
|
@@ -1457,7 +1457,7 @@ export namespace XreaderDocument {
|
|
|
1457
1457
|
static ['new'](id: number): FormFieldSignature;
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
1460
|
-
|
|
1460
|
+
namespace FormFieldText {
|
|
1461
1461
|
// Constructor properties interface
|
|
1462
1462
|
|
|
1463
1463
|
interface ConstructorProps extends FormField.ConstructorProps {}
|
|
@@ -1487,7 +1487,7 @@ export namespace XreaderDocument {
|
|
|
1487
1487
|
static ['new'](id: number, type: FormFieldTextType): FormFieldText;
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
-
|
|
1490
|
+
namespace Image {
|
|
1491
1491
|
// Constructor properties interface
|
|
1492
1492
|
|
|
1493
1493
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -1518,7 +1518,7 @@ export namespace XreaderDocument {
|
|
|
1518
1518
|
save_tmp(pixbuf: GdkPixbuf.Pixbuf): string;
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
|
-
|
|
1521
|
+
namespace Layer {
|
|
1522
1522
|
// Constructor properties interface
|
|
1523
1523
|
|
|
1524
1524
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -1545,7 +1545,7 @@ export namespace XreaderDocument {
|
|
|
1545
1545
|
is_parent(): boolean;
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
|
-
|
|
1548
|
+
namespace Link {
|
|
1549
1549
|
// Constructor properties interface
|
|
1550
1550
|
|
|
1551
1551
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1575,7 +1575,7 @@ export namespace XreaderDocument {
|
|
|
1575
1575
|
get_title(): string;
|
|
1576
1576
|
}
|
|
1577
1577
|
|
|
1578
|
-
|
|
1578
|
+
namespace LinkAction {
|
|
1579
1579
|
// Constructor properties interface
|
|
1580
1580
|
|
|
1581
1581
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1638,7 +1638,7 @@ export namespace XreaderDocument {
|
|
|
1638
1638
|
get_uri(): string;
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
|
-
|
|
1641
|
+
namespace LinkDest {
|
|
1642
1642
|
// Constructor properties interface
|
|
1643
1643
|
|
|
1644
1644
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1719,7 +1719,7 @@ export namespace XreaderDocument {
|
|
|
1719
1719
|
get_zoom(change_zoom: boolean): number;
|
|
1720
1720
|
}
|
|
1721
1721
|
|
|
1722
|
-
|
|
1722
|
+
namespace Page {
|
|
1723
1723
|
// Constructor properties interface
|
|
1724
1724
|
|
|
1725
1725
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -1744,7 +1744,7 @@ export namespace XreaderDocument {
|
|
|
1744
1744
|
static ['new'](index: number): Page;
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
|
-
|
|
1747
|
+
namespace RenderContext {
|
|
1748
1748
|
// Constructor properties interface
|
|
1749
1749
|
|
|
1750
1750
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -1774,7 +1774,7 @@ export namespace XreaderDocument {
|
|
|
1774
1774
|
set_scale(scale: number): void;
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
|
-
|
|
1777
|
+
namespace TransitionEffect {
|
|
1778
1778
|
// Constructor properties interface
|
|
1779
1779
|
|
|
1780
1780
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -2141,7 +2141,7 @@ export namespace XreaderDocument {
|
|
|
2141
2141
|
_init(...args: any[]): void;
|
|
2142
2142
|
}
|
|
2143
2143
|
|
|
2144
|
-
|
|
2144
|
+
namespace AnnotationMarkup {
|
|
2145
2145
|
// Constructor properties interface
|
|
2146
2146
|
|
|
2147
2147
|
interface ConstructorProps extends Annotation.ConstructorProps {
|
|
@@ -2196,9 +2196,11 @@ export namespace XreaderDocument {
|
|
|
2196
2196
|
set_rectangle(ev_rect: Rectangle): boolean;
|
|
2197
2197
|
}
|
|
2198
2198
|
|
|
2199
|
-
export const AnnotationMarkup: AnnotationMarkupNamespace
|
|
2199
|
+
export const AnnotationMarkup: AnnotationMarkupNamespace & {
|
|
2200
|
+
new (): AnnotationMarkup; // This allows `obj instanceof AnnotationMarkup`
|
|
2201
|
+
};
|
|
2200
2202
|
|
|
2201
|
-
|
|
2203
|
+
namespace AsyncRenderer {
|
|
2202
2204
|
// Constructor properties interface
|
|
2203
2205
|
|
|
2204
2206
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2219,9 +2221,11 @@ export namespace XreaderDocument {
|
|
|
2219
2221
|
vfunc_render_pixbuf(page: number, scale: number, rotation: number): void;
|
|
2220
2222
|
}
|
|
2221
2223
|
|
|
2222
|
-
export const AsyncRenderer: AsyncRendererNamespace
|
|
2224
|
+
export const AsyncRenderer: AsyncRendererNamespace & {
|
|
2225
|
+
new (): AsyncRenderer; // This allows `obj instanceof AsyncRenderer`
|
|
2226
|
+
};
|
|
2223
2227
|
|
|
2224
|
-
|
|
2228
|
+
namespace DocumentAnnotations {
|
|
2225
2229
|
// Constructor properties interface
|
|
2226
2230
|
|
|
2227
2231
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2239,7 +2243,7 @@ export namespace XreaderDocument {
|
|
|
2239
2243
|
can_remove_annotation(): boolean;
|
|
2240
2244
|
document_is_modified(): boolean;
|
|
2241
2245
|
remove_annotation(annot: Annotation): void;
|
|
2242
|
-
save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void;
|
|
2246
|
+
save_annotation(annot: Annotation, mask: AnnotationsSaveMask | null): void;
|
|
2243
2247
|
|
|
2244
2248
|
// Virtual methods
|
|
2245
2249
|
|
|
@@ -2249,9 +2253,11 @@ export namespace XreaderDocument {
|
|
|
2249
2253
|
vfunc_save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void;
|
|
2250
2254
|
}
|
|
2251
2255
|
|
|
2252
|
-
export const DocumentAnnotations: DocumentAnnotationsNamespace
|
|
2256
|
+
export const DocumentAnnotations: DocumentAnnotationsNamespace & {
|
|
2257
|
+
new (): DocumentAnnotations; // This allows `obj instanceof DocumentAnnotations`
|
|
2258
|
+
};
|
|
2253
2259
|
|
|
2254
|
-
|
|
2260
|
+
namespace DocumentAttachments {
|
|
2255
2261
|
// Constructor properties interface
|
|
2256
2262
|
|
|
2257
2263
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2271,9 +2277,11 @@ export namespace XreaderDocument {
|
|
|
2271
2277
|
vfunc_has_attachments(): boolean;
|
|
2272
2278
|
}
|
|
2273
2279
|
|
|
2274
|
-
export const DocumentAttachments: DocumentAttachmentsNamespace
|
|
2280
|
+
export const DocumentAttachments: DocumentAttachmentsNamespace & {
|
|
2281
|
+
new (): DocumentAttachments; // This allows `obj instanceof DocumentAttachments`
|
|
2282
|
+
};
|
|
2275
2283
|
|
|
2276
|
-
|
|
2284
|
+
namespace DocumentFind {
|
|
2277
2285
|
// Constructor properties interface
|
|
2278
2286
|
|
|
2279
2287
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2293,9 +2301,11 @@ export namespace XreaderDocument {
|
|
|
2293
2301
|
vfunc_check_for_hits(page: Page, text: string, case_sensitive: boolean): number;
|
|
2294
2302
|
}
|
|
2295
2303
|
|
|
2296
|
-
export const DocumentFind: DocumentFindNamespace
|
|
2304
|
+
export const DocumentFind: DocumentFindNamespace & {
|
|
2305
|
+
new (): DocumentFind; // This allows `obj instanceof DocumentFind`
|
|
2306
|
+
};
|
|
2297
2307
|
|
|
2298
|
-
|
|
2308
|
+
namespace DocumentFonts {
|
|
2299
2309
|
// Constructor properties interface
|
|
2300
2310
|
|
|
2301
2311
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2319,9 +2329,11 @@ export namespace XreaderDocument {
|
|
|
2319
2329
|
vfunc_scan(n_pages: number): boolean;
|
|
2320
2330
|
}
|
|
2321
2331
|
|
|
2322
|
-
export const DocumentFonts: DocumentFontsNamespace
|
|
2332
|
+
export const DocumentFonts: DocumentFontsNamespace & {
|
|
2333
|
+
new (): DocumentFonts; // This allows `obj instanceof DocumentFonts`
|
|
2334
|
+
};
|
|
2323
2335
|
|
|
2324
|
-
|
|
2336
|
+
namespace DocumentForms {
|
|
2325
2337
|
// Constructor properties interface
|
|
2326
2338
|
|
|
2327
2339
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2365,9 +2377,11 @@ export namespace XreaderDocument {
|
|
|
2365
2377
|
vfunc_form_field_text_set_text(field: FormField, text: string): void;
|
|
2366
2378
|
}
|
|
2367
2379
|
|
|
2368
|
-
export const DocumentForms: DocumentFormsNamespace
|
|
2380
|
+
export const DocumentForms: DocumentFormsNamespace & {
|
|
2381
|
+
new (): DocumentForms; // This allows `obj instanceof DocumentForms`
|
|
2382
|
+
};
|
|
2369
2383
|
|
|
2370
|
-
|
|
2384
|
+
namespace DocumentImages {
|
|
2371
2385
|
// Constructor properties interface
|
|
2372
2386
|
|
|
2373
2387
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2379,9 +2393,11 @@ export namespace XreaderDocument {
|
|
|
2379
2393
|
}
|
|
2380
2394
|
interface DocumentImages extends GObject.Object {}
|
|
2381
2395
|
|
|
2382
|
-
export const DocumentImages: DocumentImagesNamespace
|
|
2396
|
+
export const DocumentImages: DocumentImagesNamespace & {
|
|
2397
|
+
new (): DocumentImages; // This allows `obj instanceof DocumentImages`
|
|
2398
|
+
};
|
|
2383
2399
|
|
|
2384
|
-
|
|
2400
|
+
namespace DocumentLayers {
|
|
2385
2401
|
// Constructor properties interface
|
|
2386
2402
|
|
|
2387
2403
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2407,9 +2423,11 @@ export namespace XreaderDocument {
|
|
|
2407
2423
|
vfunc_show_layer(layer: Layer): void;
|
|
2408
2424
|
}
|
|
2409
2425
|
|
|
2410
|
-
export const DocumentLayers: DocumentLayersNamespace
|
|
2426
|
+
export const DocumentLayers: DocumentLayersNamespace & {
|
|
2427
|
+
new (): DocumentLayers; // This allows `obj instanceof DocumentLayers`
|
|
2428
|
+
};
|
|
2411
2429
|
|
|
2412
|
-
|
|
2430
|
+
namespace DocumentLinks {
|
|
2413
2431
|
// Constructor properties interface
|
|
2414
2432
|
|
|
2415
2433
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2435,9 +2453,11 @@ export namespace XreaderDocument {
|
|
|
2435
2453
|
vfunc_has_document_links(): boolean;
|
|
2436
2454
|
}
|
|
2437
2455
|
|
|
2438
|
-
export const DocumentLinks: DocumentLinksNamespace
|
|
2456
|
+
export const DocumentLinks: DocumentLinksNamespace & {
|
|
2457
|
+
new (): DocumentLinks; // This allows `obj instanceof DocumentLinks`
|
|
2458
|
+
};
|
|
2439
2459
|
|
|
2440
|
-
|
|
2460
|
+
namespace DocumentPrint {
|
|
2441
2461
|
// Constructor properties interface
|
|
2442
2462
|
|
|
2443
2463
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2457,9 +2477,11 @@ export namespace XreaderDocument {
|
|
|
2457
2477
|
vfunc_print_page(page: Page, cr: cairo.Context): void;
|
|
2458
2478
|
}
|
|
2459
2479
|
|
|
2460
|
-
export const DocumentPrint: DocumentPrintNamespace
|
|
2480
|
+
export const DocumentPrint: DocumentPrintNamespace & {
|
|
2481
|
+
new (): DocumentPrint; // This allows `obj instanceof DocumentPrint`
|
|
2482
|
+
};
|
|
2461
2483
|
|
|
2462
|
-
|
|
2484
|
+
namespace DocumentSecurity {
|
|
2463
2485
|
// Constructor properties interface
|
|
2464
2486
|
|
|
2465
2487
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2481,9 +2503,11 @@ export namespace XreaderDocument {
|
|
|
2481
2503
|
vfunc_set_password(password: string): void;
|
|
2482
2504
|
}
|
|
2483
2505
|
|
|
2484
|
-
export const DocumentSecurity: DocumentSecurityNamespace
|
|
2506
|
+
export const DocumentSecurity: DocumentSecurityNamespace & {
|
|
2507
|
+
new (): DocumentSecurity; // This allows `obj instanceof DocumentSecurity`
|
|
2508
|
+
};
|
|
2485
2509
|
|
|
2486
|
-
|
|
2510
|
+
namespace DocumentText {
|
|
2487
2511
|
// Constructor properties interface
|
|
2488
2512
|
|
|
2489
2513
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2507,9 +2531,11 @@ export namespace XreaderDocument {
|
|
|
2507
2531
|
vfunc_get_text_mapping(page: Page): cairo.Region;
|
|
2508
2532
|
}
|
|
2509
2533
|
|
|
2510
|
-
export const DocumentText: DocumentTextNamespace
|
|
2534
|
+
export const DocumentText: DocumentTextNamespace & {
|
|
2535
|
+
new (): DocumentText; // This allows `obj instanceof DocumentText`
|
|
2536
|
+
};
|
|
2511
2537
|
|
|
2512
|
-
|
|
2538
|
+
namespace DocumentThumbnails {
|
|
2513
2539
|
// Constructor properties interface
|
|
2514
2540
|
|
|
2515
2541
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2529,9 +2555,11 @@ export namespace XreaderDocument {
|
|
|
2529
2555
|
vfunc_get_dimensions(rc: RenderContext, width: number, height: number): void;
|
|
2530
2556
|
}
|
|
2531
2557
|
|
|
2532
|
-
export const DocumentThumbnails: DocumentThumbnailsNamespace
|
|
2558
|
+
export const DocumentThumbnails: DocumentThumbnailsNamespace & {
|
|
2559
|
+
new (): DocumentThumbnails; // This allows `obj instanceof DocumentThumbnails`
|
|
2560
|
+
};
|
|
2533
2561
|
|
|
2534
|
-
|
|
2562
|
+
namespace DocumentTransition {
|
|
2535
2563
|
// Constructor properties interface
|
|
2536
2564
|
|
|
2537
2565
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2551,9 +2579,11 @@ export namespace XreaderDocument {
|
|
|
2551
2579
|
vfunc_get_page_duration(page: number): number;
|
|
2552
2580
|
}
|
|
2553
2581
|
|
|
2554
|
-
export const DocumentTransition: DocumentTransitionNamespace
|
|
2582
|
+
export const DocumentTransition: DocumentTransitionNamespace & {
|
|
2583
|
+
new (): DocumentTransition; // This allows `obj instanceof DocumentTransition`
|
|
2584
|
+
};
|
|
2555
2585
|
|
|
2556
|
-
|
|
2586
|
+
namespace FileExporter {
|
|
2557
2587
|
// Constructor properties interface
|
|
2558
2588
|
|
|
2559
2589
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2583,9 +2613,11 @@ export namespace XreaderDocument {
|
|
|
2583
2613
|
vfunc_get_capabilities(): FileExporterCapabilities;
|
|
2584
2614
|
}
|
|
2585
2615
|
|
|
2586
|
-
export const FileExporter: FileExporterNamespace
|
|
2616
|
+
export const FileExporter: FileExporterNamespace & {
|
|
2617
|
+
new (): FileExporter; // This allows `obj instanceof FileExporter`
|
|
2618
|
+
};
|
|
2587
2619
|
|
|
2588
|
-
|
|
2620
|
+
namespace Selection {
|
|
2589
2621
|
// Constructor properties interface
|
|
2590
2622
|
|
|
2591
2623
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -2598,14 +2630,14 @@ export namespace XreaderDocument {
|
|
|
2598
2630
|
interface Selection extends GObject.Object {
|
|
2599
2631
|
// Methods
|
|
2600
2632
|
|
|
2601
|
-
get_selected_text(page: Page, style: SelectionStyle, points: Rectangle): string;
|
|
2602
|
-
get_selection_region(rc: RenderContext, style: SelectionStyle, points: Rectangle): cairo.Region;
|
|
2633
|
+
get_selected_text(page: Page, style: SelectionStyle | null, points: Rectangle): string;
|
|
2634
|
+
get_selection_region(rc: RenderContext, style: SelectionStyle | null, points: Rectangle): cairo.Region;
|
|
2603
2635
|
render_selection(
|
|
2604
2636
|
rc: RenderContext,
|
|
2605
2637
|
surface: cairo.Surface,
|
|
2606
2638
|
points: Rectangle,
|
|
2607
2639
|
old_points: Rectangle,
|
|
2608
|
-
style: SelectionStyle,
|
|
2640
|
+
style: SelectionStyle | null,
|
|
2609
2641
|
text: Gdk.Color,
|
|
2610
2642
|
base: Gdk.Color,
|
|
2611
2643
|
): void;
|
|
@@ -2625,7 +2657,9 @@ export namespace XreaderDocument {
|
|
|
2625
2657
|
): void;
|
|
2626
2658
|
}
|
|
2627
2659
|
|
|
2628
|
-
export const Selection: SelectionNamespace
|
|
2660
|
+
export const Selection: SelectionNamespace & {
|
|
2661
|
+
new (): Selection; // This allows `obj instanceof Selection`
|
|
2662
|
+
};
|
|
2629
2663
|
|
|
2630
2664
|
type BackendPage = any;
|
|
2631
2665
|
type BackendPageDestroyFunc = GLib.DestroyNotify;
|