@girs/panelapplet-4.0 4.0.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.
@@ -0,0 +1,684 @@
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
+ * PanelApplet-4.0
10
+ */
11
+
12
+ import type xlib from '@girs/xlib-2.0';
13
+ import type cairo from '@girs/cairo-1.0';
14
+ import type Pango from '@girs/pango-1.0';
15
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
16
+ import type freetype2 from '@girs/freetype2-2.0';
17
+ import type GObject from '@girs/gobject-2.0';
18
+ import type GLib from '@girs/glib-2.0';
19
+ import type Gio from '@girs/gio-2.0';
20
+ import type Gtk from '@girs/gtk-3.0';
21
+ import type Gdk from '@girs/gdk-3.0';
22
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
23
+ import type GModule from '@girs/gmodule-2.0';
24
+ import type Atk from '@girs/atk-1.0';
25
+ import type GConf from '@girs/gconf-2.0';
26
+
27
+ export namespace PanelApplet {
28
+
29
+ /**
30
+ * Type defining the orientation of the applet. The values may seem backward
31
+ * (e.g. %PANEL_APPLET_ORIENT_RIGHT means the panel is on the left side), but
32
+ * this represents the direction the applet is oriented to.
33
+ */
34
+ enum AppletOrient {
35
+ UP,
36
+ DOWN,
37
+ LEFT,
38
+ RIGHT,
39
+ }
40
+ /**
41
+ * Flags to be used with panel_applet_get_flags()/panel_applet_set_flags(), to
42
+ * indicate to the panel a specific behavior requested by the #PanelApplet.
43
+ * @bitfield
44
+ */
45
+ enum AppletFlags {
46
+ FLAGS_NONE,
47
+ EXPAND_MAJOR,
48
+ EXPAND_MINOR,
49
+ HAS_HANDLE,
50
+ }
51
+ const APPLET_FLAGS_ALL: number
52
+ /**
53
+ * The type used for callbacks after. The callback will usually check that `iid`
54
+ * is a valid applet type identifier for the applet factory, and will then fill
55
+ * `applet` with widgets, connect to signals, etc.
56
+ * @callback
57
+ * @param applet a newly-created #PanelApplet.
58
+ * @param iid identifier of the requested applet type.
59
+ * @returns %TRUE if @iid is a valid applet type identifier for the applet factory and if the creation of @applet was successfully completed, %FALSE otherwise.
60
+ */
61
+ interface AppletFactoryCallback {
62
+ (applet: Applet, iid: string | null): boolean
63
+ }
64
+ module Applet {
65
+
66
+ // Signal callback interfaces
67
+
68
+ /**
69
+ * Signal callback interface for `change-background`
70
+ */
71
+ interface ChangeBackgroundSignalCallback {
72
+ ($obj: Applet, pattern: cairo.Pattern): void
73
+ }
74
+
75
+ /**
76
+ * Signal callback interface for `change-orient`
77
+ */
78
+ interface ChangeOrientSignalCallback {
79
+ ($obj: Applet, orient: number): void
80
+ }
81
+
82
+ /**
83
+ * Signal callback interface for `change-size`
84
+ */
85
+ interface ChangeSizeSignalCallback {
86
+ ($obj: Applet, size: number): void
87
+ }
88
+
89
+
90
+
91
+ // Constructor properties interface
92
+
93
+ interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.EventBox.ConstructorProperties {
94
+
95
+ // Own constructor properties of PanelApplet-4.0.PanelApplet.Applet
96
+
97
+ /**
98
+ * The #PanelAppletFlags of the applet.
99
+ */
100
+ flags?: number | null
101
+ /**
102
+ * Whether the panel the applet is on is locked down.
103
+ */
104
+ locked_down?: boolean | null
105
+ /**
106
+ * The #PanelAppletOrient of the applet.
107
+ *
108
+ * This property gets set when the applet gets embedded, and can change
109
+ * when the panel position changes.
110
+ */
111
+ orient?: number | null
112
+ /**
113
+ * The GConf path to the per-instance settings of the applet.
114
+ *
115
+ * This property gets set when the applet gets embedded.
116
+ */
117
+ prefs_key?: string | null
118
+ /**
119
+ * The GSettings path to the per-instance settings of the applet.
120
+ *
121
+ * This property gets set when the applet gets embedded.
122
+ */
123
+ settings_path?: string | null
124
+ /**
125
+ * The size of the panel the applet is on. For a horizontal panel, the
126
+ * size if the height of the panel; for a vertical panel, the size is
127
+ * the width of the panel.
128
+ *
129
+ * This property gets set when the applet gets embedded, and can change
130
+ * when the panel size changes.
131
+ */
132
+ size?: number | null
133
+ /**
134
+ * The size hints set for the applet. See panel_applet_set_size_hints().
135
+ */
136
+ size_hints?: any | null
137
+ }
138
+
139
+ }
140
+
141
+ interface Applet extends Atk.ImplementorIface, Gtk.Buildable {
142
+
143
+ // Own properties of PanelApplet-4.0.PanelApplet.Applet
144
+
145
+ /**
146
+ * The #PanelAppletFlags of the applet.
147
+ */
148
+ flags: number
149
+ /**
150
+ * Whether the panel the applet is on is locked down.
151
+ */
152
+ locked_down: boolean
153
+ /**
154
+ * The #PanelAppletOrient of the applet.
155
+ *
156
+ * This property gets set when the applet gets embedded, and can change
157
+ * when the panel position changes.
158
+ */
159
+ orient: number
160
+ /**
161
+ * The GConf path to the per-instance settings of the applet.
162
+ *
163
+ * This property gets set when the applet gets embedded.
164
+ */
165
+ prefs_key: string
166
+ /**
167
+ * The GSettings path to the per-instance settings of the applet.
168
+ *
169
+ * This property gets set when the applet gets embedded.
170
+ */
171
+ settings_path: string
172
+ /**
173
+ * The size of the panel the applet is on. For a horizontal panel, the
174
+ * size if the height of the panel; for a vertical panel, the size is
175
+ * the width of the panel.
176
+ *
177
+ * This property gets set when the applet gets embedded, and can change
178
+ * when the panel size changes.
179
+ */
180
+ size: number
181
+ /**
182
+ * The size hints set for the applet. See panel_applet_set_size_hints().
183
+ */
184
+ size_hints: any
185
+
186
+ // Own fields of PanelApplet-4.0.PanelApplet.Applet
187
+
188
+ event_box: Gtk.EventBox
189
+
190
+ // Owm methods of PanelApplet-4.0.PanelApplet.Applet
191
+
192
+ /**
193
+ * Associates the per-instance GConf directory of `applet` to the schemas
194
+ * defined in `schema_dir`. This must be called if the applet will save
195
+ * per-instance settings, to ensure that each key in the per-instance GConf
196
+ * directory has a defined type, sane default and documentation.
197
+ * @param schema_dir a GConf path of a schema directory.
198
+ */
199
+ add_preferences(schema_dir: string | null): void
200
+ /**
201
+ * Convenience wrapper around gconf_client_get_bool() to get the value of `key`
202
+ * in the per-instance GConf directory of `applet`.
203
+ * @param key a GConf key name.
204
+ * @returns the value of @key.
205
+ */
206
+ gconf_get_bool(key: string | null): boolean
207
+ /**
208
+ * Convenience wrapper around gconf_client_get_float() to get the value of `key`
209
+ * in the per-instance GConf directory of `applet`.
210
+ * @param key a GConf key name.
211
+ * @returns the value of @key.
212
+ */
213
+ gconf_get_float(key: string | null): number
214
+ /**
215
+ * Returns the full GConf path of `key,` in the per-instance GConf directory of
216
+ * `applet`. The string should be freed by the caller.
217
+ * @param key a GConf key name.
218
+ */
219
+ gconf_get_full_key(key: string | null): string | null
220
+ /**
221
+ * Convenience wrapper around gconf_client_get_int() to get the value of `key`
222
+ * in the per-instance GConf directory of `applet`.
223
+ * @param key a GConf key name.
224
+ * @returns the value of @key.
225
+ */
226
+ gconf_get_int(key: string | null): number
227
+ /**
228
+ * Convenience wrapper around gconf_client_get_string() to get the value of `key`
229
+ * in the per-instance GConf directory of `applet`.
230
+ * @param key a GConf key name.
231
+ * @returns the value of @key. The string should be freed by the caller.
232
+ */
233
+ gconf_get_string(key: string | null): string | null
234
+ /**
235
+ * Convenience wrapper around gconf_client_get_value() to get the value of `key`
236
+ * in the per-instance GConf directory of `applet`.
237
+ * @param key a GConf key name.
238
+ * @returns the value of @key.
239
+ */
240
+ gconf_get_value(key: string | null): GConf.Value
241
+ /**
242
+ * Convenience wrapper around gconf_client_set_bool() to update `key` in the
243
+ * per-instance GConf directory of `applet`.
244
+ * @param key a GConf key name.
245
+ * @param the_bool new value for `key`.
246
+ */
247
+ gconf_set_bool(key: string | null, the_bool: boolean): void
248
+ /**
249
+ * Convenience wrapper around gconf_client_set_float() to update `key` in the
250
+ * per-instance GConf directory of `applet`.
251
+ * @param key a GConf key name.
252
+ * @param the_float new value for `key`.
253
+ */
254
+ gconf_set_float(key: string | null, the_float: number): void
255
+ /**
256
+ * Convenience wrapper around gconf_client_set_int() to update `key` in the
257
+ * per-instance GConf directory of `applet`.
258
+ * @param key a GConf key name.
259
+ * @param the_int new value for `key`.
260
+ */
261
+ gconf_set_int(key: string | null, the_int: number): void
262
+ /**
263
+ * Convenience wrapper around gconf_client_set_string() to update `key` in the
264
+ * per-instance GConf directory of `applet`.
265
+ * @param key a GConf key name.
266
+ * @param the_string new value for `key`.
267
+ */
268
+ gconf_set_string(key: string | null, the_string: string | null): void
269
+ /**
270
+ * Convenience wrapper around gconf_client_set_value() to update `key` in the
271
+ * per-instance GConf directory of `applet`.
272
+ * @param key a GConf key name.
273
+ * @param value new value for `key`.
274
+ */
275
+ gconf_set_value(key: string | null, value: GConf.Value): void
276
+ /**
277
+ * Gets the background pattern for `applet,` or %NULL if there is none.
278
+ * @returns a new #cairo_pattern_t to use as background for @applet.
279
+ */
280
+ get_background(): cairo.Pattern
281
+ /**
282
+ * Gets the #PanelAppletFlags of `applet`.
283
+ * @returns the #PanelAppletFlags of @applet.
284
+ */
285
+ get_flags(): AppletFlags
286
+ /**
287
+ * Gets whether the panel `applet` is on is locked down or not. A locked down
288
+ * applet should not allow any change to its configuration.
289
+ * @returns %TRUE if the panel @applet is on is locked down, %FALSE otherwise.
290
+ */
291
+ get_locked_down(): boolean
292
+ /**
293
+ * Gets the #PanelAppletOrient of `applet`.
294
+ * @returns the #PanelAppletOrient of @applet.
295
+ */
296
+ get_orient(): AppletOrient
297
+ /**
298
+ * Gets the GConf path to the per-instance settings of `applet`.
299
+ * @returns a copy of the GConf path to the per-instance settings of @applet.
300
+ */
301
+ get_preferences_key(): string | null
302
+ /**
303
+ * Gets the size of the panel `applet` is on. For a horizontal panel, the
304
+ * size if the height of the panel; for a vertical panel, the size is the width
305
+ * of the panel.
306
+ * @returns the size of the panel @applet is on.
307
+ */
308
+ get_size(): number
309
+ /**
310
+ * Requests focus for `applet`. There is no guarantee that `applet` will
311
+ * successfully get focus after that call.
312
+ * @param timestamp the timestamp of the user interaction (typically a button or key press event) which triggered this call.
313
+ */
314
+ request_focus(timestamp: number): void
315
+ /**
316
+ * Configure #PanelApplet to automatically draw the background of the applet on
317
+ * `widget`. It is generally enough to call this function with `applet` as
318
+ * `widget`.
319
+ * @param widget a #GtkWidget.
320
+ */
321
+ set_background_widget(widget: Gtk.Widget): void
322
+ /**
323
+ * Sets the #PanelAppletFlags of `applet`. Most of the time, at least
324
+ * %PANEL_APPLET_EXPAND_MINOR should be used.
325
+ * @param flags #PanelAppletFlags to use for `applet`.
326
+ */
327
+ set_flags(flags: AppletFlags): void
328
+ /**
329
+ * Give hints to the panel about sizes `applet` is comfortable with. This is
330
+ * generally useful for applets that can take a lot of space, in case the panel
331
+ * gets full and needs to restrict the size of some applets.
332
+ *
333
+ * `size_hints` should have an even number of sizes. It is an array of (max,
334
+ * min) pairs where min(i) > max(i + 1).
335
+ *
336
+ * `base_size` will be added to all sizes in `size_hints,` and is therefore a way
337
+ * to guarantee a minimum size to `applet`.
338
+ *
339
+ * The panel will try to allocate a size that is acceptable to `applet,` i.e. in
340
+ * one of the (`base_size` + max, `base_size` + min) ranges.
341
+ *
342
+ * %PANEL_APPLET_EXPAND_MAJOR must be set for `applet` to use size hints.
343
+ * @param size_hints array of sizes.
344
+ * @param n_elements length of `size_hints`.
345
+ * @param base_size base size of the applet.
346
+ */
347
+ set_size_hints(size_hints: number, n_elements: number, base_size: number): void
348
+ /**
349
+ * Sets up the context menu of `applet`. `xml` is a #GtkUIManager UI definition,
350
+ * describing how to display the menu items. `action_group` contains the
351
+ * various #GtkAction that are referenced in `xml`.
352
+ *
353
+ * See also the <link linkend="getting-started.context-menu">Context
354
+ * Menu</link> section.
355
+ * @param xml a menu XML string.
356
+ * @param action_group a #GtkActionGroup.
357
+ */
358
+ setup_menu(xml: string | null, action_group: Gtk.ActionGroup): void
359
+ /**
360
+ * Sets up the context menu of `applet`. `filename` is the path to a menu XML
361
+ * file, containing a #GtkUIManager UI definition that describes how to display
362
+ * the menu items. `action_group` contains the various #GtkAction that
363
+ * are referenced in `xml`.
364
+ *
365
+ * See also the <link linkend="getting-started.context-menu">Context
366
+ * Menu</link> section.
367
+ * @param filename path to a menu XML file.
368
+ * @param action_group a #GtkActionGroup.
369
+ */
370
+ setup_menu_from_file(filename: string | null, action_group: Gtk.ActionGroup): void
371
+ /**
372
+ * Sets up the context menu of `applet`. `filename` is a resource path to a menu
373
+ * XML file, containing a #GtkUIManager UI definition that describes how to
374
+ * display the menu items. `action_group` contains the various #GtkAction that
375
+ * are referenced in `xml`.
376
+ *
377
+ * See also the <link linkend="getting-started.context-menu">Context
378
+ * Menu</link> section.
379
+ * @param resource_path a resource path
380
+ * @param action_group a #GtkActionGroup.
381
+ */
382
+ setup_menu_from_resource(resource_path: string | null, action_group: Gtk.ActionGroup): void
383
+
384
+ // Conflicting methods
385
+
386
+ /**
387
+ * Emits a #GtkWidget::child-notify signal for the
388
+ * [child property][child-properties]
389
+ * `child_property` on the child.
390
+ *
391
+ * This is an analogue of g_object_notify() for child properties.
392
+ *
393
+ * Also see gtk_widget_child_notify().
394
+ * @param child the child widget
395
+ * @param child_property the name of a child property installed on the class of `container`
396
+ */
397
+ child_notify(child: Gtk.Widget, child_property: string | null): void
398
+
399
+ // Overloads of child_notify
400
+
401
+ /**
402
+ * Emits a #GtkWidget::child-notify signal for the
403
+ * [child property][child-properties] `child_property`
404
+ * on `widget`.
405
+ *
406
+ * This is the analogue of g_object_notify() for child properties.
407
+ *
408
+ * Also see gtk_container_child_notify().
409
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
410
+ */
411
+ child_notify(child_property: string | null): void
412
+ /**
413
+ * Emits a #GtkWidget::child-notify signal for the
414
+ * [child property][child-properties] `child_property`
415
+ * on `widget`.
416
+ *
417
+ * This is the analogue of g_object_notify() for child properties.
418
+ *
419
+ * Also see gtk_container_child_notify().
420
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
421
+ */
422
+ child_notify(child_property: string | null): void
423
+
424
+ // Own virtual methods of PanelApplet-4.0.PanelApplet.Applet
425
+
426
+ vfunc_change_background(pattern: cairo.Pattern): void
427
+ vfunc_change_orient(orient: AppletOrient): void
428
+ vfunc_change_size(size: number): void
429
+ vfunc_move_focus_out_of_applet(direction: Gtk.DirectionType): void
430
+
431
+ // Own signals of PanelApplet-4.0.PanelApplet.Applet
432
+
433
+ connect(sigName: "change-background", callback: Applet.ChangeBackgroundSignalCallback): number
434
+ connect_after(sigName: "change-background", callback: Applet.ChangeBackgroundSignalCallback): number
435
+ emit(sigName: "change-background", pattern: cairo.Pattern, ...args: any[]): void
436
+ connect(sigName: "change-orient", callback: Applet.ChangeOrientSignalCallback): number
437
+ connect_after(sigName: "change-orient", callback: Applet.ChangeOrientSignalCallback): number
438
+ emit(sigName: "change-orient", orient: number, ...args: any[]): void
439
+ connect(sigName: "change-size", callback: Applet.ChangeSizeSignalCallback): number
440
+ connect_after(sigName: "change-size", callback: Applet.ChangeSizeSignalCallback): number
441
+ emit(sigName: "change-size", size: number, ...args: any[]): void
442
+ connect(sigName: "move-focus-out-of-applet", callback: (...args: any[]) => void): number
443
+ connect_after(sigName: "move-focus-out-of-applet", callback: (...args: any[]) => void): number
444
+ emit(sigName: "move-focus-out-of-applet", direction: Gtk.DirectionType, ...args: any[]): void
445
+
446
+ // Class property signals of PanelApplet-4.0.PanelApplet.Applet
447
+
448
+ connect(sigName: "notify::flags", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
449
+ connect_after(sigName: "notify::flags", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
450
+ emit(sigName: "notify::flags", ...args: any[]): void
451
+ connect(sigName: "notify::locked-down", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
452
+ connect_after(sigName: "notify::locked-down", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
453
+ emit(sigName: "notify::locked-down", ...args: any[]): void
454
+ connect(sigName: "notify::orient", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
455
+ connect_after(sigName: "notify::orient", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
456
+ emit(sigName: "notify::orient", ...args: any[]): void
457
+ connect(sigName: "notify::prefs-key", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
458
+ connect_after(sigName: "notify::prefs-key", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
459
+ emit(sigName: "notify::prefs-key", ...args: any[]): void
460
+ connect(sigName: "notify::settings-path", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
461
+ connect_after(sigName: "notify::settings-path", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
462
+ emit(sigName: "notify::settings-path", ...args: any[]): void
463
+ connect(sigName: "notify::size", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
464
+ connect_after(sigName: "notify::size", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
465
+ emit(sigName: "notify::size", ...args: any[]): void
466
+ connect(sigName: "notify::size-hints", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
467
+ connect_after(sigName: "notify::size-hints", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
468
+ emit(sigName: "notify::size-hints", ...args: any[]): void
469
+ connect(sigName: "notify::above-child", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
470
+ connect_after(sigName: "notify::above-child", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
471
+ emit(sigName: "notify::above-child", ...args: any[]): void
472
+ connect(sigName: "notify::visible-window", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
473
+ connect_after(sigName: "notify::visible-window", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
474
+ emit(sigName: "notify::visible-window", ...args: any[]): void
475
+ connect(sigName: "notify::border-width", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
476
+ connect_after(sigName: "notify::border-width", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
477
+ emit(sigName: "notify::border-width", ...args: any[]): void
478
+ connect(sigName: "notify::child", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
479
+ connect_after(sigName: "notify::child", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
480
+ emit(sigName: "notify::child", ...args: any[]): void
481
+ connect(sigName: "notify::resize-mode", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
482
+ connect_after(sigName: "notify::resize-mode", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
483
+ emit(sigName: "notify::resize-mode", ...args: any[]): void
484
+ connect(sigName: "notify::app-paintable", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
485
+ connect_after(sigName: "notify::app-paintable", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
486
+ emit(sigName: "notify::app-paintable", ...args: any[]): void
487
+ connect(sigName: "notify::can-default", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
488
+ connect_after(sigName: "notify::can-default", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
489
+ emit(sigName: "notify::can-default", ...args: any[]): void
490
+ connect(sigName: "notify::can-focus", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
491
+ connect_after(sigName: "notify::can-focus", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
492
+ emit(sigName: "notify::can-focus", ...args: any[]): void
493
+ connect(sigName: "notify::composite-child", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
494
+ connect_after(sigName: "notify::composite-child", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
495
+ emit(sigName: "notify::composite-child", ...args: any[]): void
496
+ connect(sigName: "notify::double-buffered", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
497
+ connect_after(sigName: "notify::double-buffered", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
498
+ emit(sigName: "notify::double-buffered", ...args: any[]): void
499
+ connect(sigName: "notify::events", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
500
+ connect_after(sigName: "notify::events", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
501
+ emit(sigName: "notify::events", ...args: any[]): void
502
+ connect(sigName: "notify::expand", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
503
+ connect_after(sigName: "notify::expand", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
504
+ emit(sigName: "notify::expand", ...args: any[]): void
505
+ connect(sigName: "notify::focus-on-click", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
506
+ connect_after(sigName: "notify::focus-on-click", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
507
+ emit(sigName: "notify::focus-on-click", ...args: any[]): void
508
+ connect(sigName: "notify::halign", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
509
+ connect_after(sigName: "notify::halign", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
510
+ emit(sigName: "notify::halign", ...args: any[]): void
511
+ connect(sigName: "notify::has-default", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
512
+ connect_after(sigName: "notify::has-default", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
513
+ emit(sigName: "notify::has-default", ...args: any[]): void
514
+ connect(sigName: "notify::has-focus", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
515
+ connect_after(sigName: "notify::has-focus", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
516
+ emit(sigName: "notify::has-focus", ...args: any[]): void
517
+ connect(sigName: "notify::has-tooltip", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
518
+ connect_after(sigName: "notify::has-tooltip", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
519
+ emit(sigName: "notify::has-tooltip", ...args: any[]): void
520
+ connect(sigName: "notify::height-request", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
521
+ connect_after(sigName: "notify::height-request", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
522
+ emit(sigName: "notify::height-request", ...args: any[]): void
523
+ connect(sigName: "notify::hexpand", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
524
+ connect_after(sigName: "notify::hexpand", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
525
+ emit(sigName: "notify::hexpand", ...args: any[]): void
526
+ connect(sigName: "notify::hexpand-set", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
527
+ connect_after(sigName: "notify::hexpand-set", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
528
+ emit(sigName: "notify::hexpand-set", ...args: any[]): void
529
+ connect(sigName: "notify::is-focus", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
530
+ connect_after(sigName: "notify::is-focus", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
531
+ emit(sigName: "notify::is-focus", ...args: any[]): void
532
+ connect(sigName: "notify::margin", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
533
+ connect_after(sigName: "notify::margin", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
534
+ emit(sigName: "notify::margin", ...args: any[]): void
535
+ connect(sigName: "notify::margin-bottom", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
536
+ connect_after(sigName: "notify::margin-bottom", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
537
+ emit(sigName: "notify::margin-bottom", ...args: any[]): void
538
+ connect(sigName: "notify::margin-end", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
539
+ connect_after(sigName: "notify::margin-end", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
540
+ emit(sigName: "notify::margin-end", ...args: any[]): void
541
+ connect(sigName: "notify::margin-left", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
542
+ connect_after(sigName: "notify::margin-left", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
543
+ emit(sigName: "notify::margin-left", ...args: any[]): void
544
+ connect(sigName: "notify::margin-right", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
545
+ connect_after(sigName: "notify::margin-right", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
546
+ emit(sigName: "notify::margin-right", ...args: any[]): void
547
+ connect(sigName: "notify::margin-start", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
548
+ connect_after(sigName: "notify::margin-start", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
549
+ emit(sigName: "notify::margin-start", ...args: any[]): void
550
+ connect(sigName: "notify::margin-top", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
551
+ connect_after(sigName: "notify::margin-top", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
552
+ emit(sigName: "notify::margin-top", ...args: any[]): void
553
+ connect(sigName: "notify::name", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
554
+ connect_after(sigName: "notify::name", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
555
+ emit(sigName: "notify::name", ...args: any[]): void
556
+ connect(sigName: "notify::no-show-all", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
557
+ connect_after(sigName: "notify::no-show-all", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
558
+ emit(sigName: "notify::no-show-all", ...args: any[]): void
559
+ connect(sigName: "notify::opacity", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
560
+ connect_after(sigName: "notify::opacity", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
561
+ emit(sigName: "notify::opacity", ...args: any[]): void
562
+ connect(sigName: "notify::parent", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
563
+ connect_after(sigName: "notify::parent", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
564
+ emit(sigName: "notify::parent", ...args: any[]): void
565
+ connect(sigName: "notify::receives-default", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
566
+ connect_after(sigName: "notify::receives-default", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
567
+ emit(sigName: "notify::receives-default", ...args: any[]): void
568
+ connect(sigName: "notify::scale-factor", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
569
+ connect_after(sigName: "notify::scale-factor", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
570
+ emit(sigName: "notify::scale-factor", ...args: any[]): void
571
+ connect(sigName: "notify::sensitive", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
572
+ connect_after(sigName: "notify::sensitive", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
573
+ emit(sigName: "notify::sensitive", ...args: any[]): void
574
+ connect(sigName: "notify::style", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
575
+ connect_after(sigName: "notify::style", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
576
+ emit(sigName: "notify::style", ...args: any[]): void
577
+ connect(sigName: "notify::tooltip-markup", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
578
+ connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
579
+ emit(sigName: "notify::tooltip-markup", ...args: any[]): void
580
+ connect(sigName: "notify::tooltip-text", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
581
+ connect_after(sigName: "notify::tooltip-text", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
582
+ emit(sigName: "notify::tooltip-text", ...args: any[]): void
583
+ connect(sigName: "notify::valign", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
584
+ connect_after(sigName: "notify::valign", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
585
+ emit(sigName: "notify::valign", ...args: any[]): void
586
+ connect(sigName: "notify::vexpand", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
587
+ connect_after(sigName: "notify::vexpand", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
588
+ emit(sigName: "notify::vexpand", ...args: any[]): void
589
+ connect(sigName: "notify::vexpand-set", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
590
+ connect_after(sigName: "notify::vexpand-set", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
591
+ emit(sigName: "notify::vexpand-set", ...args: any[]): void
592
+ connect(sigName: "notify::visible", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
593
+ connect_after(sigName: "notify::visible", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
594
+ emit(sigName: "notify::visible", ...args: any[]): void
595
+ connect(sigName: "notify::width-request", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
596
+ connect_after(sigName: "notify::width-request", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
597
+ emit(sigName: "notify::width-request", ...args: any[]): void
598
+ connect(sigName: "notify::window", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
599
+ connect_after(sigName: "notify::window", callback: (($obj: Applet, pspec: GObject.ParamSpec) => void)): number
600
+ emit(sigName: "notify::window", ...args: any[]): void
601
+ connect(sigName: string, callback: (...args: any[]) => void): number
602
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
603
+ emit(sigName: string, ...args: any[]): void
604
+ disconnect(id: number): void
605
+ }
606
+
607
+ class Applet extends Gtk.EventBox {
608
+
609
+ // Own properties of PanelApplet-4.0.PanelApplet.Applet
610
+
611
+ static name: string
612
+ static $gtype: GObject.GType<Applet>
613
+
614
+ // Constructors of PanelApplet-4.0.PanelApplet.Applet
615
+
616
+ constructor(config?: Applet.ConstructorProperties)
617
+ _init(config?: Applet.ConstructorProperties): void
618
+ /**
619
+ * Creates the applet factory for `factory_id,` so that the factory can create
620
+ * instances of the applet types it is associated with.
621
+ *
622
+ * Applet instances created by the applet factory will use `applet_type` as
623
+ * GType. Unless you subclass #PanelApplet, you should use %PANEL_TYPE_APPLET
624
+ * as `applet_type`.
625
+ *
626
+ * On creation of the applet instances, `callback` is called to setup the
627
+ * applet. If `callback` returns %FALSE, the creation of the applet instance is
628
+ * cancelled.
629
+ *
630
+ * If using C, it is recommended to use #PANEL_APPLET_OUT_PROCESS_FACTORY
631
+ * instead as it will create a main() function for you.
632
+ *
633
+ * It can only be used once, and is incompatible with the use of
634
+ * %PANEL_APPLET_IN_PROCESS_FACTORY and %PANEL_APPLET_OUT_PROCESS_FACTORY.
635
+ * @param factory_id identifier of an applet factory.
636
+ * @param applet_type GType of the applet this factory creates.
637
+ * @param callback callback to be called when a new applet is created.
638
+ * @returns 0 on success, 1 if there is an error.
639
+ */
640
+ static factory_main(factory_id: string | null, applet_type: GObject.GType, callback: AppletFactoryCallback): number
641
+ }
642
+
643
+ interface AppletClass {
644
+
645
+ // Own fields of PanelApplet-4.0.PanelApplet.AppletClass
646
+
647
+ event_box_class: Gtk.EventBoxClass
648
+ change_orient: (applet: Applet, orient: AppletOrient) => void
649
+ change_size: (applet: Applet, size: number) => void
650
+ change_background: (applet: Applet, pattern: cairo.Pattern) => void
651
+ move_focus_out_of_applet: (frame: Applet, direction: Gtk.DirectionType) => void
652
+ }
653
+
654
+ abstract class AppletClass {
655
+
656
+ // Own properties of PanelApplet-4.0.PanelApplet.AppletClass
657
+
658
+ static name: string
659
+ }
660
+
661
+ interface AppletPrivate {
662
+ }
663
+
664
+ class AppletPrivate {
665
+
666
+ // Own properties of PanelApplet-4.0.PanelApplet.AppletPrivate
667
+
668
+ static name: string
669
+ }
670
+
671
+ /**
672
+ * Name of the imported GIR library
673
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
674
+ */
675
+ const __name__: string
676
+ /**
677
+ * Version of the imported GIR library
678
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
679
+ */
680
+ const __version__: string
681
+ }
682
+
683
+ export default PanelApplet;
684
+ // END