@girs/gepub-0.7 0.7.0-4.0.0-beta.21 → 0.7.0-4.0.0-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gepub-0.7.d.ts +288 -13
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gepub-0.7, generated from library version 0.7.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for Gepub-0.7, generated from library version 0.7.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gepub-0.7.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
10
12
|
// Module dependencies
|
|
11
13
|
import type libxml2 from '@girs/libxml2-2.0';
|
|
12
14
|
import type WebKit2 from '@girs/webkit2-4.1';
|
|
@@ -19,7 +21,7 @@ import type JavaScriptCore from '@girs/javascriptcore-4.1';
|
|
|
19
21
|
import type Gtk from '@girs/gtk-3.0';
|
|
20
22
|
import type xlib from '@girs/xlib-2.0';
|
|
21
23
|
import type Gdk from '@girs/gdk-3.0';
|
|
22
|
-
import type cairo from '
|
|
24
|
+
import type cairo from 'cairo';
|
|
23
25
|
import type Pango from '@girs/pango-1.0';
|
|
24
26
|
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
25
27
|
import type freetype2 from '@girs/freetype2-2.0';
|
|
@@ -72,6 +74,9 @@ export namespace Gepub {
|
|
|
72
74
|
*/
|
|
73
75
|
function utils_replace_resources(content: GLib.Bytes | Uint8Array, path: string): GLib.Bytes;
|
|
74
76
|
namespace Archive {
|
|
77
|
+
// Signal signatures
|
|
78
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
79
|
+
|
|
75
80
|
// Constructor properties interface
|
|
76
81
|
|
|
77
82
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -80,6 +85,15 @@ export namespace Gepub {
|
|
|
80
85
|
class Archive extends GObject.Object {
|
|
81
86
|
static $gtype: GObject.GType<Archive>;
|
|
82
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Compile-time signal type information.
|
|
90
|
+
*
|
|
91
|
+
* This instance property is generated only for TypeScript type checking.
|
|
92
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
$signals: Archive.SignalSignatures;
|
|
96
|
+
|
|
83
97
|
// Constructors
|
|
84
98
|
|
|
85
99
|
constructor(properties?: Partial<Archive.ConstructorProps>, ...args: any[]);
|
|
@@ -88,6 +102,24 @@ export namespace Gepub {
|
|
|
88
102
|
|
|
89
103
|
static ['new'](path: string): Archive;
|
|
90
104
|
|
|
105
|
+
// Signals
|
|
106
|
+
|
|
107
|
+
connect<K extends keyof Archive.SignalSignatures>(
|
|
108
|
+
signal: K,
|
|
109
|
+
callback: GObject.SignalCallback<this, Archive.SignalSignatures[K]>,
|
|
110
|
+
): number;
|
|
111
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
112
|
+
connect_after<K extends keyof Archive.SignalSignatures>(
|
|
113
|
+
signal: K,
|
|
114
|
+
callback: GObject.SignalCallback<this, Archive.SignalSignatures[K]>,
|
|
115
|
+
): number;
|
|
116
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
117
|
+
emit<K extends keyof Archive.SignalSignatures>(
|
|
118
|
+
signal: K,
|
|
119
|
+
...args: GObject.GjsParameters<Archive.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
120
|
+
): void;
|
|
121
|
+
emit(signal: string, ...args: any[]): void;
|
|
122
|
+
|
|
91
123
|
// Methods
|
|
92
124
|
|
|
93
125
|
get_root_file(): string;
|
|
@@ -96,6 +128,12 @@ export namespace Gepub {
|
|
|
96
128
|
}
|
|
97
129
|
|
|
98
130
|
namespace Doc {
|
|
131
|
+
// Signal signatures
|
|
132
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
133
|
+
'notify::chapter': (pspec: GObject.ParamSpec) => void;
|
|
134
|
+
'notify::path': (pspec: GObject.ParamSpec) => void;
|
|
135
|
+
}
|
|
136
|
+
|
|
99
137
|
// Constructor properties interface
|
|
100
138
|
|
|
101
139
|
interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.Initable.ConstructorProps {
|
|
@@ -113,6 +151,15 @@ export namespace Gepub {
|
|
|
113
151
|
set chapter(val: number);
|
|
114
152
|
get path(): string;
|
|
115
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Compile-time signal type information.
|
|
156
|
+
*
|
|
157
|
+
* This instance property is generated only for TypeScript type checking.
|
|
158
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
159
|
+
* @internal
|
|
160
|
+
*/
|
|
161
|
+
$signals: Doc.SignalSignatures;
|
|
162
|
+
|
|
116
163
|
// Constructors
|
|
117
164
|
|
|
118
165
|
constructor(properties?: Partial<Doc.ConstructorProps>, ...args: any[]);
|
|
@@ -121,6 +168,24 @@ export namespace Gepub {
|
|
|
121
168
|
|
|
122
169
|
static ['new'](path: string): Doc;
|
|
123
170
|
|
|
171
|
+
// Signals
|
|
172
|
+
|
|
173
|
+
connect<K extends keyof Doc.SignalSignatures>(
|
|
174
|
+
signal: K,
|
|
175
|
+
callback: GObject.SignalCallback<this, Doc.SignalSignatures[K]>,
|
|
176
|
+
): number;
|
|
177
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
178
|
+
connect_after<K extends keyof Doc.SignalSignatures>(
|
|
179
|
+
signal: K,
|
|
180
|
+
callback: GObject.SignalCallback<this, Doc.SignalSignatures[K]>,
|
|
181
|
+
): number;
|
|
182
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
183
|
+
emit<K extends keyof Doc.SignalSignatures>(
|
|
184
|
+
signal: K,
|
|
185
|
+
...args: GObject.GjsParameters<Doc.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
186
|
+
): void;
|
|
187
|
+
emit(signal: string, ...args: any[]): void;
|
|
188
|
+
|
|
124
189
|
// Methods
|
|
125
190
|
|
|
126
191
|
get_chapter(): number;
|
|
@@ -186,7 +251,7 @@ export namespace Gepub {
|
|
|
186
251
|
* If the object is not initialized, or initialization returns with an
|
|
187
252
|
* error, then all operations on the object except g_object_ref() and
|
|
188
253
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
189
|
-
* behaviour. See the [
|
|
254
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
190
255
|
*
|
|
191
256
|
* Callers should not assume that a class which implements #GInitable can be
|
|
192
257
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -229,7 +294,7 @@ export namespace Gepub {
|
|
|
229
294
|
* If the object is not initialized, or initialization returns with an
|
|
230
295
|
* error, then all operations on the object except g_object_ref() and
|
|
231
296
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
232
|
-
* behaviour. See the [
|
|
297
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
233
298
|
*
|
|
234
299
|
* Callers should not assume that a class which implements #GInitable can be
|
|
235
300
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -369,7 +434,21 @@ export namespace Gepub {
|
|
|
369
434
|
* @returns the data if found, or %NULL if no such data exists.
|
|
370
435
|
*/
|
|
371
436
|
get_data(key: string): any | null;
|
|
372
|
-
|
|
437
|
+
/**
|
|
438
|
+
* Gets a property of an object.
|
|
439
|
+
*
|
|
440
|
+
* The value can be:
|
|
441
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
442
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
443
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
444
|
+
*
|
|
445
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
446
|
+
*
|
|
447
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
448
|
+
* @param property_name The name of the property to get
|
|
449
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
450
|
+
*/
|
|
451
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
373
452
|
/**
|
|
374
453
|
* This function gets back user data pointers stored via
|
|
375
454
|
* g_object_set_qdata().
|
|
@@ -497,7 +576,12 @@ export namespace Gepub {
|
|
|
497
576
|
* @param data data to associate with that key
|
|
498
577
|
*/
|
|
499
578
|
set_data(key: string, data?: any | null): void;
|
|
500
|
-
|
|
579
|
+
/**
|
|
580
|
+
* Sets a property on an object.
|
|
581
|
+
* @param property_name The name of the property to set
|
|
582
|
+
* @param value The value to set the property to
|
|
583
|
+
*/
|
|
584
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
501
585
|
/**
|
|
502
586
|
* Remove a specified datum from the object's data associations,
|
|
503
587
|
* without invoking the association's destroy handler.
|
|
@@ -647,14 +731,37 @@ export namespace Gepub {
|
|
|
647
731
|
* @param pspec
|
|
648
732
|
*/
|
|
649
733
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
734
|
+
/**
|
|
735
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
736
|
+
* @param id Handler ID of the handler to be disconnected
|
|
737
|
+
*/
|
|
650
738
|
disconnect(id: number): void;
|
|
739
|
+
/**
|
|
740
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
741
|
+
* @param properties Object containing the properties to set
|
|
742
|
+
*/
|
|
651
743
|
set(properties: { [key: string]: any }): void;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
744
|
+
/**
|
|
745
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
746
|
+
* @param id Handler ID of the handler to be blocked
|
|
747
|
+
*/
|
|
748
|
+
block_signal_handler(id: number): void;
|
|
749
|
+
/**
|
|
750
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
751
|
+
* @param id Handler ID of the handler to be unblocked
|
|
752
|
+
*/
|
|
753
|
+
unblock_signal_handler(id: number): void;
|
|
754
|
+
/**
|
|
755
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
756
|
+
* @param detailedName Name of the signal to stop emission of
|
|
757
|
+
*/
|
|
758
|
+
stop_emission_by_name(detailedName: string): void;
|
|
655
759
|
}
|
|
656
760
|
|
|
657
761
|
namespace TextChunk {
|
|
762
|
+
// Signal signatures
|
|
763
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
764
|
+
|
|
658
765
|
// Constructor properties interface
|
|
659
766
|
|
|
660
767
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -663,6 +770,15 @@ export namespace Gepub {
|
|
|
663
770
|
class TextChunk extends GObject.Object {
|
|
664
771
|
static $gtype: GObject.GType<TextChunk>;
|
|
665
772
|
|
|
773
|
+
/**
|
|
774
|
+
* Compile-time signal type information.
|
|
775
|
+
*
|
|
776
|
+
* This instance property is generated only for TypeScript type checking.
|
|
777
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
778
|
+
* @internal
|
|
779
|
+
*/
|
|
780
|
+
$signals: TextChunk.SignalSignatures;
|
|
781
|
+
|
|
666
782
|
// Constructors
|
|
667
783
|
|
|
668
784
|
constructor(properties?: Partial<TextChunk.ConstructorProps>, ...args: any[]);
|
|
@@ -671,6 +787,24 @@ export namespace Gepub {
|
|
|
671
787
|
|
|
672
788
|
static ['new'](type: TextChunkType, text: string): TextChunk;
|
|
673
789
|
|
|
790
|
+
// Signals
|
|
791
|
+
|
|
792
|
+
connect<K extends keyof TextChunk.SignalSignatures>(
|
|
793
|
+
signal: K,
|
|
794
|
+
callback: GObject.SignalCallback<this, TextChunk.SignalSignatures[K]>,
|
|
795
|
+
): number;
|
|
796
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
797
|
+
connect_after<K extends keyof TextChunk.SignalSignatures>(
|
|
798
|
+
signal: K,
|
|
799
|
+
callback: GObject.SignalCallback<this, TextChunk.SignalSignatures[K]>,
|
|
800
|
+
): number;
|
|
801
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
802
|
+
emit<K extends keyof TextChunk.SignalSignatures>(
|
|
803
|
+
signal: K,
|
|
804
|
+
...args: GObject.GjsParameters<TextChunk.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
805
|
+
): void;
|
|
806
|
+
emit(signal: string, ...args: any[]): void;
|
|
807
|
+
|
|
674
808
|
// Methods
|
|
675
809
|
|
|
676
810
|
text(): string;
|
|
@@ -679,6 +813,81 @@ export namespace Gepub {
|
|
|
679
813
|
}
|
|
680
814
|
|
|
681
815
|
namespace Widget {
|
|
816
|
+
// Signal signatures
|
|
817
|
+
interface SignalSignatures extends WebKit2.WebView.SignalSignatures {
|
|
818
|
+
'notify::chapter': (pspec: GObject.ParamSpec) => void;
|
|
819
|
+
'notify::chapter-pos': (pspec: GObject.ParamSpec) => void;
|
|
820
|
+
'notify::doc': (pspec: GObject.ParamSpec) => void;
|
|
821
|
+
'notify::nchapters': (pspec: GObject.ParamSpec) => void;
|
|
822
|
+
'notify::paginate': (pspec: GObject.ParamSpec) => void;
|
|
823
|
+
'notify::automation-presentation-type': (pspec: GObject.ParamSpec) => void;
|
|
824
|
+
'notify::camera-capture-state': (pspec: GObject.ParamSpec) => void;
|
|
825
|
+
'notify::default-content-security-policy': (pspec: GObject.ParamSpec) => void;
|
|
826
|
+
'notify::display-capture-state': (pspec: GObject.ParamSpec) => void;
|
|
827
|
+
'notify::editable': (pspec: GObject.ParamSpec) => void;
|
|
828
|
+
'notify::estimated-load-progress': (pspec: GObject.ParamSpec) => void;
|
|
829
|
+
'notify::favicon': (pspec: GObject.ParamSpec) => void;
|
|
830
|
+
'notify::is-controlled-by-automation': (pspec: GObject.ParamSpec) => void;
|
|
831
|
+
'notify::is-ephemeral': (pspec: GObject.ParamSpec) => void;
|
|
832
|
+
'notify::is-loading': (pspec: GObject.ParamSpec) => void;
|
|
833
|
+
'notify::is-muted': (pspec: GObject.ParamSpec) => void;
|
|
834
|
+
'notify::is-playing-audio': (pspec: GObject.ParamSpec) => void;
|
|
835
|
+
'notify::is-web-process-responsive': (pspec: GObject.ParamSpec) => void;
|
|
836
|
+
'notify::microphone-capture-state': (pspec: GObject.ParamSpec) => void;
|
|
837
|
+
'notify::page-id': (pspec: GObject.ParamSpec) => void;
|
|
838
|
+
'notify::related-view': (pspec: GObject.ParamSpec) => void;
|
|
839
|
+
'notify::settings': (pspec: GObject.ParamSpec) => void;
|
|
840
|
+
'notify::title': (pspec: GObject.ParamSpec) => void;
|
|
841
|
+
'notify::uri': (pspec: GObject.ParamSpec) => void;
|
|
842
|
+
'notify::user-content-manager': (pspec: GObject.ParamSpec) => void;
|
|
843
|
+
'notify::web-context': (pspec: GObject.ParamSpec) => void;
|
|
844
|
+
'notify::web-extension-mode': (pspec: GObject.ParamSpec) => void;
|
|
845
|
+
'notify::website-policies': (pspec: GObject.ParamSpec) => void;
|
|
846
|
+
'notify::zoom-level': (pspec: GObject.ParamSpec) => void;
|
|
847
|
+
'notify::border-width': (pspec: GObject.ParamSpec) => void;
|
|
848
|
+
'notify::child': (pspec: GObject.ParamSpec) => void;
|
|
849
|
+
'notify::resize-mode': (pspec: GObject.ParamSpec) => void;
|
|
850
|
+
'notify::app-paintable': (pspec: GObject.ParamSpec) => void;
|
|
851
|
+
'notify::can-default': (pspec: GObject.ParamSpec) => void;
|
|
852
|
+
'notify::can-focus': (pspec: GObject.ParamSpec) => void;
|
|
853
|
+
'notify::composite-child': (pspec: GObject.ParamSpec) => void;
|
|
854
|
+
'notify::double-buffered': (pspec: GObject.ParamSpec) => void;
|
|
855
|
+
'notify::events': (pspec: GObject.ParamSpec) => void;
|
|
856
|
+
'notify::expand': (pspec: GObject.ParamSpec) => void;
|
|
857
|
+
'notify::focus-on-click': (pspec: GObject.ParamSpec) => void;
|
|
858
|
+
'notify::halign': (pspec: GObject.ParamSpec) => void;
|
|
859
|
+
'notify::has-default': (pspec: GObject.ParamSpec) => void;
|
|
860
|
+
'notify::has-focus': (pspec: GObject.ParamSpec) => void;
|
|
861
|
+
'notify::has-tooltip': (pspec: GObject.ParamSpec) => void;
|
|
862
|
+
'notify::height-request': (pspec: GObject.ParamSpec) => void;
|
|
863
|
+
'notify::hexpand': (pspec: GObject.ParamSpec) => void;
|
|
864
|
+
'notify::hexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
865
|
+
'notify::is-focus': (pspec: GObject.ParamSpec) => void;
|
|
866
|
+
'notify::margin': (pspec: GObject.ParamSpec) => void;
|
|
867
|
+
'notify::margin-bottom': (pspec: GObject.ParamSpec) => void;
|
|
868
|
+
'notify::margin-end': (pspec: GObject.ParamSpec) => void;
|
|
869
|
+
'notify::margin-left': (pspec: GObject.ParamSpec) => void;
|
|
870
|
+
'notify::margin-right': (pspec: GObject.ParamSpec) => void;
|
|
871
|
+
'notify::margin-start': (pspec: GObject.ParamSpec) => void;
|
|
872
|
+
'notify::margin-top': (pspec: GObject.ParamSpec) => void;
|
|
873
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
874
|
+
'notify::no-show-all': (pspec: GObject.ParamSpec) => void;
|
|
875
|
+
'notify::opacity': (pspec: GObject.ParamSpec) => void;
|
|
876
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
877
|
+
'notify::receives-default': (pspec: GObject.ParamSpec) => void;
|
|
878
|
+
'notify::scale-factor': (pspec: GObject.ParamSpec) => void;
|
|
879
|
+
'notify::sensitive': (pspec: GObject.ParamSpec) => void;
|
|
880
|
+
'notify::style': (pspec: GObject.ParamSpec) => void;
|
|
881
|
+
'notify::tooltip-markup': (pspec: GObject.ParamSpec) => void;
|
|
882
|
+
'notify::tooltip-text': (pspec: GObject.ParamSpec) => void;
|
|
883
|
+
'notify::valign': (pspec: GObject.ParamSpec) => void;
|
|
884
|
+
'notify::vexpand': (pspec: GObject.ParamSpec) => void;
|
|
885
|
+
'notify::vexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
886
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
887
|
+
'notify::width-request': (pspec: GObject.ParamSpec) => void;
|
|
888
|
+
'notify::window': (pspec: GObject.ParamSpec) => void;
|
|
889
|
+
}
|
|
890
|
+
|
|
682
891
|
// Constructor properties interface
|
|
683
892
|
|
|
684
893
|
interface ConstructorProps
|
|
@@ -711,6 +920,15 @@ export namespace Gepub {
|
|
|
711
920
|
get paginate(): boolean;
|
|
712
921
|
set paginate(val: boolean);
|
|
713
922
|
|
|
923
|
+
/**
|
|
924
|
+
* Compile-time signal type information.
|
|
925
|
+
*
|
|
926
|
+
* This instance property is generated only for TypeScript type checking.
|
|
927
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
928
|
+
* @internal
|
|
929
|
+
*/
|
|
930
|
+
$signals: Widget.SignalSignatures;
|
|
931
|
+
|
|
714
932
|
// Constructors
|
|
715
933
|
|
|
716
934
|
constructor(properties?: Partial<Widget.ConstructorProps>, ...args: any[]);
|
|
@@ -719,6 +937,24 @@ export namespace Gepub {
|
|
|
719
937
|
|
|
720
938
|
static ['new'](): Widget;
|
|
721
939
|
|
|
940
|
+
// Signals
|
|
941
|
+
|
|
942
|
+
connect<K extends keyof Widget.SignalSignatures>(
|
|
943
|
+
signal: K,
|
|
944
|
+
callback: GObject.SignalCallback<this, Widget.SignalSignatures[K]>,
|
|
945
|
+
): number;
|
|
946
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
947
|
+
connect_after<K extends keyof Widget.SignalSignatures>(
|
|
948
|
+
signal: K,
|
|
949
|
+
callback: GObject.SignalCallback<this, Widget.SignalSignatures[K]>,
|
|
950
|
+
): number;
|
|
951
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
952
|
+
emit<K extends keyof Widget.SignalSignatures>(
|
|
953
|
+
signal: K,
|
|
954
|
+
...args: GObject.GjsParameters<Widget.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
955
|
+
): void;
|
|
956
|
+
emit(signal: string, ...args: any[]): void;
|
|
957
|
+
|
|
722
958
|
// Methods
|
|
723
959
|
|
|
724
960
|
chapter_next(): boolean;
|
|
@@ -911,7 +1147,21 @@ export namespace Gepub {
|
|
|
911
1147
|
* @returns the data if found, or %NULL if no such data exists.
|
|
912
1148
|
*/
|
|
913
1149
|
get_data(key: string): any | null;
|
|
914
|
-
|
|
1150
|
+
/**
|
|
1151
|
+
* Gets a property of an object.
|
|
1152
|
+
*
|
|
1153
|
+
* The value can be:
|
|
1154
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
1155
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
1156
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
1157
|
+
*
|
|
1158
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
1159
|
+
*
|
|
1160
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
1161
|
+
* @param property_name The name of the property to get
|
|
1162
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
1163
|
+
*/
|
|
1164
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
915
1165
|
/**
|
|
916
1166
|
* This function gets back user data pointers stored via
|
|
917
1167
|
* g_object_set_qdata().
|
|
@@ -1039,7 +1289,12 @@ export namespace Gepub {
|
|
|
1039
1289
|
* @param data data to associate with that key
|
|
1040
1290
|
*/
|
|
1041
1291
|
set_data(key: string, data?: any | null): void;
|
|
1042
|
-
|
|
1292
|
+
/**
|
|
1293
|
+
* Sets a property on an object.
|
|
1294
|
+
* @param property_name The name of the property to set
|
|
1295
|
+
* @param value The value to set the property to
|
|
1296
|
+
*/
|
|
1297
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1043
1298
|
/**
|
|
1044
1299
|
* Remove a specified datum from the object's data associations,
|
|
1045
1300
|
* without invoking the association's destroy handler.
|
|
@@ -1189,11 +1444,31 @@ export namespace Gepub {
|
|
|
1189
1444
|
* @param pspec
|
|
1190
1445
|
*/
|
|
1191
1446
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1447
|
+
/**
|
|
1448
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
1449
|
+
* @param id Handler ID of the handler to be disconnected
|
|
1450
|
+
*/
|
|
1192
1451
|
disconnect(id: number): void;
|
|
1452
|
+
/**
|
|
1453
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
1454
|
+
* @param properties Object containing the properties to set
|
|
1455
|
+
*/
|
|
1193
1456
|
set(properties: { [key: string]: any }): void;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1457
|
+
/**
|
|
1458
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
1459
|
+
* @param id Handler ID of the handler to be blocked
|
|
1460
|
+
*/
|
|
1461
|
+
block_signal_handler(id: number): void;
|
|
1462
|
+
/**
|
|
1463
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
1464
|
+
* @param id Handler ID of the handler to be unblocked
|
|
1465
|
+
*/
|
|
1466
|
+
unblock_signal_handler(id: number): void;
|
|
1467
|
+
/**
|
|
1468
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
1469
|
+
* @param detailedName Name of the signal to stop emission of
|
|
1470
|
+
*/
|
|
1471
|
+
stop_emission_by_name(detailedName: string): void;
|
|
1197
1472
|
}
|
|
1198
1473
|
|
|
1199
1474
|
type ArchiveClass = typeof Archive;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gepub-0.7",
|
|
3
|
-
"version": "0.7.0-4.0.0-beta.
|
|
3
|
+
"version": "0.7.0-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gepub-0.7, generated from library version 0.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gepub-0.7.js",
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/atk-1.0": "^2.
|
|
35
|
-
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.
|
|
36
|
-
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.
|
|
37
|
-
"@girs/gdk-3.0": "^3.24.
|
|
38
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.
|
|
39
|
-
"@girs/gio-2.0": "^2.
|
|
40
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
41
|
-
"@girs/glib-2.0": "^2.
|
|
42
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
43
|
-
"@girs/gobject-2.0": "^2.
|
|
44
|
-
"@girs/gtk-3.0": "^3.24.
|
|
45
|
-
"@girs/harfbuzz-0.0": "^
|
|
46
|
-
"@girs/javascriptcore-4.1": "^2.
|
|
47
|
-
"@girs/libxml2-2.0": "^2.0.0-4.0.0-beta.
|
|
48
|
-
"@girs/pango-1.0": "^1.56.
|
|
49
|
-
"@girs/soup-3.0": "^3.6.
|
|
50
|
-
"@girs/webkit2-4.1": "^2.
|
|
51
|
-
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.
|
|
34
|
+
"@girs/atk-1.0": "^2.56.2-4.0.0-beta.24",
|
|
35
|
+
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.24",
|
|
36
|
+
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.24",
|
|
37
|
+
"@girs/gdk-3.0": "^3.24.50-4.0.0-beta.24",
|
|
38
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.24",
|
|
39
|
+
"@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
|
|
40
|
+
"@girs/gjs": "^4.0.0-beta.24",
|
|
41
|
+
"@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
|
|
42
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
|
|
43
|
+
"@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24",
|
|
44
|
+
"@girs/gtk-3.0": "^3.24.50-4.0.0-beta.24",
|
|
45
|
+
"@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.24",
|
|
46
|
+
"@girs/javascriptcore-4.1": "^2.48.0-4.0.0-beta.24",
|
|
47
|
+
"@girs/libxml2-2.0": "^2.0.0-4.0.0-beta.24",
|
|
48
|
+
"@girs/pango-1.0": "^1.56.4-4.0.0-beta.24",
|
|
49
|
+
"@girs/soup-3.0": "^3.6.5-4.0.0-beta.24",
|
|
50
|
+
"@girs/webkit2-4.1": "^2.48.0-4.0.0-beta.24",
|
|
51
|
+
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.24"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|