@girs/braseromedia-3.1 4.3.0 → 4.5.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 +52 -38
- package/braseromedia-3.1-surface.d.ts +20 -0
- package/braseromedia-3.1-surface.js +6 -0
- package/braseromedia-3.1-vocabulary.d.ts +195 -0
- package/braseromedia-3.1-vocabulary.js +44 -0
- package/braseromedia-3.1.d.ts +166 -65
- package/package.json +19 -19
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -4,82 +4,96 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
GJS TypeScript type definitions for BraseroMedia-3.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.5.0.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
This package contains type declarations only. It ships no runtime code, so it adds
|
|
10
|
+
nothing to your program and works with any bundler or none at all.
|
|
9
11
|
|
|
10
12
|
## Install
|
|
11
13
|
|
|
12
|
-
Install the type definitions with npm:
|
|
13
14
|
```bash
|
|
14
15
|
npm install @girs/braseromedia-3.1
|
|
15
16
|
```
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
Any package manager works. The package has no dependencies beyond other `@girs/*`
|
|
19
|
+
type packages.
|
|
20
|
+
|
|
21
|
+
## What it exports
|
|
22
|
+
|
|
23
|
+
| Import | What you get |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `@girs/braseromedia-3.1` | the namespace as a default export, plus the ambient and global declarations |
|
|
26
|
+
| `@girs/braseromedia-3.1/ambient` | only the `gi://` module declarations |
|
|
27
|
+
| `@girs/braseromedia-3.1/import` | only the `imports.gi` declarations |
|
|
28
|
+
| `@girs/braseromedia-3.1/braseromedia-3.1` | the namespace, without the side-effecting declarations |
|
|
29
|
+
| `@girs/braseromedia-3.1/vocabulary` | GIR-derived widget data: settable properties, enum nicks, slot candidates |
|
|
30
|
+
|
|
31
|
+
## Three ways to import
|
|
32
|
+
|
|
33
|
+
Which one you use depends on how you write imports elsewhere, not on your toolchain.
|
|
34
|
+
|
|
35
|
+
### As a module
|
|
18
36
|
|
|
19
|
-
Import it like any other module:
|
|
20
37
|
```ts
|
|
21
38
|
import BraseroMedia from '@girs/braseromedia-3.1';
|
|
22
39
|
```
|
|
23
40
|
|
|
24
|
-
###
|
|
41
|
+
### As `gi://`
|
|
25
42
|
|
|
26
|
-
|
|
27
|
-
|
|
43
|
+
GJS resolves `gi://` at runtime. To give it types, reference the package once, either
|
|
44
|
+
from your entry point or from `tsconfig.json`:
|
|
28
45
|
|
|
29
|
-
`index.ts`:
|
|
30
46
|
```ts
|
|
31
|
-
import '@girs/braseromedia-3.1'
|
|
47
|
+
import '@girs/braseromedia-3.1';
|
|
32
48
|
```
|
|
33
49
|
|
|
34
|
-
`tsconfig.json`:
|
|
35
50
|
```json
|
|
36
|
-
{
|
|
37
|
-
"compilerOptions": {
|
|
38
|
-
...
|
|
39
|
-
},
|
|
40
|
-
"include": ["@girs/braseromedia-3.1"],
|
|
41
|
-
...
|
|
42
|
-
}
|
|
51
|
+
{ "include": ["@girs/braseromedia-3.1"] }
|
|
43
52
|
```
|
|
44
53
|
|
|
45
|
-
|
|
54
|
+
Then the runtime spelling type-checks:
|
|
46
55
|
|
|
47
56
|
```ts
|
|
48
57
|
import BraseroMedia from 'gi://BraseroMedia?version=3.1';
|
|
49
58
|
```
|
|
50
59
|
|
|
51
|
-
|
|
60
|
+
Referencing `@girs/braseromedia-3.1/ambient` instead pulls in these declarations
|
|
61
|
+
alone. See [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules).
|
|
62
|
+
|
|
63
|
+
### As `imports.gi`
|
|
52
64
|
|
|
53
|
-
GJS's global
|
|
54
|
-
For this you need to include `@girs/braseromedia-3.1` or `@girs/braseromedia-3.1/import` in your `tsconfig` or entry point Typescript file:
|
|
65
|
+
GJS's global object works the same way, via `@girs/braseromedia-3.1/import`:
|
|
55
66
|
|
|
56
|
-
`index.ts`:
|
|
57
67
|
```ts
|
|
58
|
-
|
|
68
|
+
const BraseroMedia = imports.gi.BraseroMedia;
|
|
59
69
|
```
|
|
60
70
|
|
|
61
|
-
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"compilerOptions": {
|
|
65
|
-
...
|
|
66
|
-
},
|
|
67
|
-
"include": ["@girs/braseromedia-3.1"],
|
|
68
|
-
...
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
+
## Widget vocabulary
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
`braseromedia-3.1` declares widgets, so it also carries what the GIR says about them, as
|
|
74
|
+
types and as values a test can read:
|
|
73
75
|
|
|
74
76
|
```ts
|
|
75
|
-
|
|
77
|
+
import type { Widgets, PropsOf } from '@girs/braseromedia-3.1/vocabulary';
|
|
78
|
+
import { OWN_PROPS, ENUM_NICKS, PROVENANCE } from '@girs/braseromedia-3.1/vocabulary';
|
|
76
79
|
```
|
|
77
80
|
|
|
78
|
-
|
|
81
|
+
Properties are keyed the way GObject registered them, writable-only and optional, so they
|
|
82
|
+
match `g_object_set`, GtkBuilder XML and Blueprint. `PROVENANCE.libraryVersion` names the
|
|
83
|
+
library release this was generated from, which lets a check tell "newer than what is
|
|
84
|
+
installed" from "wrong".
|
|
79
85
|
|
|
80
|
-
|
|
86
|
+
This subpath answers what the GIR says, not what the installed library has. For the
|
|
87
|
+
second question, ask the library.
|
|
88
|
+
|
|
89
|
+
## Building
|
|
90
|
+
|
|
91
|
+
The declarations need no build step. If you bundle, every bundler works, since there is
|
|
92
|
+
no runtime code to resolve. The [examples](https://github.com/gjsify/ts-for-gir/tree/main/examples)
|
|
93
|
+
show working setups for several.
|
|
81
94
|
|
|
82
95
|
## Other packages
|
|
83
96
|
|
|
84
|
-
|
|
97
|
+
Every pre-generated package is at [gjsify/types](https://github.com/gjsify/types).
|
|
98
|
+
|
|
85
99
|
|
|
@@ -98,6 +98,23 @@ export interface Widgets {
|
|
|
98
98
|
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
99
99
|
export type WidgetGType = keyof Widgets;
|
|
100
100
|
|
|
101
|
+
// ---------------------------------------------------------------------------
|
|
102
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
103
|
+
//
|
|
104
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
105
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
106
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
107
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
108
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
109
|
+
// ---------------------------------------------------------------------------
|
|
110
|
+
|
|
111
|
+
export interface ChildHolders {
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
116
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
117
|
+
|
|
101
118
|
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
102
119
|
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
103
120
|
|
|
@@ -133,6 +150,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
|
133
150
|
/** Widget GType -> every declaration its members come from, self first. */
|
|
134
151
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
135
152
|
|
|
153
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
154
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
155
|
+
|
|
136
156
|
/** Enum GType -> the nicks this surface offers. */
|
|
137
157
|
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
138
158
|
|
|
@@ -23,6 +23,12 @@ export const DECLS = {
|
|
|
23
23
|
BraseroMediumSelection: ['BraseroMediumSelection', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
27
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
28
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
29
|
+
// from a list — the count is in the provenance line above.
|
|
30
|
+
export const CHILD_HOLDERS = [];
|
|
31
|
+
|
|
26
32
|
export const ENUM_NICKS = {};
|
|
27
33
|
|
|
28
34
|
export const SLOT_CANDIDATES = {};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The GIR-derived widget VOCABULARY for BraseroMedia-3.1.
|
|
3
|
+
*
|
|
4
|
+
* GENERATED — do not edit. Provenance: BraseroMedia-3.1 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
|
|
5
|
+
*
|
|
6
|
+
* 2 concrete widgets, 2 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 BraseroMedia from './braseromedia-3.1.js';
|
|
28
|
+
import type { GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-3.0/vocabulary';
|
|
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 BraseroDriveSelectionProps extends GtkComboBoxProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps {
|
|
53
|
+
Drive?: BraseroMedia.Drive;
|
|
54
|
+
/** @default 254 */
|
|
55
|
+
'drive-type'?: number;
|
|
56
|
+
}
|
|
57
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
58
|
+
export type BraseroDriveSelectionConstructOnly = GtkComboBoxConstructOnly | GtkBuildableConstructOnly | GtkCellEditableConstructOnly | GtkCellLayoutConstructOnly;
|
|
59
|
+
|
|
60
|
+
export interface BraseroMediumSelectionProps extends GtkComboBoxProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps {
|
|
61
|
+
/** @default 0 */
|
|
62
|
+
'media-type'?: number;
|
|
63
|
+
medium?: BraseroMedia.Medium;
|
|
64
|
+
}
|
|
65
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
66
|
+
export type BraseroMediumSelectionConstructOnly = GtkComboBoxConstructOnly | GtkBuildableConstructOnly | GtkCellEditableConstructOnly | GtkCellLayoutConstructOnly;
|
|
67
|
+
|
|
68
|
+
// ---------------------------------------------------------------------------
|
|
69
|
+
// The GType-keyed widget map.
|
|
70
|
+
//
|
|
71
|
+
// Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
|
|
72
|
+
// consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
|
|
73
|
+
// for a Vue `GlobalComponents`, the class itself for a renderer whose element type
|
|
74
|
+
// is the class. None of those is baked in here.
|
|
75
|
+
//
|
|
76
|
+
// `slotCandidates` is a candidate list and never an answer: derived from methods
|
|
77
|
+
// taking exactly one widget argument. The GIR cannot tell adoption from reference —
|
|
78
|
+
// `set_title_widget` parents its argument and `set_activatable_widget` does not, and
|
|
79
|
+
// both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
|
|
80
|
+
// this is what notices when a release adds a candidate.
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
|
|
83
|
+
export interface Widgets {
|
|
84
|
+
BraseroDriveSelection: {
|
|
85
|
+
class: BraseroMedia.DriveSelection;
|
|
86
|
+
props: BraseroDriveSelectionProps;
|
|
87
|
+
signals: BraseroMedia.DriveSelection.SignalSignatures;
|
|
88
|
+
constructOnly: BraseroDriveSelectionConstructOnly;
|
|
89
|
+
slotCandidates: {};
|
|
90
|
+
};
|
|
91
|
+
BraseroMediumSelection: {
|
|
92
|
+
class: BraseroMedia.MediumSelection;
|
|
93
|
+
props: BraseroMediumSelectionProps;
|
|
94
|
+
signals: BraseroMedia.MediumSelection.SignalSignatures;
|
|
95
|
+
constructOnly: BraseroMediumSelectionConstructOnly;
|
|
96
|
+
slotCandidates: {};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
101
|
+
export type WidgetGType = keyof Widgets;
|
|
102
|
+
|
|
103
|
+
// ---------------------------------------------------------------------------
|
|
104
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
105
|
+
//
|
|
106
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
107
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
108
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
109
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
110
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
111
|
+
// ---------------------------------------------------------------------------
|
|
112
|
+
|
|
113
|
+
export interface ChildHolders {
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
118
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
119
|
+
|
|
120
|
+
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
121
|
+
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
122
|
+
|
|
123
|
+
/** The signal table this package already emits, reached by GType. */
|
|
124
|
+
export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
|
|
125
|
+
|
|
126
|
+
/** The instance type — what a `ref`-shaped prop should infer. */
|
|
127
|
+
export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
|
|
128
|
+
|
|
129
|
+
/** Property names that can only be set at construction. */
|
|
130
|
+
export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
|
|
131
|
+
|
|
132
|
+
/** Candidate child slots — see the note above; curation decides. */
|
|
133
|
+
export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The same facts as runtime data, for a consumer that CHECKS them.
|
|
137
|
+
*
|
|
138
|
+
* Types are erased, so a spec that asks the installed GTK whether every property
|
|
139
|
+
* here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
|
|
140
|
+
* and every nick resolvable through an enum lookup cannot read the interfaces
|
|
141
|
+
* above. Emitted headlessly with no GTK present, which is exactly why the checking
|
|
142
|
+
* belongs to the consumer and the DATA belongs here.
|
|
143
|
+
*/
|
|
144
|
+
export const PROVENANCE: {
|
|
145
|
+
readonly namespace: string;
|
|
146
|
+
readonly version: string;
|
|
147
|
+
/** The version the LIBRARY states, or null where it states none. Never the namespace's. */
|
|
148
|
+
readonly libraryVersion: string | null;
|
|
149
|
+
readonly childHolders: number;
|
|
150
|
+
readonly droppedBases: readonly string[];
|
|
151
|
+
readonly inlinedBases: readonly string[];
|
|
152
|
+
readonly unsettableProps: readonly string[];
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
156
|
+
export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Declaration GType -> the signals it registers itself, never its parents'.
|
|
160
|
+
*
|
|
161
|
+
* Keyed like `OWN_PROPS`, so both are read at every link of a `DECLS` chain. An
|
|
162
|
+
* abstract base has no `Widgets` row and still owns signals — `GtkWidget` owns 13.
|
|
163
|
+
*/
|
|
164
|
+
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
165
|
+
|
|
166
|
+
/** Widget GType -> every declaration its members come from, self first. */
|
|
167
|
+
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
168
|
+
|
|
169
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
170
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
171
|
+
|
|
172
|
+
/** Enum GType -> the nicks this surface offers. */
|
|
173
|
+
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
174
|
+
|
|
175
|
+
/** Widget GType -> slot name -> the method that may adopt a child there. */
|
|
176
|
+
export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* `Type`, `Type.property` and `Type::signal` -> the release that introduced it.
|
|
180
|
+
*
|
|
181
|
+
* What keeps a runtime cross-check honest across a version gap without an
|
|
182
|
+
* allowlist: a name the installed library lacks is a defect UNLESS the version
|
|
183
|
+
* here is newer than the one running.
|
|
184
|
+
*
|
|
185
|
+
* ALL THREE key shapes, because that test only works for the names it covers. A
|
|
186
|
+
* property-only map leaves a consumer no way to explain a missing SIGNAL, which is
|
|
187
|
+
* a correct vocabulary reported as 18 defects; a member-only map leaves it no way to
|
|
188
|
+
* explain a missing CLASS, and that one fails as a bare
|
|
189
|
+
* `TypeError: can't access property "$gtype", ctor() is undefined` that does not
|
|
190
|
+
* even name the GType.
|
|
191
|
+
*
|
|
192
|
+
* A key is present only where the GIR states a version — sparse by nature (`version`
|
|
193
|
+
* sits on 29 of the 301 classes and interfaces in Gtk-4.0), never inferred.
|
|
194
|
+
*/
|
|
195
|
+
export const SINCE: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// The widget vocabulary of BraseroMedia-3.1 as runtime data.
|
|
2
|
+
//
|
|
3
|
+
// GENERATED — do not edit. Provenance: BraseroMedia-3.1 — 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 PROVENANCE = {
|
|
10
|
+
namespace: 'BraseroMedia',
|
|
11
|
+
version: '3.1',
|
|
12
|
+
libraryVersion: null,
|
|
13
|
+
childHolders: 0,
|
|
14
|
+
droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object', 'Atk.ImplementorIface'],
|
|
15
|
+
inlinedBases: [],
|
|
16
|
+
unsettableProps: [],
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const OWN_PROPS = {
|
|
20
|
+
BraseroDriveSelection: ['Drive', 'drive-type'],
|
|
21
|
+
BraseroMediumSelection: ['media-type', 'medium'],
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const OWN_SIGNALS = {
|
|
25
|
+
BraseroDriveSelection: ['drive-changed'],
|
|
26
|
+
BraseroMediumSelection: ['medium-changed'],
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const DECLS = {
|
|
30
|
+
BraseroDriveSelection: ['BraseroDriveSelection', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
|
|
31
|
+
BraseroMediumSelection: ['BraseroMediumSelection', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
35
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
36
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
37
|
+
// from a list — the count is in the provenance line above.
|
|
38
|
+
export const CHILD_HOLDERS = [];
|
|
39
|
+
|
|
40
|
+
export const ENUM_NICKS = {};
|
|
41
|
+
|
|
42
|
+
export const SLOT_CANDIDATES = {};
|
|
43
|
+
|
|
44
|
+
export const SINCE = {};
|
package/braseromedia-3.1.d.ts
CHANGED
|
@@ -37,48 +37,105 @@ export namespace BraseroMedia {
|
|
|
37
37
|
* @gir-type Enum
|
|
38
38
|
*/
|
|
39
39
|
enum MediaError {
|
|
40
|
-
NONE,
|
|
41
|
-
GENERAL,
|
|
42
|
-
IMAGE_INVALID,
|
|
40
|
+
NONE = 0,
|
|
41
|
+
GENERAL = 1,
|
|
42
|
+
IMAGE_INVALID = 2,
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* @default 16392
|
|
48
|
+
*/
|
|
46
49
|
const MEDIUM_BDRE: number;
|
|
47
50
|
|
|
51
|
+
/**
|
|
52
|
+
* @default 33800
|
|
53
|
+
*/
|
|
48
54
|
const MEDIUM_BDR_RANDOM: number;
|
|
49
55
|
|
|
56
|
+
/**
|
|
57
|
+
* @default 34824
|
|
58
|
+
*/
|
|
50
59
|
const MEDIUM_BDR_SRM: number;
|
|
51
60
|
|
|
61
|
+
/**
|
|
62
|
+
* @default 38920
|
|
63
|
+
*/
|
|
52
64
|
const MEDIUM_BDR_SRM_POW: number;
|
|
53
65
|
|
|
66
|
+
/**
|
|
67
|
+
* @default 65544
|
|
68
|
+
*/
|
|
54
69
|
const MEDIUM_BD_ROM: number;
|
|
55
70
|
|
|
71
|
+
/**
|
|
72
|
+
* @default 32770
|
|
73
|
+
*/
|
|
56
74
|
const MEDIUM_CDR: number;
|
|
57
75
|
|
|
76
|
+
/**
|
|
77
|
+
* @default 65538
|
|
78
|
+
*/
|
|
58
79
|
const MEDIUM_CDROM: number;
|
|
59
80
|
|
|
81
|
+
/**
|
|
82
|
+
* @default 16386
|
|
83
|
+
*/
|
|
60
84
|
const MEDIUM_CDRW: number;
|
|
61
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @default 32900
|
|
88
|
+
*/
|
|
62
89
|
const MEDIUM_DVDR: number;
|
|
63
90
|
|
|
91
|
+
/**
|
|
92
|
+
* @default 16516
|
|
93
|
+
*/
|
|
64
94
|
const MEDIUM_DVDRW: number;
|
|
65
95
|
|
|
96
|
+
/**
|
|
97
|
+
* @default 16452
|
|
98
|
+
*/
|
|
66
99
|
const MEDIUM_DVDRW_PLUS: number;
|
|
67
100
|
|
|
101
|
+
/**
|
|
102
|
+
* @default 16468
|
|
103
|
+
*/
|
|
68
104
|
const MEDIUM_DVDRW_PLUS_DL: number;
|
|
69
105
|
|
|
106
|
+
/**
|
|
107
|
+
* @default 16644
|
|
108
|
+
*/
|
|
70
109
|
const MEDIUM_DVDRW_RESTRICTED: number;
|
|
71
110
|
|
|
111
|
+
/**
|
|
112
|
+
* @default 32916
|
|
113
|
+
*/
|
|
72
114
|
const MEDIUM_DVDR_DL: number;
|
|
73
115
|
|
|
116
|
+
/**
|
|
117
|
+
* @default 33300
|
|
118
|
+
*/
|
|
74
119
|
const MEDIUM_DVDR_JUMP_DL: number;
|
|
75
120
|
|
|
121
|
+
/**
|
|
122
|
+
* @default 32836
|
|
123
|
+
*/
|
|
76
124
|
const MEDIUM_DVDR_PLUS: number;
|
|
77
125
|
|
|
126
|
+
/**
|
|
127
|
+
* @default 32852
|
|
128
|
+
*/
|
|
78
129
|
const MEDIUM_DVDR_PLUS_DL: number;
|
|
79
130
|
|
|
131
|
+
/**
|
|
132
|
+
* @default 36
|
|
133
|
+
*/
|
|
80
134
|
const MEDIUM_DVD_RAM: number;
|
|
81
135
|
|
|
136
|
+
/**
|
|
137
|
+
* @default 65540
|
|
138
|
+
*/
|
|
82
139
|
const MEDIUM_DVD_ROM: number;
|
|
83
140
|
|
|
84
141
|
/**
|
|
@@ -121,18 +178,18 @@ export namespace BraseroMedia {
|
|
|
121
178
|
* @gir-type Flags
|
|
122
179
|
*/
|
|
123
180
|
enum DriveCaps {
|
|
124
|
-
NONE,
|
|
125
|
-
CDR,
|
|
126
|
-
CDRW,
|
|
127
|
-
DVDR,
|
|
128
|
-
DVDRW,
|
|
129
|
-
DVDR_PLUS,
|
|
130
|
-
DVDRW_PLUS,
|
|
131
|
-
DVDR_PLUS_DL,
|
|
132
|
-
DVDRW_PLUS_DL,
|
|
133
|
-
DVDRAM,
|
|
134
|
-
BDR,
|
|
135
|
-
BDRW,
|
|
181
|
+
NONE = 0,
|
|
182
|
+
CDR = 1,
|
|
183
|
+
CDRW = 2,
|
|
184
|
+
DVDR = 4,
|
|
185
|
+
DVDRW = 8,
|
|
186
|
+
DVDR_PLUS = 16,
|
|
187
|
+
DVDRW_PLUS = 32,
|
|
188
|
+
DVDR_PLUS_DL = 64,
|
|
189
|
+
DVDRW_PLUS_DL = 128,
|
|
190
|
+
DVDRAM = 1024,
|
|
191
|
+
BDR = 256,
|
|
192
|
+
BDRW = 512,
|
|
136
193
|
}
|
|
137
194
|
|
|
138
195
|
|
|
@@ -140,12 +197,12 @@ export namespace BraseroMedia {
|
|
|
140
197
|
* @gir-type Flags
|
|
141
198
|
*/
|
|
142
199
|
enum DriveType {
|
|
143
|
-
NONE,
|
|
144
|
-
FILE,
|
|
145
|
-
WRITER,
|
|
146
|
-
READER,
|
|
147
|
-
ALL_BUT_FILE,
|
|
148
|
-
ALL,
|
|
200
|
+
NONE = 0,
|
|
201
|
+
FILE = 1,
|
|
202
|
+
WRITER = 2,
|
|
203
|
+
READER = 4,
|
|
204
|
+
ALL_BUT_FILE = 254,
|
|
205
|
+
ALL = 255,
|
|
149
206
|
}
|
|
150
207
|
|
|
151
208
|
|
|
@@ -155,32 +212,32 @@ export namespace BraseroMedia {
|
|
|
155
212
|
* @gir-type Flags
|
|
156
213
|
*/
|
|
157
214
|
enum Media {
|
|
158
|
-
UNSUPPORTED,
|
|
159
|
-
BUSY,
|
|
160
|
-
NONE,
|
|
161
|
-
FILE,
|
|
162
|
-
CD,
|
|
163
|
-
DVD,
|
|
164
|
-
BD,
|
|
165
|
-
DUAL_L,
|
|
166
|
-
RAM,
|
|
167
|
-
PLUS,
|
|
168
|
-
SEQUENTIAL,
|
|
169
|
-
RESTRICTED,
|
|
170
|
-
JUMP,
|
|
171
|
-
RANDOM,
|
|
172
|
-
SRM,
|
|
173
|
-
POW,
|
|
174
|
-
REWRITABLE,
|
|
175
|
-
WRITABLE,
|
|
176
|
-
ROM,
|
|
177
|
-
BLANK,
|
|
178
|
-
CLOSED,
|
|
179
|
-
APPENDABLE,
|
|
180
|
-
UNFORMATTED,
|
|
181
|
-
PROTECTED,
|
|
182
|
-
HAS_DATA,
|
|
183
|
-
HAS_AUDIO,
|
|
215
|
+
UNSUPPORTED = -2,
|
|
216
|
+
BUSY = -1,
|
|
217
|
+
NONE = 0,
|
|
218
|
+
FILE = 1,
|
|
219
|
+
CD = 2,
|
|
220
|
+
DVD = 4,
|
|
221
|
+
BD = 8,
|
|
222
|
+
DUAL_L = 16,
|
|
223
|
+
RAM = 32,
|
|
224
|
+
PLUS = 64,
|
|
225
|
+
SEQUENTIAL = 128,
|
|
226
|
+
RESTRICTED = 256,
|
|
227
|
+
JUMP = 512,
|
|
228
|
+
RANDOM = 1024,
|
|
229
|
+
SRM = 2048,
|
|
230
|
+
POW = 4096,
|
|
231
|
+
REWRITABLE = 16384,
|
|
232
|
+
WRITABLE = 32768,
|
|
233
|
+
ROM = 65536,
|
|
234
|
+
BLANK = 131072,
|
|
235
|
+
CLOSED = 262144,
|
|
236
|
+
APPENDABLE = 524288,
|
|
237
|
+
UNFORMATTED = 1048576,
|
|
238
|
+
PROTECTED = 2097152,
|
|
239
|
+
HAS_DATA = 4194304,
|
|
240
|
+
HAS_AUDIO = 8388608,
|
|
184
241
|
}
|
|
185
242
|
|
|
186
243
|
|
|
@@ -188,16 +245,16 @@ export namespace BraseroMedia {
|
|
|
188
245
|
* @gir-type Flags
|
|
189
246
|
*/
|
|
190
247
|
enum MediaType {
|
|
191
|
-
NONE,
|
|
192
|
-
FILE,
|
|
193
|
-
DATA,
|
|
194
|
-
AUDIO,
|
|
195
|
-
WRITABLE,
|
|
196
|
-
REWRITABLE,
|
|
197
|
-
ANY_IN_BURNER,
|
|
198
|
-
CD,
|
|
199
|
-
ALL_BUT_FILE,
|
|
200
|
-
ALL,
|
|
248
|
+
NONE = 0,
|
|
249
|
+
FILE = 1,
|
|
250
|
+
DATA = 2,
|
|
251
|
+
AUDIO = 4,
|
|
252
|
+
WRITABLE = 8,
|
|
253
|
+
REWRITABLE = 16,
|
|
254
|
+
ANY_IN_BURNER = 32,
|
|
255
|
+
CD = 64,
|
|
256
|
+
ALL_BUT_FILE = 254,
|
|
257
|
+
ALL = 255,
|
|
201
258
|
}
|
|
202
259
|
|
|
203
260
|
|
|
@@ -209,13 +266,13 @@ export namespace BraseroMedia {
|
|
|
209
266
|
* @signal
|
|
210
267
|
* @run-last
|
|
211
268
|
*/
|
|
212
|
-
"medium-added": (
|
|
269
|
+
"medium-added": (medium: Medium) => void;
|
|
213
270
|
/**
|
|
214
271
|
* This signal gets emitted when a medium is not longer available
|
|
215
272
|
* @signal
|
|
216
273
|
* @run-last
|
|
217
274
|
*/
|
|
218
|
-
"medium-removed": (
|
|
275
|
+
"medium-removed": (medium: Medium) => void;
|
|
219
276
|
"notify::device": (pspec: GObject.ParamSpec) => void;
|
|
220
277
|
"notify::gdrive": (pspec: GObject.ParamSpec) => void;
|
|
221
278
|
"notify::udi": (pspec: GObject.ParamSpec) => void;
|
|
@@ -330,6 +387,7 @@ export namespace BraseroMedia {
|
|
|
330
387
|
* Open the drive tray or ejects the media if there is any inside.
|
|
331
388
|
* @param wait `gboolean` whether to wait for the completion of the operation (with a GMainLoop)
|
|
332
389
|
* @returns a `gboolean`. TRUE on success, FALSE otherwise.
|
|
390
|
+
* @throws GLib.Error
|
|
333
391
|
*/
|
|
334
392
|
eject(wait: boolean): boolean;
|
|
335
393
|
|
|
@@ -447,7 +505,7 @@ export namespace BraseroMedia {
|
|
|
447
505
|
* @action
|
|
448
506
|
* @run-first
|
|
449
507
|
*/
|
|
450
|
-
"drive-changed": (
|
|
508
|
+
"drive-changed": (drive: Drive) => void;
|
|
451
509
|
"notify::drive": (pspec: GObject.ParamSpec) => void;
|
|
452
510
|
"notify::drive-type": (pspec: GObject.ParamSpec) => void;
|
|
453
511
|
"notify::active": (pspec: GObject.ParamSpec) => void;
|
|
@@ -678,12 +736,14 @@ export namespace BraseroMedia {
|
|
|
678
736
|
* @param cell a {@link Gtk.CellRenderer}
|
|
679
737
|
* @param attribute an attribute on the renderer
|
|
680
738
|
* @param column the column position on the model to get the attribute from
|
|
739
|
+
* @since 2.4
|
|
681
740
|
*/
|
|
682
741
|
add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
683
742
|
|
|
684
743
|
/**
|
|
685
744
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
686
745
|
* removes all renderers from `cell_layout`.
|
|
746
|
+
* @since 2.4
|
|
687
747
|
*/
|
|
688
748
|
clear(): void;
|
|
689
749
|
|
|
@@ -691,6 +751,7 @@ export namespace BraseroMedia {
|
|
|
691
751
|
* Clears all existing attributes previously set with
|
|
692
752
|
* `gtk_cell_layout_set_attributes()`.
|
|
693
753
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
754
|
+
* @since 2.4
|
|
694
755
|
*/
|
|
695
756
|
clear_attributes(cell: Gtk.CellRenderer): void;
|
|
696
757
|
|
|
@@ -699,12 +760,14 @@ export namespace BraseroMedia {
|
|
|
699
760
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
700
761
|
* is used by `cell_layout`.
|
|
701
762
|
* @returns the cell area used by `cell_layout`, or `null` in case no cell area is used.
|
|
763
|
+
* @since 3.0
|
|
702
764
|
*/
|
|
703
765
|
get_area(): Gtk.CellArea | null;
|
|
704
766
|
|
|
705
767
|
/**
|
|
706
768
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
707
769
|
* @returns a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with `g_list_free()` when no longer needed.
|
|
770
|
+
* @since 2.12
|
|
708
771
|
*/
|
|
709
772
|
get_cells(): Gtk.CellRenderer[];
|
|
710
773
|
|
|
@@ -716,6 +779,7 @@ export namespace BraseroMedia {
|
|
|
716
779
|
* Note that reusing the same cell renderer is not supported.
|
|
717
780
|
* @param cell a {@link Gtk.CellRenderer}
|
|
718
781
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
782
|
+
* @since 2.4
|
|
719
783
|
*/
|
|
720
784
|
pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
721
785
|
|
|
@@ -727,6 +791,7 @@ export namespace BraseroMedia {
|
|
|
727
791
|
* Note that reusing the same cell renderer is not supported.
|
|
728
792
|
* @param cell a {@link Gtk.CellRenderer}
|
|
729
793
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
794
|
+
* @since 2.4
|
|
730
795
|
*/
|
|
731
796
|
pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
732
797
|
|
|
@@ -737,6 +802,7 @@ export namespace BraseroMedia {
|
|
|
737
802
|
* for this to function properly.
|
|
738
803
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
739
804
|
* @param position new position to insert `cell` at
|
|
805
|
+
* @since 2.4
|
|
740
806
|
*/
|
|
741
807
|
reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
742
808
|
|
|
@@ -750,6 +816,7 @@ export namespace BraseroMedia {
|
|
|
750
816
|
* `func` may be `null` to remove a previously set function.
|
|
751
817
|
* @param cell a {@link Gtk.CellRenderer}
|
|
752
818
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
819
|
+
* @since 2.4
|
|
753
820
|
*/
|
|
754
821
|
set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
755
822
|
|
|
@@ -763,6 +830,7 @@ export namespace BraseroMedia {
|
|
|
763
830
|
* @param cell a {@link Gtk.CellRenderer}
|
|
764
831
|
* @param attribute an attribute on the renderer
|
|
765
832
|
* @param column the column position on the model to get the attribute from
|
|
833
|
+
* @since 2.4
|
|
766
834
|
* @virtual
|
|
767
835
|
*/
|
|
768
836
|
vfunc_add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
@@ -770,6 +838,7 @@ export namespace BraseroMedia {
|
|
|
770
838
|
/**
|
|
771
839
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
772
840
|
* removes all renderers from `cell_layout`.
|
|
841
|
+
* @since 2.4
|
|
773
842
|
* @virtual
|
|
774
843
|
*/
|
|
775
844
|
vfunc_clear(): void;
|
|
@@ -778,6 +847,7 @@ export namespace BraseroMedia {
|
|
|
778
847
|
* Clears all existing attributes previously set with
|
|
779
848
|
* `gtk_cell_layout_set_attributes()`.
|
|
780
849
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
850
|
+
* @since 2.4
|
|
781
851
|
* @virtual
|
|
782
852
|
*/
|
|
783
853
|
vfunc_clear_attributes(cell: Gtk.CellRenderer): void;
|
|
@@ -786,12 +856,14 @@ export namespace BraseroMedia {
|
|
|
786
856
|
* Returns the underlying {@link Gtk.CellArea} which might be `cell_layout`
|
|
787
857
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
788
858
|
* is used by `cell_layout`.
|
|
859
|
+
* @since 3.0
|
|
789
860
|
* @virtual
|
|
790
861
|
*/
|
|
791
862
|
vfunc_get_area(): Gtk.CellArea | null;
|
|
792
863
|
|
|
793
864
|
/**
|
|
794
865
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
866
|
+
* @since 2.12
|
|
795
867
|
* @virtual
|
|
796
868
|
*/
|
|
797
869
|
vfunc_get_cells(): Gtk.CellRenderer[];
|
|
@@ -804,6 +876,7 @@ export namespace BraseroMedia {
|
|
|
804
876
|
* Note that reusing the same cell renderer is not supported.
|
|
805
877
|
* @param cell a {@link Gtk.CellRenderer}
|
|
806
878
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
879
|
+
* @since 2.4
|
|
807
880
|
* @virtual
|
|
808
881
|
*/
|
|
809
882
|
vfunc_pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -816,6 +889,7 @@ export namespace BraseroMedia {
|
|
|
816
889
|
* Note that reusing the same cell renderer is not supported.
|
|
817
890
|
* @param cell a {@link Gtk.CellRenderer}
|
|
818
891
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
892
|
+
* @since 2.4
|
|
819
893
|
* @virtual
|
|
820
894
|
*/
|
|
821
895
|
vfunc_pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -827,6 +901,7 @@ export namespace BraseroMedia {
|
|
|
827
901
|
* for this to function properly.
|
|
828
902
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
829
903
|
* @param position new position to insert `cell` at
|
|
904
|
+
* @since 2.4
|
|
830
905
|
* @virtual
|
|
831
906
|
*/
|
|
832
907
|
vfunc_reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
@@ -841,6 +916,7 @@ export namespace BraseroMedia {
|
|
|
841
916
|
* `func` may be `null` to remove a previously set function.
|
|
842
917
|
* @param cell a {@link Gtk.CellRenderer}
|
|
843
918
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
919
|
+
* @since 2.4
|
|
844
920
|
* @virtual
|
|
845
921
|
*/
|
|
846
922
|
vfunc_set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
@@ -867,6 +943,7 @@ export namespace BraseroMedia {
|
|
|
867
943
|
* Returns whether the widget should grab focus when it is clicked with the mouse.
|
|
868
944
|
* See `gtk_widget_set_focus_on_click()`.
|
|
869
945
|
* @returns `true` if the widget should grab focus when it is clicked with the mouse.
|
|
946
|
+
* @since 3.20
|
|
870
947
|
*/
|
|
871
948
|
get_focus_on_click(): boolean;
|
|
872
949
|
|
|
@@ -876,6 +953,7 @@ export namespace BraseroMedia {
|
|
|
876
953
|
* you don’t want the keyboard focus removed from the main area of the
|
|
877
954
|
* application.
|
|
878
955
|
* @param focus_on_click whether the widget should grab focus when clicked with the mouse
|
|
956
|
+
* @since 3.20
|
|
879
957
|
*/
|
|
880
958
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
881
959
|
}
|
|
@@ -1121,25 +1199,25 @@ export namespace BraseroMedia {
|
|
|
1121
1199
|
* @signal
|
|
1122
1200
|
* @run-last
|
|
1123
1201
|
*/
|
|
1124
|
-
"drive-added": (
|
|
1202
|
+
"drive-added": (medium: Drive) => void;
|
|
1125
1203
|
/**
|
|
1126
1204
|
* This signal gets emitted when a drive is not longer available
|
|
1127
1205
|
* @signal
|
|
1128
1206
|
* @run-last
|
|
1129
1207
|
*/
|
|
1130
|
-
"drive-removed": (
|
|
1208
|
+
"drive-removed": (medium: Drive) => void;
|
|
1131
1209
|
/**
|
|
1132
1210
|
* This signal gets emitted when a new medium was detected
|
|
1133
1211
|
* @signal
|
|
1134
1212
|
* @run-last
|
|
1135
1213
|
*/
|
|
1136
|
-
"medium-added": (
|
|
1214
|
+
"medium-added": (medium: Medium) => void;
|
|
1137
1215
|
/**
|
|
1138
1216
|
* This signal gets emitted when a medium is not longer available
|
|
1139
1217
|
* @signal
|
|
1140
1218
|
* @run-last
|
|
1141
1219
|
*/
|
|
1142
|
-
"medium-removed": (
|
|
1220
|
+
"medium-removed": (medium: Medium) => void;
|
|
1143
1221
|
}
|
|
1144
1222
|
|
|
1145
1223
|
// Constructor properties interface
|
|
@@ -1236,7 +1314,7 @@ export namespace BraseroMedia {
|
|
|
1236
1314
|
* @action
|
|
1237
1315
|
* @run-first
|
|
1238
1316
|
*/
|
|
1239
|
-
"medium-changed": (
|
|
1317
|
+
"medium-changed": (medium: Medium) => void;
|
|
1240
1318
|
"notify::media-type": (pspec: GObject.ParamSpec) => void;
|
|
1241
1319
|
"notify::medium": (pspec: GObject.ParamSpec) => void;
|
|
1242
1320
|
"notify::active": (pspec: GObject.ParamSpec) => void;
|
|
@@ -1473,12 +1551,14 @@ export namespace BraseroMedia {
|
|
|
1473
1551
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1474
1552
|
* @param attribute an attribute on the renderer
|
|
1475
1553
|
* @param column the column position on the model to get the attribute from
|
|
1554
|
+
* @since 2.4
|
|
1476
1555
|
*/
|
|
1477
1556
|
add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
1478
1557
|
|
|
1479
1558
|
/**
|
|
1480
1559
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
1481
1560
|
* removes all renderers from `cell_layout`.
|
|
1561
|
+
* @since 2.4
|
|
1482
1562
|
*/
|
|
1483
1563
|
clear(): void;
|
|
1484
1564
|
|
|
@@ -1486,6 +1566,7 @@ export namespace BraseroMedia {
|
|
|
1486
1566
|
* Clears all existing attributes previously set with
|
|
1487
1567
|
* `gtk_cell_layout_set_attributes()`.
|
|
1488
1568
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
1569
|
+
* @since 2.4
|
|
1489
1570
|
*/
|
|
1490
1571
|
clear_attributes(cell: Gtk.CellRenderer): void;
|
|
1491
1572
|
|
|
@@ -1494,12 +1575,14 @@ export namespace BraseroMedia {
|
|
|
1494
1575
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
1495
1576
|
* is used by `cell_layout`.
|
|
1496
1577
|
* @returns the cell area used by `cell_layout`, or `null` in case no cell area is used.
|
|
1578
|
+
* @since 3.0
|
|
1497
1579
|
*/
|
|
1498
1580
|
get_area(): Gtk.CellArea | null;
|
|
1499
1581
|
|
|
1500
1582
|
/**
|
|
1501
1583
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
1502
1584
|
* @returns a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with `g_list_free()` when no longer needed.
|
|
1585
|
+
* @since 2.12
|
|
1503
1586
|
*/
|
|
1504
1587
|
get_cells(): Gtk.CellRenderer[];
|
|
1505
1588
|
|
|
@@ -1511,6 +1594,7 @@ export namespace BraseroMedia {
|
|
|
1511
1594
|
* Note that reusing the same cell renderer is not supported.
|
|
1512
1595
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1513
1596
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1597
|
+
* @since 2.4
|
|
1514
1598
|
*/
|
|
1515
1599
|
pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
1516
1600
|
|
|
@@ -1522,6 +1606,7 @@ export namespace BraseroMedia {
|
|
|
1522
1606
|
* Note that reusing the same cell renderer is not supported.
|
|
1523
1607
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1524
1608
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1609
|
+
* @since 2.4
|
|
1525
1610
|
*/
|
|
1526
1611
|
pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
1527
1612
|
|
|
@@ -1532,6 +1617,7 @@ export namespace BraseroMedia {
|
|
|
1532
1617
|
* for this to function properly.
|
|
1533
1618
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
1534
1619
|
* @param position new position to insert `cell` at
|
|
1620
|
+
* @since 2.4
|
|
1535
1621
|
*/
|
|
1536
1622
|
reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
1537
1623
|
|
|
@@ -1545,6 +1631,7 @@ export namespace BraseroMedia {
|
|
|
1545
1631
|
* `func` may be `null` to remove a previously set function.
|
|
1546
1632
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1547
1633
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
1634
|
+
* @since 2.4
|
|
1548
1635
|
*/
|
|
1549
1636
|
set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
1550
1637
|
|
|
@@ -1558,6 +1645,7 @@ export namespace BraseroMedia {
|
|
|
1558
1645
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1559
1646
|
* @param attribute an attribute on the renderer
|
|
1560
1647
|
* @param column the column position on the model to get the attribute from
|
|
1648
|
+
* @since 2.4
|
|
1561
1649
|
* @virtual
|
|
1562
1650
|
*/
|
|
1563
1651
|
vfunc_add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
@@ -1565,6 +1653,7 @@ export namespace BraseroMedia {
|
|
|
1565
1653
|
/**
|
|
1566
1654
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
1567
1655
|
* removes all renderers from `cell_layout`.
|
|
1656
|
+
* @since 2.4
|
|
1568
1657
|
* @virtual
|
|
1569
1658
|
*/
|
|
1570
1659
|
vfunc_clear(): void;
|
|
@@ -1573,6 +1662,7 @@ export namespace BraseroMedia {
|
|
|
1573
1662
|
* Clears all existing attributes previously set with
|
|
1574
1663
|
* `gtk_cell_layout_set_attributes()`.
|
|
1575
1664
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
1665
|
+
* @since 2.4
|
|
1576
1666
|
* @virtual
|
|
1577
1667
|
*/
|
|
1578
1668
|
vfunc_clear_attributes(cell: Gtk.CellRenderer): void;
|
|
@@ -1581,12 +1671,14 @@ export namespace BraseroMedia {
|
|
|
1581
1671
|
* Returns the underlying {@link Gtk.CellArea} which might be `cell_layout`
|
|
1582
1672
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
1583
1673
|
* is used by `cell_layout`.
|
|
1674
|
+
* @since 3.0
|
|
1584
1675
|
* @virtual
|
|
1585
1676
|
*/
|
|
1586
1677
|
vfunc_get_area(): Gtk.CellArea | null;
|
|
1587
1678
|
|
|
1588
1679
|
/**
|
|
1589
1680
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
1681
|
+
* @since 2.12
|
|
1590
1682
|
* @virtual
|
|
1591
1683
|
*/
|
|
1592
1684
|
vfunc_get_cells(): Gtk.CellRenderer[];
|
|
@@ -1599,6 +1691,7 @@ export namespace BraseroMedia {
|
|
|
1599
1691
|
* Note that reusing the same cell renderer is not supported.
|
|
1600
1692
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1601
1693
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1694
|
+
* @since 2.4
|
|
1602
1695
|
* @virtual
|
|
1603
1696
|
*/
|
|
1604
1697
|
vfunc_pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -1611,6 +1704,7 @@ export namespace BraseroMedia {
|
|
|
1611
1704
|
* Note that reusing the same cell renderer is not supported.
|
|
1612
1705
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1613
1706
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1707
|
+
* @since 2.4
|
|
1614
1708
|
* @virtual
|
|
1615
1709
|
*/
|
|
1616
1710
|
vfunc_pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -1622,6 +1716,7 @@ export namespace BraseroMedia {
|
|
|
1622
1716
|
* for this to function properly.
|
|
1623
1717
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
1624
1718
|
* @param position new position to insert `cell` at
|
|
1719
|
+
* @since 2.4
|
|
1625
1720
|
* @virtual
|
|
1626
1721
|
*/
|
|
1627
1722
|
vfunc_reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
@@ -1636,6 +1731,7 @@ export namespace BraseroMedia {
|
|
|
1636
1731
|
* `func` may be `null` to remove a previously set function.
|
|
1637
1732
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1638
1733
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
1734
|
+
* @since 2.4
|
|
1639
1735
|
* @virtual
|
|
1640
1736
|
*/
|
|
1641
1737
|
vfunc_set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
@@ -1662,6 +1758,7 @@ export namespace BraseroMedia {
|
|
|
1662
1758
|
* Returns whether the widget should grab focus when it is clicked with the mouse.
|
|
1663
1759
|
* See `gtk_widget_set_focus_on_click()`.
|
|
1664
1760
|
* @returns `true` if the widget should grab focus when it is clicked with the mouse.
|
|
1761
|
+
* @since 3.20
|
|
1665
1762
|
*/
|
|
1666
1763
|
get_focus_on_click(): boolean;
|
|
1667
1764
|
|
|
@@ -1671,6 +1768,7 @@ export namespace BraseroMedia {
|
|
|
1671
1768
|
* you don’t want the keyboard focus removed from the main area of the
|
|
1672
1769
|
* application.
|
|
1673
1770
|
* @param focus_on_click whether the widget should grab focus when clicked with the mouse
|
|
1771
|
+
* @since 3.20
|
|
1674
1772
|
*/
|
|
1675
1773
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
1676
1774
|
}
|
|
@@ -1728,6 +1826,7 @@ export namespace BraseroMedia {
|
|
|
1728
1826
|
/**
|
|
1729
1827
|
* Returns the path for mount point for `volume`.
|
|
1730
1828
|
* @returns a `gchar` *
|
|
1829
|
+
* @throws GLib.Error
|
|
1731
1830
|
*/
|
|
1732
1831
|
get_mount_point(): string;
|
|
1733
1832
|
|
|
@@ -1751,6 +1850,7 @@ export namespace BraseroMedia {
|
|
|
1751
1850
|
* @param parent_window {@link Gtk.Window} *
|
|
1752
1851
|
* @param wait `gboolean`
|
|
1753
1852
|
* @returns a `gboolean`. TRUE if the operation succeeded.
|
|
1853
|
+
* @throws GLib.Error
|
|
1754
1854
|
*/
|
|
1755
1855
|
mount(parent_window: Gtk.Window, wait: boolean): boolean;
|
|
1756
1856
|
|
|
@@ -1759,6 +1859,7 @@ export namespace BraseroMedia {
|
|
|
1759
1859
|
* the operation finishes.
|
|
1760
1860
|
* @param wait `gboolean`
|
|
1761
1861
|
* @returns a `gboolean`. TRUE if the operation succeeded.
|
|
1862
|
+
* @throws GLib.Error
|
|
1762
1863
|
*/
|
|
1763
1864
|
umount(wait: boolean): boolean;
|
|
1764
1865
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/braseromedia-3.1",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for BraseroMedia-3.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "braseromedia-3.1.js",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"import": "./braseromedia-3.1-import.js",
|
|
17
17
|
"default": "./braseromedia-3.1-import.js"
|
|
18
18
|
},
|
|
19
|
-
"./
|
|
20
|
-
"types": "./braseromedia-3.1-
|
|
21
|
-
"import": "./braseromedia-3.1-
|
|
22
|
-
"default": "./braseromedia-3.1-
|
|
19
|
+
"./vocabulary": {
|
|
20
|
+
"types": "./braseromedia-3.1-vocabulary.d.ts",
|
|
21
|
+
"import": "./braseromedia-3.1-vocabulary.js",
|
|
22
|
+
"default": "./braseromedia-3.1-vocabulary.js"
|
|
23
23
|
},
|
|
24
24
|
"./braseromedia-3.1": {
|
|
25
25
|
"types": "./braseromedia-3.1.d.ts",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^4.
|
|
40
|
-
"@girs/gtk-3.0": "^4.
|
|
41
|
-
"@girs/xlib-2.0": "^4.
|
|
42
|
-
"@girs/gdk-3.0": "^4.
|
|
43
|
-
"@girs/cairo-1.0": "^4.
|
|
44
|
-
"@girs/gobject-2.0": "^4.
|
|
45
|
-
"@girs/glib-2.0": "^4.
|
|
46
|
-
"@girs/pango-1.0": "^4.
|
|
47
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
48
|
-
"@girs/freetype2-2.0": "^4.
|
|
49
|
-
"@girs/gio-2.0": "^4.
|
|
50
|
-
"@girs/gmodule-2.0": "^4.
|
|
51
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
52
|
-
"@girs/atk-1.0": "^4.
|
|
39
|
+
"@girs/gjs": "^4.5.0",
|
|
40
|
+
"@girs/gtk-3.0": "^4.5.0",
|
|
41
|
+
"@girs/xlib-2.0": "^4.5.0",
|
|
42
|
+
"@girs/gdk-3.0": "^4.5.0",
|
|
43
|
+
"@girs/cairo-1.0": "^4.5.0",
|
|
44
|
+
"@girs/gobject-2.0": "^4.5.0",
|
|
45
|
+
"@girs/glib-2.0": "^4.5.0",
|
|
46
|
+
"@girs/pango-1.0": "^4.5.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^4.5.0",
|
|
48
|
+
"@girs/freetype2-2.0": "^4.5.0",
|
|
49
|
+
"@girs/gio-2.0": "^4.5.0",
|
|
50
|
+
"@girs/gmodule-2.0": "^4.5.0",
|
|
51
|
+
"@girs/gdkpixbuf-2.0": "^4.5.0",
|
|
52
|
+
"@girs/atk-1.0": "^4.5.0" },
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|
|
55
55
|
},
|