@girs/amtk-5 4.2.0 → 4.4.0
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 +8 -8
- package/amtk-5-surface.d.ts +158 -0
- package/amtk-5-surface.js +33 -0
- package/amtk-5.d.ts +211 -0
- package/package.json +20 -15
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Amtk-5 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Amtk-5 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/amtk-5
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import Amtk from '@girs/amtk-5';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/amtk-5` or `@girs/amtk-5/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/amtk-5'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import Amtk from 'gi://Amtk?version=5';
|
|
@@ -50,7 +50,7 @@ import Amtk from 'gi://Amtk?version=5';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/amtk-5` or `@girs/amtk-5/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/amtk-5'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const Amtk = imports.gi.Amtk;
|
|
@@ -77,7 +77,7 @@ const Amtk = imports.gi.Amtk;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The GIR-derived widget VOCABULARY for Amtk-5.
|
|
3
|
+
*
|
|
4
|
+
* GENERATED — do not edit. Provenance: Amtk-5 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
|
|
5
|
+
*
|
|
6
|
+
* 1 concrete widgets, 1 declarations, 0 enum nick unions, 0 slot candidates.
|
|
7
|
+
*
|
|
8
|
+
* Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
|
|
9
|
+
* no `on<Signal>` prop name: those are DIALECT, and every framework answers them
|
|
10
|
+
* differently. The shape to avoid is the GLOBAL AUGMENT — a `declare global` on
|
|
11
|
+
* `React.JSX` collides with every other library on a shared tag — while a
|
|
12
|
+
* module-scoped `JSX` behind a `jsxImportSource` does not. This package is used by
|
|
13
|
+
* projects that want nothing to do with JSX, so it emits neither; a consumer declaring
|
|
14
|
+
* a module-scoped namespace over these names is doing it right.
|
|
15
|
+
*
|
|
16
|
+
* Three things this is and `ConstructorProps` is not: WRITABLE-only (measured on
|
|
17
|
+
* Gtk-4.0, `ConstructorProps` offers 150 read-only properties across 68 classes as
|
|
18
|
+
* settable, and GTK's failure mode for writing one is exit 0), OPTIONAL, and keyed
|
|
19
|
+
* by the name GObject actually REGISTERED — the dashed spelling `g_object_set`,
|
|
20
|
+
* GtkBuilder XML and Blueprint all use.
|
|
21
|
+
*
|
|
22
|
+
* Signal handler types are not re-derived: `X.SignalSignatures`, which this package
|
|
23
|
+
* already emits for every class with the parent chain, every implemented interface
|
|
24
|
+
* and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import type Amtk from './amtk-5.js';
|
|
28
|
+
import type { GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkScrolledWindowConstructOnly, GtkScrolledWindowProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-3.0/surface';
|
|
29
|
+
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
32
|
+
//
|
|
33
|
+
// Not derived from the member name. Substituting underscores for dashes is not a law:
|
|
34
|
+
// some nicks keep an underscore the substitution would have replaced, and only the
|
|
35
|
+
// attribute knows which. Gtk-4.0 and Adw-1 contradict no derivation at all, which is
|
|
36
|
+
// how a derived nick passes review and breaks elsewhere.
|
|
37
|
+
// Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
|
|
38
|
+
// ---------------------------------------------------------------------------
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
// Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
|
|
44
|
+
// inheritance rather than flattening per widget.
|
|
45
|
+
//
|
|
46
|
+
// The interfaces are load-bearing, not tidiness: `GtkBox` declares four properties
|
|
47
|
+
// of its own and `orientation` is not among them — it lives on `Gtk.Orientable`,
|
|
48
|
+
// because GObject installs interface properties on the implementor at runtime while
|
|
49
|
+
// GIR keeps them once, on the interface.
|
|
50
|
+
// ---------------------------------------------------------------------------
|
|
51
|
+
|
|
52
|
+
export interface AmtkTreeViewScrolledWindowSizingProps extends GtkScrolledWindowProps, GtkBuildableProps {
|
|
53
|
+
/**
|
|
54
|
+
* Whether to take the #GdkMonitor size into account as a maximum width and height to apply.
|
|
55
|
+
* @since 5.10
|
|
56
|
+
*/
|
|
57
|
+
'monitor-limit-enabled'?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
60
|
+
export type AmtkTreeViewScrolledWindowSizingConstructOnly = GtkScrolledWindowConstructOnly | GtkBuildableConstructOnly;
|
|
61
|
+
|
|
62
|
+
// ---------------------------------------------------------------------------
|
|
63
|
+
// The GType-keyed widget map.
|
|
64
|
+
//
|
|
65
|
+
// Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
|
|
66
|
+
// consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
|
|
67
|
+
// for a Vue `GlobalComponents`, the class itself for a renderer whose element type
|
|
68
|
+
// is the class. None of those is baked in here.
|
|
69
|
+
//
|
|
70
|
+
// `slotCandidates` is a candidate list and never an answer: derived from methods
|
|
71
|
+
// taking exactly one widget argument. The GIR cannot tell adoption from reference —
|
|
72
|
+
// `set_title_widget` parents its argument and `set_activatable_widget` does not, and
|
|
73
|
+
// both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
|
|
74
|
+
// this is what notices when a release adds a candidate.
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
export interface Widgets {
|
|
78
|
+
AmtkTreeViewScrolledWindowSizing: {
|
|
79
|
+
class: Amtk.TreeViewScrolledWindowSizing;
|
|
80
|
+
props: AmtkTreeViewScrolledWindowSizingProps;
|
|
81
|
+
signals: Amtk.TreeViewScrolledWindowSizing.SignalSignatures;
|
|
82
|
+
constructOnly: AmtkTreeViewScrolledWindowSizingConstructOnly;
|
|
83
|
+
slotCandidates: {};
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
88
|
+
export type WidgetGType = keyof Widgets;
|
|
89
|
+
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
91
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
92
|
+
//
|
|
93
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
94
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
95
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
96
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
97
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
98
|
+
// ---------------------------------------------------------------------------
|
|
99
|
+
|
|
100
|
+
export interface ChildHolders {
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
105
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
106
|
+
|
|
107
|
+
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
108
|
+
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
109
|
+
|
|
110
|
+
/** The signal table this package already emits, reached by GType. */
|
|
111
|
+
export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
|
|
112
|
+
|
|
113
|
+
/** The instance type — what a `ref`-shaped prop should infer. */
|
|
114
|
+
export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
|
|
115
|
+
|
|
116
|
+
/** Property names that can only be set at construction. */
|
|
117
|
+
export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
|
|
118
|
+
|
|
119
|
+
/** Candidate child slots — see the note above; curation decides. */
|
|
120
|
+
export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The same facts as runtime data, for a consumer that CHECKS them.
|
|
124
|
+
*
|
|
125
|
+
* Types are erased, so a spec that asks the installed GTK whether every property
|
|
126
|
+
* here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
|
|
127
|
+
* and every nick resolvable through an enum lookup cannot read the interfaces
|
|
128
|
+
* above. Emitted headlessly with no GTK present, which is exactly why the checking
|
|
129
|
+
* belongs to the consumer and the DATA belongs here.
|
|
130
|
+
*/
|
|
131
|
+
export const SURFACE_PROVENANCE: string;
|
|
132
|
+
|
|
133
|
+
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
134
|
+
export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
135
|
+
|
|
136
|
+
/** Widget GType -> its own signals. */
|
|
137
|
+
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
138
|
+
|
|
139
|
+
/** Widget GType -> every declaration its members come from, self first. */
|
|
140
|
+
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
141
|
+
|
|
142
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
143
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
144
|
+
|
|
145
|
+
/** Enum GType -> the nicks this surface offers. */
|
|
146
|
+
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
147
|
+
|
|
148
|
+
/** Widget GType -> slot name -> the method that may adopt a child there. */
|
|
149
|
+
export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* `Type.property` -> the release that introduced it.
|
|
153
|
+
*
|
|
154
|
+
* What keeps a runtime cross-check honest across a version gap without an
|
|
155
|
+
* allowlist: a member the installed library lacks is a defect UNLESS the version
|
|
156
|
+
* here is newer than the one running.
|
|
157
|
+
*/
|
|
158
|
+
export const SINCE: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// The widget vocabulary of Amtk-5 as runtime data.
|
|
2
|
+
//
|
|
3
|
+
// GENERATED — do not edit. Provenance: Amtk-5 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
|
|
4
|
+
//
|
|
5
|
+
// The type half of this subpath is the sibling `.d.ts`. This file exists because
|
|
6
|
+
// types are erased: a consumer that wants to ask the installed library whether every
|
|
7
|
+
// name here is real needs values, not declarations.
|
|
8
|
+
|
|
9
|
+
export const SURFACE_PROVENANCE = 'Amtk-5 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface';
|
|
10
|
+
|
|
11
|
+
export const OWN_PROPS = {
|
|
12
|
+
AmtkTreeViewScrolledWindowSizing: ['monitor-limit-enabled'],
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const OWN_SIGNALS = {};
|
|
16
|
+
|
|
17
|
+
export const DECLS = {
|
|
18
|
+
AmtkTreeViewScrolledWindowSizing: ['AmtkTreeViewScrolledWindowSizing', 'GtkScrolledWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
22
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
23
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
24
|
+
// from a list — the count is in the provenance line above.
|
|
25
|
+
export const CHILD_HOLDERS = [];
|
|
26
|
+
|
|
27
|
+
export const ENUM_NICKS = {};
|
|
28
|
+
|
|
29
|
+
export const SLOT_CANDIDATES = {};
|
|
30
|
+
|
|
31
|
+
export const SINCE = {
|
|
32
|
+
'AmtkTreeViewScrolledWindowSizing.monitor-limit-enabled': '5.10',
|
|
33
|
+
};
|
package/amtk-5.d.ts
CHANGED
|
@@ -345,12 +345,16 @@ export namespace Amtk {
|
|
|
345
345
|
emit(signal: string, ...args: any[]): void;
|
|
346
346
|
|
|
347
347
|
// Static methods
|
|
348
|
+
/**
|
|
349
|
+
* @since 3.0
|
|
350
|
+
*/
|
|
348
351
|
static get_singleton(): ActionInfoCentralStore;
|
|
349
352
|
|
|
350
353
|
// Methods
|
|
351
354
|
/**
|
|
352
355
|
* @param action_name an action name.
|
|
353
356
|
* @returns the found {@link Amtk.ActionInfo}, or `null`.
|
|
357
|
+
* @since 2.0
|
|
354
358
|
*/
|
|
355
359
|
lookup(action_name: string): ActionInfo;
|
|
356
360
|
}
|
|
@@ -406,6 +410,7 @@ export namespace Amtk {
|
|
|
406
410
|
* {@link Amtk.ActionInfo} with the same action name. The stores take their own
|
|
407
411
|
* reference on `info`.
|
|
408
412
|
* @param info an {@link Amtk.ActionInfo}.
|
|
413
|
+
* @since 2.0
|
|
409
414
|
*/
|
|
410
415
|
add(info: ActionInfo): void;
|
|
411
416
|
|
|
@@ -418,6 +423,7 @@ export namespace Amtk {
|
|
|
418
423
|
* An API similar to `g_action_map_add_action_entries()`.
|
|
419
424
|
* @param entries a pointer to the first item in an array of {@link Amtk.ActionInfoEntry} structs.
|
|
420
425
|
* @param translation_domain a gettext domain, or `null`.
|
|
426
|
+
* @since 2.0
|
|
421
427
|
*/
|
|
422
428
|
add_entries(entries: ActionInfoEntry[], translation_domain: string | null): void;
|
|
423
429
|
|
|
@@ -429,12 +435,14 @@ export namespace Amtk {
|
|
|
429
435
|
* You probably want to call this function on the application store after
|
|
430
436
|
* creating the menu and toolbar. But it can also be useful for a store provided
|
|
431
437
|
* by a library, to easily see which actions are not used by the application.
|
|
438
|
+
* @since 2.0
|
|
432
439
|
*/
|
|
433
440
|
check_all_used(): void;
|
|
434
441
|
|
|
435
442
|
/**
|
|
436
443
|
* @param action_name an action name.
|
|
437
444
|
* @returns the found {@link Amtk.ActionInfo}, or `null`.
|
|
445
|
+
* @since 2.0
|
|
438
446
|
*/
|
|
439
447
|
lookup(action_name: string): ActionInfo;
|
|
440
448
|
|
|
@@ -462,6 +470,7 @@ export namespace Amtk {
|
|
|
462
470
|
* {@link Amtk.Factory}, containing information about actions that are not added to any
|
|
463
471
|
* menu or toolbar.
|
|
464
472
|
* @param application a {@link Gtk.Application}.
|
|
473
|
+
* @since 5.0
|
|
465
474
|
*/
|
|
466
475
|
set_all_accels_to_app(application: Gtk.Application): void;
|
|
467
476
|
}
|
|
@@ -546,6 +555,7 @@ export namespace Amtk {
|
|
|
546
555
|
* are added to the default {@link Gtk.RecentManager} with
|
|
547
556
|
* `gtk_recent_manager_add_item()`, the files will normally show up in the
|
|
548
557
|
* {@link Gtk.RecentChooserMenu}.
|
|
558
|
+
* @since 5.6
|
|
549
559
|
*/
|
|
550
560
|
static create_open_recent_menu_base(): Gtk.RecentChooserMenu;
|
|
551
561
|
|
|
@@ -553,6 +563,7 @@ export namespace Amtk {
|
|
|
553
563
|
* Returns the {@link Amtk.ApplicationWindow} of `gtk_window`. The returned object is
|
|
554
564
|
* guaranteed to be the same for the lifetime of `gtk_window`.
|
|
555
565
|
* @param gtk_window a {@link Gtk.ApplicationWindow}.
|
|
566
|
+
* @since 2.0
|
|
556
567
|
*/
|
|
557
568
|
static get_from_gtk_application_window(gtk_window: Gtk.ApplicationWindow): ApplicationWindow;
|
|
558
569
|
|
|
@@ -566,6 +577,7 @@ export namespace Amtk {
|
|
|
566
577
|
* So `amtk_menu_item_set_long_description()` must have been called, which is the
|
|
567
578
|
* case if the {@link Gtk.MenuItem} has been created with {@link Amtk.Factory}.
|
|
568
579
|
* @param menu_shell a {@link Gtk.MenuShell}.
|
|
580
|
+
* @since 2.0
|
|
569
581
|
*/
|
|
570
582
|
connect_menu_to_statusbar(menu_shell: Gtk.MenuShell): void;
|
|
571
583
|
|
|
@@ -577,6 +589,7 @@ export namespace Amtk {
|
|
|
577
589
|
* The full path is retrieved with
|
|
578
590
|
* `amtk_utils_recent_chooser_menu_get_item_uri()`.
|
|
579
591
|
* @param menu a {@link Gtk.RecentChooserMenu}.
|
|
592
|
+
* @since 2.0
|
|
580
593
|
*/
|
|
581
594
|
connect_recent_chooser_menu_to_statusbar(menu: Gtk.RecentChooserMenu): void;
|
|
582
595
|
|
|
@@ -592,6 +605,7 @@ export namespace Amtk {
|
|
|
592
605
|
* `g_application_open()` is called (with an empty hint), so the {@link Gio.Application}
|
|
593
606
|
* must have the {@link Gio.ApplicationFlags.HANDLES_OPEN} flag set.
|
|
594
607
|
* @returns a new {@link Gtk.RecentChooserMenu}.
|
|
608
|
+
* @since 3.0
|
|
595
609
|
*/
|
|
596
610
|
create_open_recent_menu(): Gtk.Widget;
|
|
597
611
|
|
|
@@ -600,22 +614,26 @@ export namespace Amtk {
|
|
|
600
614
|
* submenu. The {@link Gtk.RecentChooserMenu} is created with
|
|
601
615
|
* `amtk_application_window_create_open_recent_menu()`.
|
|
602
616
|
* @returns a new {@link Gtk.MenuItem}.
|
|
617
|
+
* @since 2.0
|
|
603
618
|
*/
|
|
604
619
|
create_open_recent_menu_item(): Gtk.Widget;
|
|
605
620
|
|
|
606
621
|
/**
|
|
607
622
|
* @returns the {@link Gtk.ApplicationWindow} of `amtk_window`.
|
|
623
|
+
* @since 2.0
|
|
608
624
|
*/
|
|
609
625
|
get_application_window(): Gtk.ApplicationWindow;
|
|
610
626
|
|
|
611
627
|
/**
|
|
612
628
|
* @returns the {@link Amtk.ApplicationWindow.statusbar}.
|
|
629
|
+
* @since 2.0
|
|
613
630
|
*/
|
|
614
631
|
get_statusbar(): Gtk.Statusbar | null;
|
|
615
632
|
|
|
616
633
|
/**
|
|
617
634
|
* Sets the {@link Amtk.ApplicationWindow.statusbar} property.
|
|
618
635
|
* @param statusbar a {@link Gtk.Statusbar}, or `null`.
|
|
636
|
+
* @since 2.0
|
|
619
637
|
*/
|
|
620
638
|
set_statusbar(statusbar: Gtk.Statusbar | null): void;
|
|
621
639
|
}
|
|
@@ -707,6 +725,7 @@ export namespace Amtk {
|
|
|
707
725
|
* information.
|
|
708
726
|
* @param action_name an action name.
|
|
709
727
|
* @returns a new {@link Gtk.CheckMenuItem} for `action_name`.
|
|
728
|
+
* @since 3.0
|
|
710
729
|
*/
|
|
711
730
|
create_check_menu_item(action_name: string): Gtk.Widget;
|
|
712
731
|
|
|
@@ -722,6 +741,7 @@ export namespace Amtk {
|
|
|
722
741
|
* @param action_name an action name.
|
|
723
742
|
* @param flags {@link Amtk.FactoryFlags}.
|
|
724
743
|
* @returns a new {@link Gtk.CheckMenuItem} for `action_name`.
|
|
744
|
+
* @since 3.0
|
|
725
745
|
*/
|
|
726
746
|
create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget;
|
|
727
747
|
|
|
@@ -730,6 +750,7 @@ export namespace Amtk {
|
|
|
730
750
|
* {@link Amtk.Factory.default_flags}.
|
|
731
751
|
* @param action_name an action name.
|
|
732
752
|
* @returns a new {@link Gio.MenuItem} for `action_name`.
|
|
753
|
+
* @since 5.0
|
|
733
754
|
*/
|
|
734
755
|
create_gmenu_item(action_name: string): Gio.MenuItem;
|
|
735
756
|
|
|
@@ -742,6 +763,7 @@ export namespace Amtk {
|
|
|
742
763
|
* @param action_name an action name.
|
|
743
764
|
* @param flags {@link Amtk.FactoryFlags}.
|
|
744
765
|
* @returns a new {@link Gio.MenuItem} for `action_name`.
|
|
766
|
+
* @since 5.0
|
|
745
767
|
*/
|
|
746
768
|
create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem;
|
|
747
769
|
|
|
@@ -750,6 +772,7 @@ export namespace Amtk {
|
|
|
750
772
|
* {@link Amtk.Factory.default_flags}.
|
|
751
773
|
* @param action_name an action name.
|
|
752
774
|
* @returns a new {@link Gtk.MenuItem} for `action_name`.
|
|
775
|
+
* @since 3.0
|
|
753
776
|
*/
|
|
754
777
|
create_menu_item(action_name: string): Gtk.Widget;
|
|
755
778
|
|
|
@@ -759,6 +782,7 @@ export namespace Amtk {
|
|
|
759
782
|
* @param action_name an action name.
|
|
760
783
|
* @param flags {@link Amtk.FactoryFlags}.
|
|
761
784
|
* @returns a new {@link Gtk.MenuItem} for `action_name`.
|
|
785
|
+
* @since 3.0
|
|
762
786
|
*/
|
|
763
787
|
create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget;
|
|
764
788
|
|
|
@@ -770,6 +794,7 @@ export namespace Amtk {
|
|
|
770
794
|
* information.
|
|
771
795
|
* @param action_name an action name.
|
|
772
796
|
* @returns a new {@link Gtk.MenuToolButton} for `action_name`.
|
|
797
|
+
* @since 3.0
|
|
773
798
|
*/
|
|
774
799
|
create_menu_tool_button(action_name: string): Gtk.MenuToolButton;
|
|
775
800
|
|
|
@@ -782,6 +807,7 @@ export namespace Amtk {
|
|
|
782
807
|
* @param action_name an action name.
|
|
783
808
|
* @param flags {@link Amtk.FactoryFlags}.
|
|
784
809
|
* @returns a new {@link Gtk.MenuToolButton} for `action_name`.
|
|
810
|
+
* @since 3.0
|
|
785
811
|
*/
|
|
786
812
|
create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton;
|
|
787
813
|
|
|
@@ -790,6 +816,7 @@ export namespace Amtk {
|
|
|
790
816
|
* {@link Amtk.Factory.default_flags}.
|
|
791
817
|
* @param action_name an action name.
|
|
792
818
|
* @returns a new {@link Gtk.ShortcutsShortcut} for `action_name`.
|
|
819
|
+
* @since 5.0
|
|
793
820
|
*/
|
|
794
821
|
create_shortcut(action_name: string): Gtk.Widget;
|
|
795
822
|
|
|
@@ -818,6 +845,7 @@ export namespace Amtk {
|
|
|
818
845
|
* @param action_name an action name.
|
|
819
846
|
* @param flags {@link Amtk.FactoryFlags}.
|
|
820
847
|
* @returns a new {@link Gtk.ShortcutsShortcut} for `action_name`.
|
|
848
|
+
* @since 5.0
|
|
821
849
|
*/
|
|
822
850
|
create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget;
|
|
823
851
|
|
|
@@ -826,6 +854,7 @@ export namespace Amtk {
|
|
|
826
854
|
* {@link Amtk.Factory.default_flags}.
|
|
827
855
|
* @param entries a pointer to the first item in an array of {@link Amtk.ActionInfoEntry} structs.
|
|
828
856
|
* @returns a new simple {@link Gtk.Menu} for `entries`.
|
|
857
|
+
* @since 5.0
|
|
829
858
|
*/
|
|
830
859
|
create_simple_menu(entries: ActionInfoEntry[]): Gtk.Widget;
|
|
831
860
|
|
|
@@ -845,6 +874,7 @@ export namespace Amtk {
|
|
|
845
874
|
* @param entries a pointer to the first item in an array of {@link Amtk.ActionInfoEntry} structs.
|
|
846
875
|
* @param flags {@link Amtk.FactoryFlags}.
|
|
847
876
|
* @returns a new simple {@link Gtk.Menu} for `entries`.
|
|
877
|
+
* @since 5.0
|
|
848
878
|
*/
|
|
849
879
|
create_simple_menu_full(entries: ActionInfoEntry[], flags: FactoryFlags): Gtk.Widget;
|
|
850
880
|
|
|
@@ -853,6 +883,7 @@ export namespace Amtk {
|
|
|
853
883
|
* {@link Amtk.Factory.default_flags}.
|
|
854
884
|
* @param action_name an action name.
|
|
855
885
|
* @returns a new {@link Gtk.ToolButton} for `action_name`.
|
|
886
|
+
* @since 3.0
|
|
856
887
|
*/
|
|
857
888
|
create_tool_button(action_name: string): Gtk.ToolItem;
|
|
858
889
|
|
|
@@ -862,22 +893,26 @@ export namespace Amtk {
|
|
|
862
893
|
* @param action_name an action name.
|
|
863
894
|
* @param flags {@link Amtk.FactoryFlags}.
|
|
864
895
|
* @returns a new {@link Gtk.ToolButton} for `action_name`.
|
|
896
|
+
* @since 3.0
|
|
865
897
|
*/
|
|
866
898
|
create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem;
|
|
867
899
|
|
|
868
900
|
/**
|
|
869
901
|
* @returns the {@link Amtk.Factory.application}.
|
|
902
|
+
* @since 3.0
|
|
870
903
|
*/
|
|
871
904
|
get_application(): Gtk.Application | null;
|
|
872
905
|
|
|
873
906
|
/**
|
|
874
907
|
* @returns the {@link Amtk.Factory.default_flags}.
|
|
908
|
+
* @since 3.0
|
|
875
909
|
*/
|
|
876
910
|
get_default_flags(): FactoryFlags;
|
|
877
911
|
|
|
878
912
|
/**
|
|
879
913
|
* Sets the {@link Amtk.Factory.default_flags} property.
|
|
880
914
|
* @param default_flags the new value.
|
|
915
|
+
* @since 3.0
|
|
881
916
|
*/
|
|
882
917
|
set_default_flags(default_flags: FactoryFlags): void;
|
|
883
918
|
}
|
|
@@ -967,6 +1002,7 @@ export namespace Amtk {
|
|
|
967
1002
|
* Returns the {@link Amtk.MenuShell} of `gtk_menu_shell`. The returned object is
|
|
968
1003
|
* guaranteed to be the same for the lifetime of `gtk_menu_shell`.
|
|
969
1004
|
* @param gtk_menu_shell a {@link Gtk.MenuShell}.
|
|
1005
|
+
* @since 2.0
|
|
970
1006
|
*/
|
|
971
1007
|
static get_from_gtk_menu_shell(gtk_menu_shell: Gtk.MenuShell): MenuShell;
|
|
972
1008
|
|
|
@@ -986,11 +1022,158 @@ export namespace Amtk {
|
|
|
986
1022
|
// Methods
|
|
987
1023
|
/**
|
|
988
1024
|
* @returns the {@link Gtk.MenuShell} of `amtk_menu_shell`.
|
|
1025
|
+
* @since 2.0
|
|
989
1026
|
*/
|
|
990
1027
|
get_menu_shell(): Gtk.MenuShell;
|
|
991
1028
|
}
|
|
992
1029
|
|
|
993
1030
|
|
|
1031
|
+
namespace TreeViewScrolledWindowSizing {
|
|
1032
|
+
// Signal signatures
|
|
1033
|
+
interface SignalSignatures extends Gtk.ScrolledWindow.SignalSignatures {
|
|
1034
|
+
"notify::monitor-limit-enabled": (pspec: GObject.ParamSpec) => void;
|
|
1035
|
+
"notify::hadjustment": (pspec: GObject.ParamSpec) => void;
|
|
1036
|
+
"notify::hscrollbar-policy": (pspec: GObject.ParamSpec) => void;
|
|
1037
|
+
"notify::kinetic-scrolling": (pspec: GObject.ParamSpec) => void;
|
|
1038
|
+
"notify::max-content-height": (pspec: GObject.ParamSpec) => void;
|
|
1039
|
+
"notify::max-content-width": (pspec: GObject.ParamSpec) => void;
|
|
1040
|
+
"notify::min-content-height": (pspec: GObject.ParamSpec) => void;
|
|
1041
|
+
"notify::min-content-width": (pspec: GObject.ParamSpec) => void;
|
|
1042
|
+
"notify::overlay-scrolling": (pspec: GObject.ParamSpec) => void;
|
|
1043
|
+
"notify::propagate-natural-height": (pspec: GObject.ParamSpec) => void;
|
|
1044
|
+
"notify::propagate-natural-width": (pspec: GObject.ParamSpec) => void;
|
|
1045
|
+
"notify::shadow-type": (pspec: GObject.ParamSpec) => void;
|
|
1046
|
+
"notify::vadjustment": (pspec: GObject.ParamSpec) => void;
|
|
1047
|
+
"notify::vscrollbar-policy": (pspec: GObject.ParamSpec) => void;
|
|
1048
|
+
"notify::window-placement": (pspec: GObject.ParamSpec) => void;
|
|
1049
|
+
"notify::window-placement-set": (pspec: GObject.ParamSpec) => void;
|
|
1050
|
+
"notify::border-width": (pspec: GObject.ParamSpec) => void;
|
|
1051
|
+
"notify::child": (pspec: GObject.ParamSpec) => void;
|
|
1052
|
+
"notify::resize-mode": (pspec: GObject.ParamSpec) => void;
|
|
1053
|
+
"notify::app-paintable": (pspec: GObject.ParamSpec) => void;
|
|
1054
|
+
"notify::can-default": (pspec: GObject.ParamSpec) => void;
|
|
1055
|
+
"notify::can-focus": (pspec: GObject.ParamSpec) => void;
|
|
1056
|
+
"notify::composite-child": (pspec: GObject.ParamSpec) => void;
|
|
1057
|
+
"notify::double-buffered": (pspec: GObject.ParamSpec) => void;
|
|
1058
|
+
"notify::events": (pspec: GObject.ParamSpec) => void;
|
|
1059
|
+
"notify::expand": (pspec: GObject.ParamSpec) => void;
|
|
1060
|
+
"notify::focus-on-click": (pspec: GObject.ParamSpec) => void;
|
|
1061
|
+
"notify::halign": (pspec: GObject.ParamSpec) => void;
|
|
1062
|
+
"notify::has-default": (pspec: GObject.ParamSpec) => void;
|
|
1063
|
+
"notify::has-focus": (pspec: GObject.ParamSpec) => void;
|
|
1064
|
+
"notify::has-tooltip": (pspec: GObject.ParamSpec) => void;
|
|
1065
|
+
"notify::height-request": (pspec: GObject.ParamSpec) => void;
|
|
1066
|
+
"notify::hexpand": (pspec: GObject.ParamSpec) => void;
|
|
1067
|
+
"notify::hexpand-set": (pspec: GObject.ParamSpec) => void;
|
|
1068
|
+
"notify::is-focus": (pspec: GObject.ParamSpec) => void;
|
|
1069
|
+
"notify::margin": (pspec: GObject.ParamSpec) => void;
|
|
1070
|
+
"notify::margin-bottom": (pspec: GObject.ParamSpec) => void;
|
|
1071
|
+
"notify::margin-end": (pspec: GObject.ParamSpec) => void;
|
|
1072
|
+
"notify::margin-left": (pspec: GObject.ParamSpec) => void;
|
|
1073
|
+
"notify::margin-right": (pspec: GObject.ParamSpec) => void;
|
|
1074
|
+
"notify::margin-start": (pspec: GObject.ParamSpec) => void;
|
|
1075
|
+
"notify::margin-top": (pspec: GObject.ParamSpec) => void;
|
|
1076
|
+
"notify::name": (pspec: GObject.ParamSpec) => void;
|
|
1077
|
+
"notify::no-show-all": (pspec: GObject.ParamSpec) => void;
|
|
1078
|
+
"notify::opacity": (pspec: GObject.ParamSpec) => void;
|
|
1079
|
+
"notify::parent": (pspec: GObject.ParamSpec) => void;
|
|
1080
|
+
"notify::receives-default": (pspec: GObject.ParamSpec) => void;
|
|
1081
|
+
"notify::scale-factor": (pspec: GObject.ParamSpec) => void;
|
|
1082
|
+
"notify::sensitive": (pspec: GObject.ParamSpec) => void;
|
|
1083
|
+
"notify::style": (pspec: GObject.ParamSpec) => void;
|
|
1084
|
+
"notify::tooltip-markup": (pspec: GObject.ParamSpec) => void;
|
|
1085
|
+
"notify::tooltip-text": (pspec: GObject.ParamSpec) => void;
|
|
1086
|
+
"notify::valign": (pspec: GObject.ParamSpec) => void;
|
|
1087
|
+
"notify::vexpand": (pspec: GObject.ParamSpec) => void;
|
|
1088
|
+
"notify::vexpand-set": (pspec: GObject.ParamSpec) => void;
|
|
1089
|
+
"notify::visible": (pspec: GObject.ParamSpec) => void;
|
|
1090
|
+
"notify::width-request": (pspec: GObject.ParamSpec) => void;
|
|
1091
|
+
"notify::window": (pspec: GObject.ParamSpec) => void;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
// Constructor properties interface
|
|
1095
|
+
interface ConstructorProps extends Gtk.ScrolledWindow.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps {
|
|
1096
|
+
monitor_limit_enabled: boolean;
|
|
1097
|
+
monitorLimitEnabled: boolean;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* @gir-type Class
|
|
1103
|
+
*/
|
|
1104
|
+
class TreeViewScrolledWindowSizing extends Gtk.ScrolledWindow implements Atk.ImplementorIface, Gtk.Buildable {
|
|
1105
|
+
static $gtype: GObject.GType<TreeViewScrolledWindowSizing>;
|
|
1106
|
+
|
|
1107
|
+
// Properties
|
|
1108
|
+
/**
|
|
1109
|
+
* Whether to take the {@link Gdk.Monitor} size into account as a maximum width
|
|
1110
|
+
* and height to apply.
|
|
1111
|
+
* @since 5.10
|
|
1112
|
+
* @default true
|
|
1113
|
+
*/
|
|
1114
|
+
get monitor_limit_enabled(): boolean;
|
|
1115
|
+
set monitor_limit_enabled(val: boolean);
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Whether to take the {@link Gdk.Monitor} size into account as a maximum width
|
|
1119
|
+
* and height to apply.
|
|
1120
|
+
* @since 5.10
|
|
1121
|
+
* @default true
|
|
1122
|
+
*/
|
|
1123
|
+
get monitorLimitEnabled(): boolean;
|
|
1124
|
+
set monitorLimitEnabled(val: boolean);
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Compile-time signal type information.
|
|
1128
|
+
*
|
|
1129
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1130
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1131
|
+
* @internal
|
|
1132
|
+
*/
|
|
1133
|
+
$signals: TreeViewScrolledWindowSizing.SignalSignatures;
|
|
1134
|
+
|
|
1135
|
+
// Constructors
|
|
1136
|
+
constructor(properties?: Partial<TreeViewScrolledWindowSizing.ConstructorProps>, ...args: any[]);
|
|
1137
|
+
|
|
1138
|
+
_init(...args: any[]): void;
|
|
1139
|
+
|
|
1140
|
+
static ["new"](): TreeViewScrolledWindowSizing;
|
|
1141
|
+
|
|
1142
|
+
// Signals
|
|
1143
|
+
/** @signal */
|
|
1144
|
+
connect<K extends keyof TreeViewScrolledWindowSizing.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, TreeViewScrolledWindowSizing.SignalSignatures[K]>): number;
|
|
1145
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1146
|
+
|
|
1147
|
+
/** @signal */
|
|
1148
|
+
connect_after<K extends keyof TreeViewScrolledWindowSizing.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, TreeViewScrolledWindowSizing.SignalSignatures[K]>): number;
|
|
1149
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1150
|
+
|
|
1151
|
+
/** @signal */
|
|
1152
|
+
emit<K extends keyof TreeViewScrolledWindowSizing.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<TreeViewScrolledWindowSizing.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1153
|
+
emit(signal: string, ...args: any[]): void;
|
|
1154
|
+
|
|
1155
|
+
// Methods
|
|
1156
|
+
/**
|
|
1157
|
+
* @returns the current value of the {@link Amtk.TreeViewScrolledWindowSizing.monitor_limit_enabled} property.
|
|
1158
|
+
* @since 5.10
|
|
1159
|
+
*/
|
|
1160
|
+
get_monitor_limit(): boolean;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* @returns the {@link Gtk.TreeView}, if the child widget is a {@link Gtk.TreeView}. Otherwise `null` is returned.
|
|
1164
|
+
* @since 5.10
|
|
1165
|
+
*/
|
|
1166
|
+
get_tree_view(): Gtk.TreeView | null;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Sets the {@link Amtk.TreeViewScrolledWindowSizing.monitor_limit_enabled} property.
|
|
1170
|
+
* @param monitor_limit the new value.
|
|
1171
|
+
* @since 5.10
|
|
1172
|
+
*/
|
|
1173
|
+
set_monitor_limit(monitor_limit: boolean): void;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
|
|
994
1177
|
/**
|
|
995
1178
|
* @gir-type Struct
|
|
996
1179
|
*/
|
|
@@ -1007,6 +1190,7 @@ export namespace Amtk {
|
|
|
1007
1190
|
// Methods
|
|
1008
1191
|
/**
|
|
1009
1192
|
* @returns a copy of `info`. The copy will have a reference count of one.
|
|
1193
|
+
* @since 2.0
|
|
1010
1194
|
*/
|
|
1011
1195
|
copy(): ActionInfo;
|
|
1012
1196
|
|
|
@@ -1015,16 +1199,19 @@ export namespace Amtk {
|
|
|
1015
1199
|
* returns a `null`-terminated array, to be suitable for
|
|
1016
1200
|
* `gtk_application_set_accels_for_action()`.
|
|
1017
1201
|
* @returns a `null`-terminated array of accelerators in the format understood by `gtk_accelerator_parse()`.
|
|
1202
|
+
* @since 2.0
|
|
1018
1203
|
*/
|
|
1019
1204
|
get_accels(): string[];
|
|
1020
1205
|
|
|
1021
1206
|
/**
|
|
1022
1207
|
* @returns the action name, or `null`. Example: `"win.save"`. Can be a detailed action name, see `g_action_parse_detailed_name()`.
|
|
1208
|
+
* @since 2.0
|
|
1023
1209
|
*/
|
|
1024
1210
|
get_action_name(): string | null;
|
|
1025
1211
|
|
|
1026
1212
|
/**
|
|
1027
1213
|
* @returns the icon name, or `null`.
|
|
1214
|
+
* @since 2.0
|
|
1028
1215
|
*/
|
|
1029
1216
|
get_icon_name(): string | null;
|
|
1030
1217
|
|
|
@@ -1032,11 +1219,13 @@ export namespace Amtk {
|
|
|
1032
1219
|
* Gets the label. The label has normally a mnemonic. To remove the mnemonic,
|
|
1033
1220
|
* there is the `amtk_utils_remove_mnemonic()` function.
|
|
1034
1221
|
* @returns the label (i.e. a short description), or `null`.
|
|
1222
|
+
* @since 2.0
|
|
1035
1223
|
*/
|
|
1036
1224
|
get_label(): string | null;
|
|
1037
1225
|
|
|
1038
1226
|
/**
|
|
1039
1227
|
* @returns the tooltip (i.e. a long description), or `null`.
|
|
1228
|
+
* @since 2.0
|
|
1040
1229
|
*/
|
|
1041
1230
|
get_tooltip(): string | null;
|
|
1042
1231
|
|
|
@@ -1044,18 +1233,21 @@ export namespace Amtk {
|
|
|
1044
1233
|
* Returns whether `info` has been used (for example by an {@link Amtk.Factory}
|
|
1045
1234
|
* function). See also `amtk_action_info_store_check_all_used()`.
|
|
1046
1235
|
* @returns whether `info` has been used.
|
|
1236
|
+
* @since 3.0
|
|
1047
1237
|
*/
|
|
1048
1238
|
has_been_used(): boolean;
|
|
1049
1239
|
|
|
1050
1240
|
/**
|
|
1051
1241
|
* Mark `info` as used. An {@link Amtk.Factory} function that uses an {@link Amtk.ActionInfo}
|
|
1052
1242
|
* should call this function. See `amtk_action_info_store_check_all_used()`.
|
|
1243
|
+
* @since 3.0
|
|
1053
1244
|
*/
|
|
1054
1245
|
mark_as_used(): void;
|
|
1055
1246
|
|
|
1056
1247
|
/**
|
|
1057
1248
|
* Increments the reference count of `info` by one.
|
|
1058
1249
|
* @returns the passed in `info`.
|
|
1250
|
+
* @since 2.0
|
|
1059
1251
|
*/
|
|
1060
1252
|
ref(): ActionInfo;
|
|
1061
1253
|
|
|
@@ -1065,6 +1257,7 @@ export namespace Amtk {
|
|
|
1065
1257
|
* `accels` must not be `null`, it must be a `null`-terminated array, to be
|
|
1066
1258
|
* consistent with `gtk_application_set_accels_for_action()`.
|
|
1067
1259
|
* @param accels a `null`-terminated array of accelerators in the format understood by `gtk_accelerator_parse()`.
|
|
1260
|
+
* @since 2.0
|
|
1068
1261
|
*/
|
|
1069
1262
|
set_accels(accels: string[]): void;
|
|
1070
1263
|
|
|
@@ -1072,11 +1265,13 @@ export namespace Amtk {
|
|
|
1072
1265
|
* Sets the action name, for example `"win.save"`. Can be a detailed action
|
|
1073
1266
|
* name, see `g_action_parse_detailed_name()`.
|
|
1074
1267
|
* @param action_name the action name.
|
|
1268
|
+
* @since 2.0
|
|
1075
1269
|
*/
|
|
1076
1270
|
set_action_name(action_name: string): void;
|
|
1077
1271
|
|
|
1078
1272
|
/**
|
|
1079
1273
|
* @param icon_name the icon name, or `null`.
|
|
1274
|
+
* @since 2.0
|
|
1080
1275
|
*/
|
|
1081
1276
|
set_icon_name(icon_name: string | null): void;
|
|
1082
1277
|
|
|
@@ -1084,17 +1279,20 @@ export namespace Amtk {
|
|
|
1084
1279
|
* Sets the label with a mnemonic. To know how to encode the mnemonic, see the
|
|
1085
1280
|
* documentation of `gtk_label_new_with_mnemonic()`.
|
|
1086
1281
|
* @param label the label (i.e. a short description), or `null`.
|
|
1282
|
+
* @since 2.0
|
|
1087
1283
|
*/
|
|
1088
1284
|
set_label(label: string | null): void;
|
|
1089
1285
|
|
|
1090
1286
|
/**
|
|
1091
1287
|
* @param tooltip the tooltip (i.e. a long description), or `null`.
|
|
1288
|
+
* @since 2.0
|
|
1092
1289
|
*/
|
|
1093
1290
|
set_tooltip(tooltip: string | null): void;
|
|
1094
1291
|
|
|
1095
1292
|
/**
|
|
1096
1293
|
* Decrements the reference count of `info` by one. If the reference count drops
|
|
1097
1294
|
* to 0, `info` is freed.
|
|
1295
|
+
* @since 2.0
|
|
1098
1296
|
*/
|
|
1099
1297
|
unref(): void;
|
|
1100
1298
|
}
|
|
@@ -1201,6 +1399,19 @@ export namespace Amtk {
|
|
|
1201
1399
|
}
|
|
1202
1400
|
|
|
1203
1401
|
|
|
1402
|
+
/**
|
|
1403
|
+
* @gir-type Alias
|
|
1404
|
+
*/
|
|
1405
|
+
type TreeViewScrolledWindowSizingClass = typeof TreeViewScrolledWindowSizing;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* @gir-type Struct
|
|
1409
|
+
*/
|
|
1410
|
+
abstract class TreeViewScrolledWindowSizingPrivate {
|
|
1411
|
+
static $gtype: GObject.GType<TreeViewScrolledWindowSizingPrivate>;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
|
|
1204
1415
|
/**
|
|
1205
1416
|
* Name of the imported GIR library
|
|
1206
1417
|
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/amtk-5",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Amtk-5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "amtk-5.js",
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
"import": "./amtk-5-import.js",
|
|
17
17
|
"default": "./amtk-5-import.js"
|
|
18
18
|
},
|
|
19
|
+
"./surface": {
|
|
20
|
+
"types": "./amtk-5-surface.d.ts",
|
|
21
|
+
"import": "./amtk-5-surface.js",
|
|
22
|
+
"default": "./amtk-5-surface.js"
|
|
23
|
+
},
|
|
19
24
|
"./amtk-5": {
|
|
20
25
|
"types": "./amtk-5.d.ts",
|
|
21
26
|
"import": "./amtk-5.js",
|
|
@@ -31,20 +36,20 @@
|
|
|
31
36
|
"test": "tsc --project tsconfig.json"
|
|
32
37
|
},
|
|
33
38
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^4.
|
|
35
|
-
"@girs/gtk-3.0": "^4.
|
|
36
|
-
"@girs/xlib-2.0": "^4.
|
|
37
|
-
"@girs/gdk-3.0": "^4.
|
|
38
|
-
"@girs/cairo-1.0": "^4.
|
|
39
|
-
"@girs/gobject-2.0": "^4.
|
|
40
|
-
"@girs/glib-2.0": "^4.
|
|
41
|
-
"@girs/pango-1.0": "^4.
|
|
42
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
43
|
-
"@girs/freetype2-2.0": "^4.
|
|
44
|
-
"@girs/gio-2.0": "^4.
|
|
45
|
-
"@girs/gmodule-2.0": "^4.
|
|
46
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
47
|
-
"@girs/atk-1.0": "^4.
|
|
39
|
+
"@girs/gjs": "^4.4.0",
|
|
40
|
+
"@girs/gtk-3.0": "^4.4.0",
|
|
41
|
+
"@girs/xlib-2.0": "^4.4.0",
|
|
42
|
+
"@girs/gdk-3.0": "^4.4.0",
|
|
43
|
+
"@girs/cairo-1.0": "^4.4.0",
|
|
44
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
45
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
46
|
+
"@girs/pango-1.0": "^4.4.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^4.4.0",
|
|
48
|
+
"@girs/freetype2-2.0": "^4.4.0",
|
|
49
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
50
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
51
|
+
"@girs/gdkpixbuf-2.0": "^4.4.0",
|
|
52
|
+
"@girs/atk-1.0": "^4.4.0" },
|
|
48
53
|
"devDependencies": {
|
|
49
54
|
"typescript": "*"
|
|
50
55
|
},
|