@girs/gnomebg-4.0 4.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
+ # GnomeBG-4.0
3
+
4
+ GJS TypeScript type definitions for GnomeBG-4.0, generated from library version 4.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/gnomebg-4.0
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ You can import this package into your project like this:
16
+ ```ts
17
+ import GnomeBG from '@girs/gnomebg-4.0';
18
+ ```
19
+
20
+ Or if you prefer CommonJS, you can also use this:
21
+ ```ts
22
+ const GnomeBG = require('@girs/gnomebg-4.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 GnomeBG from 'gi://GnomeBG?version=4.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.GnomeBG = '4.0'
4
+ const GnomeBG = imports.gi.GnomeBG;
5
+
6
+ module.exports = GnomeBG;
7
+
8
+
9
+
@@ -0,0 +1,290 @@
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
+ * GnomeBG-4.0
10
+ */
11
+
12
+ import type GnomeDesktop from '@girs/gnomedesktop-4.0';
13
+ import type Gio from '@girs/gio-2.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
17
+ import type GModule from '@girs/gmodule-2.0';
18
+ import type GDesktopEnums from '@girs/gdesktopenums-3.0';
19
+ import type Gdk from '@girs/gdk-4.0';
20
+ import type cairo from '@girs/cairo-1.0';
21
+ import type PangoCairo from '@girs/pangocairo-1.0';
22
+ import type Pango from '@girs/pango-1.0';
23
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
24
+ import type freetype2 from '@girs/freetype2-2.0';
25
+
26
+ export module BG {
27
+
28
+ // Signal callback interfaces
29
+
30
+ /**
31
+ * Signal callback interface for `changed`
32
+ */
33
+ export interface ChangedSignalCallback {
34
+ ($obj: BG): void
35
+ }
36
+
37
+ /**
38
+ * Signal callback interface for `transitioned`
39
+ */
40
+ export interface TransitionedSignalCallback {
41
+ ($obj: BG): void
42
+ }
43
+
44
+
45
+ // Constructor properties interface
46
+
47
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
48
+ }
49
+
50
+ }
51
+
52
+ export interface BG {
53
+
54
+ // Owm methods of GnomeBG-4.0.GnomeBG.BG
55
+
56
+ changes_with_time(): boolean
57
+ /**
58
+ * Creates a thumbnail for a certain frame, where 'frame' is somewhat
59
+ * vaguely defined as 'suitable point to show while single-stepping
60
+ * through the slideshow'.
61
+ * @param factory
62
+ * @param screen_area
63
+ * @param dest_width
64
+ * @param dest_height
65
+ * @param frame_num
66
+ * @returns the newly created thumbnail or or NULL if frame_num is out of bounds.
67
+ */
68
+ create_frame_thumbnail(factory: GnomeDesktop.DesktopThumbnailFactory, screen_area: cairo.RectangleInt, dest_width: number, dest_height: number, frame_num: number): GdkPixbuf.Pixbuf
69
+ /**
70
+ * Create a surface that can be set as background for `window`.
71
+ * @param window
72
+ * @param width
73
+ * @param height
74
+ * @returns %NULL on error (e.g. out of X connections)
75
+ */
76
+ create_surface(window: Gdk.Surface, width: number, height: number): cairo.Surface
77
+ create_thumbnail(factory: GnomeDesktop.DesktopThumbnailFactory, screen_area: cairo.RectangleInt, dest_width: number, dest_height: number): GdkPixbuf.Pixbuf
78
+ draw(dest: GdkPixbuf.Pixbuf): void
79
+ get_filename(): string | null
80
+ get_image_size(factory: GnomeDesktop.DesktopThumbnailFactory, best_width: number, best_height: number, width: number, height: number): boolean
81
+ get_placement(): GDesktopEnums.BackgroundStyle
82
+ get_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
83
+ has_multiple_sizes(): boolean
84
+ is_dark(dest_width: number, dest_height: number): boolean
85
+ load_from_preferences(settings: Gio.Settings): void
86
+ save_to_preferences(settings: Gio.Settings): void
87
+ set_filename(filename: string | null): void
88
+ set_placement(placement: GDesktopEnums.BackgroundStyle): void
89
+ set_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
90
+
91
+ // Own signals of GnomeBG-4.0.GnomeBG.BG
92
+
93
+ connect(sigName: "changed", callback: BG.ChangedSignalCallback): number
94
+ connect_after(sigName: "changed", callback: BG.ChangedSignalCallback): number
95
+ emit(sigName: "changed", ...args: any[]): void
96
+ connect(sigName: "transitioned", callback: BG.TransitionedSignalCallback): number
97
+ connect_after(sigName: "transitioned", callback: BG.TransitionedSignalCallback): number
98
+ emit(sigName: "transitioned", ...args: any[]): void
99
+
100
+ // Class property signals of GnomeBG-4.0.GnomeBG.BG
101
+
102
+ connect(sigName: string, callback: (...args: any[]) => void): number
103
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
104
+ emit(sigName: string, ...args: any[]): void
105
+ disconnect(id: number): void
106
+ }
107
+
108
+ export class BG extends GObject.Object {
109
+
110
+ // Own properties of GnomeBG-4.0.GnomeBG.BG
111
+
112
+ static name: string
113
+ static $gtype: GObject.GType<BG>
114
+
115
+ // Constructors of GnomeBG-4.0.GnomeBG.BG
116
+
117
+ constructor(config?: BG.ConstructorProperties)
118
+ constructor()
119
+ static new(): BG
120
+ _init(config?: BG.ConstructorProperties): void
121
+ }
122
+
123
+ export module BGSlideShow {
124
+
125
+ // Constructor properties interface
126
+
127
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
128
+
129
+ // Own constructor properties of GnomeBG-4.0.GnomeBG.BGSlideShow
130
+
131
+ file?: Gio.File | null
132
+ }
133
+
134
+ }
135
+
136
+ export interface BGSlideShow {
137
+
138
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShow
139
+
140
+ readonly file: Gio.File
141
+ readonly has_multiple_sizes: boolean
142
+ readonly start_time: number
143
+ readonly total_duration: number
144
+
145
+ // Own fields of GnomeBG-4.0.GnomeBG.BGSlideShow
146
+
147
+ parent_object: GObject.Object
148
+ priv: BGSlideShowPrivate
149
+
150
+ // Owm methods of GnomeBG-4.0.GnomeBG.BGSlideShow
151
+
152
+ /**
153
+ * Returns the current slides progress.
154
+ * @param width monitor width
155
+ * @param height monitor height
156
+ */
157
+ get_current_slide(width: number, height: number): [ /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
158
+ /**
159
+ * gets whether or not the slide show has multiple sizes for different monitors
160
+ * @returns %TRUE if multiple sizes
161
+ */
162
+ get_has_multiple_sizes(): boolean
163
+ /**
164
+ * Returns number of slides in slide show
165
+ */
166
+ get_num_slides(): number
167
+ /**
168
+ * Retrieves slide by frame number
169
+ * @param frame_number frame number
170
+ * @param width monitor width
171
+ * @param height monitor height
172
+ * @returns %TRUE if successful
173
+ */
174
+ get_slide(frame_number: number, width: number, height: number): [ /* returnType */ boolean, /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
175
+ /**
176
+ * gets the start time of the slide show
177
+ * @returns a timestamp
178
+ */
179
+ get_start_time(): number
180
+ /**
181
+ * gets the total duration of the slide show
182
+ * @returns a timestamp
183
+ */
184
+ get_total_duration(): number
185
+ /**
186
+ * Tries to load the slide show.
187
+ * @returns %TRUE if successful
188
+ */
189
+ load(): boolean
190
+ /**
191
+ * Tries to load the slide show asynchronously.
192
+ * @param cancellable a #GCancellable
193
+ * @param callback the callback
194
+ */
195
+ load_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
196
+
197
+ // Class property signals of GnomeBG-4.0.GnomeBG.BGSlideShow
198
+
199
+ connect(sigName: "notify::file", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
200
+ connect_after(sigName: "notify::file", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
201
+ emit(sigName: "notify::file", ...args: any[]): void
202
+ connect(sigName: "notify::has-multiple-sizes", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
203
+ connect_after(sigName: "notify::has-multiple-sizes", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
204
+ emit(sigName: "notify::has-multiple-sizes", ...args: any[]): void
205
+ connect(sigName: "notify::start-time", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
206
+ connect_after(sigName: "notify::start-time", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
207
+ emit(sigName: "notify::start-time", ...args: any[]): void
208
+ connect(sigName: "notify::total-duration", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
209
+ connect_after(sigName: "notify::total-duration", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
210
+ emit(sigName: "notify::total-duration", ...args: any[]): void
211
+ connect(sigName: string, callback: (...args: any[]) => void): number
212
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
213
+ emit(sigName: string, ...args: any[]): void
214
+ disconnect(id: number): void
215
+ }
216
+
217
+ export class BGSlideShow extends GObject.Object {
218
+
219
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShow
220
+
221
+ static name: string
222
+ static $gtype: GObject.GType<BGSlideShow>
223
+
224
+ // Constructors of GnomeBG-4.0.GnomeBG.BGSlideShow
225
+
226
+ constructor(config?: BGSlideShow.ConstructorProperties)
227
+ /**
228
+ * Creates a new object to manage a slide show.
229
+ * window background between two #cairo_surface_ts.
230
+ * @constructor
231
+ * @param filename The filename of the slide show
232
+ * @returns the new #GnomeBGSlideShow
233
+ */
234
+ constructor(filename: string | null)
235
+ /**
236
+ * Creates a new object to manage a slide show.
237
+ * window background between two #cairo_surface_ts.
238
+ * @constructor
239
+ * @param filename The filename of the slide show
240
+ * @returns the new #GnomeBGSlideShow
241
+ */
242
+ static new(filename: string | null): BGSlideShow
243
+ _init(config?: BGSlideShow.ConstructorProperties): void
244
+ }
245
+
246
+ export interface BGClass {
247
+ }
248
+
249
+ export abstract class BGClass {
250
+
251
+ // Own properties of GnomeBG-4.0.GnomeBG.BGClass
252
+
253
+ static name: string
254
+ }
255
+
256
+ export interface BGSlideShowClass {
257
+
258
+ // Own fields of GnomeBG-4.0.GnomeBG.BGSlideShowClass
259
+
260
+ parent_class: GObject.ObjectClass
261
+ }
262
+
263
+ export abstract class BGSlideShowClass {
264
+
265
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShowClass
266
+
267
+ static name: string
268
+ }
269
+
270
+ export interface BGSlideShowPrivate {
271
+ }
272
+
273
+ export class BGSlideShowPrivate {
274
+
275
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShowPrivate
276
+
277
+ static name: string
278
+ }
279
+
280
+ /**
281
+ * Name of the imported GIR library
282
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
283
+ */
284
+ export const __name__: string
285
+ /**
286
+ * Version of the imported GIR library
287
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
288
+ */
289
+ export const __version__: string
290
+ // END
@@ -0,0 +1,295 @@
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
+ * GnomeBG-4.0
10
+ */
11
+
12
+ import type GnomeDesktop from '@girs/gnomedesktop-4.0';
13
+ import type Gio from '@girs/gio-2.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
17
+ import type GModule from '@girs/gmodule-2.0';
18
+ import type GDesktopEnums from '@girs/gdesktopenums-3.0';
19
+ import type Gdk from '@girs/gdk-4.0';
20
+ import type cairo from '@girs/cairo-1.0';
21
+ import type PangoCairo from '@girs/pangocairo-1.0';
22
+ import type Pango from '@girs/pango-1.0';
23
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
24
+ import type freetype2 from '@girs/freetype2-2.0';
25
+
26
+ export namespace GnomeBG {
27
+
28
+ module BG {
29
+
30
+ // Signal callback interfaces
31
+
32
+ /**
33
+ * Signal callback interface for `changed`
34
+ */
35
+ interface ChangedSignalCallback {
36
+ ($obj: BG): void
37
+ }
38
+
39
+ /**
40
+ * Signal callback interface for `transitioned`
41
+ */
42
+ interface TransitionedSignalCallback {
43
+ ($obj: BG): void
44
+ }
45
+
46
+
47
+ // Constructor properties interface
48
+
49
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
50
+ }
51
+
52
+ }
53
+
54
+ interface BG {
55
+
56
+ // Owm methods of GnomeBG-4.0.GnomeBG.BG
57
+
58
+ changes_with_time(): boolean
59
+ /**
60
+ * Creates a thumbnail for a certain frame, where 'frame' is somewhat
61
+ * vaguely defined as 'suitable point to show while single-stepping
62
+ * through the slideshow'.
63
+ * @param factory
64
+ * @param screen_area
65
+ * @param dest_width
66
+ * @param dest_height
67
+ * @param frame_num
68
+ * @returns the newly created thumbnail or or NULL if frame_num is out of bounds.
69
+ */
70
+ create_frame_thumbnail(factory: GnomeDesktop.DesktopThumbnailFactory, screen_area: cairo.RectangleInt, dest_width: number, dest_height: number, frame_num: number): GdkPixbuf.Pixbuf
71
+ /**
72
+ * Create a surface that can be set as background for `window`.
73
+ * @param window
74
+ * @param width
75
+ * @param height
76
+ * @returns %NULL on error (e.g. out of X connections)
77
+ */
78
+ create_surface(window: Gdk.Surface, width: number, height: number): cairo.Surface
79
+ create_thumbnail(factory: GnomeDesktop.DesktopThumbnailFactory, screen_area: cairo.RectangleInt, dest_width: number, dest_height: number): GdkPixbuf.Pixbuf
80
+ draw(dest: GdkPixbuf.Pixbuf): void
81
+ get_filename(): string | null
82
+ get_image_size(factory: GnomeDesktop.DesktopThumbnailFactory, best_width: number, best_height: number, width: number, height: number): boolean
83
+ get_placement(): GDesktopEnums.BackgroundStyle
84
+ get_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
85
+ has_multiple_sizes(): boolean
86
+ is_dark(dest_width: number, dest_height: number): boolean
87
+ load_from_preferences(settings: Gio.Settings): void
88
+ save_to_preferences(settings: Gio.Settings): void
89
+ set_filename(filename: string | null): void
90
+ set_placement(placement: GDesktopEnums.BackgroundStyle): void
91
+ set_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
92
+
93
+ // Own signals of GnomeBG-4.0.GnomeBG.BG
94
+
95
+ connect(sigName: "changed", callback: BG.ChangedSignalCallback): number
96
+ connect_after(sigName: "changed", callback: BG.ChangedSignalCallback): number
97
+ emit(sigName: "changed", ...args: any[]): void
98
+ connect(sigName: "transitioned", callback: BG.TransitionedSignalCallback): number
99
+ connect_after(sigName: "transitioned", callback: BG.TransitionedSignalCallback): number
100
+ emit(sigName: "transitioned", ...args: any[]): void
101
+
102
+ // Class property signals of GnomeBG-4.0.GnomeBG.BG
103
+
104
+ connect(sigName: string, callback: (...args: any[]) => void): number
105
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
106
+ emit(sigName: string, ...args: any[]): void
107
+ disconnect(id: number): void
108
+ }
109
+
110
+ class BG extends GObject.Object {
111
+
112
+ // Own properties of GnomeBG-4.0.GnomeBG.BG
113
+
114
+ static name: string
115
+ static $gtype: GObject.GType<BG>
116
+
117
+ // Constructors of GnomeBG-4.0.GnomeBG.BG
118
+
119
+ constructor(config?: BG.ConstructorProperties)
120
+ constructor()
121
+ static new(): BG
122
+ _init(config?: BG.ConstructorProperties): void
123
+ }
124
+
125
+ module BGSlideShow {
126
+
127
+ // Constructor properties interface
128
+
129
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
130
+
131
+ // Own constructor properties of GnomeBG-4.0.GnomeBG.BGSlideShow
132
+
133
+ file?: Gio.File | null
134
+ }
135
+
136
+ }
137
+
138
+ interface BGSlideShow {
139
+
140
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShow
141
+
142
+ readonly file: Gio.File
143
+ readonly has_multiple_sizes: boolean
144
+ readonly start_time: number
145
+ readonly total_duration: number
146
+
147
+ // Own fields of GnomeBG-4.0.GnomeBG.BGSlideShow
148
+
149
+ parent_object: GObject.Object
150
+ priv: BGSlideShowPrivate
151
+
152
+ // Owm methods of GnomeBG-4.0.GnomeBG.BGSlideShow
153
+
154
+ /**
155
+ * Returns the current slides progress.
156
+ * @param width monitor width
157
+ * @param height monitor height
158
+ */
159
+ get_current_slide(width: number, height: number): [ /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
160
+ /**
161
+ * gets whether or not the slide show has multiple sizes for different monitors
162
+ * @returns %TRUE if multiple sizes
163
+ */
164
+ get_has_multiple_sizes(): boolean
165
+ /**
166
+ * Returns number of slides in slide show
167
+ */
168
+ get_num_slides(): number
169
+ /**
170
+ * Retrieves slide by frame number
171
+ * @param frame_number frame number
172
+ * @param width monitor width
173
+ * @param height monitor height
174
+ * @returns %TRUE if successful
175
+ */
176
+ get_slide(frame_number: number, width: number, height: number): [ /* returnType */ boolean, /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
177
+ /**
178
+ * gets the start time of the slide show
179
+ * @returns a timestamp
180
+ */
181
+ get_start_time(): number
182
+ /**
183
+ * gets the total duration of the slide show
184
+ * @returns a timestamp
185
+ */
186
+ get_total_duration(): number
187
+ /**
188
+ * Tries to load the slide show.
189
+ * @returns %TRUE if successful
190
+ */
191
+ load(): boolean
192
+ /**
193
+ * Tries to load the slide show asynchronously.
194
+ * @param cancellable a #GCancellable
195
+ * @param callback the callback
196
+ */
197
+ load_async(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
198
+
199
+ // Class property signals of GnomeBG-4.0.GnomeBG.BGSlideShow
200
+
201
+ connect(sigName: "notify::file", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
202
+ connect_after(sigName: "notify::file", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
203
+ emit(sigName: "notify::file", ...args: any[]): void
204
+ connect(sigName: "notify::has-multiple-sizes", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
205
+ connect_after(sigName: "notify::has-multiple-sizes", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
206
+ emit(sigName: "notify::has-multiple-sizes", ...args: any[]): void
207
+ connect(sigName: "notify::start-time", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
208
+ connect_after(sigName: "notify::start-time", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
209
+ emit(sigName: "notify::start-time", ...args: any[]): void
210
+ connect(sigName: "notify::total-duration", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
211
+ connect_after(sigName: "notify::total-duration", callback: (($obj: BGSlideShow, pspec: GObject.ParamSpec) => void)): number
212
+ emit(sigName: "notify::total-duration", ...args: any[]): void
213
+ connect(sigName: string, callback: (...args: any[]) => void): number
214
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
215
+ emit(sigName: string, ...args: any[]): void
216
+ disconnect(id: number): void
217
+ }
218
+
219
+ class BGSlideShow extends GObject.Object {
220
+
221
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShow
222
+
223
+ static name: string
224
+ static $gtype: GObject.GType<BGSlideShow>
225
+
226
+ // Constructors of GnomeBG-4.0.GnomeBG.BGSlideShow
227
+
228
+ constructor(config?: BGSlideShow.ConstructorProperties)
229
+ /**
230
+ * Creates a new object to manage a slide show.
231
+ * window background between two #cairo_surface_ts.
232
+ * @constructor
233
+ * @param filename The filename of the slide show
234
+ * @returns the new #GnomeBGSlideShow
235
+ */
236
+ constructor(filename: string | null)
237
+ /**
238
+ * Creates a new object to manage a slide show.
239
+ * window background between two #cairo_surface_ts.
240
+ * @constructor
241
+ * @param filename The filename of the slide show
242
+ * @returns the new #GnomeBGSlideShow
243
+ */
244
+ static new(filename: string | null): BGSlideShow
245
+ _init(config?: BGSlideShow.ConstructorProperties): void
246
+ }
247
+
248
+ interface BGClass {
249
+ }
250
+
251
+ abstract class BGClass {
252
+
253
+ // Own properties of GnomeBG-4.0.GnomeBG.BGClass
254
+
255
+ static name: string
256
+ }
257
+
258
+ interface BGSlideShowClass {
259
+
260
+ // Own fields of GnomeBG-4.0.GnomeBG.BGSlideShowClass
261
+
262
+ parent_class: GObject.ObjectClass
263
+ }
264
+
265
+ abstract class BGSlideShowClass {
266
+
267
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShowClass
268
+
269
+ static name: string
270
+ }
271
+
272
+ interface BGSlideShowPrivate {
273
+ }
274
+
275
+ class BGSlideShowPrivate {
276
+
277
+ // Own properties of GnomeBG-4.0.GnomeBG.BGSlideShowPrivate
278
+
279
+ static name: string
280
+ }
281
+
282
+ /**
283
+ * Name of the imported GIR library
284
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
285
+ */
286
+ const __name__: string
287
+ /**
288
+ * Version of the imported GIR library
289
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
290
+ */
291
+ const __version__: string
292
+ }
293
+
294
+ export default GnomeBG;
295
+ // END
package/gnomebg-4.0.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import GnomeBG from 'gi://GnomeBG?version=4.0';
5
+ export { GnomeBG };
6
+ export default GnomeBG;
7
+
8
+
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@girs/gnomebg-4.0",
3
+ "version": "4.0.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for GnomeBG-4.0, generated from library version 4.0.0",
5
+ "type": "module",
6
+ "module": "gnomebg-4.0.js",
7
+ "main": "gnomebg-4.0.js",
8
+ "typedoc": {
9
+ "entryPoint": "./gnomebg-4.0.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "GnomeBG-4.0",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./gnomebg-4.0.d.ts",
18
+ "default": "./gnomebg-4.0.js"
19
+ },
20
+ "require": {
21
+ "types": "./gnomebg-4.0.d.cts",
22
+ "default": "./gnomebg-4.0.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit gnomebg-4.0.d.ts",
29
+ "test:cjs": "tsc --noEmit gnomebg-4.0.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/cairo-1.0": "^1.0.0-3.0.0-beta.12",
33
+ "@girs/freetype2-2.0": "^2.0.0-3.0.0-beta.12",
34
+ "@girs/gdesktopenums-3.0": "^3.0.0-3.0.0-beta.12",
35
+ "@girs/gdk-4.0": "^4.0.0-3.0.0-beta.12",
36
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.0.0-beta.12",
37
+ "@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
38
+ "@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
39
+ "@girs/gmodule-2.0": "^2.0.0-3.0.0-beta.12",
40
+ "@girs/gnomedesktop-4.0": "^4.0.0-3.0.0-beta.12",
41
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
42
+ "@girs/harfbuzz-0.0": "^6.0.0-3.0.0-beta.12",
43
+ "@girs/pango-1.0": "^1.50.13-3.0.0-beta.12",
44
+ "@girs/pangocairo-1.0": "^1.0.0-3.0.0-beta.12"
45
+ },
46
+ "devDependencies": {
47
+ "typescript": "^*"
48
+ },
49
+ "keywords": [
50
+ "Gir",
51
+ "TypeScript",
52
+ "GnomeBG-4.0"
53
+ ],
54
+ "author": "ts-for-gir",
55
+ "license": "Apache-2.0",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
62
+ },
63
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
64
+ }
@@ -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": ["./gnomebg-4.0.d.ts"]
19
+ }