@girs/xreaderdocument-1.5 4.2.2-4.0.0-beta.34 → 4.2.2-4.0.0-beta.36

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/xreaderdocument-1.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.34.
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.36.
9
9
 
10
10
  ## Install
11
11
 
package/package.json CHANGED
@@ -1,70 +1,64 @@
1
1
  {
2
- "name": "@girs/xreaderdocument-1.5",
3
- "version": "4.2.2-4.0.0-beta.34",
4
- "description": "GJS TypeScript type definitions for XreaderDocument-1.5, generated from library version 4.2.2",
5
- "type": "module",
6
- "module": "xreaderdocument-1.5.js",
7
- "main": "xreaderdocument-1.5.js",
8
- "exports": {
9
- "./ambient": {
10
- "types": "./xreaderdocument-1.5-ambient.d.ts",
11
- "import": "./xreaderdocument-1.5-ambient.js",
12
- "default": "./xreaderdocument-1.5-ambient.js"
2
+ "name": "@girs/xreaderdocument-1.5",
3
+ "version": "4.2.2-4.0.0-beta.36",
4
+ "description": "GJS TypeScript type definitions for XreaderDocument-1.5, generated from library version 4.2.2",
5
+ "type": "module",
6
+ "module": "xreaderdocument-1.5.js",
7
+ "main": "xreaderdocument-1.5.js",
8
+ "exports": {
9
+ "./ambient": {
10
+ "types": "./xreaderdocument-1.5-ambient.d.ts",
11
+ "import": "./xreaderdocument-1.5-ambient.js",
12
+ "default": "./xreaderdocument-1.5-ambient.js"
13
+ },
14
+ "./import": {
15
+ "types": "./xreaderdocument-1.5-import.d.ts",
16
+ "import": "./xreaderdocument-1.5-import.js",
17
+ "default": "./xreaderdocument-1.5-import.js"
18
+ },
19
+ "./xreaderdocument-1.5": {
20
+ "types": "./xreaderdocument-1.5.d.ts",
21
+ "import": "./xreaderdocument-1.5.js",
22
+ "default": "./xreaderdocument-1.5.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
28
+ }
13
29
  },
14
- "./import": {
15
- "types": "./xreaderdocument-1.5-import.d.ts",
16
- "import": "./xreaderdocument-1.5-import.js",
17
- "default": "./xreaderdocument-1.5-import.js"
30
+ "scripts": {
31
+ "test": "tsc --project tsconfig.json"
18
32
  },
19
- "./xreaderdocument-1.5": {
20
- "types": "./xreaderdocument-1.5.d.ts",
21
- "import": "./xreaderdocument-1.5.js",
22
- "default": "./xreaderdocument-1.5.js"
33
+ "dependencies": {
34
+ "@girs/gjs": "4.0.0-beta.36",
35
+ "@girs/gtk-3.0": "3.24.50-4.0.0-beta.36",
36
+ "@girs/xlib-2.0": "2.0.0-4.0.0-beta.36",
37
+ "@girs/gdk-3.0": "3.24.50-4.0.0-beta.36",
38
+ "@girs/cairo-1.0": "1.0.0-4.0.0-beta.36",
39
+ "@girs/gobject-2.0": "2.84.4-4.0.0-beta.36",
40
+ "@girs/glib-2.0": "2.84.4-4.0.0-beta.36",
41
+ "@girs/pango-1.0": "1.56.4-4.0.0-beta.36",
42
+ "@girs/harfbuzz-0.0": "10.4.0-4.0.0-beta.36",
43
+ "@girs/freetype2-2.0": "2.0.0-4.0.0-beta.36",
44
+ "@girs/gio-2.0": "2.84.4-4.0.0-beta.36",
45
+ "@girs/gmodule-2.0": "2.0.0-4.0.0-beta.36",
46
+ "@girs/gdkpixbuf-2.0": "2.0.0-4.0.0-beta.36",
47
+ "@girs/atk-1.0": "2.56.3-4.0.0-beta.36" },
48
+ "devDependencies": {
49
+ "typescript": "*"
23
50
  },
24
- ".": {
25
- "types": "./index.d.ts",
26
- "import": "./index.js",
27
- "default": "./index.js"
28
- }
29
- },
30
- "scripts": {
31
- "test": "tsc --project tsconfig.json"
32
- },
33
- "dependencies": {
34
- "@girs/atk-1.0": "^2.56.3-4.0.0-beta.34",
35
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.34",
36
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.34",
37
- "@girs/gdk-3.0": "^3.24.50-4.0.0-beta.34",
38
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.34",
39
- "@girs/gio-2.0": "^2.84.4-4.0.0-beta.34",
40
- "@girs/gjs": "^4.0.0-beta.34",
41
- "@girs/glib-2.0": "^2.84.4-4.0.0-beta.34",
42
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.34",
43
- "@girs/gobject-2.0": "^2.84.4-4.0.0-beta.34",
44
- "@girs/gtk-3.0": "^3.24.50-4.0.0-beta.34",
45
- "@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.34",
46
- "@girs/pango-1.0": "^1.56.4-4.0.0-beta.34",
47
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.34"
48
- },
49
- "devDependencies": {
50
- "typescript": "*"
51
- },
52
- "keywords": [
53
- "Gir",
54
- "TypeScript",
55
- "types",
56
- "GObject-Introspection",
57
- "GJS",
58
- "XreaderDocument-1.5"
59
- ],
60
- "author": "ts-for-gir",
61
- "license": "MIT",
62
- "repository": {
63
- "type": "git",
64
- "url": "git+https://github.com/gjsify/ts-for-gir.git"
65
- },
66
- "bugs": {
67
- "url": "https://github.com/gjsify/ts-for-gir/issues"
68
- },
69
- "homepage": "https://github.com/gjsify/types/tree/main/xreaderdocument-1.5#readme"
70
- }
51
+ "keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "XreaderDocument-1.5"],
52
+ "author": "ts-for-gir",
53
+ "license": "MIT",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/gjsify/types.git"
57
+ },
58
+ "bugs": {
59
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
60
+ },
61
+ "homepage": "https://github.com/gjsify/types/tree/main/xreaderdocument-1.5#readme"
62
+ }
63
+
64
+
@@ -2870,6 +2870,17 @@ export namespace XreaderDocument {
2870
2870
  };
2871
2871
 
2872
2872
  namespace AsyncRenderer {
2873
+ /**
2874
+ * Interface for implementing AsyncRenderer.
2875
+ * Contains only the virtual methods that need to be implemented.
2876
+ */
2877
+ interface Interface {
2878
+ // Virtual methods
2879
+
2880
+ vfunc_render_finished(pixbuf: GdkPixbuf.Pixbuf): void;
2881
+ vfunc_render_pixbuf(page: number, scale: number, rotation: number): void;
2882
+ }
2883
+
2873
2884
  // Constructor properties interface
2874
2885
 
2875
2886
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -2879,15 +2890,10 @@ export namespace XreaderDocument {
2879
2890
  $gtype: GObject.GType<AsyncRenderer>;
2880
2891
  prototype: AsyncRenderer;
2881
2892
  }
2882
- interface AsyncRenderer extends GObject.Object {
2893
+ interface AsyncRenderer extends GObject.Object, AsyncRenderer.Interface {
2883
2894
  // Methods
2884
2895
 
2885
2896
  render_pixbuf(page: number, scale: number, rotation: number): void;
2886
-
2887
- // Virtual methods
2888
-
2889
- vfunc_render_finished(pixbuf: GdkPixbuf.Pixbuf): void;
2890
- vfunc_render_pixbuf(page: number, scale: number, rotation: number): void;
2891
2897
  }
2892
2898
 
2893
2899
  export const AsyncRenderer: AsyncRendererNamespace & {
@@ -2895,6 +2901,19 @@ export namespace XreaderDocument {
2895
2901
  };
2896
2902
 
2897
2903
  namespace DocumentAnnotations {
2904
+ /**
2905
+ * Interface for implementing DocumentAnnotations.
2906
+ * Contains only the virtual methods that need to be implemented.
2907
+ */
2908
+ interface Interface {
2909
+ // Virtual methods
2910
+
2911
+ vfunc_add_annotation(annot: Annotation, rect: Rectangle): void;
2912
+ vfunc_document_is_modified(): boolean;
2913
+ vfunc_remove_annotation(annot: Annotation): void;
2914
+ vfunc_save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void;
2915
+ }
2916
+
2898
2917
  // Constructor properties interface
2899
2918
 
2900
2919
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -2904,7 +2923,7 @@ export namespace XreaderDocument {
2904
2923
  $gtype: GObject.GType<DocumentAnnotations>;
2905
2924
  prototype: DocumentAnnotations;
2906
2925
  }
2907
- interface DocumentAnnotations extends GObject.Object {
2926
+ interface DocumentAnnotations extends GObject.Object, DocumentAnnotations.Interface {
2908
2927
  // Methods
2909
2928
 
2910
2929
  add_annotation(annot: Annotation, rect: Rectangle): void;
@@ -2913,13 +2932,6 @@ export namespace XreaderDocument {
2913
2932
  document_is_modified(): boolean;
2914
2933
  remove_annotation(annot: Annotation): void;
2915
2934
  save_annotation(annot: Annotation, mask: AnnotationsSaveMask | null): void;
2916
-
2917
- // Virtual methods
2918
-
2919
- vfunc_add_annotation(annot: Annotation, rect: Rectangle): void;
2920
- vfunc_document_is_modified(): boolean;
2921
- vfunc_remove_annotation(annot: Annotation): void;
2922
- vfunc_save_annotation(annot: Annotation, mask: AnnotationsSaveMask): void;
2923
2935
  }
2924
2936
 
2925
2937
  export const DocumentAnnotations: DocumentAnnotationsNamespace & {
@@ -2927,6 +2939,16 @@ export namespace XreaderDocument {
2927
2939
  };
2928
2940
 
2929
2941
  namespace DocumentAttachments {
2942
+ /**
2943
+ * Interface for implementing DocumentAttachments.
2944
+ * Contains only the virtual methods that need to be implemented.
2945
+ */
2946
+ interface Interface {
2947
+ // Virtual methods
2948
+
2949
+ vfunc_has_attachments(): boolean;
2950
+ }
2951
+
2930
2952
  // Constructor properties interface
2931
2953
 
2932
2954
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -2936,14 +2958,10 @@ export namespace XreaderDocument {
2936
2958
  $gtype: GObject.GType<DocumentAttachments>;
2937
2959
  prototype: DocumentAttachments;
2938
2960
  }
2939
- interface DocumentAttachments extends GObject.Object {
2961
+ interface DocumentAttachments extends GObject.Object, DocumentAttachments.Interface {
2940
2962
  // Methods
2941
2963
 
2942
2964
  has_attachments(): boolean;
2943
-
2944
- // Virtual methods
2945
-
2946
- vfunc_has_attachments(): boolean;
2947
2965
  }
2948
2966
 
2949
2967
  export const DocumentAttachments: DocumentAttachmentsNamespace & {
@@ -2951,6 +2969,16 @@ export namespace XreaderDocument {
2951
2969
  };
2952
2970
 
2953
2971
  namespace DocumentFind {
2972
+ /**
2973
+ * Interface for implementing DocumentFind.
2974
+ * Contains only the virtual methods that need to be implemented.
2975
+ */
2976
+ interface Interface {
2977
+ // Virtual methods
2978
+
2979
+ vfunc_check_for_hits(page: Page, text: string, case_sensitive: boolean): number;
2980
+ }
2981
+
2954
2982
  // Constructor properties interface
2955
2983
 
2956
2984
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -2960,14 +2988,10 @@ export namespace XreaderDocument {
2960
2988
  $gtype: GObject.GType<DocumentFind>;
2961
2989
  prototype: DocumentFind;
2962
2990
  }
2963
- interface DocumentFind extends GObject.Object {
2991
+ interface DocumentFind extends GObject.Object, DocumentFind.Interface {
2964
2992
  // Methods
2965
2993
 
2966
2994
  check_for_hits(page: Page, text: string, case_sensitive: boolean): number;
2967
-
2968
- // Virtual methods
2969
-
2970
- vfunc_check_for_hits(page: Page, text: string, case_sensitive: boolean): number;
2971
2995
  }
2972
2996
 
2973
2997
  export const DocumentFind: DocumentFindNamespace & {
@@ -2975,6 +2999,18 @@ export namespace XreaderDocument {
2975
2999
  };
2976
3000
 
2977
3001
  namespace DocumentFonts {
3002
+ /**
3003
+ * Interface for implementing DocumentFonts.
3004
+ * Contains only the virtual methods that need to be implemented.
3005
+ */
3006
+ interface Interface {
3007
+ // Virtual methods
3008
+
3009
+ vfunc_fill_model(model: Gtk.TreeModel): void;
3010
+ vfunc_get_progress(): number;
3011
+ vfunc_scan(n_pages: number): boolean;
3012
+ }
3013
+
2978
3014
  // Constructor properties interface
2979
3015
 
2980
3016
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -2984,18 +3020,12 @@ export namespace XreaderDocument {
2984
3020
  $gtype: GObject.GType<DocumentFonts>;
2985
3021
  prototype: DocumentFonts;
2986
3022
  }
2987
- interface DocumentFonts extends GObject.Object {
3023
+ interface DocumentFonts extends GObject.Object, DocumentFonts.Interface {
2988
3024
  // Methods
2989
3025
 
2990
3026
  fill_model(model: Gtk.TreeModel): void;
2991
3027
  get_progress(): number;
2992
3028
  scan(n_pages: number): boolean;
2993
-
2994
- // Virtual methods
2995
-
2996
- vfunc_fill_model(model: Gtk.TreeModel): void;
2997
- vfunc_get_progress(): number;
2998
- vfunc_scan(n_pages: number): boolean;
2999
3029
  }
3000
3030
 
3001
3031
  export const DocumentFonts: DocumentFontsNamespace & {
@@ -3003,6 +3033,28 @@ export namespace XreaderDocument {
3003
3033
  };
3004
3034
 
3005
3035
  namespace DocumentForms {
3036
+ /**
3037
+ * Interface for implementing DocumentForms.
3038
+ * Contains only the virtual methods that need to be implemented.
3039
+ */
3040
+ interface Interface {
3041
+ // Virtual methods
3042
+
3043
+ vfunc_document_is_modified(): boolean;
3044
+ vfunc_form_field_button_get_state(field: FormField): boolean;
3045
+ vfunc_form_field_button_set_state(field: FormField, state: boolean): void;
3046
+ vfunc_form_field_choice_get_item(field: FormField, index: number): string;
3047
+ vfunc_form_field_choice_get_n_items(field: FormField): number;
3048
+ vfunc_form_field_choice_get_text(field: FormField): string;
3049
+ vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean;
3050
+ vfunc_form_field_choice_select_item(field: FormField, index: number): void;
3051
+ vfunc_form_field_choice_set_text(field: FormField, text: string): void;
3052
+ vfunc_form_field_choice_toggle_item(field: FormField, index: number): void;
3053
+ vfunc_form_field_choice_unselect_all(field: FormField): void;
3054
+ vfunc_form_field_text_get_text(field: FormField): string;
3055
+ vfunc_form_field_text_set_text(field: FormField, text: string): void;
3056
+ }
3057
+
3006
3058
  // Constructor properties interface
3007
3059
 
3008
3060
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3012,7 +3064,7 @@ export namespace XreaderDocument {
3012
3064
  $gtype: GObject.GType<DocumentForms>;
3013
3065
  prototype: DocumentForms;
3014
3066
  }
3015
- interface DocumentForms extends GObject.Object {
3067
+ interface DocumentForms extends GObject.Object, DocumentForms.Interface {
3016
3068
  // Methods
3017
3069
 
3018
3070
  document_is_modified(): boolean;
@@ -3028,22 +3080,6 @@ export namespace XreaderDocument {
3028
3080
  form_field_choice_unselect_all(field: FormField): void;
3029
3081
  form_field_text_get_text(field: FormField): string;
3030
3082
  form_field_text_set_text(field: FormField, text: string): void;
3031
-
3032
- // Virtual methods
3033
-
3034
- vfunc_document_is_modified(): boolean;
3035
- vfunc_form_field_button_get_state(field: FormField): boolean;
3036
- vfunc_form_field_button_set_state(field: FormField, state: boolean): void;
3037
- vfunc_form_field_choice_get_item(field: FormField, index: number): string;
3038
- vfunc_form_field_choice_get_n_items(field: FormField): number;
3039
- vfunc_form_field_choice_get_text(field: FormField): string;
3040
- vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean;
3041
- vfunc_form_field_choice_select_item(field: FormField, index: number): void;
3042
- vfunc_form_field_choice_set_text(field: FormField, text: string): void;
3043
- vfunc_form_field_choice_toggle_item(field: FormField, index: number): void;
3044
- vfunc_form_field_choice_unselect_all(field: FormField): void;
3045
- vfunc_form_field_text_get_text(field: FormField): string;
3046
- vfunc_form_field_text_set_text(field: FormField, text: string): void;
3047
3083
  }
3048
3084
 
3049
3085
  export const DocumentForms: DocumentFormsNamespace & {
@@ -3067,6 +3103,19 @@ export namespace XreaderDocument {
3067
3103
  };
3068
3104
 
3069
3105
  namespace DocumentLayers {
3106
+ /**
3107
+ * Interface for implementing DocumentLayers.
3108
+ * Contains only the virtual methods that need to be implemented.
3109
+ */
3110
+ interface Interface {
3111
+ // Virtual methods
3112
+
3113
+ vfunc_has_layers(): boolean;
3114
+ vfunc_hide_layer(layer: Layer): void;
3115
+ vfunc_layer_is_visible(layer: Layer): boolean;
3116
+ vfunc_show_layer(layer: Layer): void;
3117
+ }
3118
+
3070
3119
  // Constructor properties interface
3071
3120
 
3072
3121
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3076,20 +3125,13 @@ export namespace XreaderDocument {
3076
3125
  $gtype: GObject.GType<DocumentLayers>;
3077
3126
  prototype: DocumentLayers;
3078
3127
  }
3079
- interface DocumentLayers extends GObject.Object {
3128
+ interface DocumentLayers extends GObject.Object, DocumentLayers.Interface {
3080
3129
  // Methods
3081
3130
 
3082
3131
  has_layers(): boolean;
3083
3132
  hide_layer(layer: Layer): void;
3084
3133
  layer_is_visible(layer: Layer): boolean;
3085
3134
  show_layer(layer: Layer): void;
3086
-
3087
- // Virtual methods
3088
-
3089
- vfunc_has_layers(): boolean;
3090
- vfunc_hide_layer(layer: Layer): void;
3091
- vfunc_layer_is_visible(layer: Layer): boolean;
3092
- vfunc_show_layer(layer: Layer): void;
3093
3135
  }
3094
3136
 
3095
3137
  export const DocumentLayers: DocumentLayersNamespace & {
@@ -3097,6 +3139,17 @@ export namespace XreaderDocument {
3097
3139
  };
3098
3140
 
3099
3141
  namespace DocumentLinks {
3142
+ /**
3143
+ * Interface for implementing DocumentLinks.
3144
+ * Contains only the virtual methods that need to be implemented.
3145
+ */
3146
+ interface Interface {
3147
+ // Virtual methods
3148
+
3149
+ vfunc_find_link_page(link_name: string): number;
3150
+ vfunc_has_document_links(): boolean;
3151
+ }
3152
+
3100
3153
  // Constructor properties interface
3101
3154
 
3102
3155
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3106,7 +3159,7 @@ export namespace XreaderDocument {
3106
3159
  $gtype: GObject.GType<DocumentLinks>;
3107
3160
  prototype: DocumentLinks;
3108
3161
  }
3109
- interface DocumentLinks extends GObject.Object {
3162
+ interface DocumentLinks extends GObject.Object, DocumentLinks.Interface {
3110
3163
  // Methods
3111
3164
 
3112
3165
  find_link_page(link_name: string): number;
@@ -3115,11 +3168,6 @@ export namespace XreaderDocument {
3115
3168
  get_link_page(link: Link): number;
3116
3169
  get_link_page_label(link: Link): string;
3117
3170
  has_document_links(): boolean;
3118
-
3119
- // Virtual methods
3120
-
3121
- vfunc_find_link_page(link_name: string): number;
3122
- vfunc_has_document_links(): boolean;
3123
3171
  }
3124
3172
 
3125
3173
  export const DocumentLinks: DocumentLinksNamespace & {
@@ -3127,6 +3175,16 @@ export namespace XreaderDocument {
3127
3175
  };
3128
3176
 
3129
3177
  namespace DocumentPrint {
3178
+ /**
3179
+ * Interface for implementing DocumentPrint.
3180
+ * Contains only the virtual methods that need to be implemented.
3181
+ */
3182
+ interface Interface {
3183
+ // Virtual methods
3184
+
3185
+ vfunc_print_page(page: Page, cr: cairo.Context): void;
3186
+ }
3187
+
3130
3188
  // Constructor properties interface
3131
3189
 
3132
3190
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3136,14 +3194,10 @@ export namespace XreaderDocument {
3136
3194
  $gtype: GObject.GType<DocumentPrint>;
3137
3195
  prototype: DocumentPrint;
3138
3196
  }
3139
- interface DocumentPrint extends GObject.Object {
3197
+ interface DocumentPrint extends GObject.Object, DocumentPrint.Interface {
3140
3198
  // Methods
3141
3199
 
3142
3200
  print_page(page: Page, cr: cairo.Context): void;
3143
-
3144
- // Virtual methods
3145
-
3146
- vfunc_print_page(page: Page, cr: cairo.Context): void;
3147
3201
  }
3148
3202
 
3149
3203
  export const DocumentPrint: DocumentPrintNamespace & {
@@ -3151,6 +3205,17 @@ export namespace XreaderDocument {
3151
3205
  };
3152
3206
 
3153
3207
  namespace DocumentSecurity {
3208
+ /**
3209
+ * Interface for implementing DocumentSecurity.
3210
+ * Contains only the virtual methods that need to be implemented.
3211
+ */
3212
+ interface Interface {
3213
+ // Virtual methods
3214
+
3215
+ vfunc_has_document_security(): boolean;
3216
+ vfunc_set_password(password: string): void;
3217
+ }
3218
+
3154
3219
  // Constructor properties interface
3155
3220
 
3156
3221
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3160,16 +3225,11 @@ export namespace XreaderDocument {
3160
3225
  $gtype: GObject.GType<DocumentSecurity>;
3161
3226
  prototype: DocumentSecurity;
3162
3227
  }
3163
- interface DocumentSecurity extends GObject.Object {
3228
+ interface DocumentSecurity extends GObject.Object, DocumentSecurity.Interface {
3164
3229
  // Methods
3165
3230
 
3166
3231
  has_document_security(): boolean;
3167
3232
  set_password(password: string): void;
3168
-
3169
- // Virtual methods
3170
-
3171
- vfunc_has_document_security(): boolean;
3172
- vfunc_set_password(password: string): void;
3173
3233
  }
3174
3234
 
3175
3235
  export const DocumentSecurity: DocumentSecurityNamespace & {
@@ -3177,6 +3237,18 @@ export namespace XreaderDocument {
3177
3237
  };
3178
3238
 
3179
3239
  namespace DocumentText {
3240
+ /**
3241
+ * Interface for implementing DocumentText.
3242
+ * Contains only the virtual methods that need to be implemented.
3243
+ */
3244
+ interface Interface {
3245
+ // Virtual methods
3246
+
3247
+ vfunc_get_text(page: Page): string;
3248
+ vfunc_get_text_layout(page: Page, areas: Rectangle, n_areas: number): boolean;
3249
+ vfunc_get_text_mapping(page: Page): cairo.Region;
3250
+ }
3251
+
3180
3252
  // Constructor properties interface
3181
3253
 
3182
3254
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3186,18 +3258,12 @@ export namespace XreaderDocument {
3186
3258
  $gtype: GObject.GType<DocumentText>;
3187
3259
  prototype: DocumentText;
3188
3260
  }
3189
- interface DocumentText extends GObject.Object {
3261
+ interface DocumentText extends GObject.Object, DocumentText.Interface {
3190
3262
  // Methods
3191
3263
 
3192
3264
  get_text(page: Page): string;
3193
3265
  get_text_layout(page: Page, areas: Rectangle, n_areas: number): boolean;
3194
3266
  get_text_mapping(page: Page): cairo.Region;
3195
-
3196
- // Virtual methods
3197
-
3198
- vfunc_get_text(page: Page): string;
3199
- vfunc_get_text_layout(page: Page, areas: Rectangle, n_areas: number): boolean;
3200
- vfunc_get_text_mapping(page: Page): cairo.Region;
3201
3267
  }
3202
3268
 
3203
3269
  export const DocumentText: DocumentTextNamespace & {
@@ -3205,6 +3271,16 @@ export namespace XreaderDocument {
3205
3271
  };
3206
3272
 
3207
3273
  namespace DocumentThumbnails {
3274
+ /**
3275
+ * Interface for implementing DocumentThumbnails.
3276
+ * Contains only the virtual methods that need to be implemented.
3277
+ */
3278
+ interface Interface {
3279
+ // Virtual methods
3280
+
3281
+ vfunc_get_dimensions(rc: RenderContext, width: number, height: number): void;
3282
+ }
3283
+
3208
3284
  // Constructor properties interface
3209
3285
 
3210
3286
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3214,14 +3290,10 @@ export namespace XreaderDocument {
3214
3290
  $gtype: GObject.GType<DocumentThumbnails>;
3215
3291
  prototype: DocumentThumbnails;
3216
3292
  }
3217
- interface DocumentThumbnails extends GObject.Object {
3293
+ interface DocumentThumbnails extends GObject.Object, DocumentThumbnails.Interface {
3218
3294
  // Methods
3219
3295
 
3220
3296
  get_dimensions(rc: RenderContext, width: number, height: number): void;
3221
-
3222
- // Virtual methods
3223
-
3224
- vfunc_get_dimensions(rc: RenderContext, width: number, height: number): void;
3225
3297
  }
3226
3298
 
3227
3299
  export const DocumentThumbnails: DocumentThumbnailsNamespace & {
@@ -3229,6 +3301,16 @@ export namespace XreaderDocument {
3229
3301
  };
3230
3302
 
3231
3303
  namespace DocumentTransition {
3304
+ /**
3305
+ * Interface for implementing DocumentTransition.
3306
+ * Contains only the virtual methods that need to be implemented.
3307
+ */
3308
+ interface Interface {
3309
+ // Virtual methods
3310
+
3311
+ vfunc_get_page_duration(page: number): number;
3312
+ }
3313
+
3232
3314
  // Constructor properties interface
3233
3315
 
3234
3316
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3238,14 +3320,10 @@ export namespace XreaderDocument {
3238
3320
  $gtype: GObject.GType<DocumentTransition>;
3239
3321
  prototype: DocumentTransition;
3240
3322
  }
3241
- interface DocumentTransition extends GObject.Object {
3323
+ interface DocumentTransition extends GObject.Object, DocumentTransition.Interface {
3242
3324
  // Methods
3243
3325
 
3244
3326
  get_page_duration(page: number): number;
3245
-
3246
- // Virtual methods
3247
-
3248
- vfunc_get_page_duration(page: number): number;
3249
3327
  }
3250
3328
 
3251
3329
  export const DocumentTransition: DocumentTransitionNamespace & {
@@ -3253,6 +3331,21 @@ export namespace XreaderDocument {
3253
3331
  };
3254
3332
 
3255
3333
  namespace FileExporter {
3334
+ /**
3335
+ * Interface for implementing FileExporter.
3336
+ * Contains only the virtual methods that need to be implemented.
3337
+ */
3338
+ interface Interface {
3339
+ // Virtual methods
3340
+
3341
+ vfunc_begin(fc: FileExporterContext): void;
3342
+ vfunc_begin_page(): void;
3343
+ vfunc_do_page(rc: RenderContext): void;
3344
+ vfunc_end(): void;
3345
+ vfunc_end_page(): void;
3346
+ vfunc_get_capabilities(): FileExporterCapabilities;
3347
+ }
3348
+
3256
3349
  // Constructor properties interface
3257
3350
 
3258
3351
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3262,7 +3355,7 @@ export namespace XreaderDocument {
3262
3355
  $gtype: GObject.GType<FileExporter>;
3263
3356
  prototype: FileExporter;
3264
3357
  }
3265
- interface FileExporter extends GObject.Object {
3358
+ interface FileExporter extends GObject.Object, FileExporter.Interface {
3266
3359
  // Methods
3267
3360
 
3268
3361
  begin(fc: FileExporterContext): void;
@@ -3271,15 +3364,6 @@ export namespace XreaderDocument {
3271
3364
  end(): void;
3272
3365
  end_page(): void;
3273
3366
  get_capabilities(): FileExporterCapabilities;
3274
-
3275
- // Virtual methods
3276
-
3277
- vfunc_begin(fc: FileExporterContext): void;
3278
- vfunc_begin_page(): void;
3279
- vfunc_do_page(rc: RenderContext): void;
3280
- vfunc_end(): void;
3281
- vfunc_end_page(): void;
3282
- vfunc_get_capabilities(): FileExporterCapabilities;
3283
3367
  }
3284
3368
 
3285
3369
  export const FileExporter: FileExporterNamespace & {
@@ -3287,6 +3371,26 @@ export namespace XreaderDocument {
3287
3371
  };
3288
3372
 
3289
3373
  namespace Selection {
3374
+ /**
3375
+ * Interface for implementing Selection.
3376
+ * Contains only the virtual methods that need to be implemented.
3377
+ */
3378
+ interface Interface {
3379
+ // Virtual methods
3380
+
3381
+ vfunc_get_selected_text(page: Page, style: SelectionStyle, points: Rectangle): string;
3382
+ vfunc_get_selection_region(rc: RenderContext, style: SelectionStyle, points: Rectangle): cairo.Region;
3383
+ vfunc_render_selection(
3384
+ rc: RenderContext,
3385
+ surface: cairo.Surface,
3386
+ points: Rectangle,
3387
+ old_points: Rectangle,
3388
+ style: SelectionStyle,
3389
+ text: Gdk.Color,
3390
+ base: Gdk.Color,
3391
+ ): void;
3392
+ }
3393
+
3290
3394
  // Constructor properties interface
3291
3395
 
3292
3396
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -3296,7 +3400,7 @@ export namespace XreaderDocument {
3296
3400
  $gtype: GObject.GType<Selection>;
3297
3401
  prototype: Selection;
3298
3402
  }
3299
- interface Selection extends GObject.Object {
3403
+ interface Selection extends GObject.Object, Selection.Interface {
3300
3404
  // Methods
3301
3405
 
3302
3406
  get_selected_text(page: Page, style: SelectionStyle | null, points: Rectangle): string;
@@ -3310,20 +3414,6 @@ export namespace XreaderDocument {
3310
3414
  text: Gdk.Color,
3311
3415
  base: Gdk.Color,
3312
3416
  ): void;
3313
-
3314
- // Virtual methods
3315
-
3316
- vfunc_get_selected_text(page: Page, style: SelectionStyle, points: Rectangle): string;
3317
- vfunc_get_selection_region(rc: RenderContext, style: SelectionStyle, points: Rectangle): cairo.Region;
3318
- vfunc_render_selection(
3319
- rc: RenderContext,
3320
- surface: cairo.Surface,
3321
- points: Rectangle,
3322
- old_points: Rectangle,
3323
- style: SelectionStyle,
3324
- text: Gdk.Color,
3325
- base: Gdk.Color,
3326
- ): void;
3327
3417
  }
3328
3418
 
3329
3419
  export const Selection: SelectionNamespace & {