@girs/gdesktopenums-3.0 3.0.0-3.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+
2
+ # GDesktopEnums-3.0
3
+
4
+ GJS TypeScript type definitions for GDesktopEnums-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
5
+
6
+ ## Install
7
+
8
+ To use this type definitions, install them with NPM like this:
9
+ ```bash
10
+ npm install @girs/gdesktopenums-3.0
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ You can import this package into your project like this:
16
+ ```ts
17
+ import GDesktopEnums from '@girs/gdesktopenums-3.0';
18
+ ```
19
+
20
+ Or if you prefer CommonJS, you can also use this:
21
+ ```ts
22
+ const GDesktopEnums = require('@girs/gdesktopenums-3.0');
23
+ ```
24
+
25
+ If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
26
+
27
+ ```ts
28
+ import GDesktopEnums from 'gi://GDesktopEnums?version=3.0';
29
+ ```
30
+
31
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.GDesktopEnums = '3.0'
4
+ const GDesktopEnums = imports.gi.GDesktopEnums;
5
+
6
+ module.exports = GDesktopEnums;
7
+
8
+
9
+
@@ -0,0 +1,203 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * GDesktopEnums-3.0
10
+ */
11
+
12
+ import type GObject from '@girs/gobject-2.0';
13
+
14
+ export enum BackgroundShading {
15
+ SOLID,
16
+ VERTICAL,
17
+ HORIZONTAL,
18
+ }
19
+ export enum BackgroundStyle {
20
+ NONE,
21
+ WALLPAPER,
22
+ CENTERED,
23
+ SCALED,
24
+ STRETCHED,
25
+ ZOOM,
26
+ SPANNED,
27
+ }
28
+ export enum ClockFormat {
29
+ TODO_24H,
30
+ TODO_12H,
31
+ }
32
+ export enum ColorScheme {
33
+ DEFAULT,
34
+ PREFER_DARK,
35
+ PREFER_LIGHT,
36
+ }
37
+ export enum DeviceSendEvents {
38
+ ENABLED,
39
+ DISABLED,
40
+ DISABLED_ON_EXTERNAL_MOUSE,
41
+ }
42
+ export enum FocusMode {
43
+ CLICK,
44
+ SLOPPY,
45
+ MOUSE,
46
+ }
47
+ export enum FocusNewWindows {
48
+ SMART,
49
+ STRICT,
50
+ }
51
+ export enum FontAntialiasingMode {
52
+ NONE,
53
+ GRAYSCALE,
54
+ RGBA,
55
+ }
56
+ export enum FontHinting {
57
+ NONE,
58
+ SLIGHT,
59
+ MEDIUM,
60
+ FULL,
61
+ }
62
+ export enum FontRgbaOrder {
63
+ RGBA,
64
+ RGB,
65
+ BGR,
66
+ VRGB,
67
+ VBGR,
68
+ }
69
+ export enum LocationAccuracyLevel {
70
+ COUNTRY,
71
+ CITY,
72
+ NEIGHBORHOOD,
73
+ STREET,
74
+ EXACT,
75
+ }
76
+ export enum MagnifierCaretTrackingMode {
77
+ NONE,
78
+ CENTERED,
79
+ PROPORTIONAL,
80
+ PUSH,
81
+ }
82
+ export enum MagnifierFocusTrackingMode {
83
+ NONE,
84
+ CENTERED,
85
+ PROPORTIONAL,
86
+ PUSH,
87
+ }
88
+ export enum MagnifierMouseTrackingMode {
89
+ NONE,
90
+ CENTERED,
91
+ PROPORTIONAL,
92
+ PUSH,
93
+ }
94
+ export enum MagnifierScreenPosition {
95
+ NONE,
96
+ FULL_SCREEN,
97
+ TOP_HALF,
98
+ BOTTOM_HALF,
99
+ LEFT_HALF,
100
+ RIGHT_HALF,
101
+ }
102
+ export enum MouseDwellDirection {
103
+ LEFT,
104
+ RIGHT,
105
+ UP,
106
+ DOWN,
107
+ }
108
+ export enum MouseDwellMode {
109
+ WINDOW,
110
+ GESTURE,
111
+ }
112
+ export enum PadButtonAction {
113
+ NONE,
114
+ HELP,
115
+ SWITCH_MONITOR,
116
+ KEYBINDING,
117
+ }
118
+ export enum PointerAccelProfile {
119
+ DEFAULT,
120
+ FLAT,
121
+ ADAPTIVE,
122
+ }
123
+ export enum PointingStickScrollMethod {
124
+ DEFAULT,
125
+ NONE,
126
+ ON_BUTTON_DOWN,
127
+ }
128
+ export enum ProxyMode {
129
+ NONE,
130
+ MANUAL,
131
+ AUTO,
132
+ }
133
+ export enum ScreensaverMode {
134
+ BLANK_ONLY,
135
+ RANDOM,
136
+ SINGLE,
137
+ }
138
+ export enum StylusButtonAction {
139
+ DEFAULT,
140
+ MIDDLE,
141
+ RIGHT,
142
+ BACK,
143
+ FORWARD,
144
+ }
145
+ export enum TabletMapping {
146
+ ABSOLUTE,
147
+ RELATIVE,
148
+ }
149
+ export enum TitlebarAction {
150
+ TOGGLE_SHADE,
151
+ TOGGLE_MAXIMIZE,
152
+ TOGGLE_MAXIMIZE_HORIZONTALLY,
153
+ TOGGLE_MAXIMIZE_VERTICALLY,
154
+ MINIMIZE,
155
+ NONE,
156
+ LOWER,
157
+ MENU,
158
+ }
159
+ export enum ToolbarIconSize {
160
+ SMALL,
161
+ LARGE,
162
+ }
163
+ export enum ToolbarStyle {
164
+ BOTH,
165
+ BOTH_HORIZ,
166
+ ICONS,
167
+ TEXT,
168
+ }
169
+ export enum TouchpadClickMethod {
170
+ DEFAULT,
171
+ NONE,
172
+ AREAS,
173
+ FINGERS,
174
+ }
175
+ export enum TouchpadHandedness {
176
+ RIGHT,
177
+ LEFT,
178
+ MOUSE,
179
+ }
180
+ export enum TouchpadTapButtonMap {
181
+ DEFAULT,
182
+ LRM,
183
+ LMR,
184
+ }
185
+ export enum UsbProtection {
186
+ LOCKSCREEN,
187
+ ALWAYS,
188
+ }
189
+ export enum VisualBellType {
190
+ FULLSCREEN_FLASH,
191
+ FRAME_FLASH,
192
+ }
193
+ /**
194
+ * Name of the imported GIR library
195
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
196
+ */
197
+ export const __name__: string
198
+ /**
199
+ * Version of the imported GIR library
200
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
201
+ */
202
+ export const __version__: string
203
+ // END
@@ -0,0 +1,208 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * GDesktopEnums-3.0
10
+ */
11
+
12
+ import type GObject from '@girs/gobject-2.0';
13
+
14
+ export namespace GDesktopEnums {
15
+
16
+ enum BackgroundShading {
17
+ SOLID,
18
+ VERTICAL,
19
+ HORIZONTAL,
20
+ }
21
+ enum BackgroundStyle {
22
+ NONE,
23
+ WALLPAPER,
24
+ CENTERED,
25
+ SCALED,
26
+ STRETCHED,
27
+ ZOOM,
28
+ SPANNED,
29
+ }
30
+ enum ClockFormat {
31
+ TODO_24H,
32
+ TODO_12H,
33
+ }
34
+ enum ColorScheme {
35
+ DEFAULT,
36
+ PREFER_DARK,
37
+ PREFER_LIGHT,
38
+ }
39
+ enum DeviceSendEvents {
40
+ ENABLED,
41
+ DISABLED,
42
+ DISABLED_ON_EXTERNAL_MOUSE,
43
+ }
44
+ enum FocusMode {
45
+ CLICK,
46
+ SLOPPY,
47
+ MOUSE,
48
+ }
49
+ enum FocusNewWindows {
50
+ SMART,
51
+ STRICT,
52
+ }
53
+ enum FontAntialiasingMode {
54
+ NONE,
55
+ GRAYSCALE,
56
+ RGBA,
57
+ }
58
+ enum FontHinting {
59
+ NONE,
60
+ SLIGHT,
61
+ MEDIUM,
62
+ FULL,
63
+ }
64
+ enum FontRgbaOrder {
65
+ RGBA,
66
+ RGB,
67
+ BGR,
68
+ VRGB,
69
+ VBGR,
70
+ }
71
+ enum LocationAccuracyLevel {
72
+ COUNTRY,
73
+ CITY,
74
+ NEIGHBORHOOD,
75
+ STREET,
76
+ EXACT,
77
+ }
78
+ enum MagnifierCaretTrackingMode {
79
+ NONE,
80
+ CENTERED,
81
+ PROPORTIONAL,
82
+ PUSH,
83
+ }
84
+ enum MagnifierFocusTrackingMode {
85
+ NONE,
86
+ CENTERED,
87
+ PROPORTIONAL,
88
+ PUSH,
89
+ }
90
+ enum MagnifierMouseTrackingMode {
91
+ NONE,
92
+ CENTERED,
93
+ PROPORTIONAL,
94
+ PUSH,
95
+ }
96
+ enum MagnifierScreenPosition {
97
+ NONE,
98
+ FULL_SCREEN,
99
+ TOP_HALF,
100
+ BOTTOM_HALF,
101
+ LEFT_HALF,
102
+ RIGHT_HALF,
103
+ }
104
+ enum MouseDwellDirection {
105
+ LEFT,
106
+ RIGHT,
107
+ UP,
108
+ DOWN,
109
+ }
110
+ enum MouseDwellMode {
111
+ WINDOW,
112
+ GESTURE,
113
+ }
114
+ enum PadButtonAction {
115
+ NONE,
116
+ HELP,
117
+ SWITCH_MONITOR,
118
+ KEYBINDING,
119
+ }
120
+ enum PointerAccelProfile {
121
+ DEFAULT,
122
+ FLAT,
123
+ ADAPTIVE,
124
+ }
125
+ enum PointingStickScrollMethod {
126
+ DEFAULT,
127
+ NONE,
128
+ ON_BUTTON_DOWN,
129
+ }
130
+ enum ProxyMode {
131
+ NONE,
132
+ MANUAL,
133
+ AUTO,
134
+ }
135
+ enum ScreensaverMode {
136
+ BLANK_ONLY,
137
+ RANDOM,
138
+ SINGLE,
139
+ }
140
+ enum StylusButtonAction {
141
+ DEFAULT,
142
+ MIDDLE,
143
+ RIGHT,
144
+ BACK,
145
+ FORWARD,
146
+ }
147
+ enum TabletMapping {
148
+ ABSOLUTE,
149
+ RELATIVE,
150
+ }
151
+ enum TitlebarAction {
152
+ TOGGLE_SHADE,
153
+ TOGGLE_MAXIMIZE,
154
+ TOGGLE_MAXIMIZE_HORIZONTALLY,
155
+ TOGGLE_MAXIMIZE_VERTICALLY,
156
+ MINIMIZE,
157
+ NONE,
158
+ LOWER,
159
+ MENU,
160
+ }
161
+ enum ToolbarIconSize {
162
+ SMALL,
163
+ LARGE,
164
+ }
165
+ enum ToolbarStyle {
166
+ BOTH,
167
+ BOTH_HORIZ,
168
+ ICONS,
169
+ TEXT,
170
+ }
171
+ enum TouchpadClickMethod {
172
+ DEFAULT,
173
+ NONE,
174
+ AREAS,
175
+ FINGERS,
176
+ }
177
+ enum TouchpadHandedness {
178
+ RIGHT,
179
+ LEFT,
180
+ MOUSE,
181
+ }
182
+ enum TouchpadTapButtonMap {
183
+ DEFAULT,
184
+ LRM,
185
+ LMR,
186
+ }
187
+ enum UsbProtection {
188
+ LOCKSCREEN,
189
+ ALWAYS,
190
+ }
191
+ enum VisualBellType {
192
+ FULLSCREEN_FLASH,
193
+ FRAME_FLASH,
194
+ }
195
+ /**
196
+ * Name of the imported GIR library
197
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
198
+ */
199
+ const __name__: string
200
+ /**
201
+ * Version of the imported GIR library
202
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
203
+ */
204
+ const __version__: string
205
+ }
206
+
207
+ export default GDesktopEnums;
208
+ // END
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import GDesktopEnums from 'gi://GDesktopEnums?version=3.0';
5
+ export { GDesktopEnums };
6
+ export default GDesktopEnums;
7
+
8
+
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@girs/gdesktopenums-3.0",
3
+ "version": "3.0.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for GDesktopEnums-3.0, generated from library version 3.0.0",
5
+ "type": "module",
6
+ "module": "gdesktopenums-3.0.js",
7
+ "main": "gdesktopenums-3.0.js",
8
+ "typedoc": {
9
+ "entryPoint": "./gdesktopenums-3.0.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "GDesktopEnums-3.0",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./gdesktopenums-3.0.d.ts",
18
+ "default": "./gdesktopenums-3.0.js"
19
+ },
20
+ "require": {
21
+ "types": "./gdesktopenums-3.0.d.cts",
22
+ "default": "./gdesktopenums-3.0.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit gdesktopenums-3.0.d.ts",
29
+ "test:cjs": "tsc --noEmit gdesktopenums-3.0.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12"
33
+ },
34
+ "devDependencies": {
35
+ "typescript": "^*"
36
+ },
37
+ "keywords": [
38
+ "Gir",
39
+ "TypeScript",
40
+ "GDesktopEnums-3.0"
41
+ ],
42
+ "author": "ts-for-gir",
43
+ "license": "Apache-2.0",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
50
+ },
51
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
52
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "experimentalDecorators": true,
7
+ "moduleResolution": "node",
8
+ "noEmit": true,
9
+ "noEmitOnError": false,
10
+ "baseUrl": "./",
11
+ "rootDir": ".",
12
+ // General settings for code generation
13
+ "removeComments": false,
14
+ "inlineSourceMap": false,
15
+ "inlineSources": false,
16
+ "newLine": "LF"
17
+ },
18
+ "include": ["./gdesktopenums-3.0.d.ts"]
19
+ }