@girs/gnomebg-4.0 4.0.0-3.2.6 → 4.0.0-3.2.7

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gnomebg-4.0)
6
6
 
7
7
 
8
- 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-gir) v3.2.6.
8
+ 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-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/gnomebg-4.0.d.cts CHANGED
@@ -79,7 +79,7 @@ export interface BG {
79
79
  create_surface(window: Gdk.Surface, width: number, height: number): cairo.Surface
80
80
  create_thumbnail(factory: GnomeDesktop.DesktopThumbnailFactory, screen_area: cairo.RectangleInt, dest_width: number, dest_height: number): GdkPixbuf.Pixbuf
81
81
  draw(dest: GdkPixbuf.Pixbuf): void
82
- get_filename(): string | null
82
+ get_filename(): string
83
83
  get_image_size(factory: GnomeDesktop.DesktopThumbnailFactory, best_width: number, best_height: number, width: number, height: number): boolean
84
84
  get_placement(): GDesktopEnums.BackgroundStyle
85
85
  get_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
@@ -87,7 +87,7 @@ export interface BG {
87
87
  is_dark(dest_width: number, dest_height: number): boolean
88
88
  load_from_preferences(settings: Gio.Settings): void
89
89
  save_to_preferences(settings: Gio.Settings): void
90
- set_filename(filename: string | null): void
90
+ set_filename(filename: string): void
91
91
  set_placement(placement: GDesktopEnums.BackgroundStyle): void
92
92
  set_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
93
93
 
@@ -160,7 +160,7 @@ export interface BGSlideShow {
160
160
  * @param width monitor width
161
161
  * @param height monitor height
162
162
  */
163
- get_current_slide(width: number, height: number): [ /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
163
+ get_current_slide(width: number, height: number): [ /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string, /* file2 */ string ]
164
164
  /**
165
165
  * gets whether or not the slide show has multiple sizes for different monitors
166
166
  * @returns %TRUE if multiple sizes
@@ -177,7 +177,7 @@ export interface BGSlideShow {
177
177
  * @param height monitor height
178
178
  * @returns %TRUE if successful
179
179
  */
180
- get_slide(frame_number: number, width: number, height: number): [ /* returnType */ boolean, /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
180
+ get_slide(frame_number: number, width: number, height: number): [ /* returnType */ boolean, /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string, /* file2 */ string ]
181
181
  /**
182
182
  * gets the start time of the slide show
183
183
  * @returns a timestamp
@@ -237,7 +237,7 @@ export class BGSlideShow extends GObject.Object {
237
237
  * @param filename The filename of the slide show
238
238
  * @returns the new #GnomeBGSlideShow
239
239
  */
240
- constructor(filename: string | null)
240
+ constructor(filename: string)
241
241
  /**
242
242
  * Creates a new object to manage a slide show.
243
243
  * window background between two #cairo_surface_ts.
@@ -245,7 +245,7 @@ export class BGSlideShow extends GObject.Object {
245
245
  * @param filename The filename of the slide show
246
246
  * @returns the new #GnomeBGSlideShow
247
247
  */
248
- static new(filename: string | null): BGSlideShow
248
+ static new(filename: string): BGSlideShow
249
249
  _init(config?: BGSlideShow.ConstructorProperties): void
250
250
  }
251
251
 
package/gnomebg-4.0.d.ts CHANGED
@@ -81,7 +81,7 @@ interface BG {
81
81
  create_surface(window: Gdk.Surface, width: number, height: number): cairo.Surface
82
82
  create_thumbnail(factory: GnomeDesktop.DesktopThumbnailFactory, screen_area: cairo.RectangleInt, dest_width: number, dest_height: number): GdkPixbuf.Pixbuf
83
83
  draw(dest: GdkPixbuf.Pixbuf): void
84
- get_filename(): string | null
84
+ get_filename(): string
85
85
  get_image_size(factory: GnomeDesktop.DesktopThumbnailFactory, best_width: number, best_height: number, width: number, height: number): boolean
86
86
  get_placement(): GDesktopEnums.BackgroundStyle
87
87
  get_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
@@ -89,7 +89,7 @@ interface BG {
89
89
  is_dark(dest_width: number, dest_height: number): boolean
90
90
  load_from_preferences(settings: Gio.Settings): void
91
91
  save_to_preferences(settings: Gio.Settings): void
92
- set_filename(filename: string | null): void
92
+ set_filename(filename: string): void
93
93
  set_placement(placement: GDesktopEnums.BackgroundStyle): void
94
94
  set_rgba(type: GDesktopEnums.BackgroundShading, primary: Gdk.RGBA, secondary: Gdk.RGBA): void
95
95
 
@@ -162,7 +162,7 @@ interface BGSlideShow {
162
162
  * @param width monitor width
163
163
  * @param height monitor height
164
164
  */
165
- get_current_slide(width: number, height: number): [ /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
165
+ get_current_slide(width: number, height: number): [ /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string, /* file2 */ string ]
166
166
  /**
167
167
  * gets whether or not the slide show has multiple sizes for different monitors
168
168
  * @returns %TRUE if multiple sizes
@@ -179,7 +179,7 @@ interface BGSlideShow {
179
179
  * @param height monitor height
180
180
  * @returns %TRUE if successful
181
181
  */
182
- get_slide(frame_number: number, width: number, height: number): [ /* returnType */ boolean, /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string | null, /* file2 */ string | null ]
182
+ get_slide(frame_number: number, width: number, height: number): [ /* returnType */ boolean, /* progress */ number, /* duration */ number, /* is_fixed */ boolean, /* file1 */ string, /* file2 */ string ]
183
183
  /**
184
184
  * gets the start time of the slide show
185
185
  * @returns a timestamp
@@ -239,7 +239,7 @@ class BGSlideShow extends GObject.Object {
239
239
  * @param filename The filename of the slide show
240
240
  * @returns the new #GnomeBGSlideShow
241
241
  */
242
- constructor(filename: string | null)
242
+ constructor(filename: string)
243
243
  /**
244
244
  * Creates a new object to manage a slide show.
245
245
  * window background between two #cairo_surface_ts.
@@ -247,7 +247,7 @@ class BGSlideShow extends GObject.Object {
247
247
  * @param filename The filename of the slide show
248
248
  * @returns the new #GnomeBGSlideShow
249
249
  */
250
- static new(filename: string | null): BGSlideShow
250
+ static new(filename: string): BGSlideShow
251
251
  _init(config?: BGSlideShow.ConstructorProperties): void
252
252
  }
253
253
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gnomebg-4.0",
3
- "version": "4.0.0-3.2.6",
3
+ "version": "4.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GnomeBG-4.0, generated from library version 4.0.0",
5
5
  "type": "module",
6
6
  "module": "gnomebg-4.0.js",
@@ -25,20 +25,20 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gnomebg-4.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
29
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
30
- "@girs/gdesktopenums-3.0": "^3.0.0-3.2.6",
31
- "@girs/gdk-4.0": "^4.0.0-3.2.6",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
33
- "@girs/gio-2.0": "^2.78.0-3.2.6",
34
- "@girs/gjs": "^3.2.6",
35
- "@girs/glib-2.0": "^2.78.0-3.2.6",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
37
- "@girs/gnomedesktop-4.0": "^4.0.0-3.2.6",
38
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
39
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
40
- "@girs/pango-1.0": "^1.51.0-3.2.6",
41
- "@girs/pangocairo-1.0": "^1.0.0-3.2.6"
28
+ "@girs/cairo-1.0": "^1.0.0-3.2.7",
29
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
30
+ "@girs/gdesktopenums-3.0": "^3.0.0-3.2.7",
31
+ "@girs/gdk-4.0": "^4.0.0-3.2.7",
32
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
33
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
34
+ "@girs/gjs": "^3.2.7",
35
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
36
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
37
+ "@girs/gnomedesktop-4.0": "^4.0.0-3.2.7",
38
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
39
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
40
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
41
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.7"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "*"