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