@girs/ayatanaappindicator-0.1 0.1.0-4.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+
2
+ # AyatanaAppIndicator-0.1
3
+
4
+ ![version](https://img.shields.io/npm/v/@girs/ayatanaappindicator-0.1)
5
+ ![downloads/week](https://img.shields.io/npm/dw/@girs/ayatanaappindicator-0.1)
6
+
7
+
8
+ GJS TypeScript type definitions for AyatanaAppIndicator-0.1, generated from library version 0.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.3.
9
+
10
+
11
+ ## Install
12
+
13
+ To use this type definitions, install them with NPM:
14
+ ```bash
15
+ npm install @girs/ayatanaappindicator-0.1
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ You can import this package into your project like this:
21
+ ```ts
22
+ import AyatanaAppIndicator from '@girs/ayatanaappindicator-0.1';
23
+ ```
24
+
25
+ ### Ambient Modules
26
+
27
+ You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
28
+ For this you need to include `@girs/ayatanaappindicator-0.1` or `@girs/ayatanaappindicator-0.1/ambient` in your `tsconfig` or entry point Typescript file:
29
+
30
+ `index.ts`:
31
+ ```ts
32
+ import '@girs/ayatanaappindicator-0.1'
33
+ ```
34
+
35
+ `tsconfig.json`:
36
+ ```json
37
+ {
38
+ "compilerOptions": {
39
+ ...
40
+ },
41
+ "include": ["@girs/ayatanaappindicator-0.1"],
42
+ ...
43
+ }
44
+ ```
45
+
46
+ Now you can import the ambient module with TypeScript support:
47
+
48
+ ```ts
49
+ import AyatanaAppIndicator from 'gi://AyatanaAppIndicator?version=0.1';
50
+ ```
51
+
52
+ ### Global import
53
+
54
+ You can also import the module with Typescript support using the global `imports.gi` object of GJS.
55
+ For this you need to include `@girs/ayatanaappindicator-0.1` or `@girs/ayatanaappindicator-0.1/import` in your `tsconfig` or entry point Typescript file:
56
+
57
+ `index.ts`:
58
+ ```ts
59
+ import '@girs/ayatanaappindicator-0.1'
60
+ ```
61
+
62
+ `tsconfig.json`:
63
+ ```json
64
+ {
65
+ "compilerOptions": {
66
+ ...
67
+ },
68
+ "include": ["@girs/ayatanaappindicator-0.1"],
69
+ ...
70
+ }
71
+ ```
72
+
73
+ Now you have also type support for this, too:
74
+
75
+ ```ts
76
+ const AyatanaAppIndicator = imports.gi.AyatanaAppIndicator;
77
+ ```
78
+
79
+ ### Bundle
80
+
81
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
82
+
83
+ ## Other packages
84
+
85
+ All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
86
+
@@ -0,0 +1,12 @@
1
+
2
+ declare module 'gi://AyatanaAppIndicator?version=0.1' {
3
+ import AyatanaAppIndicator from '@girs/ayatanaappindicator-0.1';
4
+ export default AyatanaAppIndicator;
5
+ }
6
+
7
+ declare module 'gi://AyatanaAppIndicator' {
8
+ import AyatanaAppIndicator01 from 'gi://AyatanaAppIndicator?version=0.1';
9
+ export default AyatanaAppIndicator01;
10
+ }
11
+
12
+
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,12 @@
1
+
2
+ import AyatanaAppIndicator01 from '@girs/ayatanaappindicator-0.1';
3
+
4
+ declare global {
5
+ export interface GjsGiImports {
6
+ AyatanaAppIndicator: typeof AyatanaAppIndicator01;
7
+ }
8
+ }
9
+
10
+ export default GjsGiImports;
11
+
12
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
@@ -0,0 +1,569 @@
1
+ /*
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ */
7
+
8
+ import './ayatanaappindicator-0.1-ambient.d.ts';
9
+
10
+ /**
11
+ * AyatanaAppIndicator-0.1
12
+ */
13
+
14
+ import type Gtk from '@girs/gtk-2.0';
15
+ import type Gdk from '@girs/gdk-2.0';
16
+ import type cairo from '@girs/cairo-1.0';
17
+ import type GObject from '@girs/gobject-2.0';
18
+ import type GLib from '@girs/glib-2.0';
19
+ import type Pango from '@girs/pango-1.0';
20
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
21
+ import type freetype2 from '@girs/freetype2-2.0';
22
+ import type Gio from '@girs/gio-2.0';
23
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
24
+ import type GModule from '@girs/gmodule-2.0';
25
+ import type Atk from '@girs/atk-1.0';
26
+
27
+ export namespace AyatanaAppIndicator {
28
+ /**
29
+ * The category provides grouping for the indicators so that
30
+ * users can find indicators that are similar together.
31
+ */
32
+ enum IndicatorCategory {
33
+ /**
34
+ * The indicator is used to display the status of the application.
35
+ */
36
+ APPLICATION_STATUS,
37
+ /**
38
+ * The application is used for communication with other people.
39
+ */
40
+ COMMUNICATIONS,
41
+ /**
42
+ * A system indicator relating to something in the user's system.
43
+ */
44
+ SYSTEM_SERVICES,
45
+ /**
46
+ * An indicator relating to the user's hardware.
47
+ */
48
+ HARDWARE,
49
+ /**
50
+ * Something not defined in this enum, please don't use unless you really need it.
51
+ */
52
+ OTHER,
53
+ }
54
+ /**
55
+ * These are the states that the indicator can be on in
56
+ * the user's panel. The indicator by default starts
57
+ * in the state `APP_INDICATOR_STATUS_PASSIVE` and can be
58
+ * shown by setting it to `APP_INDICATOR_STATUS_ACTIVE`.
59
+ */
60
+ enum IndicatorStatus {
61
+ /**
62
+ * The indicator should not be shown to the user.
63
+ */
64
+ PASSIVE,
65
+ /**
66
+ * The indicator should be shown in it's default state.
67
+ */
68
+ ACTIVE,
69
+ /**
70
+ * The indicator should show it's attention icon.
71
+ */
72
+ ATTENTION,
73
+ }
74
+ /**
75
+ * String identifier for the #AppIndicator::connection-changed signal.
76
+ */
77
+ const INDICATOR_SIGNAL_CONNECTION_CHANGED: string;
78
+ /**
79
+ * String identifier for the #AppIndicator::new-attention-icon signal.
80
+ */
81
+ const INDICATOR_SIGNAL_NEW_ATTENTION_ICON: string;
82
+ /**
83
+ * String identifier for the #AppIndicator::new-icon signal.
84
+ */
85
+ const INDICATOR_SIGNAL_NEW_ICON: string;
86
+ /**
87
+ * String identifier for the #AppIndicator::new-icon-theme-path signal.
88
+ */
89
+ const INDICATOR_SIGNAL_NEW_ICON_THEME_PATH: string;
90
+ /**
91
+ * String identifier for the #AppIndicator::new-label signal.
92
+ */
93
+ const INDICATOR_SIGNAL_NEW_LABEL: string;
94
+ /**
95
+ * String identifier for the #AppIndicator::new-status signal.
96
+ */
97
+ const INDICATOR_SIGNAL_NEW_STATUS: string;
98
+ /**
99
+ * String identifier for the #AppIndicator::scroll-event signal.
100
+ */
101
+ const INDICATOR_SIGNAL_SCROLL_EVENT: string;
102
+ module Indicator {
103
+ // Signal callback interfaces
104
+
105
+ interface ConnectionChanged {
106
+ (arg1: boolean): void;
107
+ }
108
+
109
+ interface NewAttentionIcon {
110
+ (): void;
111
+ }
112
+
113
+ interface NewIcon {
114
+ (): void;
115
+ }
116
+
117
+ interface NewIconThemePath {
118
+ (arg1: string): void;
119
+ }
120
+
121
+ interface NewLabel {
122
+ (arg1: string, arg2: string): void;
123
+ }
124
+
125
+ interface NewStatus {
126
+ (arg1: string): void;
127
+ }
128
+
129
+ interface ScrollEvent {
130
+ (arg1: number, arg2: Gdk.ScrollDirection): void;
131
+ }
132
+
133
+ // Constructor properties interface
134
+
135
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
136
+ attention_icon_desc: string;
137
+ attentionIconDesc: string;
138
+ attention_icon_name: string;
139
+ attentionIconName: string;
140
+ category: string;
141
+ connected: boolean;
142
+ icon_desc: string;
143
+ iconDesc: string;
144
+ icon_name: string;
145
+ iconName: string;
146
+ icon_theme_path: string;
147
+ iconThemePath: string;
148
+ id: string;
149
+ label: string;
150
+ label_guide: string;
151
+ labelGuide: string;
152
+ menu: string;
153
+ ordering_index: number;
154
+ orderingIndex: number;
155
+ status: string;
156
+ title: string;
157
+ }
158
+ }
159
+
160
+ /**
161
+ * parent: Parent object.
162
+ * priv: Internal data.
163
+ * An application indicator represents the values that are needed to show a
164
+ * unique status in the panel for an application. In general, applications
165
+ * should try to fit in the other indicators that are available on the
166
+ * panel before using this. But, sometimes it is necissary.
167
+ */
168
+ class Indicator extends GObject.Object {
169
+ static $gtype: GObject.GType<Indicator>;
170
+
171
+ // Own properties of AyatanaAppIndicator.Indicator
172
+
173
+ /**
174
+ * If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION
175
+ * then this textual description of the icon shown.
176
+ */
177
+ get attention_icon_desc(): string;
178
+ set attention_icon_desc(val: string);
179
+ /**
180
+ * If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION
181
+ * then this textual description of the icon shown.
182
+ */
183
+ get attentionIconDesc(): string;
184
+ set attentionIconDesc(val: string);
185
+ /**
186
+ * If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION
187
+ * then this icon is shown.
188
+ */
189
+ get attention_icon_name(): string;
190
+ set attention_icon_name(val: string);
191
+ /**
192
+ * If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION
193
+ * then this icon is shown.
194
+ */
195
+ get attentionIconName(): string;
196
+ set attentionIconName(val: string);
197
+ /**
198
+ * The type of indicator that this represents. Please don't use 'Other'.
199
+ * Defaults to 'ApplicationStatus'.
200
+ */
201
+ get category(): string;
202
+ /**
203
+ * Pretty simple, %TRUE if we have a reasonable expectation of being
204
+ * displayed through this object. You should hide your TrayIcon if so.
205
+ */
206
+ get connected(): boolean;
207
+ /**
208
+ * The description of the regular icon that is shown for the indicator.
209
+ */
210
+ get icon_desc(): string;
211
+ set icon_desc(val: string);
212
+ /**
213
+ * The description of the regular icon that is shown for the indicator.
214
+ */
215
+ get iconDesc(): string;
216
+ set iconDesc(val: string);
217
+ /**
218
+ * The name of the regular icon that is shown for the indicator.
219
+ */
220
+ get icon_name(): string;
221
+ set icon_name(val: string);
222
+ /**
223
+ * The name of the regular icon that is shown for the indicator.
224
+ */
225
+ get iconName(): string;
226
+ set iconName(val: string);
227
+ /**
228
+ * An additional place to look for icon names that may be installed by the
229
+ * application.
230
+ */
231
+ get icon_theme_path(): string;
232
+ set icon_theme_path(val: string);
233
+ /**
234
+ * An additional place to look for icon names that may be installed by the
235
+ * application.
236
+ */
237
+ get iconThemePath(): string;
238
+ set iconThemePath(val: string);
239
+ /**
240
+ * The ID for this indicator, which should be unique, but used consistently
241
+ * by this program and its indicator.
242
+ */
243
+ get id(): string;
244
+ /**
245
+ * A label that can be shown next to the string in the application
246
+ * indicator. The label will not be shown unless there is an icon
247
+ * as well. The label is useful for numerical and other frequently
248
+ * updated information. In general, it shouldn't be shown unless a
249
+ * user requests it as it can take up a significant amount of space
250
+ * on the user's panel. This may not be shown in all visualizations.
251
+ */
252
+ get label(): string;
253
+ set label(val: string);
254
+ /**
255
+ * An optional string to provide guidance to the panel on how big
256
+ * the #AppIndicator:label string could get. If this is set correctly
257
+ * then the panel should never 'jiggle' as the string adjusts through
258
+ * out the range of options. For instance, if you were providing a
259
+ * percentage like "54% thrust" in #AppIndicator:label you'd want to
260
+ * set this string to "100% thrust" to ensure space when Scotty can
261
+ * get you enough power.
262
+ */
263
+ get label_guide(): string;
264
+ set label_guide(val: string);
265
+ /**
266
+ * An optional string to provide guidance to the panel on how big
267
+ * the #AppIndicator:label string could get. If this is set correctly
268
+ * then the panel should never 'jiggle' as the string adjusts through
269
+ * out the range of options. For instance, if you were providing a
270
+ * percentage like "54% thrust" in #AppIndicator:label you'd want to
271
+ * set this string to "100% thrust" to ensure space when Scotty can
272
+ * get you enough power.
273
+ */
274
+ get labelGuide(): string;
275
+ set labelGuide(val: string);
276
+ /**
277
+ * The menu that should be shown when the Application Indicator
278
+ * is clicked on in the panel.
279
+ */
280
+ get menu(): string;
281
+ set menu(val: string);
282
+ /**
283
+ * The ordering index is an odd parameter, and if you think you don't need
284
+ * it you're probably right. In general, the application indicator try
285
+ * to place the applications in a recreatable place taking into account
286
+ * which category they're in to try and group them. But, there are some
287
+ * cases where you'd want to ensure indicators are next to each other.
288
+ * To do that you can override the generated ordering index and replace it
289
+ * with a new one. Again, you probably don't want to be doing this, but
290
+ * in case you do, this is the way.
291
+ */
292
+ get ordering_index(): number;
293
+ set ordering_index(val: number);
294
+ /**
295
+ * The ordering index is an odd parameter, and if you think you don't need
296
+ * it you're probably right. In general, the application indicator try
297
+ * to place the applications in a recreatable place taking into account
298
+ * which category they're in to try and group them. But, there are some
299
+ * cases where you'd want to ensure indicators are next to each other.
300
+ * To do that you can override the generated ordering index and replace it
301
+ * with a new one. Again, you probably don't want to be doing this, but
302
+ * in case you do, this is the way.
303
+ */
304
+ get orderingIndex(): number;
305
+ set orderingIndex(val: number);
306
+ /**
307
+ * Whether the indicator is shown or requests attention. Can be one of
308
+ * 'Passive' (the indicator should not be shown), 'Active' (the indicator
309
+ * should be shown in its default state), and 'Attention' (the indicator
310
+ * should now show it's attention icon). Defaults to 'Passive'.
311
+ */
312
+ get status(): string;
313
+ set status(val: string);
314
+ /**
315
+ * Provides a way to refer to this application indicator in a human
316
+ * readable form. This is used in the Unity desktop in the HUD as
317
+ * the first part of the menu entries to distinguish them from the
318
+ * focused application's entries.
319
+ */
320
+ get title(): string;
321
+ set title(val: string);
322
+
323
+ // Constructors of AyatanaAppIndicator.Indicator
324
+
325
+ constructor(properties?: Partial<Indicator.ConstructorProps>, ...args: any[]);
326
+
327
+ _init(...args: any[]): void;
328
+
329
+ static ['new'](id: string, icon_name: string, category: IndicatorCategory): Indicator;
330
+
331
+ static new_with_path(
332
+ id: string,
333
+ icon_name: string,
334
+ category: IndicatorCategory,
335
+ icon_theme_path: string,
336
+ ): Indicator;
337
+
338
+ // Own signals of AyatanaAppIndicator.Indicator
339
+
340
+ connect(id: string, callback: (...args: any[]) => any): number;
341
+ connect_after(id: string, callback: (...args: any[]) => any): number;
342
+ emit(id: string, ...args: any[]): void;
343
+ connect(signal: 'connection-changed', callback: (_source: this, arg1: boolean) => void): number;
344
+ connect_after(signal: 'connection-changed', callback: (_source: this, arg1: boolean) => void): number;
345
+ emit(signal: 'connection-changed', arg1: boolean): void;
346
+ connect(signal: 'new-attention-icon', callback: (_source: this) => void): number;
347
+ connect_after(signal: 'new-attention-icon', callback: (_source: this) => void): number;
348
+ emit(signal: 'new-attention-icon'): void;
349
+ connect(signal: 'new-icon', callback: (_source: this) => void): number;
350
+ connect_after(signal: 'new-icon', callback: (_source: this) => void): number;
351
+ emit(signal: 'new-icon'): void;
352
+ connect(signal: 'new-icon-theme-path', callback: (_source: this, arg1: string) => void): number;
353
+ connect_after(signal: 'new-icon-theme-path', callback: (_source: this, arg1: string) => void): number;
354
+ emit(signal: 'new-icon-theme-path', arg1: string): void;
355
+ connect(signal: 'new-label', callback: (_source: this, arg1: string, arg2: string) => void): number;
356
+ connect_after(signal: 'new-label', callback: (_source: this, arg1: string, arg2: string) => void): number;
357
+ emit(signal: 'new-label', arg1: string, arg2: string): void;
358
+ connect(signal: 'new-status', callback: (_source: this, arg1: string) => void): number;
359
+ connect_after(signal: 'new-status', callback: (_source: this, arg1: string) => void): number;
360
+ emit(signal: 'new-status', arg1: string): void;
361
+ connect(
362
+ signal: 'scroll-event',
363
+ callback: (_source: this, arg1: number, arg2: Gdk.ScrollDirection) => void,
364
+ ): number;
365
+ connect_after(
366
+ signal: 'scroll-event',
367
+ callback: (_source: this, arg1: number, arg2: Gdk.ScrollDirection) => void,
368
+ ): number;
369
+ emit(signal: 'scroll-event', arg1: number, arg2: Gdk.ScrollDirection): void;
370
+
371
+ // Own virtual methods of AyatanaAppIndicator.Indicator
372
+
373
+ vfunc_connection_changed(connected: boolean): void;
374
+ vfunc_new_attention_icon(): void;
375
+ vfunc_new_icon(): void;
376
+ vfunc_new_icon_theme_path(icon_theme_path: string): void;
377
+ vfunc_new_label(label: string, guide: string): void;
378
+ vfunc_new_status(status: string): void;
379
+ vfunc_scroll_event(delta: number, direction: Gdk.ScrollDirection): void;
380
+ vfunc_unfallback(status_icon: Gtk.StatusIcon): void;
381
+
382
+ // Own methods of AyatanaAppIndicator.Indicator
383
+
384
+ /**
385
+ * This function allows for building the Application Indicator menu
386
+ * from a static desktop file.
387
+ * @param desktop_file A path to the desktop file to build the menu from
388
+ * @param desktop_profile Which entries should be used from the desktop file
389
+ */
390
+ build_menu_from_desktop(desktop_file: string, desktop_profile: string): void;
391
+ /**
392
+ * Wrapper function for property #AppIndicator:attention-icon-name.
393
+ * @returns The current attention icon name.
394
+ */
395
+ get_attention_icon(): string;
396
+ /**
397
+ * Wrapper function for property #AppIndicator:attention-icon-desc.
398
+ * @returns The current attention icon description.
399
+ */
400
+ get_attention_icon_desc(): string;
401
+ /**
402
+ * Wrapper function for property #AppIndicator:category.
403
+ * @returns The current category.
404
+ */
405
+ get_category(): IndicatorCategory;
406
+ /**
407
+ * Wrapper function for property #AppIndicator:icon-name.
408
+ * @returns The current icon name.
409
+ */
410
+ get_icon(): string;
411
+ /**
412
+ * Wrapper function for property #AppIndicator:icon-desc.
413
+ * @returns The current icon description.
414
+ */
415
+ get_icon_desc(): string;
416
+ /**
417
+ * Wrapper function for property #AppIndicator:icon-theme-path.
418
+ * @returns The current icon theme path.
419
+ */
420
+ get_icon_theme_path(): string;
421
+ /**
422
+ * Wrapper function for property #AppIndicator:id.
423
+ * @returns The current ID
424
+ */
425
+ get_id(): string;
426
+ /**
427
+ * Wrapper function for property #AppIndicator:label.
428
+ * @returns The current label.
429
+ */
430
+ get_label(): string;
431
+ /**
432
+ * Wrapper function for property #AppIndicator:label-guide.
433
+ * @returns The current label guide.
434
+ */
435
+ get_label_guide(): string;
436
+ /**
437
+ * Gets the menu being used for this application indicator.
438
+ * Wrapper function for property #AppIndicator:menu.
439
+ * @returns A #GtkMenu object or %NULL if one hasn't been set.
440
+ */
441
+ get_menu(): Gtk.Menu;
442
+ /**
443
+ * Wrapper function for property #AppIndicator:ordering-index.
444
+ * @returns The current ordering index.
445
+ */
446
+ get_ordering_index(): number;
447
+ /**
448
+ * Gets the menuitem being called on secondary-activate event.
449
+ * @returns A #GtkWidget object or %NULL if none has been set.
450
+ */
451
+ get_secondary_activate_target(): Gtk.Widget;
452
+ /**
453
+ * Wrapper function for property #AppIndicator:status.
454
+ * @returns The current status.
455
+ */
456
+ get_status(): IndicatorStatus;
457
+ /**
458
+ * Gets the title of the application indicator. See the function
459
+ * app_indicator_set_title() for information on the title.
460
+ * @returns The current title.
461
+ */
462
+ get_title(): string;
463
+ /**
464
+ * Wrapper for app_indicator_set_attention_icon_full() with a NULL
465
+ * description.
466
+ * @param icon_name The name of the attention icon to set for this indicator
467
+ */
468
+ set_attention_icon(icon_name: string): void;
469
+ /**
470
+ * Wrapper function for property #AppIndicator:attention-icon-name.
471
+ * @param icon_name The name of the attention icon to set for this indicator
472
+ * @param icon_desc A textual description of the icon
473
+ */
474
+ set_attention_icon_full(icon_name: string, icon_desc?: string | null): void;
475
+ /**
476
+ * Wrapper function for app_indicator_set_icon_full() with a NULL
477
+ * description.
478
+ * @param icon_name The icon name to set.
479
+ */
480
+ set_icon(icon_name: string): void;
481
+ /**
482
+ * Sets the default icon to use when the status is active but
483
+ * not set to attention. In most cases, this should be the
484
+ * application icon for the program.
485
+ *
486
+ * Wrapper function for property #AppIndicator:icon-name and
487
+ * #AppIndicator:icon-desc.
488
+ * @param icon_name The icon name to set.
489
+ * @param icon_desc A textual description of the icon for accessibility
490
+ */
491
+ set_icon_full(icon_name: string, icon_desc?: string | null): void;
492
+ /**
493
+ * Sets the path to use when searching for icons.
494
+ * @param icon_theme_path The icon theme path to set.
495
+ */
496
+ set_icon_theme_path(icon_theme_path: string): void;
497
+ /**
498
+ * This is a wrapper function for the #AppIndicator:label and
499
+ * #AppIndicator:label-guide properties. This function can take #NULL
500
+ * as either `label` or `guide` and will clear the entries.
501
+ * @param label The label to show next to the icon.
502
+ * @param guide A guide to size the label correctly.
503
+ */
504
+ set_label(label: string, guide: string): void;
505
+ /**
506
+ * Sets the menu that should be shown when the Application Indicator
507
+ * is clicked on in the panel. An application indicator will not
508
+ * be rendered unless it has a menu.
509
+ *
510
+ * Wrapper function for property #AppIndicator:menu.
511
+ * @param menu A #GtkMenu to set
512
+ */
513
+ set_menu(menu?: Gtk.Menu | null): void;
514
+ /**
515
+ * Sets the ordering index for the app indicator which effects the
516
+ * placement of it on the panel. For almost all app indicator
517
+ * this is not the function you're looking for.
518
+ *
519
+ * Wrapper function for property #AppIndicator:ordering-index.
520
+ * @param ordering_index A value for the ordering of this app indicator
521
+ */
522
+ set_ordering_index(ordering_index: number): void;
523
+ /**
524
+ * Set the `menuitem` to be activated when a secondary activation event (i.e. a
525
+ * middle-click) is emitted over the #AppIndicator icon/label.
526
+ *
527
+ * The `menuitem` can be also a complex #GtkWidget, but to get activated when
528
+ * a secondary activation occurs in the #AppIndicator, it must be a visible and
529
+ * active child (or inner-child) of the #AppIndicator:menu.
530
+ *
531
+ * Setting `menuitem` to %NULL causes to disable this feature.
532
+ * @param menuitem A #GtkWidget to be activated on secondary activation
533
+ */
534
+ set_secondary_activate_target(menuitem?: Gtk.Widget | null): void;
535
+ /**
536
+ * Wrapper function for property #AppIndicator:status.
537
+ * @param status The status to set for this indicator
538
+ */
539
+ set_status(status: IndicatorStatus): void;
540
+ /**
541
+ * Sets the title of the application indicator, or how it should be referred
542
+ * in a human readable form. This string should be UTF-8 and localized as it
543
+ * expected that users will set it.
544
+ *
545
+ * In the Unity desktop the most prominent place that this is show will be
546
+ * in the HUD. HUD listings for this application indicator will start with
547
+ * the title as the first part of the line for the menu items.
548
+ *
549
+ * Setting `title` to %NULL removes the title.
550
+ * @param title Title of the app indicator
551
+ */
552
+ set_title(title?: string | null): void;
553
+ }
554
+
555
+ type IndicatorClass = typeof Indicator;
556
+ /**
557
+ * Name of the imported GIR library
558
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
559
+ */
560
+ const __name__: string;
561
+ /**
562
+ * Version of the imported GIR library
563
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
564
+ */
565
+ const __version__: string;
566
+ }
567
+
568
+ export default AyatanaAppIndicator;
569
+ // END
@@ -0,0 +1,6 @@
1
+
2
+ // @ts-expect-error
3
+ import AyatanaAppIndicator from 'gi://AyatanaAppIndicator?version=0.1';
4
+ export { AyatanaAppIndicator };
5
+ export default AyatanaAppIndicator;
6
+
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@girs/ayatanaappindicator-0.1",
3
+ "version": "0.1.0-4.0.0-beta.3",
4
+ "description": "GJS TypeScript type definitions for AyatanaAppIndicator-0.1, generated from library version 0.1.0",
5
+ "type": "module",
6
+ "module": "ayatanaappindicator-0.1.js",
7
+ "main": "ayatanaappindicator-0.1.js",
8
+ "exports": {
9
+ "./ambient": {
10
+ "types": "./ayatanaappindicator-0.1-ambient.d.ts",
11
+ "import": "./ayatanaappindicator-0.1-ambient.js",
12
+ "default": "./ayatanaappindicator-0.1-ambient.js"
13
+ },
14
+ "./import": {
15
+ "types": "./ayatanaappindicator-0.1-import.d.ts",
16
+ "import": "./ayatanaappindicator-0.1-import.js",
17
+ "default": "./ayatanaappindicator-0.1-import.js"
18
+ },
19
+ ".": {
20
+ "types": "./ayatanaappindicator-0.1.d.ts",
21
+ "import": "./ayatanaappindicator-0.1.js",
22
+ "default": "./ayatanaappindicator-0.1.js"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit ayatanaappindicator-0.1.d.ts"
27
+ },
28
+ "dependencies": {
29
+ "@girs/atk-1.0": "^2.52.0-4.0.0-beta.3",
30
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.3",
31
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.3",
32
+ "@girs/gdk-2.0": "^2.0.0-4.0.0-beta.3",
33
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.3",
34
+ "@girs/gio-2.0": "^2.80.0-4.0.0-beta.3",
35
+ "@girs/gjs": "^4.0.0-beta.3",
36
+ "@girs/glib-2.0": "^2.80.0-4.0.0-beta.3",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.3",
38
+ "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.3",
39
+ "@girs/gtk-2.0": "^2.24.33-4.0.0-beta.3",
40
+ "@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.3",
41
+ "@girs/pango-1.0": "^1.51.0-4.0.0-beta.3"
42
+ },
43
+ "devDependencies": {
44
+ "typescript": "*"
45
+ },
46
+ "keywords": [
47
+ "Gir",
48
+ "TypeScript",
49
+ "types",
50
+ "GObject-Introspection",
51
+ "GJS",
52
+ "AyatanaAppIndicator-0.1"
53
+ ],
54
+ "author": "ts-for-gir",
55
+ "license": "MIT",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
62
+ },
63
+ "homepage": "https://github.com/gjsify/types/tree/main/ayatanaappindicator-0.1#readme"
64
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "lib": ["ESNext"],
7
+ "types": [],
8
+ "experimentalDecorators": true,
9
+ "moduleResolution": "node",
10
+ "noEmit": true,
11
+ "noEmitOnError": false,
12
+ "baseUrl": "./",
13
+ "rootDir": ".",
14
+ // General settings for code generation
15
+ "removeComments": false,
16
+ "inlineSourceMap": false,
17
+ "inlineSources": false,
18
+ "newLine": "LF"
19
+ },
20
+ "include": ["./ayatanaappindicator-0.1.d.ts"]
21
+ }
22
+
23
+
package/typedoc.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "entryPoints": ["./ayatanaappindicator-0.1.d.ts"],
3
+ "readme": "./README.md",
4
+ "name": "AyatanaAppIndicator-0.1",
5
+ "tsconfig": "./tsconfig.json"
6
+ }
7
+