@girs/peas-2 2.0.0-3.0.0-beta.13

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/peas-2.d.ts ADDED
@@ -0,0 +1,1183 @@
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
+ * Peas-2
10
+ */
11
+
12
+ import type Gio from '@girs/gio-2.0';
13
+ import type GObject from '@girs/gobject-2.0';
14
+ import type GLib from '@girs/glib-2.0';
15
+ import type GModule from '@girs/gmodule-2.0';
16
+ import type GIRepository from '@girs/girepository-2.0';
17
+
18
+ export namespace Peas {
19
+
20
+ /**
21
+ * These identify the various errors that can occur while
22
+ * loading a plugin.
23
+ */
24
+ enum PluginInfoError {
25
+ /**
26
+ * The plugin failed to load.
27
+ */
28
+ LOADING_FAILED,
29
+ /**
30
+ * The plugin's loader was not found.
31
+ */
32
+ LOADER_NOT_FOUND,
33
+ /**
34
+ * A dependency of the plugin was not found.
35
+ */
36
+ DEP_NOT_FOUND,
37
+ /**
38
+ * A dependency of the plugin failed to load.
39
+ */
40
+ DEP_LOADING_FAILED,
41
+ }
42
+ /**
43
+ * This function is passed to [method`ExtensionSet`.foreach] and
44
+ * will be called for each extension in `set`.
45
+ * @callback
46
+ * @param set A #PeasExtensionSet.
47
+ * @param info A #PeasPluginInfo.
48
+ * @param extension The extension instance.
49
+ * @param data Optional data passed to the function.
50
+ */
51
+ interface ExtensionSetForeachFunc {
52
+ (set: ExtensionSet, info: PluginInfo, extension: GObject.Object, data: any | null): void
53
+ }
54
+ /**
55
+ * A #PeasFactoryFunc is a factory function which will instanciate a new
56
+ * extension of a given type. [ctor`GObject`.Object.newv] is such a function.
57
+ *
58
+ * It is used with [method`ObjectModule`.register_extension_factory].
59
+ * @callback
60
+ * @param parameters The parameters.
61
+ * @returns The created object.
62
+ */
63
+ interface FactoryFunc {
64
+ (parameters: GObject.Parameter[]): GObject.Object
65
+ }
66
+ module Engine {
67
+
68
+ // Signal callback interfaces
69
+
70
+ /**
71
+ * Signal callback interface for `load-plugin`
72
+ */
73
+ interface LoadPluginSignalCallback {
74
+ ($obj: Engine, info: PluginInfo): void
75
+ }
76
+
77
+ /**
78
+ * Signal callback interface for `unload-plugin`
79
+ */
80
+ interface UnloadPluginSignalCallback {
81
+ ($obj: Engine, info: PluginInfo): void
82
+ }
83
+
84
+
85
+ // Constructor properties interface
86
+
87
+ interface ConstructorProperties extends Gio.ListModel.ConstructorProperties, GObject.Object.ConstructorProperties {
88
+
89
+ // Own constructor properties of Peas-2.Peas.Engine
90
+
91
+ /**
92
+ * The list of loaded plugins.
93
+ *
94
+ * This will be modified when [method`Engine`.load_plugin] or
95
+ * [method`Engine`.unload_plugin] is called.
96
+ *
97
+ * This can be used with [class`Gio`.Settings] to save the loaded plugins by
98
+ * binding to this property after instantiating the engine by doing:
99
+ *
100
+ * ```c
101
+ * g_settings_bind (gsettings_object,
102
+ * LOADED_PLUGINS_KEY,
103
+ * engine,
104
+ * "loaded-plugins",
105
+ * G_SETTINGS_BIND_DEFAULT);
106
+ * ```
107
+ *
108
+ * Note: notify will not be called when the engine is being destroyed.
109
+ */
110
+ loaded_plugins?: string[] | null
111
+ /**
112
+ * If non-global plugin loaders should be used.
113
+ *
114
+ * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
115
+ */
116
+ nonglobal_loaders?: boolean | null
117
+ }
118
+
119
+ }
120
+
121
+ interface Engine extends Gio.ListModel {
122
+
123
+ // Own properties of Peas-2.Peas.Engine
124
+
125
+ /**
126
+ * The list of loaded plugins.
127
+ *
128
+ * This will be modified when [method`Engine`.load_plugin] or
129
+ * [method`Engine`.unload_plugin] is called.
130
+ *
131
+ * This can be used with [class`Gio`.Settings] to save the loaded plugins by
132
+ * binding to this property after instantiating the engine by doing:
133
+ *
134
+ * ```c
135
+ * g_settings_bind (gsettings_object,
136
+ * LOADED_PLUGINS_KEY,
137
+ * engine,
138
+ * "loaded-plugins",
139
+ * G_SETTINGS_BIND_DEFAULT);
140
+ * ```
141
+ *
142
+ * Note: notify will not be called when the engine is being destroyed.
143
+ */
144
+ loaded_plugins: string[]
145
+ /**
146
+ * If non-global plugin loaders should be used.
147
+ *
148
+ * See [ctor`Engine`.new_with_nonglobal_loaders] for more information.
149
+ */
150
+ readonly nonglobal_loaders: boolean
151
+
152
+ // Owm methods of Peas-2.Peas.Engine
153
+
154
+ /**
155
+ * Appends a search path to the list of paths where to look for plugins.
156
+ *
157
+ * A so-called "search path" actually consists of both a
158
+ * module directory (where the shared libraries or language modules
159
+ * lie) and a data directory (where the plugin data is).
160
+ *
161
+ * The plugin will be able to use a correct data dir depending on
162
+ * where it is installed, hence allowing to keep the plugin agnostic
163
+ * when it comes to installation location: the same plugin can be
164
+ * installed either in the system path or in the user's home directory,
165
+ * without taking other special care than using
166
+ * [method`PluginInfo`.get_data_dir] when looking for its data files.
167
+ *
168
+ * If `data_dir` is %NULL, then it is set to the same value as
169
+ * `module_dir`.
170
+ * @param module_dir the plugin module directory.
171
+ * @param data_dir the plugin data directory.
172
+ */
173
+ add_search_path(module_dir: string | null, data_dir: string | null): void
174
+ /**
175
+ * If the plugin identified by `info` implements the `extension_type,`
176
+ * then this function will return a new instance of this implementation.
177
+ *
178
+ * See [method`Engine`.create_extension] for more information.
179
+ * @param info A loaded #PeasPluginInfo.
180
+ * @param extension_type The implemented extension #GType.
181
+ * @param prop_names an array of property names.
182
+ * @param prop_values an array of property values.
183
+ * @returns a new instance of #GObject which meets the prerequisites of @extension_type, or %NULL.
184
+ */
185
+ create_extension(info: PluginInfo, extension_type: GObject.GType, prop_names: string[], prop_values: any[]): GObject.Object
186
+ /**
187
+ * Returns the list of the names of all the loaded plugins.
188
+ *
189
+ * If there is no plugin currently loaded, it will return an array containing a
190
+ * single %NULL element.
191
+ *
192
+ * Please note that the returned array is a newly allocated one: you will need
193
+ * to free it using [func`GLib`.strfreev].
194
+ * @returns A newly-allocated %NULL-terminated array of strings.
195
+ */
196
+ dup_loaded_plugins(): string[]
197
+ /**
198
+ * Enable a loader, enables a loader for plugins.
199
+ *
200
+ * The C plugin loader is always enabled. The other plugin
201
+ * loaders are: lua5.1, python and python3.
202
+ *
203
+ * For instance, the following code will enable Python 2 plugins
204
+ * to be loaded:
205
+ *
206
+ * ```c
207
+ * peas_engine_enable_loader (engine, "python");
208
+ * ```
209
+ *
210
+ * Note: plugin loaders used to be shared across `PeasEngine`s so enabling
211
+ * a loader on one #PeasEngine would enable it on all #PeasEngines.
212
+ * This behavior has been kept to avoid breaking applications,
213
+ * however a warning has been added to help applications transition.
214
+ * @param loader_name The name of the loader to enable.
215
+ */
216
+ enable_loader(loader_name: string | null): void
217
+ /**
218
+ * Triggers garbage collection on all the loaders currently owned by the
219
+ * #PeasEngine.
220
+ *
221
+ * This can be used to force the loaders to destroy
222
+ * managed objects that still hold references to objects that are about to
223
+ * disappear.
224
+ */
225
+ garbage_collect(): void
226
+ /**
227
+ * Gets the [class`PluginInfo]` corresponding with `plugin_name,`
228
+ * or %NULL if `plugin_name` was not found.
229
+ * @param plugin_name A plugin name.
230
+ * @returns the #PeasPluginInfo corresponding with a given plugin module name.
231
+ */
232
+ get_plugin_info(plugin_name: string | null): PluginInfo
233
+ /**
234
+ * Loads the plugin corresponding to `info` if it's not currently loaded.
235
+ *
236
+ * Emits the [signal`Engine:`:load-plugin] signal; loading the plugin
237
+ * actually occurs in the default signal handler.
238
+ * @param info A #PeasPluginInfo.
239
+ * @returns whether the plugin has been successfully loaded.
240
+ */
241
+ load_plugin(info: PluginInfo): boolean
242
+ /**
243
+ * Returns if `info` provides an extension for `extension_type`.
244
+ *
245
+ * If the `info` is not loaded than %FALSE will always be returned.
246
+ * @param info A #PeasPluginInfo.
247
+ * @param extension_type The extension #GType.
248
+ * @returns if @info provides an extension for @extension_type.
249
+ */
250
+ provides_extension(info: PluginInfo, extension_type: GObject.GType): boolean
251
+ /**
252
+ * Rescan all the registered directories to find new or updated plugins.
253
+ *
254
+ * Calling this function will make the newly installed plugin infos
255
+ * be loaded by the engine, so the new plugins can be used without
256
+ * restarting the application.
257
+ */
258
+ rescan_plugins(): void
259
+ /**
260
+ * Sets the list of loaded plugins for `engine`.
261
+ *
262
+ * When this function is called, the #PeasEngine will load all the plugins whose
263
+ * names are in `plugin_names,` and ensures all other active plugins are
264
+ * unloaded.
265
+ *
266
+ * If `plugin_names` is %NULL, all plugins will be unloaded.
267
+ * @param plugin_names A %NULL-terminated array of plugin names, or %NULL.
268
+ */
269
+ set_loaded_plugins(plugin_names: string[] | null): void
270
+ /**
271
+ * Unloads the plugin corresponding to `info`.
272
+ *
273
+ * Emits the [signal`Engine:`:unload-plugin] signal; unloading the plugin
274
+ * actually occurs in the default signal handler.
275
+ * @param info A #PeasPluginInfo.
276
+ * @returns whether the plugin has been successfully unloaded.
277
+ */
278
+ unload_plugin(info: PluginInfo): boolean
279
+
280
+ // Own signals of Peas-2.Peas.Engine
281
+
282
+ connect(sigName: "load-plugin", callback: Engine.LoadPluginSignalCallback): number
283
+ connect_after(sigName: "load-plugin", callback: Engine.LoadPluginSignalCallback): number
284
+ emit(sigName: "load-plugin", info: PluginInfo, ...args: any[]): void
285
+ connect(sigName: "unload-plugin", callback: Engine.UnloadPluginSignalCallback): number
286
+ connect_after(sigName: "unload-plugin", callback: Engine.UnloadPluginSignalCallback): number
287
+ emit(sigName: "unload-plugin", info: PluginInfo, ...args: any[]): void
288
+
289
+ // Class property signals of Peas-2.Peas.Engine
290
+
291
+ connect(sigName: "notify::loaded-plugins", callback: (($obj: Engine, pspec: GObject.ParamSpec) => void)): number
292
+ connect_after(sigName: "notify::loaded-plugins", callback: (($obj: Engine, pspec: GObject.ParamSpec) => void)): number
293
+ emit(sigName: "notify::loaded-plugins", ...args: any[]): void
294
+ connect(sigName: "notify::nonglobal-loaders", callback: (($obj: Engine, pspec: GObject.ParamSpec) => void)): number
295
+ connect_after(sigName: "notify::nonglobal-loaders", callback: (($obj: Engine, pspec: GObject.ParamSpec) => void)): number
296
+ emit(sigName: "notify::nonglobal-loaders", ...args: any[]): void
297
+ connect(sigName: string, callback: (...args: any[]) => void): number
298
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
299
+ emit(sigName: string, ...args: any[]): void
300
+ disconnect(id: number): void
301
+ }
302
+
303
+ /**
304
+ * The #PeasEngine is the object which manages the plugins.
305
+ *
306
+ * Its role is twofold:
307
+ *
308
+ * - it will fetch all the information about the available plugins
309
+ * from all the registered plugin directories;
310
+ * - it will provide you an API to load, control and unload your
311
+ * plugins and their extensions from within your application.
312
+ * @class
313
+ */
314
+ class Engine extends GObject.Object {
315
+
316
+ // Own properties of Peas-2.Peas.Engine
317
+
318
+ static name: string
319
+ static $gtype: GObject.GType<Engine>
320
+
321
+ // Constructors of Peas-2.Peas.Engine
322
+
323
+ constructor(config?: Engine.ConstructorProperties)
324
+ /**
325
+ * Return a new instance of #PeasEngine.
326
+ *
327
+ * If no default #PeasEngine has been instantiated yet,
328
+ * the first call of this function will set the default
329
+ * engine as the new instance of #PeasEngine.
330
+ * @constructor
331
+ * @returns a new instance of #PeasEngine.
332
+ */
333
+ constructor()
334
+ /**
335
+ * Return a new instance of #PeasEngine.
336
+ *
337
+ * If no default #PeasEngine has been instantiated yet,
338
+ * the first call of this function will set the default
339
+ * engine as the new instance of #PeasEngine.
340
+ * @constructor
341
+ * @returns a new instance of #PeasEngine.
342
+ */
343
+ static new(): Engine
344
+ /**
345
+ * Return a new instance of #PeasEngine which will use non-global
346
+ * plugin loaders instead of the default global ones.
347
+ *
348
+ * This allows multiple threads to each have a #PeasEngine and be used without
349
+ * internal locking.
350
+ *
351
+ * Note: due to CPython's GIL the python and python3
352
+ * plugin loaders are always global.
353
+ * @constructor
354
+ * @returns a new instance of #PeasEngine that uses non-global loaders.
355
+ */
356
+ static new_with_nonglobal_loaders(): Engine
357
+ _init(config?: Engine.ConstructorProperties): void
358
+ /**
359
+ * Return the existing instance of #PeasEngine or a subclass of it.
360
+ *
361
+ * If no #PeasEngine subclass has been instantiated yet, the first call
362
+ * of this function will return a new instance of #PeasEngine.
363
+ *
364
+ * Note: this function should never be used when multiple threads are
365
+ * using libpeas API as it is not thread-safe.
366
+ * @returns the existing instance of #PeasEngine.
367
+ */
368
+ static get_default(): Engine
369
+ }
370
+
371
+ module ExtensionBase {
372
+
373
+ // Constructor properties interface
374
+
375
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
376
+
377
+ // Own constructor properties of Peas-2.Peas.ExtensionBase
378
+
379
+ /**
380
+ * The [class`PluginInfo]` related to the current plugin.
381
+ */
382
+ plugin_info?: PluginInfo | null
383
+ }
384
+
385
+ }
386
+
387
+ interface ExtensionBase {
388
+
389
+ // Own properties of Peas-2.Peas.ExtensionBase
390
+
391
+ /**
392
+ * The The full path of the directory where the plugin
393
+ * should look for its data files.
394
+ *
395
+ * Note: This is the same path as that returned by
396
+ * [method`PluginInfo`.get_data_dir].
397
+ */
398
+ readonly data_dir: string | null
399
+ /**
400
+ * The [class`PluginInfo]` related to the current plugin.
401
+ */
402
+ readonly plugin_info: PluginInfo
403
+
404
+ // Own fields of Peas-2.Peas.ExtensionBase
405
+
406
+ parent_instance: GObject.Object
407
+
408
+ // Owm methods of Peas-2.Peas.ExtensionBase
409
+
410
+ /**
411
+ * Get the path of the directory where the plugin should look for
412
+ * its data files.
413
+ * @returns A newly allocated string with the path of the directory where the plugin should look for its data files
414
+ */
415
+ get_data_dir(): string | null
416
+ /**
417
+ * Get information relative to `extbase`.
418
+ * @returns the [class@PluginInfo] relative to the #PeasExtensionBase.
419
+ */
420
+ get_plugin_info(): PluginInfo
421
+
422
+ // Class property signals of Peas-2.Peas.ExtensionBase
423
+
424
+ connect(sigName: "notify::data-dir", callback: (($obj: ExtensionBase, pspec: GObject.ParamSpec) => void)): number
425
+ connect_after(sigName: "notify::data-dir", callback: (($obj: ExtensionBase, pspec: GObject.ParamSpec) => void)): number
426
+ emit(sigName: "notify::data-dir", ...args: any[]): void
427
+ connect(sigName: "notify::plugin-info", callback: (($obj: ExtensionBase, pspec: GObject.ParamSpec) => void)): number
428
+ connect_after(sigName: "notify::plugin-info", callback: (($obj: ExtensionBase, pspec: GObject.ParamSpec) => void)): number
429
+ emit(sigName: "notify::plugin-info", ...args: any[]): void
430
+ connect(sigName: string, callback: (...args: any[]) => void): number
431
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
432
+ emit(sigName: string, ...args: any[]): void
433
+ disconnect(id: number): void
434
+ }
435
+
436
+ /**
437
+ * Base class for C extensions.
438
+ *
439
+ * #PeasExtensionBase can optionally be used as a base class for the extensions
440
+ * of your plugin. By inheriting from it, you will make your extension able to
441
+ * access the related [class`PluginInfo]`, and especially the location where all
442
+ * the data of your plugin lives.
443
+ *
444
+ * Non-C extensions will usually not inherit from this class: Python
445
+ * plugins automatically get a "plugin_info" attribute that serves
446
+ * the same purpose.
447
+ * @class
448
+ */
449
+ class ExtensionBase extends GObject.Object {
450
+
451
+ // Own properties of Peas-2.Peas.ExtensionBase
452
+
453
+ static name: string
454
+ static $gtype: GObject.GType<ExtensionBase>
455
+
456
+ // Constructors of Peas-2.Peas.ExtensionBase
457
+
458
+ constructor(config?: ExtensionBase.ConstructorProperties)
459
+ _init(config?: ExtensionBase.ConstructorProperties): void
460
+ }
461
+
462
+ module ExtensionSet {
463
+
464
+ // Signal callback interfaces
465
+
466
+ /**
467
+ * Signal callback interface for `extension-added`
468
+ */
469
+ interface ExtensionAddedSignalCallback {
470
+ ($obj: ExtensionSet, info: PluginInfo, extension: GObject.Object): void
471
+ }
472
+
473
+ /**
474
+ * Signal callback interface for `extension-removed`
475
+ */
476
+ interface ExtensionRemovedSignalCallback {
477
+ ($obj: ExtensionSet, info: PluginInfo, extension: GObject.Object): void
478
+ }
479
+
480
+
481
+ // Constructor properties interface
482
+
483
+ interface ConstructorProperties extends Gio.ListModel.ConstructorProperties, GObject.Object.ConstructorProperties {
484
+
485
+ // Own constructor properties of Peas-2.Peas.ExtensionSet
486
+
487
+ construct_properties?: any | null
488
+ engine?: Engine | null
489
+ extension_type?: GObject.GType | null
490
+ }
491
+
492
+ }
493
+
494
+ interface ExtensionSet extends Gio.ListModel {
495
+
496
+ // Own properties of Peas-2.Peas.ExtensionSet
497
+
498
+ readonly construct_properties: any
499
+ readonly engine: Engine
500
+ readonly extension_type: GObject.GType
501
+
502
+ // Owm methods of Peas-2.Peas.ExtensionSet
503
+
504
+ /**
505
+ * Calls `func` for each [class`GObject`.Object].
506
+ * @param func A function call for each extension.
507
+ */
508
+ foreach(func: ExtensionSetForeachFunc): void
509
+ /**
510
+ * Returns the [class`GObject`.Object] object corresponding to `info`.
511
+ *
512
+ * If the plugin doesn't provide such an extension, it returns %NULL.
513
+ * @param info a #PeasPluginInfo
514
+ * @returns a reference to a #GObject
515
+ */
516
+ get_extension(info: PluginInfo): GObject.Object | null
517
+
518
+ // Own signals of Peas-2.Peas.ExtensionSet
519
+
520
+ connect(sigName: "extension-added", callback: ExtensionSet.ExtensionAddedSignalCallback): number
521
+ connect_after(sigName: "extension-added", callback: ExtensionSet.ExtensionAddedSignalCallback): number
522
+ emit(sigName: "extension-added", info: PluginInfo, extension: GObject.Object, ...args: any[]): void
523
+ connect(sigName: "extension-removed", callback: ExtensionSet.ExtensionRemovedSignalCallback): number
524
+ connect_after(sigName: "extension-removed", callback: ExtensionSet.ExtensionRemovedSignalCallback): number
525
+ emit(sigName: "extension-removed", info: PluginInfo, extension: GObject.Object, ...args: any[]): void
526
+
527
+ // Class property signals of Peas-2.Peas.ExtensionSet
528
+
529
+ connect(sigName: "notify::construct-properties", callback: (($obj: ExtensionSet, pspec: GObject.ParamSpec) => void)): number
530
+ connect_after(sigName: "notify::construct-properties", callback: (($obj: ExtensionSet, pspec: GObject.ParamSpec) => void)): number
531
+ emit(sigName: "notify::construct-properties", ...args: any[]): void
532
+ connect(sigName: "notify::engine", callback: (($obj: ExtensionSet, pspec: GObject.ParamSpec) => void)): number
533
+ connect_after(sigName: "notify::engine", callback: (($obj: ExtensionSet, pspec: GObject.ParamSpec) => void)): number
534
+ emit(sigName: "notify::engine", ...args: any[]): void
535
+ connect(sigName: "notify::extension-type", callback: (($obj: ExtensionSet, pspec: GObject.ParamSpec) => void)): number
536
+ connect_after(sigName: "notify::extension-type", callback: (($obj: ExtensionSet, pspec: GObject.ParamSpec) => void)): number
537
+ emit(sigName: "notify::extension-type", ...args: any[]): void
538
+ connect(sigName: string, callback: (...args: any[]) => void): number
539
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
540
+ emit(sigName: string, ...args: any[]): void
541
+ disconnect(id: number): void
542
+ }
543
+
544
+ /**
545
+ * Proxy for a set of extensions of the same type.
546
+ *
547
+ * A #PeasExtensionSet is an object which proxies method calls to a set
548
+ * of actual extensions. The application writer will use these objects
549
+ * in order to call methods on several instances of an actual extension
550
+ * exported by all the currently loaded plugins.
551
+ *
552
+ * #PeasExtensionSet will automatically track loading and unloading of
553
+ * the plugins, and signal appearance and disappearance of new
554
+ * extension instances. You should connect to those signals if you
555
+ * wish to call specific methods on loading or unloading time.
556
+ *
557
+ * Here is the code for a typical setup of #PeasExtensionSet with
558
+ * ExampleActivatable as the watched extension point, and GtkWindow
559
+ * instances as the target objects:
560
+ *
561
+ * ```c
562
+ * static void
563
+ * on_extension_added (PeasExtensionSet *set,
564
+ * PeasPluginInfo *info,
565
+ * ExampleActivatable *activatable)
566
+ * {
567
+ * example_activatable_activate (activatable);
568
+ * }
569
+ *
570
+ * static void
571
+ * on_extension_removed (PeasExtensionSet *set,
572
+ * PeasPluginInfo *info,
573
+ * ExampleActivatable *activatable)
574
+ * {
575
+ * example_activatable_deactivate (activatable);
576
+ * }
577
+ *
578
+ * PeasExtensionSet *
579
+ * setup_extension_set (PeasEngine *engine,
580
+ * GtkWindow *window)
581
+ * {
582
+ * PeasExtensionSet *set;
583
+ *
584
+ * set = peas_extension_set_new (engine, EXAMPLE_TYPE_ACTIVATABLE,
585
+ * "object", window, NULL);
586
+ * peas_extension_set_foreach (set,
587
+ * (PeasExtensionSetForeachFunc) on_extension_added,
588
+ * NULL);
589
+ * g_signal_connect (set, "extension-added",
590
+ * G_CALLBACK (on_extension_added), NULL);
591
+ * g_signal_connect (set, "extension-removed",
592
+ * G_CALLBACK (on_extension_removed), NULL);
593
+ * return set;
594
+ * }
595
+ * ```
596
+ * @class
597
+ */
598
+ class ExtensionSet extends GObject.Object {
599
+
600
+ // Own properties of Peas-2.Peas.ExtensionSet
601
+
602
+ static name: string
603
+ static $gtype: GObject.GType<ExtensionSet>
604
+
605
+ // Constructors of Peas-2.Peas.ExtensionSet
606
+
607
+ constructor(config?: ExtensionSet.ConstructorProperties)
608
+ /**
609
+ * Create a new #PeasExtensionSet for the `exten_type` extension type.
610
+ *
611
+ * If `engine` is %NULL, then the default engine will be used.
612
+ *
613
+ * See [ctor`ExtensionSet`.new] for more information.
614
+ * @constructor
615
+ * @param engine A #PeasEngine, or %NULL.
616
+ * @param exten_type the extension #GType.
617
+ * @param prop_names an array of property names.
618
+ * @param prop_values an array of property values.
619
+ * @returns a new instance of #PeasExtensionSet.
620
+ */
621
+ constructor(engine: Engine | null, exten_type: GObject.GType, prop_names: string[], prop_values: any[])
622
+ /**
623
+ * Create a new #PeasExtensionSet for the `exten_type` extension type.
624
+ *
625
+ * If `engine` is %NULL, then the default engine will be used.
626
+ *
627
+ * See [ctor`ExtensionSet`.new] for more information.
628
+ * @constructor
629
+ * @param engine A #PeasEngine, or %NULL.
630
+ * @param exten_type the extension #GType.
631
+ * @param prop_names an array of property names.
632
+ * @param prop_values an array of property values.
633
+ * @returns a new instance of #PeasExtensionSet.
634
+ */
635
+ static new(engine: Engine | null, exten_type: GObject.GType, prop_names: string[], prop_values: any[]): ExtensionSet
636
+ _init(config?: ExtensionSet.ConstructorProperties): void
637
+ }
638
+
639
+ module ObjectModule {
640
+
641
+ // Constructor properties interface
642
+
643
+ interface ConstructorProperties extends GObject.TypePlugin.ConstructorProperties, GObject.TypeModule.ConstructorProperties {
644
+
645
+ // Own constructor properties of Peas-2.Peas.ObjectModule
646
+
647
+ /**
648
+ * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
649
+ */
650
+ local_linkage?: boolean | null
651
+ module_name?: string | null
652
+ path?: string | null
653
+ resident?: boolean | null
654
+ symbol?: string | null
655
+ }
656
+
657
+ }
658
+
659
+ interface ObjectModule extends GObject.TypePlugin {
660
+
661
+ // Own properties of Peas-2.Peas.ObjectModule
662
+
663
+ /**
664
+ * Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.
665
+ */
666
+ readonly local_linkage: boolean
667
+ readonly module_name: string | null
668
+ readonly path: string | null
669
+ readonly resident: boolean
670
+ readonly symbol: string | null
671
+
672
+ // Own fields of Peas-2.Peas.ObjectModule
673
+
674
+ parent_instance: GObject.TypeModule & GObject.Object
675
+
676
+ // Owm methods of Peas-2.Peas.ObjectModule
677
+
678
+ /**
679
+ * Register an implementation for an extension type through a factory
680
+ * function `factory_func` which will instantiate the extension when
681
+ * requested.
682
+ *
683
+ * This method is primarily meant to be used by native bindings (like gtkmm),
684
+ * creating native types which cannot be instantiated correctly using
685
+ * [ctor`GObject`.Object.new]. For other uses, you will usually prefer relying on
686
+ * peas_object_module_register_extension_type().
687
+ * @param exten_type The #GType of the extension you implement.
688
+ * @param factory_func The #PeasFactoryFunc that will create the `exten_type` instance when requested.
689
+ */
690
+ register_extension_factory(exten_type: GObject.GType, factory_func: FactoryFunc): void
691
+ /**
692
+ * Register `impl_type` as an extension which implements `extension_type`.
693
+ * @param exten_type The #GType of the extension you implement.
694
+ * @param impl_type The #GType of your implementation of `exten_type`.
695
+ */
696
+ register_extension_type(exten_type: GObject.GType, impl_type: GObject.GType): void
697
+
698
+ // Conflicting methods
699
+
700
+ /**
701
+ * Calls the `use_plugin` function from the #GTypePluginClass of
702
+ * `plugin`. There should be no need to use this function outside of
703
+ * the GObject type system itself.
704
+ */
705
+ use(): void
706
+ /**
707
+ * Increases the use count of a #GTypeModule by one. If the
708
+ * use count was zero before, the plugin will be loaded.
709
+ * If loading the plugin fails, the use count is reset to
710
+ * its prior value.
711
+ * @returns %FALSE if the plugin needed to be loaded and loading the plugin failed.
712
+ */
713
+ use(): boolean
714
+
715
+ // Overloads of use
716
+
717
+ /**
718
+ * Calls the `use_plugin` function from the #GTypePluginClass of
719
+ * `plugin`. There should be no need to use this function outside of
720
+ * the GObject type system itself.
721
+ */
722
+ use(): void
723
+
724
+ // Class property signals of Peas-2.Peas.ObjectModule
725
+
726
+ connect(sigName: "notify::local-linkage", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
727
+ connect_after(sigName: "notify::local-linkage", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
728
+ emit(sigName: "notify::local-linkage", ...args: any[]): void
729
+ connect(sigName: "notify::module-name", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
730
+ connect_after(sigName: "notify::module-name", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
731
+ emit(sigName: "notify::module-name", ...args: any[]): void
732
+ connect(sigName: "notify::path", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
733
+ connect_after(sigName: "notify::path", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
734
+ emit(sigName: "notify::path", ...args: any[]): void
735
+ connect(sigName: "notify::resident", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
736
+ connect_after(sigName: "notify::resident", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
737
+ emit(sigName: "notify::resident", ...args: any[]): void
738
+ connect(sigName: "notify::symbol", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
739
+ connect_after(sigName: "notify::symbol", callback: (($obj: ObjectModule, pspec: GObject.ParamSpec) => void)): number
740
+ emit(sigName: "notify::symbol", ...args: any[]): void
741
+ connect(sigName: string, callback: (...args: any[]) => void): number
742
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
743
+ emit(sigName: string, ...args: any[]): void
744
+ disconnect(id: number): void
745
+ }
746
+
747
+ /**
748
+ * Type module which allows extension registration.
749
+ *
750
+ * #PeasObjectModule is a subclass of [class`GObject`.TypeModule] which allows
751
+ * registration of extensions. It will be used by C extensions implementors to
752
+ * register extension implementations from within the peas_register_types module
753
+ * function.
754
+ * @class
755
+ */
756
+ class ObjectModule extends GObject.TypeModule {
757
+
758
+ // Own properties of Peas-2.Peas.ObjectModule
759
+
760
+ static name: string
761
+ static $gtype: GObject.GType<ObjectModule>
762
+
763
+ // Constructors of Peas-2.Peas.ObjectModule
764
+
765
+ constructor(config?: ObjectModule.ConstructorProperties)
766
+ _init(config?: ObjectModule.ConstructorProperties): void
767
+ }
768
+
769
+ module PluginInfo {
770
+
771
+ // Constructor properties interface
772
+
773
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
774
+ }
775
+
776
+ }
777
+
778
+ interface PluginInfo {
779
+
780
+ // Own properties of Peas-2.Peas.PluginInfo
781
+
782
+ readonly authors: string[]
783
+ readonly builtin: boolean
784
+ readonly copyright: string | null
785
+ readonly dependencies: string[]
786
+ readonly description: string | null
787
+ readonly help_uri: string | null
788
+ readonly hidden: boolean
789
+ readonly icon_name: string | null
790
+ readonly loaded: boolean
791
+ readonly module_dir: string | null
792
+ readonly module_name: string | null
793
+ readonly name: string | null
794
+ readonly version: string | null
795
+ readonly website: string | null
796
+
797
+ // Owm methods of Peas-2.Peas.PluginInfo
798
+
799
+ /**
800
+ * Gets a %NULL-terminated array of strings with the authors of the plugin.
801
+ *
802
+ * The relevant key in the plugin info file is "Authors".
803
+ * @returns the plugin's author list.
804
+ */
805
+ get_authors(): string[]
806
+ /**
807
+ * Gets the copyright of the plugin.
808
+ *
809
+ * The relevant key in the plugin info file is "Copyright".
810
+ * @returns the plugin's copyright information.
811
+ */
812
+ get_copyright(): string | null
813
+ /**
814
+ * Gets the data dir of the plugin.
815
+ *
816
+ * The module data directory is the directory where a plugin should find its
817
+ * runtime data. This is not a value read from the [struct`GLib`.KeyFile], but
818
+ * rather a value provided by the [class`Engine]`, depending on where the plugin
819
+ * file was found.
820
+ * @returns the plugin's data dir.
821
+ */
822
+ get_data_dir(): string | null
823
+ /**
824
+ * Gets the dependencies of the plugin.
825
+ *
826
+ * The [class`Engine]` will always ensure that the dependencies of a plugin are
827
+ * loaded when the said plugin is loaded. It means that dependencies are
828
+ * loaded before the plugin, and unloaded after it. Circular dependencies of
829
+ * plugins lead to undefined loading order.
830
+ *
831
+ * The relevant key in the plugin info file is "Depends".
832
+ * @returns the plugin's dependencies.
833
+ */
834
+ get_dependencies(): string[]
835
+ /**
836
+ * Gets the description of the plugin.
837
+ *
838
+ * The description of the plugin should be a string presenting the purpose of
839
+ * the plugin. It will typically be presented in a plugin's about box.
840
+ *
841
+ * The relevant key in the plugin info file is "Description".
842
+ * @returns the plugin's description.
843
+ */
844
+ get_description(): string | null
845
+ /**
846
+ * Gets external data specified for the plugin.
847
+ *
848
+ * External data is specified in the plugin info file prefixed with X-. For
849
+ * example, if a key/value pair `X-Peas=1` is specified in the key file, you
850
+ * can use "Peas" for `key` to retrieve the value "1".
851
+ *
852
+ * Note: that you can omit the X- prefix when retrieving the value,
853
+ * but not when specifying the value in the file.
854
+ * @param key The key to lookup.
855
+ * @returns the external data, or %NULL if the external data could not be found.
856
+ */
857
+ get_external_data(key: string | null): string | null
858
+ /**
859
+ * Gets the help URI of the plugin.
860
+ *
861
+ * The Help URI of a plugin will typically be presented by the plugin manager
862
+ * as a "Help" button linking to the URI. It can either be a HTTP URL on some
863
+ * website or a ghelp: URI if a Gnome help page is available for the plugin.
864
+ *
865
+ * The relevant key in the plugin info file is "Help". Other platform-specific
866
+ * keys exist for platform-specific help files. Those are "Help-GNOME",
867
+ * "Help-Windows" and "Help-MacOS-X".
868
+ * @returns the plugin's help URI.
869
+ */
870
+ get_help_uri(): string | null
871
+ /**
872
+ * Gets the icon name of the plugin.
873
+ *
874
+ * The icon of the plugin will be presented in the plugin manager UI. If no
875
+ * icon is specified, the default green puzzle icon will be used.
876
+ *
877
+ * The relevant key in the plugin info file is "Icon".
878
+ * @returns the plugin's icon name.
879
+ */
880
+ get_icon_name(): string | null
881
+ /**
882
+ * Gets the module directory.
883
+ *
884
+ * The module directory is the directory where the plugin file was found. This
885
+ * is not a value from the [struct`GLib`.KeyFile], but rather a value provided by the
886
+ * [class`Engine]`.
887
+ * @returns the module directory.
888
+ */
889
+ get_module_dir(): string | null
890
+ /**
891
+ * Gets the module name.
892
+ *
893
+ * The module name will be used to find the actual plugin. The way this value
894
+ * will be used depends on the loader (i.e. on the language) of the plugin.
895
+ * This value is also used to uniquely identify a particular plugin.
896
+ *
897
+ * The relevant key in the plugin info file is "Module".
898
+ * @returns the module name.
899
+ */
900
+ get_module_name(): string | null
901
+ /**
902
+ * Gets the name of the plugin.
903
+ *
904
+ * The name of a plugin should be a nice short string to be presented in UIs.
905
+ *
906
+ * The relevant key in the plugin info file is "Name".
907
+ * @returns the plugin's name.
908
+ */
909
+ get_name(): string | null
910
+ /**
911
+ * Creates a new #GResource for the given `filename`
912
+ * located in the module directory. If `filename` is %NULL
913
+ * then "${module_name}.gresource" will be loaded.
914
+ * @param filename The filename of the resource, or %NULL.
915
+ * @returns a new #GResource, or %NULL.
916
+ */
917
+ get_resource(filename: string | null): Gio.Resource
918
+ /**
919
+ * Creates a new [class`Gio`.Settings] for the given `schema_id` and if
920
+ * gschemas.compiled is not in the module directory an attempt
921
+ * will be made to create it.
922
+ * @param schema_id The schema id.
923
+ * @returns a new #GSettings.
924
+ */
925
+ get_settings(schema_id: string | null): Gio.Settings | null
926
+ /**
927
+ * Gets the version of the plugin.
928
+ *
929
+ * The relevant key in the plugin info file is "Version".
930
+ * @returns the plugin's version.
931
+ */
932
+ get_version(): string | null
933
+ /**
934
+ * Gets the website of the plugin.
935
+ *
936
+ * The relevant key in the plugin info file is "Website".
937
+ * @returns the plugin's associated website.
938
+ */
939
+ get_website(): string | null
940
+ /**
941
+ * Check if the plugin depends on another plugin.
942
+ * @param module_name The name of the plugin to check.
943
+ * @returns whether the plugin depends on the plugin @module_name.
944
+ */
945
+ has_dependency(module_name: string | null): boolean
946
+ /**
947
+ * Check if the plugin is available.
948
+ *
949
+ * A plugin is marked as not available when there is no loader available to
950
+ * load it, or when there has been an error when trying to load it previously.
951
+ * If not available then `error` will be set.
952
+ * @returns %TRUE if the plugin is available.
953
+ */
954
+ is_available(): boolean
955
+ /**
956
+ * Check if the plugin is a builtin plugin.
957
+ *
958
+ * A builtin plugin is a plugin which cannot be enabled or disabled by the user
959
+ * through a plugin manager (like
960
+ * [PeasGtkPluginManager](https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-gtk-1.0/class.PluginManager.html)).
961
+ * Loading or unloading such plugins is the responsibility of the application
962
+ * alone. Most applications will usually load those plugins immediately after
963
+ * the initialization of the #PeasEngine.
964
+ *
965
+ * The relevant key in the plugin info file is "Builtin".
966
+ * @returns %TRUE if the plugin is a builtin plugin, %FALSE if not.
967
+ */
968
+ is_builtin(): boolean
969
+ /**
970
+ * Check if the plugin is a hidden plugin.
971
+ *
972
+ * A hidden plugin is a plugin which cannot be seen by a
973
+ * user through a plugin manager (like
974
+ * [PeasGtkPluginManager](https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-gtk-1.0/class.PluginManager.html)).
975
+ * Loading and
976
+ * unloading such plugins is the responsibility of the application alone or
977
+ * through plugins that depend on them.
978
+ *
979
+ * The relevant key in the plugin info file is "Hidden".
980
+ * @returns %TRUE if the plugin is a hidden plugin, %FALSE if not.
981
+ */
982
+ is_hidden(): boolean
983
+ /**
984
+ * Check if the plugin is loaded.
985
+ * @returns %TRUE if the plugin is loaded.
986
+ */
987
+ is_loaded(): boolean
988
+ /**
989
+ * Loads the resource using peas_plugin_info_get_resource() and
990
+ * registers it. The resource's lifetime will be automatically
991
+ * handled by `info`.
992
+ *
993
+ * See peas_plugin_info_get_resource() for more information.
994
+ * @param filename The filename of the resource, or %NULL.
995
+ */
996
+ load_resource(filename: string | null): void
997
+
998
+ // Class property signals of Peas-2.Peas.PluginInfo
999
+
1000
+ connect(sigName: "notify::authors", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1001
+ connect_after(sigName: "notify::authors", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1002
+ emit(sigName: "notify::authors", ...args: any[]): void
1003
+ connect(sigName: "notify::builtin", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1004
+ connect_after(sigName: "notify::builtin", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1005
+ emit(sigName: "notify::builtin", ...args: any[]): void
1006
+ connect(sigName: "notify::copyright", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1007
+ connect_after(sigName: "notify::copyright", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1008
+ emit(sigName: "notify::copyright", ...args: any[]): void
1009
+ connect(sigName: "notify::dependencies", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1010
+ connect_after(sigName: "notify::dependencies", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1011
+ emit(sigName: "notify::dependencies", ...args: any[]): void
1012
+ connect(sigName: "notify::description", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1013
+ connect_after(sigName: "notify::description", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1014
+ emit(sigName: "notify::description", ...args: any[]): void
1015
+ connect(sigName: "notify::help-uri", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1016
+ connect_after(sigName: "notify::help-uri", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1017
+ emit(sigName: "notify::help-uri", ...args: any[]): void
1018
+ connect(sigName: "notify::hidden", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1019
+ connect_after(sigName: "notify::hidden", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1020
+ emit(sigName: "notify::hidden", ...args: any[]): void
1021
+ connect(sigName: "notify::icon-name", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1022
+ connect_after(sigName: "notify::icon-name", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1023
+ emit(sigName: "notify::icon-name", ...args: any[]): void
1024
+ connect(sigName: "notify::loaded", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1025
+ connect_after(sigName: "notify::loaded", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1026
+ emit(sigName: "notify::loaded", ...args: any[]): void
1027
+ connect(sigName: "notify::module-dir", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1028
+ connect_after(sigName: "notify::module-dir", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1029
+ emit(sigName: "notify::module-dir", ...args: any[]): void
1030
+ connect(sigName: "notify::module-name", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1031
+ connect_after(sigName: "notify::module-name", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1032
+ emit(sigName: "notify::module-name", ...args: any[]): void
1033
+ connect(sigName: "notify::name", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1034
+ connect_after(sigName: "notify::name", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1035
+ emit(sigName: "notify::name", ...args: any[]): void
1036
+ connect(sigName: "notify::version", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1037
+ connect_after(sigName: "notify::version", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1038
+ emit(sigName: "notify::version", ...args: any[]): void
1039
+ connect(sigName: "notify::website", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1040
+ connect_after(sigName: "notify::website", callback: (($obj: PluginInfo, pspec: GObject.ParamSpec) => void)): number
1041
+ emit(sigName: "notify::website", ...args: any[]): void
1042
+ connect(sigName: string, callback: (...args: any[]) => void): number
1043
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1044
+ emit(sigName: string, ...args: any[]): void
1045
+ disconnect(id: number): void
1046
+ }
1047
+
1048
+ /**
1049
+ * A #PeasPluginInfo contains all the information available about a plugin.
1050
+ *
1051
+ * All this information comes from the related plugin info file, whose file
1052
+ * extension is ".plugin". Here is an example of such a plugin file, in the
1053
+ * [struct`GLib`.KeyFile] format:
1054
+ *
1055
+ * ```toml
1056
+ * [Plugin]
1057
+ * Module=helloworld
1058
+ * Depends=foo;bar;baz
1059
+ * Loader=python
1060
+ * Name=Hello World
1061
+ * Description=Displays "Hello World"
1062
+ * Authors=Steve Frécinaux &lt;code`istique`.net&gt;
1063
+ * Copyright=Copyright © 2009-10 Steve Frécinaux
1064
+ * Website=https://wiki.gnome.org/Projects/Libpeas
1065
+ * Help=http://library.gnome.org/devel/libpeas/stable/
1066
+ * Hidden=false
1067
+ * ```
1068
+ * @class
1069
+ */
1070
+ class PluginInfo extends GObject.Object {
1071
+
1072
+ // Own properties of Peas-2.Peas.PluginInfo
1073
+
1074
+ static name: string
1075
+ static $gtype: GObject.GType<PluginInfo>
1076
+
1077
+ // Constructors of Peas-2.Peas.PluginInfo
1078
+
1079
+ constructor(config?: PluginInfo.ConstructorProperties)
1080
+ _init(config?: PluginInfo.ConstructorProperties): void
1081
+ static error_quark(): GLib.Quark
1082
+ }
1083
+
1084
+ interface EngineClass {
1085
+
1086
+ // Own fields of Peas-2.Peas.EngineClass
1087
+
1088
+ parent_class: GObject.ObjectClass
1089
+ }
1090
+
1091
+ abstract class EngineClass {
1092
+
1093
+ // Own properties of Peas-2.Peas.EngineClass
1094
+
1095
+ static name: string
1096
+ }
1097
+
1098
+ interface ExtensionBaseClass {
1099
+
1100
+ // Own fields of Peas-2.Peas.ExtensionBaseClass
1101
+
1102
+ /**
1103
+ * The parent class.
1104
+ * @field
1105
+ */
1106
+ parent_class: GObject.ObjectClass
1107
+ }
1108
+
1109
+ /**
1110
+ * The class structure of #PeasExtensionBase.
1111
+ * @record
1112
+ */
1113
+ abstract class ExtensionBaseClass {
1114
+
1115
+ // Own properties of Peas-2.Peas.ExtensionBaseClass
1116
+
1117
+ static name: string
1118
+ }
1119
+
1120
+ interface ExtensionSetClass {
1121
+
1122
+ // Own fields of Peas-2.Peas.ExtensionSetClass
1123
+
1124
+ parent_class: GObject.ObjectClass
1125
+ }
1126
+
1127
+ abstract class ExtensionSetClass {
1128
+
1129
+ // Own properties of Peas-2.Peas.ExtensionSetClass
1130
+
1131
+ static name: string
1132
+ }
1133
+
1134
+ interface ObjectModuleClass {
1135
+
1136
+ // Own fields of Peas-2.Peas.ObjectModuleClass
1137
+
1138
+ /**
1139
+ * The parent class.
1140
+ * @field
1141
+ */
1142
+ parent_class: GObject.TypeModuleClass
1143
+ }
1144
+
1145
+ /**
1146
+ * The class structure for #PeasObjectModule.
1147
+ * @record
1148
+ */
1149
+ abstract class ObjectModuleClass {
1150
+
1151
+ // Own properties of Peas-2.Peas.ObjectModuleClass
1152
+
1153
+ static name: string
1154
+ }
1155
+
1156
+ interface PluginInfoClass {
1157
+
1158
+ // Own fields of Peas-2.Peas.PluginInfoClass
1159
+
1160
+ parent_class: GObject.ObjectClass
1161
+ }
1162
+
1163
+ abstract class PluginInfoClass {
1164
+
1165
+ // Own properties of Peas-2.Peas.PluginInfoClass
1166
+
1167
+ static name: string
1168
+ }
1169
+
1170
+ /**
1171
+ * Name of the imported GIR library
1172
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1173
+ */
1174
+ const __name__: string
1175
+ /**
1176
+ * Version of the imported GIR library
1177
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1178
+ */
1179
+ const __version__: string
1180
+ }
1181
+
1182
+ export default Peas;
1183
+ // END