@girs/gexiv2-0.10 0.14.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.
@@ -0,0 +1,1167 @@
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
+ * GExiv2-0.10
10
+ */
11
+
12
+ import type Gio from '@girs/gio-2.0';
13
+ import type GObject from '@girs/gobject-2.0';
14
+ import type GLib from '@girs/glib-2.0';
15
+
16
+ export namespace GExiv2 {
17
+
18
+ /**
19
+ * Options to control the byte order of binary EXIF data exports
20
+ */
21
+ enum ByteOrder {
22
+ /**
23
+ * Use little-endian byte order
24
+ */
25
+ LITTLE,
26
+ /**
27
+ * Use big-endian byte order
28
+ */
29
+ BIG,
30
+ }
31
+ /**
32
+ * GExiv2 log levels
33
+ */
34
+ enum LogLevel {
35
+ /**
36
+ * Log level for debugging
37
+ */
38
+ DEBUG,
39
+ /**
40
+ * Log level for informational messages
41
+ */
42
+ INFO,
43
+ /**
44
+ * Log level for warning messages
45
+ */
46
+ WARN,
47
+ /**
48
+ * Log level for error messages
49
+ */
50
+ ERROR,
51
+ /**
52
+ * Suppress all log messages
53
+ */
54
+ MUTE,
55
+ }
56
+ /**
57
+ * The orientation of an image is defined as the location of it's x,y origin. More than rotation,
58
+ * orientation allows for every variation of rotation, flips, and mirroring to be described in
59
+ * 3 bits of data.
60
+ *
61
+ * A handy primer to orientation can be found at
62
+ * <ulink url="http://jpegclub.org/exif_orientation.html"></ulink>
63
+ */
64
+ enum Orientation {
65
+ /**
66
+ * The orientation of the image is unknown
67
+ */
68
+ UNSPECIFIED,
69
+ /**
70
+ * The orientation of the image is without any rotation.
71
+ */
72
+ NORMAL,
73
+ /**
74
+ * The image is flipped on its horizontal axis
75
+ */
76
+ HFLIP,
77
+ /**
78
+ * The image is rotated by 180 degrees
79
+ */
80
+ ROT_180,
81
+ /**
82
+ * The Image is flipped on its vertical axis
83
+ */
84
+ VFLIP,
85
+ /**
86
+ * The image is rotated by 90 degrees clockwise and flipped on its horizontal axis
87
+ */
88
+ ROT_90_HFLIP,
89
+ /**
90
+ * The image is rotated by 90 degrees clockwise
91
+ */
92
+ ROT_90,
93
+ /**
94
+ * The image is rotated by 90 degrees clockwise and flipped on its vertical axis
95
+ */
96
+ ROT_90_VFLIP,
97
+ /**
98
+ * The image is rotated 270 degrees clockwise
99
+ */
100
+ ROT_270,
101
+ }
102
+ /**
103
+ * Used in gexiv2_metadata_set_xmp_tag_struct() to determine the array type
104
+ */
105
+ enum StructureType {
106
+ /**
107
+ * Structure is not an array
108
+ */
109
+ NONE,
110
+ /**
111
+ * A list of alternative values
112
+ */
113
+ ALT,
114
+ /**
115
+ * An unordered list of values
116
+ */
117
+ BAG,
118
+ /**
119
+ * An ordered list of values
120
+ */
121
+ SEQ,
122
+ /**
123
+ * Not supported. For completeness only
124
+ */
125
+ LANG,
126
+ }
127
+ /**
128
+ * Options to control the format of the serialized XMP packet
129
+ * Taken from: exiv2/src/xmp.hpp
130
+ * @bitfield
131
+ */
132
+ enum XmpFormatFlags {
133
+ /**
134
+ * Omit the XML packet wrapper.
135
+ */
136
+ OMIT_PACKET_WRAPPER,
137
+ /**
138
+ * Default is a writeable packet.
139
+ */
140
+ READ_ONLY_PACKET,
141
+ /**
142
+ * Use a compact form of RDF.
143
+ */
144
+ USE_COMPACT_FORMAT,
145
+ /**
146
+ * Include a padding allowance for a thumbnail image.
147
+ */
148
+ INCLUDE_THUMBNAIL_PAD,
149
+ /**
150
+ * The padding parameter is the overall packet length.
151
+ */
152
+ EXACT_PACKET_LENGTH,
153
+ /**
154
+ * Show aliases as XML comments.
155
+ */
156
+ WRITE_ALIAS_COMMENTS,
157
+ /**
158
+ * Omit all formatting whitespace.
159
+ */
160
+ OMIT_ALL_FORMATTING,
161
+ }
162
+ const MAJOR_VERSION: number
163
+ const MICRO_VERSION: number
164
+ const MINOR_VERSION: number
165
+ function get_version(): number
166
+ /**
167
+ * gexiv2 requires initialization before its methods are used. In particular, this call must be
168
+ * made in a thread-safe fashion. Best practice is to call from the application's main thread and
169
+ * not to use any Gexiv2 code until it has returned.
170
+ * @returns %TRUE if initialized. If %FALSE, GExiv2 should not be used (unable to initialize properly).
171
+ */
172
+ function initialize(): boolean
173
+ function log_get_level(): LogLevel
174
+ /**
175
+ * Log messages below this level will not be logged.
176
+ * @param level The #GExiv2LogLevel gexiv2 should respect.
177
+ */
178
+ function log_set_level(level: LogLevel): void
179
+ /**
180
+ * When called, gexiv2 will install it's own #GExiv2LogHandler which redirects all Exiv2 and gexiv2
181
+ * log messages to GLib's logging calls (g_debug(), g_message(), g_warning(), and g_critical() for the
182
+ * respective #GExiv2LogLevel value). #GEXIV2_LOG_LEVEL_MUTE logs are dropped.
183
+ *
184
+ * One advantage to using this is that GLib's logging control and handlers can be used rather than
185
+ * GExiv2's ad hoc scheme. It also means an application can use GLib logging and have all its
186
+ * messages routed through the same calls.
187
+ */
188
+ function log_use_glib_logging(): void
189
+ /**
190
+ * The log handler can be set by gexiv2_log_set_handler(). When set, the log handler will receive
191
+ * all log messages emitted by Exiv2 and gexiv2. It's up to the handler to decide where (and if)
192
+ * the images are displayed or stored.
193
+ * @callback
194
+ * @param level The #GExiv2LogLevel for the particular message
195
+ * @param msg The log message
196
+ */
197
+ interface LogHandler {
198
+ (level: LogLevel, msg: string | null): void
199
+ }
200
+ module Metadata {
201
+
202
+ // Constructor properties interface
203
+
204
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
205
+ }
206
+
207
+ }
208
+
209
+ interface Metadata {
210
+
211
+ // Own fields of GExiv2-0.10.GExiv2.Metadata
212
+
213
+ parent_instance: GObject.Object
214
+
215
+ // Owm methods of GExiv2-0.10.GExiv2.Metadata
216
+
217
+ /**
218
+ * Removes all tags for all domains (EXIF, IPTC, and XMP).
219
+ */
220
+ clear(): void
221
+ /**
222
+ * This is a composite clear method that will clear a number of fields. See
223
+ * #gexiv2_metadata_get_comment for more information.
224
+ */
225
+ clear_comment(): void
226
+ /**
227
+ * Clears all EXIF metadata from the loaded image.
228
+ */
229
+ clear_exif(): void
230
+ /**
231
+ * Clears all IPTC metadata from the loaded image.
232
+ */
233
+ clear_iptc(): void
234
+ /**
235
+ * Removes the Exiv2 tag from the metadata object.
236
+ *
237
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
238
+ * @param tag Exiv2 tag
239
+ * @returns TRUE if the tag was present.
240
+ */
241
+ clear_tag(tag: string | null): boolean
242
+ /**
243
+ * Clears all XMP metadata from the loaded image.
244
+ */
245
+ clear_xmp(): void
246
+ /**
247
+ * Removes all GPS metadata from the loaded image
248
+ */
249
+ delete_gps_info(): void
250
+ /**
251
+ * Removes the EXIF thumbnail from the loaded image.
252
+ */
253
+ erase_exif_thumbnail(): void
254
+ /**
255
+ * Destroys the #GExiv2Metadata object and frees all associated memory.
256
+ */
257
+ free(): void
258
+ /**
259
+ * Load only an EXIF buffer, typically stored in a JPEG's APP1 segment.
260
+ * @param data A buffer containing the data to be read
261
+ * @returns Boolean success indicator.
262
+ */
263
+ from_app1_segment(data: Uint8Array): boolean
264
+ /**
265
+ * This function does not work and will be removed in a future release.
266
+ * @param stream
267
+ */
268
+ from_stream(stream: Gio.InputStream): boolean
269
+ /**
270
+ * Encode the XMP packet as a %NULL-terminated string.
271
+ * @param xmp_format_flags One of #GExiv2XmpFormatFlags
272
+ * @param padding The padding (FIXME: Add documentation)
273
+ * @returns Encode the XMP packet and return as a %NULL-terminated string.
274
+ */
275
+ generate_xmp_packet(xmp_format_flags: XmpFormatFlags, padding: number): string | null
276
+ /**
277
+ * A composite accessor that uses the first available metadata field from a list of well-known
278
+ * locations to find the photo's comment (or description).
279
+ *
280
+ * MWG guidelines refer to these as <emphasis>Description</emphasis>: a textual description of a resource's content.
281
+ *
282
+ * These fields are:
283
+ *
284
+ * - Exif.Image.ImageDescription (MWG Guidelines)
285
+ * - Exif.Photo.UserComment
286
+ * - Exif.Image.XPComment
287
+ * - Iptc.Application2.Caption (MWG Guidelines)
288
+ * - Xmp.dc.description (MWG Guidelines)
289
+ * - Xmp.acdsee.notes (Commonly requested, read only)
290
+ *
291
+ * <note>Note that in the EXIF specification Exif.Image.ImageDescription is
292
+ * described as "the title of the image". Also, it does not support
293
+ * two-byte character codes for encoding. However, it's still used here for legacy reasons.
294
+ * </note>
295
+ *
296
+ * For fine-grained control, it's recommended to use Exiv2 tags directly rather than this method,
297
+ * which is more useful for quick or casual use.
298
+ * @returns The photo's comment field.
299
+ */
300
+ get_comment(): string | null
301
+ get_exif_data(byte_order: ByteOrder): GLib.Bytes | null
302
+ /**
303
+ * Fetch EXIF `tag` represented by a fraction. `nom` will contain the numerator,
304
+ * `den` the denominator of the fraction on successful return.
305
+ * @param tag The tag you want the rational value for
306
+ * @returns Boolean success value
307
+ */
308
+ get_exif_tag_rational(tag: string | null): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
309
+ /**
310
+ * Query `self` for a list of available EXIF tags
311
+ * @returns A unique list of the available EXIF tags in the loaded image
312
+ */
313
+ get_exif_tags(): string[]
314
+ /**
315
+ * Get the thumbnail stored in the EXIF data of `self`
316
+ * @returns Boolean success value
317
+ */
318
+ get_exif_thumbnail(): [ /* returnType */ boolean, /* buffer */ Uint8Array ]
319
+ /**
320
+ * Returns the exposure time in seconds (shutter speed, <emphasis>not</emphasis> date-time of exposure) as a
321
+ * rational. See <ulink url="https://en.wikipedia.org/wiki/Shutter_speed"></ulink> for more information.
322
+ * @returns Boolean success value
323
+ */
324
+ get_exposure_time(): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
325
+ /**
326
+ * See <ulink url="https://en.wikipedia.org/wiki/F-number"></ulink> for more information.
327
+ * If Exif.Photo.FNumber does not exist, it will fall back to calculating the FNumber from
328
+ * Exif.Photo.ApertureValue (if available);
329
+ * @returns The exposure Fnumber as a gdouble, or -1.0 if tag is not present or invalid.
330
+ */
331
+ get_fnumber(): number
332
+ /**
333
+ * See <ulink url="https://en.wikipedia.org/wiki/Flange_focal_distance"></ulink> for more information.
334
+ * @returns The focal length as a gdouble, or -1.0 if tag is not present or invalid.
335
+ */
336
+ get_focal_length(): number
337
+ /**
338
+ * Convenience function to query the altitude stored in the GPS tags of the
339
+ * image
340
+ * @returns Boolean success value
341
+ */
342
+ get_gps_altitude(): [ /* returnType */ boolean, /* altitude */ number ]
343
+ /**
344
+ * Convenience function to query all available GPS information at once.
345
+ * @returns Boolean success value.
346
+ */
347
+ get_gps_info(): [ /* returnType */ boolean, /* longitude */ number, /* latitude */ number, /* altitude */ number ]
348
+ /**
349
+ * Query the latitude stored in the GPS tags of `self`
350
+ * @returns Boolean success value
351
+ */
352
+ get_gps_latitude(): [ /* returnType */ boolean, /* latitude */ number ]
353
+ /**
354
+ * Query the longitude stored in the GPS tags of `self`
355
+ * @returns Boolean success value
356
+ */
357
+ get_gps_longitude(): [ /* returnType */ boolean, /* longitude */ number ]
358
+ /**
359
+ * Query `self` for a list of available IPTC tags
360
+ * @returns A unique list of the available IPTC tags
361
+ */
362
+ get_iptc_tags(): string[]
363
+ /**
364
+ * See <ulink url="https://en.wikipedia.org/wiki/Iso_speed"></ulink> for more information.
365
+ * @returns The ISO speed rating as a gint, or 0 if tag is not present or invalid.
366
+ */
367
+ get_iso_speed(): number
368
+ /**
369
+ * Composite accessor to query the pixel with stored in the metadata. This
370
+ * might differ from the height of image that is available through
371
+ * gexiv2_metadata_get_pixel_height()
372
+ * @returns Height of images in pixels as stored in the metadata
373
+ */
374
+ get_metadata_pixel_height(): number
375
+ /**
376
+ * Composite accessor to query the pixel with stored in the metadata. This
377
+ * might differ from the width of image that is available through
378
+ * gexiv2_metadata_get_pixel_width()
379
+ * @returns Width of images in pixels as stored in the metadata
380
+ */
381
+ get_metadata_pixel_width(): number
382
+ /**
383
+ * Query mime type of currently loaded image.
384
+ * @returns The MIME type of the loaded image, %NULL if not loaded or unknown.
385
+ */
386
+ get_mime_type(): string | null
387
+ /**
388
+ * The EXIF Orientation field
389
+ * @returns A #GExiv2Orientation value representing the EXIF orientation value.
390
+ */
391
+ get_orientation(): Orientation
392
+ /**
393
+ * Get the <emphasis>actual</emphasis> unoriented display height in pixels of the loaded image. This may
394
+ * be different than the height reported by various metadata tags, i.e. "Exif.Photo.PixelYDimension".
395
+ * @returns Pixel height of current image
396
+ */
397
+ get_pixel_height(): number
398
+ /**
399
+ * Get the <emphasis>actual</emphasis> unoriented display width in pixels of the loaded
400
+ * image. May be different than the width reported by various metadata tags,
401
+ * i.e. "Exif.Photo.PixelXDimension".
402
+ * @returns Pixel width of current image
403
+ */
404
+ get_pixel_width(): number
405
+ get_preview_image(props: PreviewProperties): PreviewImage
406
+ /**
407
+ * An image may have stored one or more previews, often of different qualities, sometimes of
408
+ * different image formats than the containing image. This call returns the properties of all
409
+ * previews Exiv2 finds within the loaded image. Use #gexiv2_metadata_get_preview_image to
410
+ * load a particular preview into memory.
411
+ * @returns An array of #GExiv2PreviewProperties instances, one for each preview present in the loaded image.
412
+ */
413
+ get_preview_properties(): PreviewProperties[] | null
414
+ /**
415
+ * Query `self` whether it supports writing EXIF metadata.
416
+ * @returns %TRUE if the loaded image type supports writing EXIF metadata.
417
+ */
418
+ get_supports_exif(): boolean
419
+ /**
420
+ * Query `self` whether it supports writing IPTC metadata.
421
+ * @returns %TRUE if the loaded image type supports writing IPTC metadata.
422
+ */
423
+ get_supports_iptc(): boolean
424
+ /**
425
+ * Query `self` whether it supports writing XMP metadata.
426
+ * @returns %TRUE if the loaded image type supports writing XMP metadata.
427
+ */
428
+ get_supports_xmp(): boolean
429
+ /**
430
+ * An interpreted string is one fit for user display. It may display units or use formatting
431
+ * appropriate to the type of data the tag holds.
432
+ *
433
+ * Tags that support multiple values are returned as a single string, with elements separated by ", ".
434
+ *
435
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
436
+ * @param tag Exiv2 tag name
437
+ * @returns The tag's interpreted value as a string
438
+ */
439
+ get_tag_interpreted_string(tag: string | null): string | null
440
+ /**
441
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
442
+ * @param tag Exiv2 tag name
443
+ * @returns The tag's value as a glong
444
+ */
445
+ get_tag_long(tag: string | null): number
446
+ /**
447
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
448
+ *
449
+ * In case of error, a GLib warning will be logged. Use instead
450
+ * gexiv2_metadata_try_get_tag_multiple() if you want to avoid this and
451
+ * control if and how the error is outputted.
452
+ * @param tag Exiv2 tag name
453
+ * @returns The multiple string values of the tag. Returns %NULL if parameters are %NULL or @tag does not begin with recognised type of metadata ("Exif.", "Xmp." or "Iptc."). For a well formed @tag, returns array[0] = %NULL if @tag is undefined or is not set in the current metadata. (Note: <ulink url="https://gitlab.gnome.org/GNOME/gexiv2/-/issues/61">xmpText/langAlt bug</ulink> is fixed in gexiv2_metadata_try_get_tag_multiple())
454
+ */
455
+ get_tag_multiple(tag: string | null): string[] | null
456
+ /**
457
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
458
+ *
459
+ * Tags that support multiple values may bereturned as a single byte array, with records separated
460
+ * by 4x INFORMATION SEPARATOR FOUR (ASCII 0x1c)
461
+ * @param tag Exiv2 tag name
462
+ * @returns The tag's raw value as a byte array
463
+ */
464
+ get_tag_raw(tag: string | null): GLib.Bytes | null
465
+ /**
466
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
467
+ *
468
+ * Tags that support multiple values are returned as a single string, with elements separated by ", ".
469
+ *
470
+ * In case of error, a GLib warning will be logged. Use instead
471
+ * gexiv2_metadata_try_get_tag_string() if you want to avoid this and
472
+ * control if and how the error is outputted.
473
+ * @param tag Exiv2 tag name
474
+ * @returns The tag's value as a string
475
+ */
476
+ get_tag_string(tag: string | null): string | null
477
+ get_xmp_packet(): string | null
478
+ get_xmp_tags(): string[]
479
+ has_exif(): boolean
480
+ has_iptc(): boolean
481
+ /**
482
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
483
+ * @param tag Exiv2 tag
484
+ * @returns TRUE if the tag is present.
485
+ */
486
+ has_tag(tag: string | null): boolean
487
+ has_xmp(): boolean
488
+ /**
489
+ * The buffer must be an image format supported by Exiv2.
490
+ * @param data A buffer containing the data to be read
491
+ * @returns Boolean success indicator
492
+ */
493
+ open_buf(data: Uint8Array): boolean
494
+ /**
495
+ * The file must be an image format supported by Exiv2.
496
+ * @param path Path to the file you want to open
497
+ * @returns Boolean success indicator
498
+ */
499
+ open_path(path: string | null): boolean
500
+ /**
501
+ * Saves the metadata to the specified using an XMP sidecar file.
502
+ * @param path Path to the file you want to save to.
503
+ * @returns Boolean success indicator.
504
+ */
505
+ save_external(path: string | null): boolean
506
+ /**
507
+ * Saves the metadata to the specified file by reading the file into memory,copying this object's
508
+ * metadata into the image, then writing the image back out.
509
+ * @param path Path to the file you want to save to.
510
+ * @returns Boolean success indicator.
511
+ */
512
+ save_file(path: string | null): boolean
513
+ /**
514
+ * This is a composite setter that will set a number of fields to the supplied value. See
515
+ * #gexiv2_metadata_get_comment for more information.
516
+ * @param comment Comment string to set. Must not be %NULL
517
+ */
518
+ set_comment(comment: string | null): void
519
+ /**
520
+ * Set EXIF `tag` represented by a fraction, with `nom` being the numerator,
521
+ * `den` the denominator of the fraction.
522
+ * @param tag The Exiv2 tag
523
+ * @param nom Rational numerator
524
+ * @param den Rational denominator
525
+ * @returns Boolean success value
526
+ */
527
+ set_exif_tag_rational(tag: string | null, nom: number, den: number): boolean
528
+ set_exif_thumbnail_from_buffer(buffer: Uint8Array): void
529
+ /**
530
+ * Sets or replaces the EXIF thumbnail with the image in the file
531
+ * @param path Path of image file
532
+ * @returns Boolean success value
533
+ */
534
+ set_exif_thumbnail_from_file(path: string | null): boolean
535
+ /**
536
+ * Convenience function to create a new set of simple GPS data. Warning: Will remove any other
537
+ * GPS information that is currently set. See gexiv2_metadata_update_gps_info() for
538
+ * just modifying the GPS data.
539
+ * @param longitude Longitude value to set or replace current value
540
+ * @param latitude Latitude value to set or replace current value
541
+ * @param altitude Altitude value to set or replace current value
542
+ * @returns Boolean success value.
543
+ */
544
+ set_gps_info(longitude: number, latitude: number, altitude: number): boolean
545
+ /**
546
+ * Update the image's metadata with `height`
547
+ * @param height The width of the image as it should be put into the metadata.
548
+ */
549
+ set_metadata_pixel_height(height: number): void
550
+ /**
551
+ * Composite setter to update the image's metadata with `width`
552
+ * @param width The width of the image as it should be put into the metadata
553
+ */
554
+ set_metadata_pixel_width(width: number): void
555
+ /**
556
+ * The orientation must be valid and cannot be #GEXIV2_ORIENTATION_UNSPECIFIED.
557
+ * @param orientation The new #GExiv2Orientation for the image.
558
+ */
559
+ set_orientation(orientation: Orientation): void
560
+ /**
561
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
562
+ * @param tag Exiv2 tag name
563
+ * @param value The value to set or replace the existing value
564
+ * @returns TRUE on success
565
+ */
566
+ set_tag_long(tag: string | null, value: number): boolean
567
+ /**
568
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
569
+ *
570
+ * All previous `tag` values are erased. For multiple value tags, each of the non %NULL
571
+ * entries in `values` is stored. For single value tags, only the last non %NULL value
572
+ * is assigned.
573
+ *
574
+ * In case of error, a GLib warning will be logged. Use instead
575
+ * gexiv2_metadata_try_set_tag_multiple() if you want to avoid this and
576
+ * control if and how the error is outputted.
577
+ * @param tag Exiv2 tag name
578
+ * @param values An array of values to set or replace the existing value(s)
579
+ * @returns Boolean success value
580
+ */
581
+ set_tag_multiple(tag: string | null, values: string[]): boolean
582
+ /**
583
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
584
+ *
585
+ * If a tag supports multiple values, then `value` is added to any existing values. For single
586
+ * value tags, `value` replaces the value.
587
+ *
588
+ * In case of error, a GLib warning will be logged. Use instead
589
+ * gexiv2_metadata_try_set_tag_string() if you want to avoid this and
590
+ * control if and how the error is outputted.
591
+ * @param tag Exiv2 tag name
592
+ * @param value The value to set or replace the existing value
593
+ * @returns TRUE on success
594
+ */
595
+ set_tag_string(tag: string | null, value: string | null): boolean
596
+ /**
597
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
598
+ * @param tag Exiv2 tag name
599
+ * @param type The GExiv2StructureType specifying the type of structure
600
+ * @returns TRUE on success
601
+ */
602
+ set_xmp_tag_struct(tag: string | null, type: StructureType): boolean
603
+ /**
604
+ * Removes the Exiv2 tag from the metadata object.
605
+ *
606
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
607
+ * @param tag Exiv2 tag
608
+ * @returns TRUE if the tag was present.
609
+ */
610
+ try_clear_tag(tag: string | null): boolean
611
+ /**
612
+ * Removes all GPS metadata from the loaded image
613
+ */
614
+ try_delete_gps_info(): void
615
+ /**
616
+ * Removes the EXIF thumbnail from the loaded image.
617
+ */
618
+ try_erase_exif_thumbnail(): void
619
+ /**
620
+ * Encode the XMP packet as a %NULL-terminated string.
621
+ * @param xmp_format_flags One of #GExiv2XmpFormatFlags
622
+ * @param padding The padding (FIXME: Add documentation)
623
+ * @returns Encode the XMP packet and return as a %NULL-terminated string.
624
+ */
625
+ try_generate_xmp_packet(xmp_format_flags: XmpFormatFlags, padding: number): string | null
626
+ /**
627
+ * A composite accessor that uses the first available metadata field from a list of well-known
628
+ * locations to find the photo's comment (or description).
629
+ *
630
+ * MWG guidelines refer to these as <emphasis>Description</emphasis>: a textual description of a resource's content.
631
+ *
632
+ * These fields are:
633
+ *
634
+ * - Exif.Image.ImageDescription (MWG Guidelines)
635
+ * - Exif.Photo.UserComment
636
+ * - Exif.Image.XPComment
637
+ * - Iptc.Application2.Caption (MWG Guidelines)
638
+ * - Xmp.dc.description (MWG Guidelines)
639
+ * - Xmp.acdsee.notes (Commonly requested, read only)
640
+ *
641
+ * <note>Note that in the EXIF specification Exif.Image.ImageDescription is
642
+ * described as "the title of the image". Also, it does not support
643
+ * two-byte character codes for encoding. However, it's still used here for legacy reasons.
644
+ * </note>
645
+ *
646
+ * For fine-grained control, it's recommended to use Exiv2 tags directly rather than this method,
647
+ * which is more useful for quick or casual use.
648
+ * @returns The photo's comment field.
649
+ */
650
+ try_get_comment(): string | null
651
+ /**
652
+ * Fetch EXIF `tag` represented by a fraction. `nom` will contain the numerator,
653
+ * `den` the denominator of the fraction on successful return.
654
+ * @param tag The tag you want the rational value for
655
+ * @returns Boolean success value
656
+ */
657
+ try_get_exif_tag_rational(tag: string | null): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
658
+ /**
659
+ * Returns the exposure time in seconds (shutter speed, <emphasis>not</emphasis> date-time of exposure) as a
660
+ * rational. See <ulink url="https://en.wikipedia.org/wiki/Shutter_speed"></ulink> for more information.
661
+ * @returns Boolean success value
662
+ */
663
+ try_get_exposure_time(): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
664
+ /**
665
+ * See <ulink url="https://en.wikipedia.org/wiki/F-number"></ulink> for more information.
666
+ * If Exif.Photo.FNumber does not exist, it will fall back to calculating the FNumber from
667
+ * Exif.Photo.ApertureValue (if available);
668
+ * @returns The exposure Fnumber as a gdouble, or -1.0 if tag is not present or invalid.
669
+ */
670
+ try_get_fnumber(): number
671
+ /**
672
+ * See <ulink url="https://en.wikipedia.org/wiki/Flange_focal_distance"></ulink> for more information.
673
+ * @returns The focal length as a gdouble, or -1.0 if tag is not present or invalid.
674
+ */
675
+ try_get_focal_length(): number
676
+ /**
677
+ * Convenience function to query the altitude stored in the GPS tags of the
678
+ * image
679
+ * @returns Boolean success value
680
+ */
681
+ try_get_gps_altitude(): [ /* returnType */ boolean, /* altitude */ number ]
682
+ /**
683
+ * Convenience function to query all available GPS information at once.
684
+ * @returns Boolean success value.
685
+ */
686
+ try_get_gps_info(): [ /* returnType */ boolean, /* longitude */ number, /* latitude */ number, /* altitude */ number ]
687
+ /**
688
+ * Query the latitude stored in the GPS tags of `self`
689
+ * @returns Boolean success value
690
+ */
691
+ try_get_gps_latitude(): [ /* returnType */ boolean, /* latitude */ number ]
692
+ /**
693
+ * Query the longitude stored in the GPS tags of `self`
694
+ * @returns Boolean success value
695
+ */
696
+ try_get_gps_longitude(): [ /* returnType */ boolean, /* longitude */ number ]
697
+ /**
698
+ * See <ulink url="https://en.wikipedia.org/wiki/Iso_speed"></ulink> for more information.
699
+ * @returns The ISO speed rating as a gint, or 0 if tag is not present or invalid.
700
+ */
701
+ try_get_iso_speed(): number
702
+ /**
703
+ * Composite accessor to query the pixel with stored in the metadata. This
704
+ * might differ from the height of image that is available through
705
+ * gexiv2_metadata_get_pixel_height()
706
+ * @returns Height of images in pixels as stored in the metadata
707
+ */
708
+ try_get_metadata_pixel_height(): number
709
+ /**
710
+ * Composite accessor to query the pixel with stored in the metadata. This
711
+ * might differ from the width of image that is available through
712
+ * gexiv2_metadata_get_pixel_width()
713
+ * @returns Width of images in pixels as stored in the metadata
714
+ */
715
+ try_get_metadata_pixel_width(): number
716
+ /**
717
+ * The EXIF Orientation field
718
+ * @returns A #GExiv2Orientation value representing the EXIF orientation value.
719
+ */
720
+ try_get_orientation(): Orientation
721
+ try_get_preview_image(props: PreviewProperties): PreviewImage
722
+ /**
723
+ * An interpreted string is one fit for user display. It may display units or use formatting
724
+ * appropriate to the type of data the tag holds.
725
+ *
726
+ * Tags that support multiple values are returned as a single string, with elements separated by ", ".
727
+ *
728
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
729
+ * @param tag Exiv2 tag name
730
+ * @returns The tag's interpreted value as a string
731
+ */
732
+ try_get_tag_interpreted_string(tag: string | null): string | null
733
+ /**
734
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
735
+ * @param tag Exiv2 tag name
736
+ * @returns The tag's value as a glong
737
+ */
738
+ try_get_tag_long(tag: string | null): number
739
+ /**
740
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
741
+ * @param tag Exiv2 tag name
742
+ * @returns The multiple string values of @tag. Returns %NULL if parameters are %NULL or @tag does not begin with recognised type of metadata ("Exif.", "Xmp." or "Iptc."). For a well formed @tag, returns array[0] = %NULL if @tag is undefined or is not set in the current metadata.
743
+ */
744
+ try_get_tag_multiple(tag: string | null): string[] | null
745
+ /**
746
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
747
+ *
748
+ * Tags that support multiple values may be returned as a single byte array, with records separated
749
+ * by 4x INFORMATION SEPARATOR FOUR (ASCII 0x1c)
750
+ * @param tag Exiv2 tag name
751
+ * @returns The tag's raw value as a byte array
752
+ */
753
+ try_get_tag_raw(tag: string | null): GLib.Bytes | null
754
+ /**
755
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
756
+ *
757
+ * Tags that support multiple values are returned as a single string, with elements separated by ", ".
758
+ * @param tag Exiv2 tag name
759
+ * @returns The tag's value as a string
760
+ */
761
+ try_get_tag_string(tag: string | null): string | null
762
+ try_get_xmp_packet(): string | null
763
+ /**
764
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
765
+ * @param tag Exiv2 tag
766
+ * @returns TRUE if the tag is present.
767
+ */
768
+ try_has_tag(tag: string | null): boolean
769
+ /**
770
+ * This is a composite setter that will set a number of fields to the supplied value. See
771
+ * #gexiv2_metadata_get_comment for more information.
772
+ * @param comment Comment string to set. Must not be %NULL
773
+ */
774
+ try_set_comment(comment: string | null): void
775
+ /**
776
+ * Set EXIF `tag` represented by a fraction, with `nom` being the numerator,
777
+ * `den` the denominator of the fraction.
778
+ * @param tag The Exiv2 tag
779
+ * @param nom Rational numerator
780
+ * @param den Rational denominator
781
+ * @returns Boolean success value
782
+ */
783
+ try_set_exif_tag_rational(tag: string | null, nom: number, den: number): boolean
784
+ try_set_exif_thumbnail_from_buffer(buffer: Uint8Array): void
785
+ /**
786
+ * Convenience function to create a new set of simple GPS data. Warning: Will remove any other
787
+ * GPS information that is currently set. See gexiv2_metadata_update_gps_info() for
788
+ * just modifying the GPS data.
789
+ * @param longitude Longitude value to set or replace current value
790
+ * @param latitude Latitude value to set or replace current value
791
+ * @param altitude Altitude value to set or replace current value
792
+ * @returns Boolean success value.
793
+ */
794
+ try_set_gps_info(longitude: number, latitude: number, altitude: number): boolean
795
+ /**
796
+ * Update the image's metadata with `height`
797
+ * @param height The width of the image as it should be put into the metadata.
798
+ */
799
+ try_set_metadata_pixel_height(height: number): void
800
+ /**
801
+ * Composite setter to update the image's metadata with `width`
802
+ * @param width The width of the image as it should be put into the metadata
803
+ */
804
+ try_set_metadata_pixel_width(width: number): void
805
+ /**
806
+ * The orientation must be valid and cannot be #GEXIV2_ORIENTATION_UNSPECIFIED.
807
+ * @param orientation The new #GExiv2Orientation for the image.
808
+ */
809
+ try_set_orientation(orientation: Orientation): void
810
+ /**
811
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
812
+ * @param tag Exiv2 tag name
813
+ * @param value The value to set or replace the existing value
814
+ * @returns TRUE on success
815
+ */
816
+ try_set_tag_long(tag: string | null, value: number): boolean
817
+ /**
818
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
819
+ *
820
+ * All previous `tag` values are erased. For multiple value tags, each of the non %NULL
821
+ * entries in `values` is stored. For single value tags, only the last non %NULL value
822
+ * is assigned.
823
+ * @param tag Exiv2 tag name
824
+ * @param values An array of values to set or replace the existing value(s)
825
+ * @returns Boolean success value
826
+ */
827
+ try_set_tag_multiple(tag: string | null, values: string[]): boolean
828
+ /**
829
+ * If a tag supports multiple values, then `value` is added to any existing values. For single
830
+ * tags, `value` replaces the value.
831
+ *
832
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
833
+ * @param tag Exiv2 tag name
834
+ * @param value The value to set or replace the existing value
835
+ * @returns TRUE on success
836
+ */
837
+ try_set_tag_string(tag: string | null, value: string | null): boolean
838
+ /**
839
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
840
+ * @param tag Exiv2 tag name
841
+ * @param type The GExiv2StructureType specifying the type of structure
842
+ * @returns TRUE on success
843
+ */
844
+ try_set_xmp_tag_struct(tag: string | null, type: StructureType): boolean
845
+ /**
846
+ * The Exiv2 Tag Reference can be found at <ulink url="https://www.exiv2.org/metadata.html"></ulink>
847
+ *
848
+ * Multiple value tags are Xmp tags of type "XmpAlt", "XmpBag", "XmpSeq" or "LangAlt", or Iptc
849
+ * tags marked as Repeatable (which can be of any Iptc type). There are no multiple value Exif
850
+ * tags.
851
+ * @param tag An Exiv2 tag
852
+ * @returns Whether @tag is capable of storing multiple values or not. If @tag is undefined (i.e. not built-in and not added to @self), then @error is set and %FALSE is returned.
853
+ */
854
+ try_tag_supports_multiple_values(tag: string | null): boolean
855
+ /**
856
+ * Convenience function to update longitude, latitude and altitude at once.
857
+ * @param longitude Longitude value to set or replace current value
858
+ * @param latitude Latitude value to set or replace current value
859
+ * @param altitude Altitude value to set or replace current value
860
+ * @returns Boolean success value.
861
+ */
862
+ try_update_gps_info(longitude: number, latitude: number, altitude: number): boolean
863
+ /**
864
+ * Convenience function to update longitude, latitude and altitude at once.
865
+ * @param longitude Longitude value to set or replace current value
866
+ * @param latitude Latitude value to set or replace current value
867
+ * @param altitude Altitude value to set or replace current value
868
+ * @returns Boolean success value.
869
+ */
870
+ update_gps_info(longitude: number, latitude: number, altitude: number): boolean
871
+
872
+ // Class property signals of GExiv2-0.10.GExiv2.Metadata
873
+
874
+ connect(sigName: string, callback: (...args: any[]) => void): number
875
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
876
+ emit(sigName: string, ...args: any[]): void
877
+ disconnect(id: number): void
878
+ }
879
+
880
+ /**
881
+ * An object holding all the Exiv2 metadata. Previews, if present, are also available.
882
+ *
883
+ * As gexiv2 is only a wrapper around Exiv2, it's better to read its documentation to understand
884
+ * the full scope of what it offers: <ulink url="http://www.exiv2.org/"></ulink>
885
+ *
886
+ * In particular, rather than providing a getter/setter method pair for every metadata value
887
+ * available for images (of which there are thousands), Exiv2 uses a dotted addressing scheme.
888
+ * For example, to access a photo's EXIF Orientation field, the caller passes to Exiv2
889
+ * "Exif.Photo.Orientation". These <emphasis>tags</emphasis> (in Exiv2 parlance) are key to using Exiv2 (and
890
+ * therefore gexiv2) to its fullest.
891
+ *
892
+ * A full reference for all supported Exiv2 tags can be found at
893
+ * <ulink url="http://www.exiv2.org/metadata.html"></ulink>
894
+ * @class
895
+ */
896
+ class Metadata extends GObject.Object {
897
+
898
+ // Own properties of GExiv2-0.10.GExiv2.Metadata
899
+
900
+ static name: string
901
+ static $gtype: GObject.GType<Metadata>
902
+
903
+ // Constructors of GExiv2-0.10.GExiv2.Metadata
904
+
905
+ constructor(config?: Metadata.ConstructorProperties)
906
+ constructor()
907
+ static new(): Metadata
908
+ _init(config?: Metadata.ConstructorProperties): void
909
+ /**
910
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
911
+ * @param tag An Exiv2 tag
912
+ * @returns The tag's description
913
+ */
914
+ static get_tag_description(tag: string | null): string | null
915
+ /**
916
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
917
+ * @param tag An Exiv2 tag
918
+ * @returns The tag's label
919
+ */
920
+ static get_tag_label(tag: string | null): string | null
921
+ /**
922
+ * The names of the various Exiv2 tag types can be found at Exiv2::TypeId,
923
+ * <ulink url="http://exiv2.org/doc/namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c"></ulink>
924
+ *
925
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
926
+ * @param tag An Exiv2 tag
927
+ * @returns The tag's type name.
928
+ */
929
+ static get_tag_type(tag: string | null): string | null
930
+ static get_xmp_namespace_for_tag(tag: string | null): string | null
931
+ /**
932
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
933
+ * @param tag An Exiv2 tag
934
+ * @returns TRUE if the Exiv2 tag is for the EXIF domain.
935
+ */
936
+ static is_exif_tag(tag: string | null): boolean
937
+ /**
938
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
939
+ * @param tag An Exiv2 tag
940
+ * @returns TRUE if the Exiv2 tag is for the IPTC domain.
941
+ */
942
+ static is_iptc_tag(tag: string | null): boolean
943
+ /**
944
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
945
+ * @param tag An Exiv2 tag
946
+ * @returns TRUE if the Exiv2 tag is for the XMP domain.
947
+ */
948
+ static is_xmp_tag(tag: string | null): boolean
949
+ static register_xmp_namespace(name: string | null, prefix: string | null): boolean
950
+ /**
951
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
952
+ * @param tag An Exiv2 tag
953
+ * @returns The tag's description
954
+ */
955
+ static try_get_tag_description(tag: string | null): string | null
956
+ /**
957
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
958
+ * @param tag An Exiv2 tag
959
+ * @returns The tag's label
960
+ */
961
+ static try_get_tag_label(tag: string | null): string | null
962
+ /**
963
+ * The names of the various Exiv2 tag types can be found at Exiv2::TypeId,
964
+ * <ulink url="http://exiv2.org/doc/namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c"></ulink>
965
+ *
966
+ * The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
967
+ * @param tag An Exiv2 tag
968
+ * @returns The tag's type name.
969
+ */
970
+ static try_get_tag_type(tag: string | null): string | null
971
+ static try_get_xmp_namespace_for_tag(tag: string | null): string | null
972
+ static try_register_xmp_namespace(name: string | null, prefix: string | null): boolean
973
+ static try_unregister_all_xmp_namespaces(): void
974
+ static try_unregister_xmp_namespace(name: string | null): boolean
975
+ static unregister_all_xmp_namespaces(): void
976
+ static unregister_xmp_namespace(name: string | null): boolean
977
+ }
978
+
979
+ module PreviewImage {
980
+
981
+ // Constructor properties interface
982
+
983
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
984
+ }
985
+
986
+ }
987
+
988
+ interface PreviewImage {
989
+
990
+ // Own fields of GExiv2-0.10.GExiv2.PreviewImage
991
+
992
+ parent_instance: GObject.Object
993
+
994
+ // Owm methods of GExiv2-0.10.GExiv2.PreviewImage
995
+
996
+ /**
997
+ * Releases the preview image and all associated memory.
998
+ */
999
+ free(): void
1000
+ get_data(): Uint8Array
1001
+
1002
+ // Overloads of get_data
1003
+
1004
+ /**
1005
+ * Gets a named field from the objects table of associations (see g_object_set_data()).
1006
+ * @param key name of the key for that association
1007
+ * @returns the data if found, or %NULL if no such data exists.
1008
+ */
1009
+ get_data(key: string | null): any | null
1010
+ get_extension(): string | null
1011
+ get_height(): number
1012
+ get_mime_type(): string | null
1013
+ get_width(): number
1014
+ try_write_file(path: string | null): number
1015
+ write_file(path: string | null): number
1016
+
1017
+ // Class property signals of GExiv2-0.10.GExiv2.PreviewImage
1018
+
1019
+ connect(sigName: string, callback: (...args: any[]) => void): number
1020
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1021
+ emit(sigName: string, ...args: any[]): void
1022
+ disconnect(id: number): void
1023
+ }
1024
+
1025
+ class PreviewImage extends GObject.Object {
1026
+
1027
+ // Own properties of GExiv2-0.10.GExiv2.PreviewImage
1028
+
1029
+ static name: string
1030
+ static $gtype: GObject.GType<PreviewImage>
1031
+
1032
+ // Constructors of GExiv2-0.10.GExiv2.PreviewImage
1033
+
1034
+ constructor(config?: PreviewImage.ConstructorProperties)
1035
+ _init(config?: PreviewImage.ConstructorProperties): void
1036
+ }
1037
+
1038
+ module PreviewProperties {
1039
+
1040
+ // Constructor properties interface
1041
+
1042
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1043
+ }
1044
+
1045
+ }
1046
+
1047
+ interface PreviewProperties {
1048
+
1049
+ // Own fields of GExiv2-0.10.GExiv2.PreviewProperties
1050
+
1051
+ parent_instance: GObject.Object
1052
+
1053
+ // Owm methods of GExiv2-0.10.GExiv2.PreviewProperties
1054
+
1055
+ get_extension(): string | null
1056
+ get_height(): number
1057
+ get_mime_type(): string | null
1058
+ get_size(): number
1059
+ get_width(): number
1060
+
1061
+ // Class property signals of GExiv2-0.10.GExiv2.PreviewProperties
1062
+
1063
+ connect(sigName: string, callback: (...args: any[]) => void): number
1064
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1065
+ emit(sigName: string, ...args: any[]): void
1066
+ disconnect(id: number): void
1067
+ }
1068
+
1069
+ class PreviewProperties extends GObject.Object {
1070
+
1071
+ // Own properties of GExiv2-0.10.GExiv2.PreviewProperties
1072
+
1073
+ static name: string
1074
+ static $gtype: GObject.GType<PreviewProperties>
1075
+
1076
+ // Constructors of GExiv2-0.10.GExiv2.PreviewProperties
1077
+
1078
+ constructor(config?: PreviewProperties.ConstructorProperties)
1079
+ _init(config?: PreviewProperties.ConstructorProperties): void
1080
+ }
1081
+
1082
+ interface MetadataClass {
1083
+
1084
+ // Own fields of GExiv2-0.10.GExiv2.MetadataClass
1085
+
1086
+ parent_class: GObject.ObjectClass
1087
+ }
1088
+
1089
+ abstract class MetadataClass {
1090
+
1091
+ // Own properties of GExiv2-0.10.GExiv2.MetadataClass
1092
+
1093
+ static name: string
1094
+ }
1095
+
1096
+ interface MetadataPrivate {
1097
+ }
1098
+
1099
+ class MetadataPrivate {
1100
+
1101
+ // Own properties of GExiv2-0.10.GExiv2.MetadataPrivate
1102
+
1103
+ static name: string
1104
+ }
1105
+
1106
+ interface PreviewImageClass {
1107
+
1108
+ // Own fields of GExiv2-0.10.GExiv2.PreviewImageClass
1109
+
1110
+ parent_class: GObject.ObjectClass
1111
+ }
1112
+
1113
+ abstract class PreviewImageClass {
1114
+
1115
+ // Own properties of GExiv2-0.10.GExiv2.PreviewImageClass
1116
+
1117
+ static name: string
1118
+ }
1119
+
1120
+ interface PreviewImagePrivate {
1121
+ }
1122
+
1123
+ class PreviewImagePrivate {
1124
+
1125
+ // Own properties of GExiv2-0.10.GExiv2.PreviewImagePrivate
1126
+
1127
+ static name: string
1128
+ }
1129
+
1130
+ interface PreviewPropertiesClass {
1131
+
1132
+ // Own fields of GExiv2-0.10.GExiv2.PreviewPropertiesClass
1133
+
1134
+ parent_class: GObject.ObjectClass
1135
+ }
1136
+
1137
+ abstract class PreviewPropertiesClass {
1138
+
1139
+ // Own properties of GExiv2-0.10.GExiv2.PreviewPropertiesClass
1140
+
1141
+ static name: string
1142
+ }
1143
+
1144
+ interface PreviewPropertiesPrivate {
1145
+ }
1146
+
1147
+ class PreviewPropertiesPrivate {
1148
+
1149
+ // Own properties of GExiv2-0.10.GExiv2.PreviewPropertiesPrivate
1150
+
1151
+ static name: string
1152
+ }
1153
+
1154
+ /**
1155
+ * Name of the imported GIR library
1156
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1157
+ */
1158
+ const __name__: string
1159
+ /**
1160
+ * Version of the imported GIR library
1161
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1162
+ */
1163
+ const __version__: string
1164
+ }
1165
+
1166
+ export default GExiv2;
1167
+ // END