@girs/gepub-0.5 0.5.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/gepub-0.5.cjs +9 -0
- package/gepub-0.5.d.cts +494 -0
- package/gepub-0.5.d.ts +499 -0
- package/gepub-0.5.js +8 -0
- package/package.json +68 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Gepub-0.5
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for Gepub-0.5, generated from library version 0.5.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
To use this type definitions, install them with NPM like this:
|
|
9
|
+
```bash
|
|
10
|
+
npm install @girs/gepub-0.5
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You can import this package into your project like this:
|
|
16
|
+
```ts
|
|
17
|
+
import Gepub from '@girs/gepub-0.5';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or if you prefer CommonJS, you can also use this:
|
|
21
|
+
```ts
|
|
22
|
+
const Gepub = require('@girs/gepub-0.5');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import Gepub from 'gi://Gepub?version=0.5';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/gepub-0.5.cjs
ADDED
package/gepub-0.5.d.cts
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
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
|
+
* Gepub-0.5
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type libxml2 from '@girs/libxml2-2.0';
|
|
13
|
+
import type WebKit2 from '@girs/webkit2-4.0';
|
|
14
|
+
import type Soup from '@girs/soup-2.4';
|
|
15
|
+
import type Gio from '@girs/gio-2.0';
|
|
16
|
+
import type GObject from '@girs/gobject-2.0';
|
|
17
|
+
import type GLib from '@girs/glib-2.0';
|
|
18
|
+
import type JavaScriptCore from '@girs/javascriptcore-4.0';
|
|
19
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
20
|
+
import type xlib from '@girs/xlib-2.0';
|
|
21
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
22
|
+
import type cairo from '@girs/cairo-1.0';
|
|
23
|
+
import type Pango from '@girs/pango-1.0';
|
|
24
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
25
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
26
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
27
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
28
|
+
import type Atk from '@girs/atk-1.0';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The book author.
|
|
32
|
+
*/
|
|
33
|
+
export const META_AUTHOR: string | null
|
|
34
|
+
/**
|
|
35
|
+
* The book description.
|
|
36
|
+
*/
|
|
37
|
+
export const META_DESC: string | null
|
|
38
|
+
/**
|
|
39
|
+
* The book id.
|
|
40
|
+
*/
|
|
41
|
+
export const META_ID: string | null
|
|
42
|
+
/**
|
|
43
|
+
* The book lang.
|
|
44
|
+
*/
|
|
45
|
+
export const META_LANG: string | null
|
|
46
|
+
/**
|
|
47
|
+
* The book title.
|
|
48
|
+
*/
|
|
49
|
+
export const META_TITLE: string | null
|
|
50
|
+
export module Doc {
|
|
51
|
+
|
|
52
|
+
// Constructor properties interface
|
|
53
|
+
|
|
54
|
+
export interface ConstructorProperties extends Gio.Initable.ConstructorProperties, GObject.Object.ConstructorProperties {
|
|
55
|
+
|
|
56
|
+
// Own constructor properties of Gepub-0.5.Gepub.Doc
|
|
57
|
+
|
|
58
|
+
file?: Gio.File | null
|
|
59
|
+
page?: number | null
|
|
60
|
+
path?: string | null
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface Doc extends Gio.Initable {
|
|
66
|
+
|
|
67
|
+
// Own properties of Gepub-0.5.Gepub.Doc
|
|
68
|
+
|
|
69
|
+
readonly file: Gio.File
|
|
70
|
+
page: number
|
|
71
|
+
readonly path: string | null
|
|
72
|
+
|
|
73
|
+
// Owm methods of Gepub-0.5.Gepub.Doc
|
|
74
|
+
|
|
75
|
+
get_cover(): string | null
|
|
76
|
+
get_current(): GLib.Bytes
|
|
77
|
+
get_current_id(): string | null
|
|
78
|
+
get_current_mime(): string | null
|
|
79
|
+
get_current_path(): string | null
|
|
80
|
+
get_current_with_epub_uris(): GLib.Bytes
|
|
81
|
+
get_metadata(mdata: string | null): string | null
|
|
82
|
+
get_n_pages(): number
|
|
83
|
+
get_page(): number
|
|
84
|
+
get_resource(path: string | null): GLib.Bytes
|
|
85
|
+
get_resource_by_id(id: string | null): GLib.Bytes
|
|
86
|
+
get_resource_mime(path: string | null): string | null
|
|
87
|
+
get_resource_mime_by_id(id: string | null): string | null
|
|
88
|
+
get_resource_path(id: string | null): string | null
|
|
89
|
+
go_next(): boolean
|
|
90
|
+
go_prev(): boolean
|
|
91
|
+
/**
|
|
92
|
+
* Sets the document current page to `index`.
|
|
93
|
+
* @param index the index of the new page
|
|
94
|
+
*/
|
|
95
|
+
set_page(index: number): void
|
|
96
|
+
|
|
97
|
+
// Class property signals of Gepub-0.5.Gepub.Doc
|
|
98
|
+
|
|
99
|
+
connect(sigName: "notify::file", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
100
|
+
connect_after(sigName: "notify::file", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
101
|
+
emit(sigName: "notify::file", ...args: any[]): void
|
|
102
|
+
connect(sigName: "notify::page", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
103
|
+
connect_after(sigName: "notify::page", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
104
|
+
emit(sigName: "notify::page", ...args: any[]): void
|
|
105
|
+
connect(sigName: "notify::path", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
106
|
+
connect_after(sigName: "notify::path", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
107
|
+
emit(sigName: "notify::path", ...args: any[]): void
|
|
108
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
109
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
110
|
+
emit(sigName: string, ...args: any[]): void
|
|
111
|
+
disconnect(id: number): void
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export class Doc extends GObject.Object {
|
|
115
|
+
|
|
116
|
+
// Own properties of Gepub-0.5.Gepub.Doc
|
|
117
|
+
|
|
118
|
+
static name: string
|
|
119
|
+
static $gtype: GObject.GType<Doc>
|
|
120
|
+
|
|
121
|
+
// Constructors of Gepub-0.5.Gepub.Doc
|
|
122
|
+
|
|
123
|
+
constructor(config?: Doc.ConstructorProperties)
|
|
124
|
+
constructor(path: string | null)
|
|
125
|
+
static new(path: string | null): Doc
|
|
126
|
+
_init(config?: Doc.ConstructorProperties): void
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export module Widget {
|
|
130
|
+
|
|
131
|
+
// Constructor properties interface
|
|
132
|
+
|
|
133
|
+
export interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, WebKit2.WebView.ConstructorProperties {
|
|
134
|
+
|
|
135
|
+
// Own constructor properties of Gepub-0.5.Gepub.Widget
|
|
136
|
+
|
|
137
|
+
doc?: Doc | null
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface Widget extends Atk.ImplementorIface, Gtk.Buildable {
|
|
143
|
+
|
|
144
|
+
// Own properties of Gepub-0.5.Gepub.Widget
|
|
145
|
+
|
|
146
|
+
doc: Doc
|
|
147
|
+
|
|
148
|
+
// Conflicting properties
|
|
149
|
+
|
|
150
|
+
parent: WebKit2.WebViewBase & Gtk.Container & Gtk.Container
|
|
151
|
+
|
|
152
|
+
// Owm methods of Gepub-0.5.Gepub.Widget
|
|
153
|
+
|
|
154
|
+
get_doc(): Doc
|
|
155
|
+
/**
|
|
156
|
+
* Sets `doc` as the document displayed by the widget.
|
|
157
|
+
* @param doc a #GepubDoc
|
|
158
|
+
*/
|
|
159
|
+
set_doc(doc: Doc | null): void
|
|
160
|
+
|
|
161
|
+
// Conflicting methods
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Gets the #WebKitSettings currently applied to `web_view`.
|
|
165
|
+
*
|
|
166
|
+
* If no other #WebKitSettings have been explicitly applied to
|
|
167
|
+
* `web_view` with webkit_web_view_set_settings(), the default
|
|
168
|
+
* #WebKitSettings will be returned. This method always returns
|
|
169
|
+
* a valid #WebKitSettings object.
|
|
170
|
+
* To modify any of the `web_view` settings, you can either create
|
|
171
|
+
* a new #WebKitSettings object with webkit_settings_new(), setting
|
|
172
|
+
* the desired preferences, and then replace the existing `web_view`
|
|
173
|
+
* settings with webkit_web_view_set_settings() or get the existing
|
|
174
|
+
* `web_view` settings and update it directly. #WebKitSettings objects
|
|
175
|
+
* can be shared by multiple #WebKitWebView<!-- -->s, so modifying
|
|
176
|
+
* the settings of a #WebKitWebView would affect other
|
|
177
|
+
* #WebKitWebView<!-- -->s using the same #WebKitSettings.
|
|
178
|
+
* @returns the #WebKitSettings attached to @web_view
|
|
179
|
+
*/
|
|
180
|
+
get_settings(): WebKit2.Settings
|
|
181
|
+
|
|
182
|
+
// Overloads of get_settings
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Gets the settings object holding the settings used for this widget.
|
|
186
|
+
*
|
|
187
|
+
* Note that this function can only be called when the #GtkWidget
|
|
188
|
+
* is attached to a toplevel, since the settings object is specific
|
|
189
|
+
* to a particular #GdkScreen.
|
|
190
|
+
* @returns the relevant #GtkSettings object
|
|
191
|
+
*/
|
|
192
|
+
get_settings(): Gtk.Settings
|
|
193
|
+
/**
|
|
194
|
+
* Gets the settings object holding the settings used for this widget.
|
|
195
|
+
*
|
|
196
|
+
* Note that this function can only be called when the #GtkWidget
|
|
197
|
+
* is attached to a toplevel, since the settings object is specific
|
|
198
|
+
* to a particular #GdkScreen.
|
|
199
|
+
* @returns the relevant #GtkSettings object
|
|
200
|
+
*/
|
|
201
|
+
get_settings(): Gtk.Settings
|
|
202
|
+
/**
|
|
203
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
204
|
+
* [child property][child-properties]
|
|
205
|
+
* `child_property` on the child.
|
|
206
|
+
*
|
|
207
|
+
* This is an analogue of g_object_notify() for child properties.
|
|
208
|
+
*
|
|
209
|
+
* Also see gtk_widget_child_notify().
|
|
210
|
+
* @param child the child widget
|
|
211
|
+
* @param child_property the name of a child property installed on the class of `container`
|
|
212
|
+
*/
|
|
213
|
+
child_notify(child: Gtk.Widget, child_property: string | null): void
|
|
214
|
+
|
|
215
|
+
// Overloads of child_notify
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
219
|
+
* [child property][child-properties] `child_property`
|
|
220
|
+
* on `widget`.
|
|
221
|
+
*
|
|
222
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
223
|
+
*
|
|
224
|
+
* Also see gtk_container_child_notify().
|
|
225
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
226
|
+
*/
|
|
227
|
+
child_notify(child_property: string | null): void
|
|
228
|
+
/**
|
|
229
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
230
|
+
* [child property][child-properties] `child_property`
|
|
231
|
+
* on `widget`.
|
|
232
|
+
*
|
|
233
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
234
|
+
*
|
|
235
|
+
* Also see gtk_container_child_notify().
|
|
236
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
237
|
+
*/
|
|
238
|
+
child_notify(child_property: string | null): void
|
|
239
|
+
|
|
240
|
+
// Class property signals of Gepub-0.5.Gepub.Widget
|
|
241
|
+
|
|
242
|
+
connect(sigName: "notify::doc", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
243
|
+
connect_after(sigName: "notify::doc", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
244
|
+
emit(sigName: "notify::doc", ...args: any[]): void
|
|
245
|
+
connect(sigName: "notify::automation-presentation-type", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
246
|
+
connect_after(sigName: "notify::automation-presentation-type", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
247
|
+
emit(sigName: "notify::automation-presentation-type", ...args: any[]): void
|
|
248
|
+
connect(sigName: "notify::camera-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
249
|
+
connect_after(sigName: "notify::camera-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
250
|
+
emit(sigName: "notify::camera-capture-state", ...args: any[]): void
|
|
251
|
+
connect(sigName: "notify::default-content-security-policy", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
252
|
+
connect_after(sigName: "notify::default-content-security-policy", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
253
|
+
emit(sigName: "notify::default-content-security-policy", ...args: any[]): void
|
|
254
|
+
connect(sigName: "notify::display-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
255
|
+
connect_after(sigName: "notify::display-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
256
|
+
emit(sigName: "notify::display-capture-state", ...args: any[]): void
|
|
257
|
+
connect(sigName: "notify::editable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
258
|
+
connect_after(sigName: "notify::editable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
259
|
+
emit(sigName: "notify::editable", ...args: any[]): void
|
|
260
|
+
connect(sigName: "notify::estimated-load-progress", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
261
|
+
connect_after(sigName: "notify::estimated-load-progress", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
262
|
+
emit(sigName: "notify::estimated-load-progress", ...args: any[]): void
|
|
263
|
+
connect(sigName: "notify::favicon", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
264
|
+
connect_after(sigName: "notify::favicon", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
265
|
+
emit(sigName: "notify::favicon", ...args: any[]): void
|
|
266
|
+
connect(sigName: "notify::is-controlled-by-automation", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
267
|
+
connect_after(sigName: "notify::is-controlled-by-automation", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
268
|
+
emit(sigName: "notify::is-controlled-by-automation", ...args: any[]): void
|
|
269
|
+
connect(sigName: "notify::is-ephemeral", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
270
|
+
connect_after(sigName: "notify::is-ephemeral", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
271
|
+
emit(sigName: "notify::is-ephemeral", ...args: any[]): void
|
|
272
|
+
connect(sigName: "notify::is-loading", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
273
|
+
connect_after(sigName: "notify::is-loading", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
274
|
+
emit(sigName: "notify::is-loading", ...args: any[]): void
|
|
275
|
+
connect(sigName: "notify::is-muted", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
276
|
+
connect_after(sigName: "notify::is-muted", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
277
|
+
emit(sigName: "notify::is-muted", ...args: any[]): void
|
|
278
|
+
connect(sigName: "notify::is-playing-audio", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
279
|
+
connect_after(sigName: "notify::is-playing-audio", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
280
|
+
emit(sigName: "notify::is-playing-audio", ...args: any[]): void
|
|
281
|
+
connect(sigName: "notify::is-web-process-responsive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
282
|
+
connect_after(sigName: "notify::is-web-process-responsive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
283
|
+
emit(sigName: "notify::is-web-process-responsive", ...args: any[]): void
|
|
284
|
+
connect(sigName: "notify::microphone-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
285
|
+
connect_after(sigName: "notify::microphone-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
286
|
+
emit(sigName: "notify::microphone-capture-state", ...args: any[]): void
|
|
287
|
+
connect(sigName: "notify::page-id", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
288
|
+
connect_after(sigName: "notify::page-id", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
289
|
+
emit(sigName: "notify::page-id", ...args: any[]): void
|
|
290
|
+
connect(sigName: "notify::related-view", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
291
|
+
connect_after(sigName: "notify::related-view", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
292
|
+
emit(sigName: "notify::related-view", ...args: any[]): void
|
|
293
|
+
connect(sigName: "notify::settings", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
294
|
+
connect_after(sigName: "notify::settings", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
295
|
+
emit(sigName: "notify::settings", ...args: any[]): void
|
|
296
|
+
connect(sigName: "notify::title", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
297
|
+
connect_after(sigName: "notify::title", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
298
|
+
emit(sigName: "notify::title", ...args: any[]): void
|
|
299
|
+
connect(sigName: "notify::uri", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
300
|
+
connect_after(sigName: "notify::uri", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
301
|
+
emit(sigName: "notify::uri", ...args: any[]): void
|
|
302
|
+
connect(sigName: "notify::user-content-manager", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
303
|
+
connect_after(sigName: "notify::user-content-manager", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
304
|
+
emit(sigName: "notify::user-content-manager", ...args: any[]): void
|
|
305
|
+
connect(sigName: "notify::web-context", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
306
|
+
connect_after(sigName: "notify::web-context", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
307
|
+
emit(sigName: "notify::web-context", ...args: any[]): void
|
|
308
|
+
connect(sigName: "notify::web-extension-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
309
|
+
connect_after(sigName: "notify::web-extension-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
310
|
+
emit(sigName: "notify::web-extension-mode", ...args: any[]): void
|
|
311
|
+
connect(sigName: "notify::website-policies", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
312
|
+
connect_after(sigName: "notify::website-policies", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
313
|
+
emit(sigName: "notify::website-policies", ...args: any[]): void
|
|
314
|
+
connect(sigName: "notify::zoom-level", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
315
|
+
connect_after(sigName: "notify::zoom-level", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
316
|
+
emit(sigName: "notify::zoom-level", ...args: any[]): void
|
|
317
|
+
connect(sigName: "notify::border-width", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
318
|
+
connect_after(sigName: "notify::border-width", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
319
|
+
emit(sigName: "notify::border-width", ...args: any[]): void
|
|
320
|
+
connect(sigName: "notify::child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
321
|
+
connect_after(sigName: "notify::child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
322
|
+
emit(sigName: "notify::child", ...args: any[]): void
|
|
323
|
+
connect(sigName: "notify::resize-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
324
|
+
connect_after(sigName: "notify::resize-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
325
|
+
emit(sigName: "notify::resize-mode", ...args: any[]): void
|
|
326
|
+
connect(sigName: "notify::app-paintable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
327
|
+
connect_after(sigName: "notify::app-paintable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
328
|
+
emit(sigName: "notify::app-paintable", ...args: any[]): void
|
|
329
|
+
connect(sigName: "notify::can-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
330
|
+
connect_after(sigName: "notify::can-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
331
|
+
emit(sigName: "notify::can-default", ...args: any[]): void
|
|
332
|
+
connect(sigName: "notify::can-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
333
|
+
connect_after(sigName: "notify::can-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
334
|
+
emit(sigName: "notify::can-focus", ...args: any[]): void
|
|
335
|
+
connect(sigName: "notify::composite-child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
336
|
+
connect_after(sigName: "notify::composite-child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
337
|
+
emit(sigName: "notify::composite-child", ...args: any[]): void
|
|
338
|
+
connect(sigName: "notify::double-buffered", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
339
|
+
connect_after(sigName: "notify::double-buffered", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
340
|
+
emit(sigName: "notify::double-buffered", ...args: any[]): void
|
|
341
|
+
connect(sigName: "notify::events", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
342
|
+
connect_after(sigName: "notify::events", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
343
|
+
emit(sigName: "notify::events", ...args: any[]): void
|
|
344
|
+
connect(sigName: "notify::expand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
345
|
+
connect_after(sigName: "notify::expand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
346
|
+
emit(sigName: "notify::expand", ...args: any[]): void
|
|
347
|
+
connect(sigName: "notify::focus-on-click", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
348
|
+
connect_after(sigName: "notify::focus-on-click", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
349
|
+
emit(sigName: "notify::focus-on-click", ...args: any[]): void
|
|
350
|
+
connect(sigName: "notify::halign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
351
|
+
connect_after(sigName: "notify::halign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
352
|
+
emit(sigName: "notify::halign", ...args: any[]): void
|
|
353
|
+
connect(sigName: "notify::has-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
354
|
+
connect_after(sigName: "notify::has-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
355
|
+
emit(sigName: "notify::has-default", ...args: any[]): void
|
|
356
|
+
connect(sigName: "notify::has-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
357
|
+
connect_after(sigName: "notify::has-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
358
|
+
emit(sigName: "notify::has-focus", ...args: any[]): void
|
|
359
|
+
connect(sigName: "notify::has-tooltip", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
360
|
+
connect_after(sigName: "notify::has-tooltip", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
361
|
+
emit(sigName: "notify::has-tooltip", ...args: any[]): void
|
|
362
|
+
connect(sigName: "notify::height-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
363
|
+
connect_after(sigName: "notify::height-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
364
|
+
emit(sigName: "notify::height-request", ...args: any[]): void
|
|
365
|
+
connect(sigName: "notify::hexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
366
|
+
connect_after(sigName: "notify::hexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
367
|
+
emit(sigName: "notify::hexpand", ...args: any[]): void
|
|
368
|
+
connect(sigName: "notify::hexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
369
|
+
connect_after(sigName: "notify::hexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
370
|
+
emit(sigName: "notify::hexpand-set", ...args: any[]): void
|
|
371
|
+
connect(sigName: "notify::is-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
372
|
+
connect_after(sigName: "notify::is-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
373
|
+
emit(sigName: "notify::is-focus", ...args: any[]): void
|
|
374
|
+
connect(sigName: "notify::margin", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
375
|
+
connect_after(sigName: "notify::margin", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
376
|
+
emit(sigName: "notify::margin", ...args: any[]): void
|
|
377
|
+
connect(sigName: "notify::margin-bottom", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
378
|
+
connect_after(sigName: "notify::margin-bottom", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
379
|
+
emit(sigName: "notify::margin-bottom", ...args: any[]): void
|
|
380
|
+
connect(sigName: "notify::margin-end", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
381
|
+
connect_after(sigName: "notify::margin-end", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
382
|
+
emit(sigName: "notify::margin-end", ...args: any[]): void
|
|
383
|
+
connect(sigName: "notify::margin-left", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
384
|
+
connect_after(sigName: "notify::margin-left", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
385
|
+
emit(sigName: "notify::margin-left", ...args: any[]): void
|
|
386
|
+
connect(sigName: "notify::margin-right", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
387
|
+
connect_after(sigName: "notify::margin-right", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
388
|
+
emit(sigName: "notify::margin-right", ...args: any[]): void
|
|
389
|
+
connect(sigName: "notify::margin-start", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
390
|
+
connect_after(sigName: "notify::margin-start", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
391
|
+
emit(sigName: "notify::margin-start", ...args: any[]): void
|
|
392
|
+
connect(sigName: "notify::margin-top", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
393
|
+
connect_after(sigName: "notify::margin-top", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
394
|
+
emit(sigName: "notify::margin-top", ...args: any[]): void
|
|
395
|
+
connect(sigName: "notify::name", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
396
|
+
connect_after(sigName: "notify::name", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
397
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
398
|
+
connect(sigName: "notify::no-show-all", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
399
|
+
connect_after(sigName: "notify::no-show-all", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
400
|
+
emit(sigName: "notify::no-show-all", ...args: any[]): void
|
|
401
|
+
connect(sigName: "notify::opacity", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
402
|
+
connect_after(sigName: "notify::opacity", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
403
|
+
emit(sigName: "notify::opacity", ...args: any[]): void
|
|
404
|
+
connect(sigName: "notify::parent", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
405
|
+
connect_after(sigName: "notify::parent", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
406
|
+
emit(sigName: "notify::parent", ...args: any[]): void
|
|
407
|
+
connect(sigName: "notify::receives-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
408
|
+
connect_after(sigName: "notify::receives-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
409
|
+
emit(sigName: "notify::receives-default", ...args: any[]): void
|
|
410
|
+
connect(sigName: "notify::scale-factor", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
411
|
+
connect_after(sigName: "notify::scale-factor", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
412
|
+
emit(sigName: "notify::scale-factor", ...args: any[]): void
|
|
413
|
+
connect(sigName: "notify::sensitive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
414
|
+
connect_after(sigName: "notify::sensitive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
415
|
+
emit(sigName: "notify::sensitive", ...args: any[]): void
|
|
416
|
+
connect(sigName: "notify::style", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
417
|
+
connect_after(sigName: "notify::style", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
418
|
+
emit(sigName: "notify::style", ...args: any[]): void
|
|
419
|
+
connect(sigName: "notify::tooltip-markup", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
420
|
+
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
421
|
+
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
|
|
422
|
+
connect(sigName: "notify::tooltip-text", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
423
|
+
connect_after(sigName: "notify::tooltip-text", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
424
|
+
emit(sigName: "notify::tooltip-text", ...args: any[]): void
|
|
425
|
+
connect(sigName: "notify::valign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
426
|
+
connect_after(sigName: "notify::valign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
427
|
+
emit(sigName: "notify::valign", ...args: any[]): void
|
|
428
|
+
connect(sigName: "notify::vexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
429
|
+
connect_after(sigName: "notify::vexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
430
|
+
emit(sigName: "notify::vexpand", ...args: any[]): void
|
|
431
|
+
connect(sigName: "notify::vexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
432
|
+
connect_after(sigName: "notify::vexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
433
|
+
emit(sigName: "notify::vexpand-set", ...args: any[]): void
|
|
434
|
+
connect(sigName: "notify::visible", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
435
|
+
connect_after(sigName: "notify::visible", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
436
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
437
|
+
connect(sigName: "notify::width-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
438
|
+
connect_after(sigName: "notify::width-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
439
|
+
emit(sigName: "notify::width-request", ...args: any[]): void
|
|
440
|
+
connect(sigName: "notify::window", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
441
|
+
connect_after(sigName: "notify::window", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
442
|
+
emit(sigName: "notify::window", ...args: any[]): void
|
|
443
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
444
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
445
|
+
emit(sigName: string, ...args: any[]): void
|
|
446
|
+
disconnect(id: number): void
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export class Widget extends WebKit2.WebView {
|
|
450
|
+
|
|
451
|
+
// Own properties of Gepub-0.5.Gepub.Widget
|
|
452
|
+
|
|
453
|
+
static name: string
|
|
454
|
+
static $gtype: GObject.GType<Widget>
|
|
455
|
+
|
|
456
|
+
// Constructors of Gepub-0.5.Gepub.Widget
|
|
457
|
+
|
|
458
|
+
constructor(config?: Widget.ConstructorProperties)
|
|
459
|
+
constructor()
|
|
460
|
+
static new(): Widget
|
|
461
|
+
_init(config?: Widget.ConstructorProperties): void
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface DocClass {
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export abstract class DocClass {
|
|
468
|
+
|
|
469
|
+
// Own properties of Gepub-0.5.Gepub.DocClass
|
|
470
|
+
|
|
471
|
+
static name: string
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export interface WidgetClass {
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export abstract class WidgetClass {
|
|
478
|
+
|
|
479
|
+
// Own properties of Gepub-0.5.Gepub.WidgetClass
|
|
480
|
+
|
|
481
|
+
static name: string
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Name of the imported GIR library
|
|
486
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
487
|
+
*/
|
|
488
|
+
export const __name__: string
|
|
489
|
+
/**
|
|
490
|
+
* Version of the imported GIR library
|
|
491
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
492
|
+
*/
|
|
493
|
+
export const __version__: string
|
|
494
|
+
// END
|
package/gepub-0.5.d.ts
ADDED
|
@@ -0,0 +1,499 @@
|
|
|
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
|
+
* Gepub-0.5
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type libxml2 from '@girs/libxml2-2.0';
|
|
13
|
+
import type WebKit2 from '@girs/webkit2-4.0';
|
|
14
|
+
import type Soup from '@girs/soup-2.4';
|
|
15
|
+
import type Gio from '@girs/gio-2.0';
|
|
16
|
+
import type GObject from '@girs/gobject-2.0';
|
|
17
|
+
import type GLib from '@girs/glib-2.0';
|
|
18
|
+
import type JavaScriptCore from '@girs/javascriptcore-4.0';
|
|
19
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
20
|
+
import type xlib from '@girs/xlib-2.0';
|
|
21
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
22
|
+
import type cairo from '@girs/cairo-1.0';
|
|
23
|
+
import type Pango from '@girs/pango-1.0';
|
|
24
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
25
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
26
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
27
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
28
|
+
import type Atk from '@girs/atk-1.0';
|
|
29
|
+
|
|
30
|
+
export namespace Gepub {
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The book author.
|
|
34
|
+
*/
|
|
35
|
+
const META_AUTHOR: string | null
|
|
36
|
+
/**
|
|
37
|
+
* The book description.
|
|
38
|
+
*/
|
|
39
|
+
const META_DESC: string | null
|
|
40
|
+
/**
|
|
41
|
+
* The book id.
|
|
42
|
+
*/
|
|
43
|
+
const META_ID: string | null
|
|
44
|
+
/**
|
|
45
|
+
* The book lang.
|
|
46
|
+
*/
|
|
47
|
+
const META_LANG: string | null
|
|
48
|
+
/**
|
|
49
|
+
* The book title.
|
|
50
|
+
*/
|
|
51
|
+
const META_TITLE: string | null
|
|
52
|
+
module Doc {
|
|
53
|
+
|
|
54
|
+
// Constructor properties interface
|
|
55
|
+
|
|
56
|
+
interface ConstructorProperties extends Gio.Initable.ConstructorProperties, GObject.Object.ConstructorProperties {
|
|
57
|
+
|
|
58
|
+
// Own constructor properties of Gepub-0.5.Gepub.Doc
|
|
59
|
+
|
|
60
|
+
file?: Gio.File | null
|
|
61
|
+
page?: number | null
|
|
62
|
+
path?: string | null
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface Doc extends Gio.Initable {
|
|
68
|
+
|
|
69
|
+
// Own properties of Gepub-0.5.Gepub.Doc
|
|
70
|
+
|
|
71
|
+
readonly file: Gio.File
|
|
72
|
+
page: number
|
|
73
|
+
readonly path: string | null
|
|
74
|
+
|
|
75
|
+
// Owm methods of Gepub-0.5.Gepub.Doc
|
|
76
|
+
|
|
77
|
+
get_cover(): string | null
|
|
78
|
+
get_current(): GLib.Bytes
|
|
79
|
+
get_current_id(): string | null
|
|
80
|
+
get_current_mime(): string | null
|
|
81
|
+
get_current_path(): string | null
|
|
82
|
+
get_current_with_epub_uris(): GLib.Bytes
|
|
83
|
+
get_metadata(mdata: string | null): string | null
|
|
84
|
+
get_n_pages(): number
|
|
85
|
+
get_page(): number
|
|
86
|
+
get_resource(path: string | null): GLib.Bytes
|
|
87
|
+
get_resource_by_id(id: string | null): GLib.Bytes
|
|
88
|
+
get_resource_mime(path: string | null): string | null
|
|
89
|
+
get_resource_mime_by_id(id: string | null): string | null
|
|
90
|
+
get_resource_path(id: string | null): string | null
|
|
91
|
+
go_next(): boolean
|
|
92
|
+
go_prev(): boolean
|
|
93
|
+
/**
|
|
94
|
+
* Sets the document current page to `index`.
|
|
95
|
+
* @param index the index of the new page
|
|
96
|
+
*/
|
|
97
|
+
set_page(index: number): void
|
|
98
|
+
|
|
99
|
+
// Class property signals of Gepub-0.5.Gepub.Doc
|
|
100
|
+
|
|
101
|
+
connect(sigName: "notify::file", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
102
|
+
connect_after(sigName: "notify::file", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
103
|
+
emit(sigName: "notify::file", ...args: any[]): void
|
|
104
|
+
connect(sigName: "notify::page", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
105
|
+
connect_after(sigName: "notify::page", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
106
|
+
emit(sigName: "notify::page", ...args: any[]): void
|
|
107
|
+
connect(sigName: "notify::path", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
108
|
+
connect_after(sigName: "notify::path", callback: (($obj: Doc, pspec: GObject.ParamSpec) => void)): number
|
|
109
|
+
emit(sigName: "notify::path", ...args: any[]): void
|
|
110
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
111
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
112
|
+
emit(sigName: string, ...args: any[]): void
|
|
113
|
+
disconnect(id: number): void
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
class Doc extends GObject.Object {
|
|
117
|
+
|
|
118
|
+
// Own properties of Gepub-0.5.Gepub.Doc
|
|
119
|
+
|
|
120
|
+
static name: string
|
|
121
|
+
static $gtype: GObject.GType<Doc>
|
|
122
|
+
|
|
123
|
+
// Constructors of Gepub-0.5.Gepub.Doc
|
|
124
|
+
|
|
125
|
+
constructor(config?: Doc.ConstructorProperties)
|
|
126
|
+
constructor(path: string | null)
|
|
127
|
+
static new(path: string | null): Doc
|
|
128
|
+
_init(config?: Doc.ConstructorProperties): void
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
module Widget {
|
|
132
|
+
|
|
133
|
+
// Constructor properties interface
|
|
134
|
+
|
|
135
|
+
interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, WebKit2.WebView.ConstructorProperties {
|
|
136
|
+
|
|
137
|
+
// Own constructor properties of Gepub-0.5.Gepub.Widget
|
|
138
|
+
|
|
139
|
+
doc?: Doc | null
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface Widget extends Atk.ImplementorIface, Gtk.Buildable {
|
|
145
|
+
|
|
146
|
+
// Own properties of Gepub-0.5.Gepub.Widget
|
|
147
|
+
|
|
148
|
+
doc: Doc
|
|
149
|
+
|
|
150
|
+
// Conflicting properties
|
|
151
|
+
|
|
152
|
+
parent: WebKit2.WebViewBase & Gtk.Container & Gtk.Container
|
|
153
|
+
|
|
154
|
+
// Owm methods of Gepub-0.5.Gepub.Widget
|
|
155
|
+
|
|
156
|
+
get_doc(): Doc
|
|
157
|
+
/**
|
|
158
|
+
* Sets `doc` as the document displayed by the widget.
|
|
159
|
+
* @param doc a #GepubDoc
|
|
160
|
+
*/
|
|
161
|
+
set_doc(doc: Doc | null): void
|
|
162
|
+
|
|
163
|
+
// Conflicting methods
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Gets the #WebKitSettings currently applied to `web_view`.
|
|
167
|
+
*
|
|
168
|
+
* If no other #WebKitSettings have been explicitly applied to
|
|
169
|
+
* `web_view` with webkit_web_view_set_settings(), the default
|
|
170
|
+
* #WebKitSettings will be returned. This method always returns
|
|
171
|
+
* a valid #WebKitSettings object.
|
|
172
|
+
* To modify any of the `web_view` settings, you can either create
|
|
173
|
+
* a new #WebKitSettings object with webkit_settings_new(), setting
|
|
174
|
+
* the desired preferences, and then replace the existing `web_view`
|
|
175
|
+
* settings with webkit_web_view_set_settings() or get the existing
|
|
176
|
+
* `web_view` settings and update it directly. #WebKitSettings objects
|
|
177
|
+
* can be shared by multiple #WebKitWebView<!-- -->s, so modifying
|
|
178
|
+
* the settings of a #WebKitWebView would affect other
|
|
179
|
+
* #WebKitWebView<!-- -->s using the same #WebKitSettings.
|
|
180
|
+
* @returns the #WebKitSettings attached to @web_view
|
|
181
|
+
*/
|
|
182
|
+
get_settings(): WebKit2.Settings
|
|
183
|
+
|
|
184
|
+
// Overloads of get_settings
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Gets the settings object holding the settings used for this widget.
|
|
188
|
+
*
|
|
189
|
+
* Note that this function can only be called when the #GtkWidget
|
|
190
|
+
* is attached to a toplevel, since the settings object is specific
|
|
191
|
+
* to a particular #GdkScreen.
|
|
192
|
+
* @returns the relevant #GtkSettings object
|
|
193
|
+
*/
|
|
194
|
+
get_settings(): Gtk.Settings
|
|
195
|
+
/**
|
|
196
|
+
* Gets the settings object holding the settings used for this widget.
|
|
197
|
+
*
|
|
198
|
+
* Note that this function can only be called when the #GtkWidget
|
|
199
|
+
* is attached to a toplevel, since the settings object is specific
|
|
200
|
+
* to a particular #GdkScreen.
|
|
201
|
+
* @returns the relevant #GtkSettings object
|
|
202
|
+
*/
|
|
203
|
+
get_settings(): Gtk.Settings
|
|
204
|
+
/**
|
|
205
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
206
|
+
* [child property][child-properties]
|
|
207
|
+
* `child_property` on the child.
|
|
208
|
+
*
|
|
209
|
+
* This is an analogue of g_object_notify() for child properties.
|
|
210
|
+
*
|
|
211
|
+
* Also see gtk_widget_child_notify().
|
|
212
|
+
* @param child the child widget
|
|
213
|
+
* @param child_property the name of a child property installed on the class of `container`
|
|
214
|
+
*/
|
|
215
|
+
child_notify(child: Gtk.Widget, child_property: string | null): void
|
|
216
|
+
|
|
217
|
+
// Overloads of child_notify
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
221
|
+
* [child property][child-properties] `child_property`
|
|
222
|
+
* on `widget`.
|
|
223
|
+
*
|
|
224
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
225
|
+
*
|
|
226
|
+
* Also see gtk_container_child_notify().
|
|
227
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
228
|
+
*/
|
|
229
|
+
child_notify(child_property: string | null): void
|
|
230
|
+
/**
|
|
231
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
232
|
+
* [child property][child-properties] `child_property`
|
|
233
|
+
* on `widget`.
|
|
234
|
+
*
|
|
235
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
236
|
+
*
|
|
237
|
+
* Also see gtk_container_child_notify().
|
|
238
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
239
|
+
*/
|
|
240
|
+
child_notify(child_property: string | null): void
|
|
241
|
+
|
|
242
|
+
// Class property signals of Gepub-0.5.Gepub.Widget
|
|
243
|
+
|
|
244
|
+
connect(sigName: "notify::doc", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
245
|
+
connect_after(sigName: "notify::doc", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
246
|
+
emit(sigName: "notify::doc", ...args: any[]): void
|
|
247
|
+
connect(sigName: "notify::automation-presentation-type", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
248
|
+
connect_after(sigName: "notify::automation-presentation-type", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
249
|
+
emit(sigName: "notify::automation-presentation-type", ...args: any[]): void
|
|
250
|
+
connect(sigName: "notify::camera-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
251
|
+
connect_after(sigName: "notify::camera-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
252
|
+
emit(sigName: "notify::camera-capture-state", ...args: any[]): void
|
|
253
|
+
connect(sigName: "notify::default-content-security-policy", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
254
|
+
connect_after(sigName: "notify::default-content-security-policy", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
255
|
+
emit(sigName: "notify::default-content-security-policy", ...args: any[]): void
|
|
256
|
+
connect(sigName: "notify::display-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
257
|
+
connect_after(sigName: "notify::display-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
258
|
+
emit(sigName: "notify::display-capture-state", ...args: any[]): void
|
|
259
|
+
connect(sigName: "notify::editable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
260
|
+
connect_after(sigName: "notify::editable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
261
|
+
emit(sigName: "notify::editable", ...args: any[]): void
|
|
262
|
+
connect(sigName: "notify::estimated-load-progress", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
263
|
+
connect_after(sigName: "notify::estimated-load-progress", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
264
|
+
emit(sigName: "notify::estimated-load-progress", ...args: any[]): void
|
|
265
|
+
connect(sigName: "notify::favicon", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
266
|
+
connect_after(sigName: "notify::favicon", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
267
|
+
emit(sigName: "notify::favicon", ...args: any[]): void
|
|
268
|
+
connect(sigName: "notify::is-controlled-by-automation", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
269
|
+
connect_after(sigName: "notify::is-controlled-by-automation", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
270
|
+
emit(sigName: "notify::is-controlled-by-automation", ...args: any[]): void
|
|
271
|
+
connect(sigName: "notify::is-ephemeral", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
272
|
+
connect_after(sigName: "notify::is-ephemeral", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
273
|
+
emit(sigName: "notify::is-ephemeral", ...args: any[]): void
|
|
274
|
+
connect(sigName: "notify::is-loading", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
275
|
+
connect_after(sigName: "notify::is-loading", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
276
|
+
emit(sigName: "notify::is-loading", ...args: any[]): void
|
|
277
|
+
connect(sigName: "notify::is-muted", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
278
|
+
connect_after(sigName: "notify::is-muted", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
279
|
+
emit(sigName: "notify::is-muted", ...args: any[]): void
|
|
280
|
+
connect(sigName: "notify::is-playing-audio", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
281
|
+
connect_after(sigName: "notify::is-playing-audio", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
282
|
+
emit(sigName: "notify::is-playing-audio", ...args: any[]): void
|
|
283
|
+
connect(sigName: "notify::is-web-process-responsive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
284
|
+
connect_after(sigName: "notify::is-web-process-responsive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
285
|
+
emit(sigName: "notify::is-web-process-responsive", ...args: any[]): void
|
|
286
|
+
connect(sigName: "notify::microphone-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
287
|
+
connect_after(sigName: "notify::microphone-capture-state", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
288
|
+
emit(sigName: "notify::microphone-capture-state", ...args: any[]): void
|
|
289
|
+
connect(sigName: "notify::page-id", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
290
|
+
connect_after(sigName: "notify::page-id", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
291
|
+
emit(sigName: "notify::page-id", ...args: any[]): void
|
|
292
|
+
connect(sigName: "notify::related-view", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
293
|
+
connect_after(sigName: "notify::related-view", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
294
|
+
emit(sigName: "notify::related-view", ...args: any[]): void
|
|
295
|
+
connect(sigName: "notify::settings", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
296
|
+
connect_after(sigName: "notify::settings", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
297
|
+
emit(sigName: "notify::settings", ...args: any[]): void
|
|
298
|
+
connect(sigName: "notify::title", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
299
|
+
connect_after(sigName: "notify::title", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
300
|
+
emit(sigName: "notify::title", ...args: any[]): void
|
|
301
|
+
connect(sigName: "notify::uri", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
302
|
+
connect_after(sigName: "notify::uri", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
303
|
+
emit(sigName: "notify::uri", ...args: any[]): void
|
|
304
|
+
connect(sigName: "notify::user-content-manager", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
305
|
+
connect_after(sigName: "notify::user-content-manager", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
306
|
+
emit(sigName: "notify::user-content-manager", ...args: any[]): void
|
|
307
|
+
connect(sigName: "notify::web-context", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
308
|
+
connect_after(sigName: "notify::web-context", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
309
|
+
emit(sigName: "notify::web-context", ...args: any[]): void
|
|
310
|
+
connect(sigName: "notify::web-extension-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
311
|
+
connect_after(sigName: "notify::web-extension-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
312
|
+
emit(sigName: "notify::web-extension-mode", ...args: any[]): void
|
|
313
|
+
connect(sigName: "notify::website-policies", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
314
|
+
connect_after(sigName: "notify::website-policies", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
315
|
+
emit(sigName: "notify::website-policies", ...args: any[]): void
|
|
316
|
+
connect(sigName: "notify::zoom-level", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
317
|
+
connect_after(sigName: "notify::zoom-level", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
318
|
+
emit(sigName: "notify::zoom-level", ...args: any[]): void
|
|
319
|
+
connect(sigName: "notify::border-width", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
320
|
+
connect_after(sigName: "notify::border-width", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
321
|
+
emit(sigName: "notify::border-width", ...args: any[]): void
|
|
322
|
+
connect(sigName: "notify::child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
323
|
+
connect_after(sigName: "notify::child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
324
|
+
emit(sigName: "notify::child", ...args: any[]): void
|
|
325
|
+
connect(sigName: "notify::resize-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
326
|
+
connect_after(sigName: "notify::resize-mode", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
327
|
+
emit(sigName: "notify::resize-mode", ...args: any[]): void
|
|
328
|
+
connect(sigName: "notify::app-paintable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
329
|
+
connect_after(sigName: "notify::app-paintable", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
330
|
+
emit(sigName: "notify::app-paintable", ...args: any[]): void
|
|
331
|
+
connect(sigName: "notify::can-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
332
|
+
connect_after(sigName: "notify::can-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
333
|
+
emit(sigName: "notify::can-default", ...args: any[]): void
|
|
334
|
+
connect(sigName: "notify::can-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
335
|
+
connect_after(sigName: "notify::can-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
336
|
+
emit(sigName: "notify::can-focus", ...args: any[]): void
|
|
337
|
+
connect(sigName: "notify::composite-child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
338
|
+
connect_after(sigName: "notify::composite-child", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
339
|
+
emit(sigName: "notify::composite-child", ...args: any[]): void
|
|
340
|
+
connect(sigName: "notify::double-buffered", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
341
|
+
connect_after(sigName: "notify::double-buffered", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
342
|
+
emit(sigName: "notify::double-buffered", ...args: any[]): void
|
|
343
|
+
connect(sigName: "notify::events", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
344
|
+
connect_after(sigName: "notify::events", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
345
|
+
emit(sigName: "notify::events", ...args: any[]): void
|
|
346
|
+
connect(sigName: "notify::expand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
347
|
+
connect_after(sigName: "notify::expand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
348
|
+
emit(sigName: "notify::expand", ...args: any[]): void
|
|
349
|
+
connect(sigName: "notify::focus-on-click", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
350
|
+
connect_after(sigName: "notify::focus-on-click", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
351
|
+
emit(sigName: "notify::focus-on-click", ...args: any[]): void
|
|
352
|
+
connect(sigName: "notify::halign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
353
|
+
connect_after(sigName: "notify::halign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
354
|
+
emit(sigName: "notify::halign", ...args: any[]): void
|
|
355
|
+
connect(sigName: "notify::has-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
356
|
+
connect_after(sigName: "notify::has-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
357
|
+
emit(sigName: "notify::has-default", ...args: any[]): void
|
|
358
|
+
connect(sigName: "notify::has-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
359
|
+
connect_after(sigName: "notify::has-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
360
|
+
emit(sigName: "notify::has-focus", ...args: any[]): void
|
|
361
|
+
connect(sigName: "notify::has-tooltip", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
362
|
+
connect_after(sigName: "notify::has-tooltip", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
363
|
+
emit(sigName: "notify::has-tooltip", ...args: any[]): void
|
|
364
|
+
connect(sigName: "notify::height-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
365
|
+
connect_after(sigName: "notify::height-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
366
|
+
emit(sigName: "notify::height-request", ...args: any[]): void
|
|
367
|
+
connect(sigName: "notify::hexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
368
|
+
connect_after(sigName: "notify::hexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
369
|
+
emit(sigName: "notify::hexpand", ...args: any[]): void
|
|
370
|
+
connect(sigName: "notify::hexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
371
|
+
connect_after(sigName: "notify::hexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
372
|
+
emit(sigName: "notify::hexpand-set", ...args: any[]): void
|
|
373
|
+
connect(sigName: "notify::is-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
374
|
+
connect_after(sigName: "notify::is-focus", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
375
|
+
emit(sigName: "notify::is-focus", ...args: any[]): void
|
|
376
|
+
connect(sigName: "notify::margin", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
377
|
+
connect_after(sigName: "notify::margin", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
378
|
+
emit(sigName: "notify::margin", ...args: any[]): void
|
|
379
|
+
connect(sigName: "notify::margin-bottom", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
380
|
+
connect_after(sigName: "notify::margin-bottom", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
381
|
+
emit(sigName: "notify::margin-bottom", ...args: any[]): void
|
|
382
|
+
connect(sigName: "notify::margin-end", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
383
|
+
connect_after(sigName: "notify::margin-end", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
384
|
+
emit(sigName: "notify::margin-end", ...args: any[]): void
|
|
385
|
+
connect(sigName: "notify::margin-left", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
386
|
+
connect_after(sigName: "notify::margin-left", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
387
|
+
emit(sigName: "notify::margin-left", ...args: any[]): void
|
|
388
|
+
connect(sigName: "notify::margin-right", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
389
|
+
connect_after(sigName: "notify::margin-right", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
390
|
+
emit(sigName: "notify::margin-right", ...args: any[]): void
|
|
391
|
+
connect(sigName: "notify::margin-start", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
392
|
+
connect_after(sigName: "notify::margin-start", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
393
|
+
emit(sigName: "notify::margin-start", ...args: any[]): void
|
|
394
|
+
connect(sigName: "notify::margin-top", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
395
|
+
connect_after(sigName: "notify::margin-top", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
396
|
+
emit(sigName: "notify::margin-top", ...args: any[]): void
|
|
397
|
+
connect(sigName: "notify::name", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
398
|
+
connect_after(sigName: "notify::name", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
399
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
400
|
+
connect(sigName: "notify::no-show-all", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
401
|
+
connect_after(sigName: "notify::no-show-all", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
402
|
+
emit(sigName: "notify::no-show-all", ...args: any[]): void
|
|
403
|
+
connect(sigName: "notify::opacity", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
404
|
+
connect_after(sigName: "notify::opacity", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
405
|
+
emit(sigName: "notify::opacity", ...args: any[]): void
|
|
406
|
+
connect(sigName: "notify::parent", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
407
|
+
connect_after(sigName: "notify::parent", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
408
|
+
emit(sigName: "notify::parent", ...args: any[]): void
|
|
409
|
+
connect(sigName: "notify::receives-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
410
|
+
connect_after(sigName: "notify::receives-default", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
411
|
+
emit(sigName: "notify::receives-default", ...args: any[]): void
|
|
412
|
+
connect(sigName: "notify::scale-factor", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
413
|
+
connect_after(sigName: "notify::scale-factor", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
414
|
+
emit(sigName: "notify::scale-factor", ...args: any[]): void
|
|
415
|
+
connect(sigName: "notify::sensitive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
416
|
+
connect_after(sigName: "notify::sensitive", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
417
|
+
emit(sigName: "notify::sensitive", ...args: any[]): void
|
|
418
|
+
connect(sigName: "notify::style", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
419
|
+
connect_after(sigName: "notify::style", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
420
|
+
emit(sigName: "notify::style", ...args: any[]): void
|
|
421
|
+
connect(sigName: "notify::tooltip-markup", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
422
|
+
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
423
|
+
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
|
|
424
|
+
connect(sigName: "notify::tooltip-text", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
425
|
+
connect_after(sigName: "notify::tooltip-text", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
426
|
+
emit(sigName: "notify::tooltip-text", ...args: any[]): void
|
|
427
|
+
connect(sigName: "notify::valign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
428
|
+
connect_after(sigName: "notify::valign", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
429
|
+
emit(sigName: "notify::valign", ...args: any[]): void
|
|
430
|
+
connect(sigName: "notify::vexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
431
|
+
connect_after(sigName: "notify::vexpand", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
432
|
+
emit(sigName: "notify::vexpand", ...args: any[]): void
|
|
433
|
+
connect(sigName: "notify::vexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
434
|
+
connect_after(sigName: "notify::vexpand-set", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
435
|
+
emit(sigName: "notify::vexpand-set", ...args: any[]): void
|
|
436
|
+
connect(sigName: "notify::visible", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
437
|
+
connect_after(sigName: "notify::visible", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
438
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
439
|
+
connect(sigName: "notify::width-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
440
|
+
connect_after(sigName: "notify::width-request", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
441
|
+
emit(sigName: "notify::width-request", ...args: any[]): void
|
|
442
|
+
connect(sigName: "notify::window", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
443
|
+
connect_after(sigName: "notify::window", callback: (($obj: Widget, pspec: GObject.ParamSpec) => void)): number
|
|
444
|
+
emit(sigName: "notify::window", ...args: any[]): void
|
|
445
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
446
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
447
|
+
emit(sigName: string, ...args: any[]): void
|
|
448
|
+
disconnect(id: number): void
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
class Widget extends WebKit2.WebView {
|
|
452
|
+
|
|
453
|
+
// Own properties of Gepub-0.5.Gepub.Widget
|
|
454
|
+
|
|
455
|
+
static name: string
|
|
456
|
+
static $gtype: GObject.GType<Widget>
|
|
457
|
+
|
|
458
|
+
// Constructors of Gepub-0.5.Gepub.Widget
|
|
459
|
+
|
|
460
|
+
constructor(config?: Widget.ConstructorProperties)
|
|
461
|
+
constructor()
|
|
462
|
+
static new(): Widget
|
|
463
|
+
_init(config?: Widget.ConstructorProperties): void
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
interface DocClass {
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
abstract class DocClass {
|
|
470
|
+
|
|
471
|
+
// Own properties of Gepub-0.5.Gepub.DocClass
|
|
472
|
+
|
|
473
|
+
static name: string
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
interface WidgetClass {
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
abstract class WidgetClass {
|
|
480
|
+
|
|
481
|
+
// Own properties of Gepub-0.5.Gepub.WidgetClass
|
|
482
|
+
|
|
483
|
+
static name: string
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Name of the imported GIR library
|
|
488
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
489
|
+
*/
|
|
490
|
+
const __name__: string
|
|
491
|
+
/**
|
|
492
|
+
* Version of the imported GIR library
|
|
493
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
494
|
+
*/
|
|
495
|
+
const __version__: string
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export default Gepub;
|
|
499
|
+
// END
|
package/gepub-0.5.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/gepub-0.5",
|
|
3
|
+
"version": "0.5.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for Gepub-0.5, generated from library version 0.5.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "gepub-0.5.js",
|
|
7
|
+
"main": "gepub-0.5.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./gepub-0.5.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "Gepub-0.5",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./gepub-0.5.d.ts",
|
|
18
|
+
"default": "./gepub-0.5.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./gepub-0.5.d.cts",
|
|
22
|
+
"default": "./gepub-0.5.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit gepub-0.5.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit gepub-0.5.d.cts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@girs/atk-1.0": "^2.45.1-3.0.0-beta.12",
|
|
33
|
+
"@girs/cairo-1.0": "^1.0.0-3.0.0-beta.12",
|
|
34
|
+
"@girs/freetype2-2.0": "^2.0.0-3.0.0-beta.12",
|
|
35
|
+
"@girs/gdk-3.0": "^3.24.36-3.0.0-beta.12",
|
|
36
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.0.0-beta.12",
|
|
37
|
+
"@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
|
|
38
|
+
"@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
|
|
39
|
+
"@girs/gmodule-2.0": "^2.0.0-3.0.0-beta.12",
|
|
40
|
+
"@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
|
|
41
|
+
"@girs/gtk-3.0": "^3.24.36-3.0.0-beta.12",
|
|
42
|
+
"@girs/harfbuzz-0.0": "^6.0.0-3.0.0-beta.12",
|
|
43
|
+
"@girs/javascriptcore-4.0": "^2.38.5-3.0.0-beta.12",
|
|
44
|
+
"@girs/libxml2-2.0": "^2.0.0-3.0.0-beta.12",
|
|
45
|
+
"@girs/pango-1.0": "^1.50.13-3.0.0-beta.12",
|
|
46
|
+
"@girs/soup-2.4": "^2.74.3-3.0.0-beta.12",
|
|
47
|
+
"@girs/webkit2-4.0": "^2.38.5-3.0.0-beta.12",
|
|
48
|
+
"@girs/xlib-2.0": "^2.0.0-3.0.0-beta.12"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"typescript": "^*"
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"Gir",
|
|
55
|
+
"TypeScript",
|
|
56
|
+
"Gepub-0.5"
|
|
57
|
+
],
|
|
58
|
+
"author": "ts-for-gir",
|
|
59
|
+
"license": "Apache-2.0",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
68
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"noEmitOnError": false,
|
|
10
|
+
"baseUrl": "./",
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
// General settings for code generation
|
|
13
|
+
"removeComments": false,
|
|
14
|
+
"inlineSourceMap": false,
|
|
15
|
+
"inlineSources": false,
|
|
16
|
+
"newLine": "LF"
|
|
17
|
+
},
|
|
18
|
+
"include": ["./gepub-0.5.d.ts"]
|
|
19
|
+
}
|