@girs/cinnamondesktop-3.0 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 +36 -41
- package/cinnamondesktop-3.0.d.ts +68 -22
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -4,82 +4,77 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
GJS TypeScript type definitions for CinnamonDesktop-3.0 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/cinnamondesktop-3.0
|
|
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/cinnamondesktop-3.0` | the namespace as a default export, plus the ambient and global declarations |
|
|
26
|
+
| `@girs/cinnamondesktop-3.0/ambient` | only the `gi://` module declarations |
|
|
27
|
+
| `@girs/cinnamondesktop-3.0/import` | only the `imports.gi` declarations |
|
|
28
|
+
| `@girs/cinnamondesktop-3.0/cinnamondesktop-3.0` | the namespace, without the side-effecting declarations |
|
|
29
|
+
|
|
30
|
+
## Three ways to import
|
|
31
|
+
|
|
32
|
+
Which one you use depends on how you write imports elsewhere, not on your toolchain.
|
|
33
|
+
|
|
34
|
+
### As a module
|
|
18
35
|
|
|
19
|
-
Import it like any other module:
|
|
20
36
|
```ts
|
|
21
37
|
import CinnamonDesktop from '@girs/cinnamondesktop-3.0';
|
|
22
38
|
```
|
|
23
39
|
|
|
24
|
-
###
|
|
40
|
+
### As `gi://`
|
|
25
41
|
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
GJS resolves `gi://` at runtime. To give it types, reference the package once, either
|
|
43
|
+
from your entry point or from `tsconfig.json`:
|
|
28
44
|
|
|
29
|
-
`index.ts`:
|
|
30
45
|
```ts
|
|
31
|
-
import '@girs/cinnamondesktop-3.0'
|
|
46
|
+
import '@girs/cinnamondesktop-3.0';
|
|
32
47
|
```
|
|
33
48
|
|
|
34
|
-
`tsconfig.json`:
|
|
35
49
|
```json
|
|
36
|
-
{
|
|
37
|
-
"compilerOptions": {
|
|
38
|
-
...
|
|
39
|
-
},
|
|
40
|
-
"include": ["@girs/cinnamondesktop-3.0"],
|
|
41
|
-
...
|
|
42
|
-
}
|
|
50
|
+
{ "include": ["@girs/cinnamondesktop-3.0"] }
|
|
43
51
|
```
|
|
44
52
|
|
|
45
|
-
|
|
53
|
+
Then the runtime spelling type-checks:
|
|
46
54
|
|
|
47
55
|
```ts
|
|
48
56
|
import CinnamonDesktop from 'gi://CinnamonDesktop?version=3.0';
|
|
49
57
|
```
|
|
50
58
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
GJS's global `imports.gi` works too, with types.
|
|
54
|
-
For this you need to include `@girs/cinnamondesktop-3.0` or `@girs/cinnamondesktop-3.0/import` in your `tsconfig` or entry point Typescript file:
|
|
59
|
+
Referencing `@girs/cinnamondesktop-3.0/ambient` instead pulls in these declarations
|
|
60
|
+
alone. See [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules).
|
|
55
61
|
|
|
56
|
-
`
|
|
57
|
-
```ts
|
|
58
|
-
import '@girs/cinnamondesktop-3.0'
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
`tsconfig.json`:
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"compilerOptions": {
|
|
65
|
-
...
|
|
66
|
-
},
|
|
67
|
-
"include": ["@girs/cinnamondesktop-3.0"],
|
|
68
|
-
...
|
|
69
|
-
}
|
|
70
|
-
```
|
|
62
|
+
### As `imports.gi`
|
|
71
63
|
|
|
72
|
-
|
|
64
|
+
GJS's global object works the same way, via `@girs/cinnamondesktop-3.0/import`:
|
|
73
65
|
|
|
74
66
|
```ts
|
|
75
67
|
const CinnamonDesktop = imports.gi.CinnamonDesktop;
|
|
76
68
|
```
|
|
77
69
|
|
|
78
|
-
|
|
70
|
+
## Building
|
|
79
71
|
|
|
80
|
-
|
|
72
|
+
The declarations need no build step. If you bundle, every bundler works, since there is
|
|
73
|
+
no runtime code to resolve. The [examples](https://github.com/gjsify/ts-for-gir/tree/main/examples)
|
|
74
|
+
show working setups for several.
|
|
81
75
|
|
|
82
76
|
## Other packages
|
|
83
77
|
|
|
84
|
-
|
|
78
|
+
Every pre-generated package is at [gjsify/types](https://github.com/gjsify/types).
|
|
79
|
+
|
|
85
80
|
|
package/cinnamondesktop-3.0.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export namespace CinnamonDesktop {
|
|
|
37
37
|
* @gir-type Enum
|
|
38
38
|
*/
|
|
39
39
|
enum DesktopThumbnailSize {
|
|
40
|
-
NORMAL,
|
|
41
|
-
LARGE,
|
|
40
|
+
NORMAL = 0,
|
|
41
|
+
LARGE = 1,
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
|
|
@@ -46,11 +46,11 @@ export namespace CinnamonDesktop {
|
|
|
46
46
|
* @gir-type Enum
|
|
47
47
|
*/
|
|
48
48
|
enum RRDpmsMode {
|
|
49
|
-
ON,
|
|
50
|
-
STANDBY,
|
|
51
|
-
SUSPEND,
|
|
52
|
-
OFF,
|
|
53
|
-
UNKNOWN,
|
|
49
|
+
ON = 0,
|
|
50
|
+
STANDBY = 1,
|
|
51
|
+
SUSPEND = 2,
|
|
52
|
+
OFF = 3,
|
|
53
|
+
UNKNOWN = 4,
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
|
|
@@ -65,11 +65,11 @@ export namespace CinnamonDesktop {
|
|
|
65
65
|
* @gir-type Enum
|
|
66
66
|
*/
|
|
67
67
|
enum RRDpmsModeType {
|
|
68
|
-
ON,
|
|
69
|
-
STANDBY,
|
|
70
|
-
SUSPEND,
|
|
71
|
-
OFF,
|
|
72
|
-
UNKNOWN,
|
|
68
|
+
ON = 0,
|
|
69
|
+
STANDBY = 1,
|
|
70
|
+
SUSPEND = 2,
|
|
71
|
+
OFF = 3,
|
|
72
|
+
UNKNOWN = 4,
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
|
|
@@ -99,6 +99,9 @@ export namespace CinnamonDesktop {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* @default Panel
|
|
104
|
+
*/
|
|
102
105
|
const RR_CONNECTOR_TYPE_PANEL: string;
|
|
103
106
|
|
|
104
107
|
/**
|
|
@@ -372,6 +375,7 @@ export namespace CinnamonDesktop {
|
|
|
372
375
|
* created. It solely means that no error condition was hit sending the request.
|
|
373
376
|
* @param res A {@link Gio.AsyncResult}
|
|
374
377
|
* @returns `false` on error, `true` otherwise
|
|
378
|
+
* @throws GLib.Error
|
|
375
379
|
*/
|
|
376
380
|
function start_systemd_scope_finish(res: Gio.AsyncResult): boolean;
|
|
377
381
|
|
|
@@ -386,13 +390,13 @@ export namespace CinnamonDesktop {
|
|
|
386
390
|
* @gir-type Flags
|
|
387
391
|
*/
|
|
388
392
|
enum RRRotation {
|
|
389
|
-
ROTATION_NEXT,
|
|
390
|
-
ROTATION_0,
|
|
391
|
-
ROTATION_90,
|
|
392
|
-
ROTATION_180,
|
|
393
|
-
ROTATION_270,
|
|
394
|
-
REFLECT_X,
|
|
395
|
-
REFLECT_Y,
|
|
393
|
+
ROTATION_NEXT = 0,
|
|
394
|
+
ROTATION_0 = 1,
|
|
395
|
+
ROTATION_90 = 2,
|
|
396
|
+
ROTATION_180 = 4,
|
|
397
|
+
ROTATION_270 = 8,
|
|
398
|
+
REFLECT_X = 16,
|
|
399
|
+
REFLECT_Y = 32,
|
|
396
400
|
}
|
|
397
401
|
|
|
398
402
|
|
|
@@ -613,7 +617,7 @@ export namespace CinnamonDesktop {
|
|
|
613
617
|
* @signal
|
|
614
618
|
* @run-last
|
|
615
619
|
*/
|
|
616
|
-
finished: (
|
|
620
|
+
finished: (window: GObject.Object) => void;
|
|
617
621
|
"notify::height": (pspec: GObject.ParamSpec) => void;
|
|
618
622
|
"notify::width": (pspec: GObject.ParamSpec) => void;
|
|
619
623
|
}
|
|
@@ -786,6 +790,7 @@ export namespace CinnamonDesktop {
|
|
|
786
790
|
* @param mime_type the mime type of the file
|
|
787
791
|
* @param mtime the mtime of the file
|
|
788
792
|
* @returns TRUE if the file can be thumbnailed.
|
|
793
|
+
* @since 2.2
|
|
789
794
|
*/
|
|
790
795
|
can_thumbnail(uri: string, mime_type: string, mtime: bigint | number): boolean;
|
|
791
796
|
|
|
@@ -796,6 +801,7 @@ export namespace CinnamonDesktop {
|
|
|
796
801
|
* Usage of this function is threadsafe.
|
|
797
802
|
* @param uri the uri of a file
|
|
798
803
|
* @param mtime the modification time of the file
|
|
804
|
+
* @since 2.2
|
|
799
805
|
*/
|
|
800
806
|
create_failed_thumbnail(uri: string, mtime: bigint | number): void;
|
|
801
807
|
|
|
@@ -807,6 +813,7 @@ export namespace CinnamonDesktop {
|
|
|
807
813
|
* @param uri the uri of a file
|
|
808
814
|
* @param mime_type the mime type of the file
|
|
809
815
|
* @returns thumbnail pixbuf if thumbnailing succeeded, `null` otherwise.
|
|
816
|
+
* @since 2.2
|
|
810
817
|
*/
|
|
811
818
|
generate_thumbnail(uri: string, mime_type: string): GdkPixbuf.Pixbuf;
|
|
812
819
|
|
|
@@ -819,6 +826,7 @@ export namespace CinnamonDesktop {
|
|
|
819
826
|
* @param uri the uri of a file
|
|
820
827
|
* @param mtime the mtime of the file
|
|
821
828
|
* @returns TRUE if there is a failed thumbnail for the file.
|
|
829
|
+
* @since 2.2
|
|
822
830
|
*/
|
|
823
831
|
has_valid_failed_thumbnail(uri: string, mtime: bigint | number): boolean;
|
|
824
832
|
|
|
@@ -829,6 +837,7 @@ export namespace CinnamonDesktop {
|
|
|
829
837
|
* @param uri the uri of a file
|
|
830
838
|
* @param mtime the mtime of the file
|
|
831
839
|
* @returns The absolute path of the thumbnail, or `null` if none exist.
|
|
840
|
+
* @since 2.2
|
|
832
841
|
*/
|
|
833
842
|
lookup(uri: string, mtime: bigint | number): string;
|
|
834
843
|
|
|
@@ -840,6 +849,7 @@ export namespace CinnamonDesktop {
|
|
|
840
849
|
* @param thumbnail the thumbnail as a pixbuf
|
|
841
850
|
* @param uri the uri of a file
|
|
842
851
|
* @param original_mtime the modification time of the original file
|
|
852
|
+
* @since 2.2
|
|
843
853
|
*/
|
|
844
854
|
save_thumbnail(thumbnail: GdkPixbuf.Pixbuf, uri: string, original_mtime: bigint | number): void;
|
|
845
855
|
}
|
|
@@ -956,6 +966,8 @@ export namespace CinnamonDesktop {
|
|
|
956
966
|
* instance.
|
|
957
967
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
958
968
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
969
|
+
* @since 2.22
|
|
970
|
+
* @throws GLib.Error
|
|
959
971
|
*/
|
|
960
972
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
961
973
|
|
|
@@ -999,6 +1011,7 @@ export namespace CinnamonDesktop {
|
|
|
999
1011
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
1000
1012
|
* instance.
|
|
1001
1013
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1014
|
+
* @since 2.22
|
|
1002
1015
|
* @virtual
|
|
1003
1016
|
*/
|
|
1004
1017
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -1114,16 +1127,19 @@ export namespace CinnamonDesktop {
|
|
|
1114
1127
|
// Methods
|
|
1115
1128
|
/**
|
|
1116
1129
|
* @param screen
|
|
1130
|
+
* @throws GLib.Error
|
|
1117
1131
|
*/
|
|
1118
1132
|
applicable(screen: RRScreen): boolean;
|
|
1119
1133
|
|
|
1120
1134
|
/**
|
|
1121
1135
|
* @param screen
|
|
1136
|
+
* @throws GLib.Error
|
|
1122
1137
|
*/
|
|
1123
1138
|
apply(screen: RRScreen): boolean;
|
|
1124
1139
|
|
|
1125
1140
|
/**
|
|
1126
1141
|
* @param screen
|
|
1142
|
+
* @throws GLib.Error
|
|
1127
1143
|
*/
|
|
1128
1144
|
apply_persistent(screen: RRScreen): boolean;
|
|
1129
1145
|
|
|
@@ -1144,6 +1160,9 @@ export namespace CinnamonDesktop {
|
|
|
1144
1160
|
*/
|
|
1145
1161
|
get_outputs(): RROutputInfo[];
|
|
1146
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* @throws GLib.Error
|
|
1165
|
+
*/
|
|
1147
1166
|
load_current(): boolean;
|
|
1148
1167
|
|
|
1149
1168
|
/**
|
|
@@ -1392,7 +1411,7 @@ export namespace CinnamonDesktop {
|
|
|
1392
1411
|
* @signal
|
|
1393
1412
|
* @run-first
|
|
1394
1413
|
*/
|
|
1395
|
-
"output-connected": (
|
|
1414
|
+
"output-connected": (output: null) => void;
|
|
1396
1415
|
/**
|
|
1397
1416
|
* This signal is emitted when a display device is disconnected from
|
|
1398
1417
|
* a port, or a port output is hot-unplugged. The latter can happen
|
|
@@ -1409,7 +1428,7 @@ export namespace CinnamonDesktop {
|
|
|
1409
1428
|
* @signal
|
|
1410
1429
|
* @run-first
|
|
1411
1430
|
*/
|
|
1412
|
-
"output-disconnected": (
|
|
1431
|
+
"output-disconnected": (output: null) => void;
|
|
1413
1432
|
"notify::dpms-mode": (pspec: GObject.ParamSpec) => void;
|
|
1414
1433
|
"notify::gdk-screen": (pspec: GObject.ParamSpec) => void;
|
|
1415
1434
|
}
|
|
@@ -1518,6 +1537,9 @@ export namespace CinnamonDesktop {
|
|
|
1518
1537
|
*/
|
|
1519
1538
|
get_crtc_by_id(id: number): RRCrtc;
|
|
1520
1539
|
|
|
1540
|
+
/**
|
|
1541
|
+
* @throws GLib.Error
|
|
1542
|
+
*/
|
|
1521
1543
|
get_dpms_mode(): [boolean, RRDpmsMode];
|
|
1522
1544
|
|
|
1523
1545
|
/**
|
|
@@ -1561,12 +1583,14 @@ export namespace CinnamonDesktop {
|
|
|
1561
1583
|
* Refreshes the screen configuration, and calls the screen's callback if it
|
|
1562
1584
|
* exists and if the screen's configuration changed.
|
|
1563
1585
|
* @returns TRUE if the screen's configuration changed; otherwise, the function returns FALSE and a NULL error if the configuration didn't change, or FALSE and a non-NULL error if there was an error while refreshing the configuration.
|
|
1586
|
+
* @throws GLib.Error
|
|
1564
1587
|
*/
|
|
1565
1588
|
refresh(): boolean;
|
|
1566
1589
|
|
|
1567
1590
|
/**
|
|
1568
1591
|
* This method also disables the DPMS timeouts.
|
|
1569
1592
|
* @param mode
|
|
1593
|
+
* @throws GLib.Error
|
|
1570
1594
|
*/
|
|
1571
1595
|
set_dpms_mode(mode: RRDpmsMode): boolean;
|
|
1572
1596
|
|
|
@@ -1609,6 +1633,7 @@ export namespace CinnamonDesktop {
|
|
|
1609
1633
|
* any interface methods.
|
|
1610
1634
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1611
1635
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1636
|
+
* @since 2.22
|
|
1612
1637
|
*/
|
|
1613
1638
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
1614
1639
|
|
|
@@ -1652,6 +1677,7 @@ export namespace CinnamonDesktop {
|
|
|
1652
1677
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1653
1678
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1654
1679
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
1680
|
+
* @since 2.22
|
|
1655
1681
|
*/
|
|
1656
1682
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
1657
1683
|
|
|
@@ -1695,6 +1721,7 @@ export namespace CinnamonDesktop {
|
|
|
1695
1721
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1696
1722
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1697
1723
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
1724
|
+
* @since 2.22
|
|
1698
1725
|
*/
|
|
1699
1726
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
1700
1727
|
|
|
@@ -1703,6 +1730,8 @@ export namespace CinnamonDesktop {
|
|
|
1703
1730
|
* See `g_async_initable_init_async()`.
|
|
1704
1731
|
* @param res a {@link Gio.AsyncResult}.
|
|
1705
1732
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
1733
|
+
* @since 2.22
|
|
1734
|
+
* @throws GLib.Error
|
|
1706
1735
|
*/
|
|
1707
1736
|
init_finish(res: Gio.AsyncResult): boolean;
|
|
1708
1737
|
|
|
@@ -1711,6 +1740,8 @@ export namespace CinnamonDesktop {
|
|
|
1711
1740
|
* calls, returning the created object or `null` on error.
|
|
1712
1741
|
* @param res the {@link Gio.AsyncResult} from the callback
|
|
1713
1742
|
* @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
|
|
1743
|
+
* @since 2.22
|
|
1744
|
+
* @throws GLib.Error
|
|
1714
1745
|
*/
|
|
1715
1746
|
new_finish(res: Gio.AsyncResult): RRScreen;
|
|
1716
1747
|
|
|
@@ -1754,6 +1785,7 @@ export namespace CinnamonDesktop {
|
|
|
1754
1785
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1755
1786
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1756
1787
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
1788
|
+
* @since 2.22
|
|
1757
1789
|
* @virtual
|
|
1758
1790
|
*/
|
|
1759
1791
|
vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -1762,6 +1794,7 @@ export namespace CinnamonDesktop {
|
|
|
1762
1794
|
* Finishes asynchronous initialization and returns the result.
|
|
1763
1795
|
* See `g_async_initable_init_async()`.
|
|
1764
1796
|
* @param res a {@link Gio.AsyncResult}.
|
|
1797
|
+
* @since 2.22
|
|
1765
1798
|
* @virtual
|
|
1766
1799
|
*/
|
|
1767
1800
|
vfunc_init_finish(res: Gio.AsyncResult): boolean;
|
|
@@ -1807,6 +1840,8 @@ export namespace CinnamonDesktop {
|
|
|
1807
1840
|
* instance.
|
|
1808
1841
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1809
1842
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
1843
|
+
* @since 2.22
|
|
1844
|
+
* @throws GLib.Error
|
|
1810
1845
|
*/
|
|
1811
1846
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
1812
1847
|
|
|
@@ -1850,6 +1885,7 @@ export namespace CinnamonDesktop {
|
|
|
1850
1885
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
1851
1886
|
* instance.
|
|
1852
1887
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1888
|
+
* @since 2.22
|
|
1853
1889
|
* @virtual
|
|
1854
1890
|
*/
|
|
1855
1891
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -2042,6 +2078,7 @@ export namespace CinnamonDesktop {
|
|
|
2042
2078
|
/**
|
|
2043
2079
|
* @param group_id identifier for group
|
|
2044
2080
|
* @returns the translated description for the group `group_id`.
|
|
2081
|
+
* @since 3.8
|
|
2045
2082
|
*/
|
|
2046
2083
|
description_for_group(group_id: string): string;
|
|
2047
2084
|
|
|
@@ -2049,18 +2086,21 @@ export namespace CinnamonDesktop {
|
|
|
2049
2086
|
* @param group_id identifier for group containing the option
|
|
2050
2087
|
* @param id option identifier
|
|
2051
2088
|
* @returns the translated description for the option `id`.
|
|
2089
|
+
* @since 3.6
|
|
2052
2090
|
*/
|
|
2053
2091
|
description_for_option(group_id: string, id: string): string;
|
|
2054
2092
|
|
|
2055
2093
|
/**
|
|
2056
2094
|
* Returns a list of all layout identifiers we know about.
|
|
2057
2095
|
* @returns the list of layout names. The caller takes ownership of the {@link GLib.List} but not of the strings themselves, those are internally allocated and must not be modified.
|
|
2096
|
+
* @since 3.6
|
|
2058
2097
|
*/
|
|
2059
2098
|
get_all_layouts(): string[];
|
|
2060
2099
|
|
|
2061
2100
|
/**
|
|
2062
2101
|
* Returns a list of all option group identifiers we know about.
|
|
2063
2102
|
* @returns the list of option group ids. The caller takes ownership of the {@link GLib.List} but not of the strings themselves, those are internally allocated and must not be modified.
|
|
2103
|
+
* @since 3.6
|
|
2064
2104
|
*/
|
|
2065
2105
|
get_all_option_groups(): string[];
|
|
2066
2106
|
|
|
@@ -2069,6 +2109,7 @@ export namespace CinnamonDesktop {
|
|
|
2069
2109
|
* `layout_id`.
|
|
2070
2110
|
* @param layout_id a layout identifier
|
|
2071
2111
|
* @returns the list of ISO 639 code strings. The caller takes ownership of the {@link GLib.List} but not of the strings themselves, those are internally allocated and must not be modified.
|
|
2112
|
+
* @since 3.18
|
|
2072
2113
|
*/
|
|
2073
2114
|
get_languages_for_layout(layout_id: string): string[];
|
|
2074
2115
|
|
|
@@ -2085,6 +2126,7 @@ export namespace CinnamonDesktop {
|
|
|
2085
2126
|
* all the (out) parameters are set to `null`.
|
|
2086
2127
|
* @param id layout's identifier about which to retrieve the info
|
|
2087
2128
|
* @returns `true` if the layout exists or `false` otherwise.
|
|
2129
|
+
* @since 3.6
|
|
2088
2130
|
*/
|
|
2089
2131
|
get_layout_info(id: string): [boolean, string, string, string, string];
|
|
2090
2132
|
|
|
@@ -2093,6 +2135,7 @@ export namespace CinnamonDesktop {
|
|
|
2093
2135
|
* `country_code`.
|
|
2094
2136
|
* @param country_code an ISO 3166 code string
|
|
2095
2137
|
* @returns the list of layout ids. The caller takes ownership of the {@link GLib.List} but not of the strings themselves, those are internally allocated and must not be modified.
|
|
2138
|
+
* @since 3.8
|
|
2096
2139
|
*/
|
|
2097
2140
|
get_layouts_for_country(country_code: string): string[];
|
|
2098
2141
|
|
|
@@ -2101,6 +2144,7 @@ export namespace CinnamonDesktop {
|
|
|
2101
2144
|
* `language_code`.
|
|
2102
2145
|
* @param language_code an ISO 639 code string
|
|
2103
2146
|
* @returns the list of layout ids. The caller takes ownership of the {@link GLib.List} but not of the strings themselves, those are internally allocated and must not be modified.
|
|
2147
|
+
* @since 3.8
|
|
2104
2148
|
*/
|
|
2105
2149
|
get_layouts_for_language(language_code: string): string[];
|
|
2106
2150
|
|
|
@@ -2116,6 +2160,7 @@ export namespace CinnamonDesktop {
|
|
|
2116
2160
|
* `group_id`.
|
|
2117
2161
|
* @param group_id group's identifier about which to retrieve the options
|
|
2118
2162
|
* @returns the list of option ids. The caller takes ownership of the {@link GLib.List} but not of the strings themselves, those are internally allocated and must not be modified.
|
|
2163
|
+
* @since 6.6
|
|
2119
2164
|
*/
|
|
2120
2165
|
get_options_for_group(group_id: string): string[];
|
|
2121
2166
|
}
|
|
@@ -2343,6 +2388,7 @@ export namespace CinnamonDesktop {
|
|
|
2343
2388
|
/**
|
|
2344
2389
|
* @param value the absolute value which is 0 >= this <= 100
|
|
2345
2390
|
* @returns `true` for success
|
|
2391
|
+
* @throws GLib.Error
|
|
2346
2392
|
*/
|
|
2347
2393
|
set_backlight(value: number): boolean;
|
|
2348
2394
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cinnamondesktop-3.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for CinnamonDesktop-3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cinnamondesktop-3.0.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"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.
|
|
48
|
-
"@girs/cdesktopenums-3.0": "^4.
|
|
34
|
+
"@girs/gjs": "^4.5.0",
|
|
35
|
+
"@girs/gtk-3.0": "^4.5.0",
|
|
36
|
+
"@girs/xlib-2.0": "^4.5.0",
|
|
37
|
+
"@girs/gdk-3.0": "^4.5.0",
|
|
38
|
+
"@girs/cairo-1.0": "^4.5.0",
|
|
39
|
+
"@girs/gobject-2.0": "^4.5.0",
|
|
40
|
+
"@girs/glib-2.0": "^4.5.0",
|
|
41
|
+
"@girs/pango-1.0": "^4.5.0",
|
|
42
|
+
"@girs/harfbuzz-0.0": "^4.5.0",
|
|
43
|
+
"@girs/freetype2-2.0": "^4.5.0",
|
|
44
|
+
"@girs/gio-2.0": "^4.5.0",
|
|
45
|
+
"@girs/gmodule-2.0": "^4.5.0",
|
|
46
|
+
"@girs/gdkpixbuf-2.0": "^4.5.0",
|
|
47
|
+
"@girs/atk-1.0": "^4.5.0",
|
|
48
|
+
"@girs/cdesktopenums-3.0": "^4.5.0" },
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "*"
|
|
51
51
|
},
|