@girs/gegl-0.4 0.4.41-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/gegl-0.4.d.ts ADDED
@@ -0,0 +1,4253 @@
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
+ * Gegl-0.4
10
+ */
11
+
12
+ import type GObject from '@girs/gobject-2.0';
13
+ import type GLib from '@girs/glib-2.0';
14
+ import type Babl from '@girs/babl-0.1';
15
+
16
+ export namespace Gegl {
17
+
18
+ enum AbyssPolicy {
19
+ NONE,
20
+ CLAMP,
21
+ LOOP,
22
+ BLACK,
23
+ WHITE,
24
+ }
25
+ enum BablVariant {
26
+ FLOAT,
27
+ LINEAR,
28
+ NON_LINEAR,
29
+ PERCEPTUAL,
30
+ LINEAR_PREMULTIPLIED,
31
+ PERCEPTUAL_PREMULTIPLIED,
32
+ LINEAR_PREMULTIPLIED_IF_ALPHA,
33
+ PERCEPTUAL_PREMULTIPLIED_IF_ALPHA,
34
+ ADD_ALPHA,
35
+ }
36
+ enum CachePolicy {
37
+ AUTO,
38
+ NEVER,
39
+ ALWAYS,
40
+ }
41
+ enum DistanceMetric {
42
+ EUCLIDEAN,
43
+ MANHATTAN,
44
+ CHEBYSHEV,
45
+ }
46
+ enum DitherMethod {
47
+ NONE,
48
+ FLOYD_STEINBERG,
49
+ BAYER,
50
+ RANDOM,
51
+ RANDOM_COVARIANT,
52
+ ADD,
53
+ ADD_COVARIANT,
54
+ XOR,
55
+ XOR_COVARIANT,
56
+ BLUE_NOISE,
57
+ BLUE_NOISE_COVARIANT,
58
+ }
59
+ /**
60
+ * Flags controlling the mapping strategy.
61
+ */
62
+ enum MapFlags {
63
+ /**
64
+ * Prevent further mapping from being registered.
65
+ */
66
+ MAP_EXCLUDE_UNMAPPED,
67
+ }
68
+ enum Orientation {
69
+ HORIZONTAL,
70
+ VERTICAL,
71
+ }
72
+ enum RectangleAlignment {
73
+ SUBSET,
74
+ SUPERSET,
75
+ NEAREST,
76
+ }
77
+ /**
78
+ * An enumerated type specifying resolution (density) units. If resolution
79
+ * units are unknown, X and Y resolution specify the pixel aspect ratio.
80
+ */
81
+ enum ResolutionUnit {
82
+ /**
83
+ * Unknown or resolution not applicable.
84
+ */
85
+ NONE,
86
+ /**
87
+ * Dots or pixels per inch.
88
+ */
89
+ DPI,
90
+ /**
91
+ * Dots or pixels per metre.
92
+ */
93
+ DPM,
94
+ }
95
+ enum SamplerType {
96
+ NEAREST,
97
+ LINEAR,
98
+ CUBIC,
99
+ NOHALO,
100
+ LOHALO,
101
+ }
102
+ enum SplitStrategy {
103
+ AUTO,
104
+ HORIZONTAL,
105
+ VERTICAL,
106
+ }
107
+ enum TileCommand {
108
+ EGL_TILE_IDLE,
109
+ EGL_TILE_SET,
110
+ EGL_TILE_GET,
111
+ EGL_TILE_IS_CACHED,
112
+ EGL_TILE_EXIST,
113
+ EGL_TILE_VOID,
114
+ EGL_TILE_FLUSH,
115
+ EGL_TILE_REFETCH,
116
+ EGL_TILE_REINIT,
117
+ GEGL_TILE_LAST_0_4_8_COMMAND,
118
+ EGL_TILE_COPY,
119
+ EGL_TILE_LAST_COMMAND,
120
+ }
121
+ enum AccessMode {
122
+ READ,
123
+ WRITE,
124
+ READWRITE,
125
+ }
126
+ enum BlitFlags {
127
+ DEFAULT,
128
+ CACHE,
129
+ DIRTY,
130
+ }
131
+ enum PadType {
132
+ OUTPUT,
133
+ INPUT,
134
+ }
135
+ enum SerializeFlag {
136
+ TRIM_DEFAULTS,
137
+ VERSION,
138
+ INDENT,
139
+ BAKE_ANIM,
140
+ }
141
+ const AUTO_ROWSTRIDE: number
142
+ const CH_BACK_CENTER: number
143
+ const CH_BACK_LEFT: number
144
+ const CH_BACK_RIGHT: number
145
+ const CH_FRONT_CENTER: number
146
+ const CH_FRONT_LEFT: number
147
+ const CH_FRONT_LEFT_OF_CENTER: number
148
+ const CH_FRONT_RIGHT: number
149
+ const CH_FRONT_RIGHT_OF_CENTER: number
150
+ const CH_LAYOUT_2POINT1: number
151
+ const CH_LAYOUT_2_1: number
152
+ const CH_LAYOUT_2_2: number
153
+ const CH_LAYOUT_3POINT1: number
154
+ const CH_LAYOUT_4POINT0: number
155
+ const CH_LAYOUT_4POINT1: number
156
+ const CH_LAYOUT_5POINT0: number
157
+ const CH_LAYOUT_5POINT0_BACK: number
158
+ const CH_LAYOUT_5POINT1: number
159
+ const CH_LAYOUT_5POINT1_BACK: number
160
+ const CH_LAYOUT_6POINT0: number
161
+ const CH_LAYOUT_6POINT0_FRONT: number
162
+ const CH_LAYOUT_6POINT1: number
163
+ const CH_LAYOUT_6POINT1_BACK: number
164
+ const CH_LAYOUT_6POINT1_FRONT: number
165
+ const CH_LAYOUT_7POINT0: number
166
+ const CH_LAYOUT_7POINT0_FRONT: number
167
+ const CH_LAYOUT_7POINT1: number
168
+ const CH_LAYOUT_7POINT1_WIDE: number
169
+ const CH_LAYOUT_7POINT1_WIDE_BACK: number
170
+ const CH_LAYOUT_HEXADECAGONAL: number
171
+ const CH_LAYOUT_HEXAGONAL: number
172
+ const CH_LAYOUT_NATIVE: number
173
+ const CH_LAYOUT_OCTAGONAL: number
174
+ const CH_LAYOUT_QUAD: number
175
+ const CH_LAYOUT_STEREO: number
176
+ const CH_LAYOUT_STEREO_DOWNMIX: number
177
+ const CH_LAYOUT_SURROUND: number
178
+ const CH_LOW_FREQUENCY: number
179
+ const CH_LOW_FREQUENCY_2: number
180
+ const CH_SIDE_LEFT: number
181
+ const CH_SIDE_RIGHT: number
182
+ const CH_STEREO_LEFT: number
183
+ const CH_STEREO_RIGHT: number
184
+ const CH_SURROUND_DIRECT_LEFT: number
185
+ const CH_SURROUND_DIRECT_RIGHT: number
186
+ const CH_TOP_BACK_CENTER: number
187
+ const CH_TOP_BACK_LEFT: number
188
+ const CH_TOP_BACK_RIGHT: number
189
+ const CH_TOP_CENTER: number
190
+ const CH_TOP_FRONT_CENTER: number
191
+ const CH_TOP_FRONT_LEFT: number
192
+ const CH_TOP_FRONT_RIGHT: number
193
+ const CH_WIDE_LEFT: number
194
+ const CH_WIDE_RIGHT: number
195
+ const FLOAT_EPSILON: number
196
+ const LOOKUP_MAX_ENTRIES: number
197
+ const MAJOR_VERSION: number
198
+ const MAX_AUDIO_CHANNELS: number
199
+ const MICRO_VERSION: number
200
+ const MINOR_VERSION: number
201
+ const PARAM_NO_VALIDATE: number
202
+ function babl_variant(format: Babl.Object, variant: BablVariant): Babl.Object
203
+ /**
204
+ * Disable OpenCL
205
+ */
206
+ function cl_disable(): void
207
+ /**
208
+ * Initialize and enable OpenCL, calling this function again
209
+ * will re-enable OpenCL if it has been disabled.
210
+ * @returns True if OpenCL was initialized
211
+ */
212
+ function cl_init(): boolean
213
+ /**
214
+ * Check if OpenCL is enabled.
215
+ * @returns True if OpenCL is initialized and enabled
216
+ */
217
+ function cl_is_accelerated(): boolean
218
+ /**
219
+ * Returns a GeglConfig object with properties that can be manipulated to control
220
+ * GEGLs behavior.
221
+ * @returns a #GeglConfig
222
+ */
223
+ function config(): Config
224
+ /**
225
+ * Create a node chain from an unparsed commandline string.
226
+ * @param ops an argv style, NULL terminated array of arguments
227
+ * @param op_start node to pass in as input of chain
228
+ * @param op_end node to get processed data
229
+ * @param time the time to use for interpolatino of keyframed values
230
+ * @param rel_dim relative dimension to scale rel suffixed values by
231
+ * @param path_root path in filesystem to use as relative root
232
+ */
233
+ function create_chain(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
234
+ /**
235
+ * Create a node chain from argv style list of op data.
236
+ * @param ops an argv style, NULL terminated array of arguments
237
+ * @param op_start node to pass in as input of chain
238
+ * @param op_end node to get processed data
239
+ * @param time the time to use for interpolatino of keyframed values
240
+ * @param rel_dim relative dimension to scale rel suffixed values by
241
+ * @param path_root path in filesystem to use as relative root
242
+ */
243
+ function create_chain_argv(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
244
+ /**
245
+ * Call this function when you're done using GEGL. It will clean up
246
+ * caches and write/dump debug information if the correct debug flags
247
+ * are set.
248
+ */
249
+ function exit(): void
250
+ /**
251
+ * Returns a value sutable to pass to the GeglBuffer constructor
252
+ * or any other property that expects a Babl format.
253
+ * @param format_name A Babl format name, e.g. "RGBA float"
254
+ * @returns the format pointer
255
+ */
256
+ function format(format_name: string | null): any | null
257
+ function format_get_name(format: any): string | null
258
+ /**
259
+ * This function fetches the version of the GEGL library being used by
260
+ * the running process.
261
+ */
262
+ function get_version(): [ /* major */ number, /* minor */ number, /* micro */ number ]
263
+ /**
264
+ * Dump the bounds and format of each node in the graph to stdout.
265
+ * @param node The final node of the graph
266
+ */
267
+ function graph_dump_outputs(node: Node): void
268
+ /**
269
+ * Dump the region that will be rendered for each node to fulfill
270
+ * the request.
271
+ * @param node The final node of the graph
272
+ * @param roi The request rectangle
273
+ */
274
+ function graph_dump_request(node: Node, roi: Rectangle): void
275
+ function has_operation(operation_type: string | null): boolean
276
+ /**
277
+ * Call this function before using any other GEGL functions. It will
278
+ * initialize everything needed to operate GEGL and parses some
279
+ * standard command line options. `argc` and `argv` are adjusted
280
+ * accordingly so your own code will never see those standard
281
+ * arguments.
282
+ *
283
+ * Note that there is an alternative way to initialize GEGL: if you
284
+ * are calling g_option_context_parse() with the option group returned
285
+ * by #gegl_get_option_group(), you don't have to call #gegl_init().
286
+ * @param argv a pointer to the array of command line arguments.
287
+ */
288
+ function init(argv: string[] | null): /* argv */ string[] | null
289
+ function is_main_thread(): boolean
290
+ function list_operations(): string[]
291
+ /**
292
+ * Load all gegl modules found in the given directory.
293
+ * @param path the directory to load modules from
294
+ */
295
+ function load_module_directory(path: string | null): void
296
+ /**
297
+ * Distributes the execution of a function across multiple threads,
298
+ * by calling it with a different index on each thread.
299
+ * @param max_n the maximal number of threads to use
300
+ * @param func the function to call
301
+ */
302
+ function parallel_distribute(max_n: number, func: ParallelDistributeFunc): void
303
+ /**
304
+ * Distributes the processing of a planar data-structure across
305
+ * multiple threads, by calling the given function with different
306
+ * sub-areas on different threads.
307
+ * @param area the area to process
308
+ * @param thread_cost the cost of using each additional thread, relative to the cost of processing a single data element
309
+ * @param split_strategy the strategy to use for dividing the area
310
+ * @param func the function to call
311
+ */
312
+ function parallel_distribute_area(area: Rectangle, thread_cost: number, split_strategy: SplitStrategy, func: ParallelDistributeAreaFunc): void
313
+ /**
314
+ * Distributes the processing of a linear data-structure across
315
+ * multiple threads, by calling the given function with different
316
+ * sub-ranges on different threads.
317
+ * @param size the total size of the data
318
+ * @param thread_cost the cost of using each additional thread, relative to the cost of processing a single data element
319
+ * @param func the function to call
320
+ */
321
+ function parallel_distribute_range(size: number, thread_cost: number, func: ParallelDistributeRangeFunc): void
322
+ /**
323
+ * Creates a new #GParamSpec instance specifying a #GeglAudioFragment property.
324
+ * @param name canonical name of the property specified
325
+ * @param nick nick name for the property specified
326
+ * @param blurb description of the property specified
327
+ * @param flags flags for the property specified
328
+ * @returns a newly created parameter specification
329
+ */
330
+ function param_spec_audio_fragment(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
331
+ /**
332
+ * Creates a new #GParamSpec instance specifying a #GeglColor property.
333
+ * @param name canonical name of the property specified
334
+ * @param nick nick name for the property specified
335
+ * @param blurb description of the property specified
336
+ * @param default_color the default value for the property specified
337
+ * @param flags flags for the property specified
338
+ * @returns a newly created parameter specification
339
+ */
340
+ function param_spec_color(name: string | null, nick: string | null, blurb: string | null, default_color: Color, flags: GObject.ParamFlags): GObject.ParamSpec
341
+ /**
342
+ * Creates a new #GParamSpec instance specifying a #GeglColor property.
343
+ * @param name canonical name of the property specified
344
+ * @param nick nick name for the property specified
345
+ * @param blurb description of the property specified
346
+ * @param default_color_string the default value for the property specified
347
+ * @param flags flags for the property specified
348
+ * @returns a newly created parameter specification
349
+ */
350
+ function param_spec_color_from_string(name: string | null, nick: string | null, blurb: string | null, default_color_string: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
351
+ /**
352
+ * Get the default color value of the param spec
353
+ * @param self a #GeglColor #GParamSpec
354
+ * @returns the default #GeglColor
355
+ */
356
+ function param_spec_color_get_default(self: GObject.ParamSpec): Color
357
+ /**
358
+ * Creates a new #GParamSpec instance specifying a #GeglCurve property.
359
+ * @param name canonical name of the property specified
360
+ * @param nick nick name for the property specified
361
+ * @param blurb description of the property specified
362
+ * @param default_curve the default value for the property specified
363
+ * @param flags flags for the property specified
364
+ * @returns a newly created parameter specification
365
+ */
366
+ function param_spec_curve(name: string | null, nick: string | null, blurb: string | null, default_curve: Curve, flags: GObject.ParamFlags): GObject.ParamSpec
367
+ /**
368
+ * Creates a new #GeglParamSpecDouble instance.
369
+ * @param name canonical name of the property specified
370
+ * @param nick nick name for the property specified
371
+ * @param blurb description of the property specified
372
+ * @param minimum minimum value for the property specified
373
+ * @param maximum maximum value for the property specified
374
+ * @param default_value default value for the property specified
375
+ * @param ui_minimum minimum value a user should be allowed to input
376
+ * @param ui_maximum maximum value a user should be allowed to input
377
+ * @param ui_gamma the gamma that should be used when adjusting the value
378
+ * @param flags flags for the property specified
379
+ * @returns a newly created parameter specification
380
+ */
381
+ function param_spec_double(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
382
+ /**
383
+ * Creates a new #GeglParamSpecEnum instance.
384
+ * @param name canonical name of the property specified
385
+ * @param nick nick name for the property specified
386
+ * @param blurb description of the property specified
387
+ * @param enum_type the enum type to get valid values from
388
+ * @param default_value default value for the property specified
389
+ * @param flags flags for the property specified
390
+ * @returns a newly created parameter specification
391
+ */
392
+ function param_spec_enum(name: string | null, nick: string | null, blurb: string | null, enum_type: GObject.GType, default_value: number, flags: GObject.ParamFlags): GObject.ParamSpec
393
+ /**
394
+ * Creates a new #GeglParamSpecFilePath instance.
395
+ * @param name canonical name of the property specified
396
+ * @param nick nick name for the property specified
397
+ * @param blurb description of the property specified
398
+ * @param no_validate true if the string should be validated with g_utf8_validate
399
+ * @param null_ok true if the string can be NULL
400
+ * @param default_value default value for the property specified
401
+ * @param flags flags for the property specified
402
+ * @returns a newly created parameter specification
403
+ */
404
+ function param_spec_file_path(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
405
+ /**
406
+ * Creates a new #GeglParamSpecFormat instance specifying a Babl format.
407
+ * @param name canonical name of the property specified
408
+ * @param nick nick name for the property specified
409
+ * @param blurb description of the property specified
410
+ * @param flags flags for the property specified
411
+ * @returns a newly created parameter specification
412
+ */
413
+ function param_spec_format(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
414
+ function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name: string | null): string | null
415
+ /**
416
+ * Creates a new #GeglParamSpecInt instance.
417
+ * @param name canonical name of the property specified
418
+ * @param nick nick name for the property specified
419
+ * @param blurb description of the property specified
420
+ * @param minimum minimum value for the property specified
421
+ * @param maximum maximum value for the property specified
422
+ * @param default_value default value for the property specified
423
+ * @param ui_minimum minimum value a user should be allowed to input
424
+ * @param ui_maximum maximum value a user should be allowed to input
425
+ * @param ui_gamma the gamma that should be used when adjusting the value
426
+ * @param flags flags for the property specified
427
+ * @returns a newly created parameter specification
428
+ */
429
+ function param_spec_int(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
430
+ /**
431
+ * Creates a new #GParamSpec instance specifying a #GeglPath property.
432
+ * @param name canonical name of the property specified
433
+ * @param nick nick name for the property specified
434
+ * @param blurb description of the property specified
435
+ * @param default_path the default value for the property specified
436
+ * @param flags flags for the property specified
437
+ * @returns a newly created parameter specification
438
+ */
439
+ function param_spec_path(name: string | null, nick: string | null, blurb: string | null, default_path: Path, flags: GObject.ParamFlags): GObject.ParamSpec
440
+ /**
441
+ * Creates a new #GeglParamSpecSeed instance specifying an integer random seed.
442
+ * @param name canonical name of the property specified
443
+ * @param nick nick name for the property specified
444
+ * @param blurb description of the property specified
445
+ * @param flags flags for the property specified
446
+ * @returns a newly created parameter specification
447
+ */
448
+ function param_spec_seed(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
449
+ function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name: string | null, value: string | null): void
450
+ /**
451
+ * Creates a new #GeglParamSpecString instance.
452
+ * @param name canonical name of the property specified
453
+ * @param nick nick name for the property specified
454
+ * @param blurb description of the property specified
455
+ * @param no_validate true if the string should be validated with g_utf8_validate
456
+ * @param null_ok true if the string can be NULL
457
+ * @param default_value default value for the property specified
458
+ * @param flags flags for the property specified
459
+ * @returns a newly created parameter specification
460
+ */
461
+ function param_spec_string(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
462
+ /**
463
+ * Creates a new #GeglParamSpecUri instance.
464
+ * @param name canonical name of the property specified
465
+ * @param nick nick name for the property specified
466
+ * @param blurb description of the property specified
467
+ * @param no_validate true if the string should be validated with g_utf8_validate
468
+ * @param null_ok true if the string can be NULL
469
+ * @param default_value default value for the property specified
470
+ * @param flags flags for the property specified
471
+ * @returns a newly created parameter specification
472
+ */
473
+ function param_spec_uri(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
474
+ /**
475
+ * Returns a GeglRectangle that represents an infininte plane.
476
+ */
477
+ function rectangle_infinite_plane(): Rectangle
478
+ /**
479
+ * Resets the cumulative data gathered by the #GeglStats object returned
480
+ * by #gegl_stats().
481
+ */
482
+ function reset_stats(): void
483
+ function serialize(start: Node, end: Node, basepath: string | null, serialize_flags: SerializeFlag): string | null
484
+ /**
485
+ * Returns a GeglStats object with properties that can be read to monitor
486
+ * GEGL statistics.
487
+ * @returns a #GeglStats
488
+ */
489
+ function stats(): Stats
490
+ interface LookupFunction {
491
+ (value: number, data: any | null): number
492
+ }
493
+ interface NodeFunction {
494
+ (node: PathItem): void
495
+ }
496
+ /**
497
+ * Specifies the type of function passed to
498
+ * gegl_parallel_distribute_area().
499
+ *
500
+ * The function should process the sub-area specified by `area`.
501
+ * @callback
502
+ * @param area the current sub-area
503
+ */
504
+ interface ParallelDistributeAreaFunc {
505
+ (area: Rectangle): void
506
+ }
507
+ /**
508
+ * Specifies the type of function passed to gegl_parallel_distribute().
509
+ *
510
+ * The function should process the `i-th` part of the data, out of `n`
511
+ * equal parts. `n` may be less-than or equal-to the `max_n` argument
512
+ * passed to gegl_parallel_distribute().
513
+ * @callback
514
+ * @param i the current thread index, in the range [0,`n)`
515
+ * @param n the number of threads execution is distributed across
516
+ */
517
+ interface ParallelDistributeFunc {
518
+ (i: number, n: number): void
519
+ }
520
+ /**
521
+ * Specifies the type of function passed to
522
+ * gegl_parallel_distribute_range().
523
+ *
524
+ * The function should process `size` elements of the data, starting
525
+ * at `offset`.
526
+ * @callback
527
+ * @param offset the current data offset
528
+ * @param size the current data size
529
+ */
530
+ interface ParallelDistributeRangeFunc {
531
+ (offset: number, size: number): void
532
+ }
533
+ interface SamplerGetFun {
534
+ (self: Sampler, x: number, y: number, scale: BufferMatrix2, output: any | null, repeat_mode: AbyssPolicy): void
535
+ }
536
+ interface TileCallback {
537
+ (tile: Tile): void
538
+ }
539
+ interface TileSourceCommand {
540
+ (gegl_tile_source: TileSource, command: TileCommand, x: number, y: number, z: number, data: any | null): any | null
541
+ }
542
+ module Metadata {
543
+
544
+ // Constructor properties interface
545
+
546
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
547
+ }
548
+
549
+ }
550
+
551
+ interface Metadata {
552
+
553
+ // Owm methods of Gegl-0.4.Gegl.Metadata
554
+
555
+ /**
556
+ * Retrieve resolution from the application image metadata. Intended for use
557
+ * by the image file writer. If resolution is not supported by the application
558
+ * or if the operation fails %FALSE is returned and the resolution values are
559
+ * not updated.
560
+ * @param unit #GeglResolutionUnit return location
561
+ * @param x X resolution return location
562
+ * @param y Y resolution return location
563
+ * @returns %TRUE if successful.
564
+ */
565
+ get_resolution(unit: ResolutionUnit, x: number, y: number): boolean
566
+ /**
567
+ * Retrieve image file metadata from the application. Intended for use by the
568
+ * image file writer. If the operation fails it returns %FALSE and `value` is
569
+ * not updated.
570
+ * @param iter #GeglMetadataIter referencing the value to get
571
+ * @param value Value to set in the interface
572
+ * @returns %TRUE if successful.
573
+ */
574
+ iter_get_value(iter: MetadataIter, value: any): boolean
575
+ /**
576
+ * Initialise an iterator to find all supported metadata keys.
577
+ * @param iter #GeglMetadataIter to be initialised
578
+ */
579
+ iter_init(iter: MetadataIter): void
580
+ /**
581
+ * Look up the specified key and initialise an iterator to reference the
582
+ * associated metadata. The iterator is used in conjunction with
583
+ * gegl_metadata_set_value() and gegl_metadata_get_value(). Note that this
584
+ * iterator is not valid for gegl_metadata_iter_next().
585
+ * @param iter #GeglMetadataIter to be initialised
586
+ * @param key Name of the value look up
587
+ * @returns %TRUE if key is found.
588
+ */
589
+ iter_lookup(iter: MetadataIter, key: string | null): boolean
590
+ /**
591
+ * Move the iterator to the next metadata item
592
+ * @param iter #GeglMetadataIter to be updated
593
+ * @returns key name if found, else %NULL
594
+ */
595
+ iter_next(iter: MetadataIter): string | null
596
+ /**
597
+ * Set application data retrieved from image file's metadata. Intended for use
598
+ * by the image file reader. If the operation fails it returns %FALSE and
599
+ * `value` is ignored.
600
+ * @param iter #GeglMetadataIter referencing the value to set
601
+ * @param value Value to set in the interface
602
+ * @returns %TRUE if successful.
603
+ */
604
+ iter_set_value(iter: MetadataIter, value: any): boolean
605
+ /**
606
+ * Set the name of the file module and pass an array of mappings from
607
+ * file-format specific metadata names to those used by Gegl. A GValue
608
+ * transformation function may be supplied, e.g. to parse or format timestamps.
609
+ * @param file_module String identifying the file module, e.g, `"gegl:png-save"`
610
+ * @param flags Flags specifying capabilities of underlying file format
611
+ * @param map Array of mappings from file module metadata names to Gegl well-known names.
612
+ */
613
+ register_map(file_module: string | null, flags: number, map: MetadataMap[]): void
614
+ /**
615
+ * Set resolution retrieved from image file's metadata. Intended for use by
616
+ * the image file reader. If resolution is not supported by the application or
617
+ * if the operation fails %FALSE is returned and the values are ignored.
618
+ * @param unit Specify #GeglResolutionUnit
619
+ * @param x X resolution
620
+ * @param y Y resolution
621
+ * @returns %TRUE if successful.
622
+ */
623
+ set_resolution(unit: ResolutionUnit, x: number, y: number): boolean
624
+ /**
625
+ * Unregister the file module mappings and any further mappings added or
626
+ * modified by the application. This should be called after the file module
627
+ * completes operations.
628
+ */
629
+ unregister_map(): void
630
+
631
+ // Own virtual methods of Gegl-0.4.Gegl.Metadata
632
+
633
+ /**
634
+ * Retrieve resolution from the application image metadata. Intended for use
635
+ * by the image file writer. If resolution is not supported by the application
636
+ * or if the operation fails %FALSE is returned and the resolution values are
637
+ * not updated.
638
+ * @virtual
639
+ * @param unit #GeglResolutionUnit return location
640
+ * @param x X resolution return location
641
+ * @param y Y resolution return location
642
+ * @returns %TRUE if successful.
643
+ */
644
+ vfunc_get_resolution(unit: ResolutionUnit, x: number, y: number): boolean
645
+ /**
646
+ * Retrieve image file metadata from the application. Intended for use by the
647
+ * image file writer. If the operation fails it returns %FALSE and `value` is
648
+ * not updated.
649
+ * @virtual
650
+ * @param iter #GeglMetadataIter referencing the value to get
651
+ * @param value Value to set in the interface
652
+ * @returns %TRUE if successful.
653
+ */
654
+ vfunc_iter_get_value(iter: MetadataIter, value: any): boolean
655
+ /**
656
+ * Initialise an iterator to find all supported metadata keys.
657
+ * @virtual
658
+ * @param iter #GeglMetadataIter to be initialised
659
+ */
660
+ vfunc_iter_init(iter: MetadataIter): void
661
+ /**
662
+ * Look up the specified key and initialise an iterator to reference the
663
+ * associated metadata. The iterator is used in conjunction with
664
+ * gegl_metadata_set_value() and gegl_metadata_get_value(). Note that this
665
+ * iterator is not valid for gegl_metadata_iter_next().
666
+ * @virtual
667
+ * @param iter #GeglMetadataIter to be initialised
668
+ * @param key Name of the value look up
669
+ * @returns %TRUE if key is found.
670
+ */
671
+ vfunc_iter_lookup(iter: MetadataIter, key: string | null): boolean
672
+ /**
673
+ * Move the iterator to the next metadata item
674
+ * @virtual
675
+ * @param iter #GeglMetadataIter to be updated
676
+ * @returns key name if found, else %NULL
677
+ */
678
+ vfunc_iter_next(iter: MetadataIter): string | null
679
+ /**
680
+ * Set application data retrieved from image file's metadata. Intended for use
681
+ * by the image file reader. If the operation fails it returns %FALSE and
682
+ * `value` is ignored.
683
+ * @virtual
684
+ * @param iter #GeglMetadataIter referencing the value to set
685
+ * @param value Value to set in the interface
686
+ * @returns %TRUE if successful.
687
+ */
688
+ vfunc_iter_set_value(iter: MetadataIter, value: any): boolean
689
+ /**
690
+ * Set the name of the file module and pass an array of mappings from
691
+ * file-format specific metadata names to those used by Gegl. A GValue
692
+ * transformation function may be supplied, e.g. to parse or format timestamps.
693
+ * @virtual
694
+ * @param file_module String identifying the file module, e.g, `"gegl:png-save"`
695
+ * @param flags Flags specifying capabilities of underlying file format
696
+ * @param map Array of mappings from file module metadata names to Gegl well-known names.
697
+ */
698
+ vfunc_register_map(file_module: string | null, flags: number, map: MetadataMap[]): void
699
+ /**
700
+ * Set resolution retrieved from image file's metadata. Intended for use by
701
+ * the image file reader. If resolution is not supported by the application or
702
+ * if the operation fails %FALSE is returned and the values are ignored.
703
+ * @virtual
704
+ * @param unit Specify #GeglResolutionUnit
705
+ * @param x X resolution
706
+ * @param y Y resolution
707
+ * @returns %TRUE if successful.
708
+ */
709
+ vfunc_set_resolution(unit: ResolutionUnit, x: number, y: number): boolean
710
+
711
+ // Class property signals of Gegl-0.4.Gegl.Metadata
712
+
713
+ connect(sigName: string, callback: (...args: any[]) => void): number
714
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
715
+ emit(sigName: string, ...args: any[]): void
716
+ disconnect(id: number): void
717
+ }
718
+
719
+ class Metadata extends GObject.Object {
720
+
721
+ // Own properties of Gegl-0.4.Gegl.Metadata
722
+
723
+ static name: string
724
+ static $gtype: GObject.GType<Metadata>
725
+
726
+ // Constructors of Gegl-0.4.Gegl.Metadata
727
+
728
+ constructor(config?: Metadata.ConstructorProperties)
729
+ _init(config?: Metadata.ConstructorProperties): void
730
+ }
731
+
732
+ module AudioFragment {
733
+
734
+ // Constructor properties interface
735
+
736
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
737
+
738
+ // Own constructor properties of Gegl-0.4.Gegl.AudioFragment
739
+
740
+ string?: string | null
741
+ }
742
+
743
+ }
744
+
745
+ interface AudioFragment {
746
+
747
+ // Own properties of Gegl-0.4.Gegl.AudioFragment
748
+
749
+ string: string | null
750
+
751
+ // Own fields of Gegl-0.4.Gegl.AudioFragment
752
+
753
+ parent_instance: GObject.Object
754
+ data: number[]
755
+ priv: AudioFragmentPrivate
756
+
757
+ // Owm methods of Gegl-0.4.Gegl.AudioFragment
758
+
759
+ get_channel_layout(): number
760
+ get_channels(): number
761
+ get_max_samples(): number
762
+ get_pos(): number
763
+ get_sample_count(): number
764
+ get_sample_rate(): number
765
+ set_channel_layout(channel_layout: number): void
766
+ set_channels(channels: number): void
767
+ set_max_samples(max_samples: number): void
768
+ set_pos(pos: number): void
769
+ set_sample_count(sample_count: number): void
770
+ set_sample_rate(sample_rate: number): void
771
+
772
+ // Class property signals of Gegl-0.4.Gegl.AudioFragment
773
+
774
+ connect(sigName: "notify::string", callback: (($obj: AudioFragment, pspec: GObject.ParamSpec) => void)): number
775
+ connect_after(sigName: "notify::string", callback: (($obj: AudioFragment, pspec: GObject.ParamSpec) => void)): number
776
+ emit(sigName: "notify::string", ...args: any[]): void
777
+ connect(sigName: string, callback: (...args: any[]) => void): number
778
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
779
+ emit(sigName: string, ...args: any[]): void
780
+ disconnect(id: number): void
781
+ }
782
+
783
+ class AudioFragment extends GObject.Object {
784
+
785
+ // Own properties of Gegl-0.4.Gegl.AudioFragment
786
+
787
+ static name: string
788
+ static $gtype: GObject.GType<AudioFragment>
789
+
790
+ // Constructors of Gegl-0.4.Gegl.AudioFragment
791
+
792
+ constructor(config?: AudioFragment.ConstructorProperties)
793
+ constructor(sample_rate: number, channels: number, channel_layout: number, max_samples: number)
794
+ static new(sample_rate: number, channels: number, channel_layout: number, max_samples: number): AudioFragment
795
+ _init(config?: AudioFragment.ConstructorProperties): void
796
+ }
797
+
798
+ module Buffer {
799
+
800
+ // Signal callback interfaces
801
+
802
+ /**
803
+ * Signal callback interface for `changed`
804
+ */
805
+ interface ChangedSignalCallback {
806
+ ($obj: Buffer, object: Rectangle): void
807
+ }
808
+
809
+
810
+ // Constructor properties interface
811
+
812
+ interface ConstructorProperties extends TileHandler.ConstructorProperties {
813
+
814
+ // Own constructor properties of Gegl-0.4.Gegl.Buffer
815
+
816
+ abyss_height?: number | null
817
+ abyss_width?: number | null
818
+ abyss_x?: number | null
819
+ abyss_y?: number | null
820
+ backend?: TileBackend | null
821
+ format?: any | null
822
+ height?: number | null
823
+ initialized?: boolean | null
824
+ path?: string | null
825
+ shift_x?: number | null
826
+ shift_y?: number | null
827
+ tile_height?: number | null
828
+ tile_width?: number | null
829
+ width?: number | null
830
+ x?: number | null
831
+ y?: number | null
832
+ }
833
+
834
+ }
835
+
836
+ interface Buffer {
837
+
838
+ // Own properties of Gegl-0.4.Gegl.Buffer
839
+
840
+ readonly abyss_height: number
841
+ readonly abyss_width: number
842
+ readonly abyss_x: number
843
+ readonly abyss_y: number
844
+ readonly backend: TileBackend
845
+ format: any
846
+ height: number
847
+ readonly initialized: boolean
848
+ readonly path: string | null
849
+ readonly pixels: number
850
+ readonly px_size: number
851
+ readonly shift_x: number
852
+ readonly shift_y: number
853
+ readonly tile_height: number
854
+ readonly tile_width: number
855
+ width: number
856
+ x: number
857
+ y: number
858
+
859
+ // Conflicting properties
860
+
861
+ parent_instance: TileSource & GObject.Object & GObject.Object
862
+
863
+ // Owm methods of Gegl-0.4.Gegl.Buffer
864
+
865
+ /**
866
+ * Add a new tile handler in the existing chain of tile handler of a GeglBuffer.
867
+ * @param handler a #GeglTileHandler
868
+ */
869
+ add_handler(handler: any | null): void
870
+ /**
871
+ * Clears the provided rectangular region by setting all the associated memory
872
+ * to 0.
873
+ * @param roi a rectangular region
874
+ */
875
+ clear(roi: Rectangle): void
876
+ /**
877
+ * Copy a region from source buffer to destination buffer.
878
+ *
879
+ * If the babl_formats of the buffers are the same, and the tile boundaries
880
+ * align, this will create copy-on-write tiles in the destination buffer.
881
+ *
882
+ * This function never does any scaling. When src_rect and dst_rect do not have
883
+ * the same width and height, the size of src_rect is used.
884
+ * @param src_rect source rectangle (or NULL to copy entire source buffer)
885
+ * @param repeat_mode the abyss policy to be using if src_rect is outside src's extent.
886
+ * @param dst destination buffer.
887
+ * @param dst_rect position of upper left destination pixel (or NULL to match `src_rect)`
888
+ */
889
+ copy(src_rect: Rectangle, repeat_mode: AbyssPolicy, dst: Buffer, dst_rect: Rectangle): void
890
+ /**
891
+ * Create a new sub GeglBuffer, that is a view on a larger buffer.
892
+ * @param extent coordinates of new buffer.
893
+ * @returns the new sub buffer
894
+ */
895
+ create_sub_buffer(extent: Rectangle): Buffer
896
+ /**
897
+ * Duplicate a buffer (internally uses gegl_buffer_copy). Aligned tiles
898
+ * will create copy-on-write clones in the new buffer.
899
+ * @returns the new buffer
900
+ */
901
+ dup(): Buffer
902
+ /**
903
+ * Flushes all unsaved data to disk, this is not necessary for shared
904
+ * geglbuffers opened with gegl_buffer_open since they auto-sync on writes.
905
+ */
906
+ flush(): void
907
+ /**
908
+ * Invokes the external flush function, if any is set on the provided buffer -
909
+ * this ensures that data pending - in the current implementation only OpenCL -
910
+ * externally to be synchronized with the buffer. Multi threaded code should
911
+ * call such a synchronization before branching out to avoid each of the
912
+ * threads having an implicit synchronization of its own.
913
+ * @param rect rectangle
914
+ */
915
+ flush_ext(rect: Rectangle): void
916
+ /**
917
+ * Blocks emission of the "changed" signal for `buffer`.
918
+ *
919
+ * While the signal is blocked, changes to `buffer` are accumulated, and will
920
+ * be emitted once the signal is unblocked, using gegl_buffer_thaw_changed().
921
+ */
922
+ freeze_changed(): void
923
+ /**
924
+ * Return the abyss extent of a buffer, this expands out to the parents extent in
925
+ * subbuffers.
926
+ */
927
+ get_abyss(): Rectangle
928
+ /**
929
+ * Returns a pointer to a GeglRectangle structure defining the geometry of a
930
+ * specific GeglBuffer, this is also the default width/height of buffers passed
931
+ * in to gegl_buffer_set and gegl_buffer_get (with a scale of 1.0 at least).
932
+ */
933
+ get_extent(): Rectangle
934
+ /**
935
+ * Fetch a rectangular linear buffer of pixel data from the GeglBuffer.
936
+ * @param rect the coordinates we want to retrieve data from.
937
+ * @param scale sampling scale, 1.0 = pixel for pixel 2.0 = magnify, 0.5 scale down.
938
+ * @param format_name the format to store data in, if NULL the format of the buffer is used.
939
+ * @param repeat_mode how requests outside the buffer extent are handled. Valid values: GEGL_ABYSS_NONE (abyss pixels are zeroed), GEGL_ABYSS_WHITE (abyss pixels are white), GEGL_ABYSS_BLACK (abyss pixels are black), GEGL_ABYSS_CLAMP (coordinates are clamped to the abyss rectangle), GEGL_ABYSS_LOOP (buffer contents are tiled if outside of the abyss rectangle).
940
+ * @returns A copy of the requested data
941
+ */
942
+ get(rect: Rectangle, scale: number, format_name: string | null, repeat_mode: AbyssPolicy): Uint8Array
943
+ /**
944
+ * Store a linear raster buffer into the GeglBuffer.
945
+ * @param rect the rectangle to write.
946
+ * @param format_name the format of the input data.
947
+ * @param src pixel data to write to `buffer`.
948
+ */
949
+ set(rect: Rectangle, format_name: string | null, src: Uint8Array): void
950
+ /**
951
+ * This function makes sure GeglBuffer and underlying code is aware of changes
952
+ * being made to the linear buffer. If the request was not a compatible one
953
+ * it is written back to the buffer. Multiple concurrent users can be handed
954
+ * the same buffer (both raw access and converted).
955
+ * @param linear a previously returned buffer.
956
+ */
957
+ linear_close(linear: any | null): void
958
+ /**
959
+ * Remove the provided tile handler in the existing chain of tile handler of a GeglBuffer.
960
+ * @param handler a #GeglTileHandler
961
+ */
962
+ remove_handler(handler: any | null): void
963
+ /**
964
+ * Clean up resources used by sampling framework of buffer.
965
+ */
966
+ sample_cleanup(): void
967
+ /**
968
+ * Write a GeglBuffer to a file.
969
+ * @param path the path where the gegl buffer will be saved, any writable GIO uri is valid.
970
+ * @param roi the region of interest to write, this is the tiles that will be collected and written to disk.
971
+ */
972
+ save(path: string | null, roi: Rectangle): void
973
+ /**
974
+ * Changes the size and position of the abyss rectangle of a buffer.
975
+ *
976
+ * Returns TRUE if the change of abyss was successful.
977
+ * @param abyss new abyss.
978
+ */
979
+ set_abyss(abyss: Rectangle): boolean
980
+ /**
981
+ * Sets the region covered by rect to the specified color.
982
+ * @param rect a rectangular region to fill with a color.
983
+ * @param color the GeglColor to fill with.
984
+ */
985
+ set_color(rect: Rectangle, color: Color): void
986
+ /**
987
+ * Sets the region covered by rect to the the provided pixel.
988
+ * @param rect a rectangular region to fill with a color.
989
+ * @param pixel pointer to the data of a single pixel
990
+ * @param pixel_format the babl format of the pixel, if missing - the soft format of dst.
991
+ */
992
+ set_color_from_pixel(rect: Rectangle, pixel: any | null, pixel_format: Babl.Object): void
993
+ /**
994
+ * Changes the size and position that is considered active in a buffer, this
995
+ * operation is valid on any buffer, reads on subbuffers outside the master
996
+ * buffer's extent are at the moment undefined.
997
+ *
998
+ * Returns TRUE if the change of extent was successful.
999
+ * @param extent new extent.
1000
+ */
1001
+ set_extent(extent: Rectangle): boolean
1002
+ /**
1003
+ * Fill a region with a repeating pattern. Offsets parameters are
1004
+ * relative to the origin (0, 0) and not to the rectangle. So be carefull
1005
+ * about the origin of `pattern` and `buffer` extents.
1006
+ * @param rect the region of `buffer` to fill
1007
+ * @param pattern a #GeglBuffer to be repeated as a pattern
1008
+ * @param x_offset where the pattern starts horizontally
1009
+ * @param y_offset where the pattern starts vertical
1010
+ */
1011
+ set_pattern(rect: Rectangle, pattern: Buffer, x_offset: number, y_offset: number): void
1012
+ /**
1013
+ * Checks if a pair of buffers share the same underlying tile storage.
1014
+ *
1015
+ * Returns TRUE if `buffer1` and `buffer2` share the same storage.
1016
+ * @param buffer2 a #GeglBuffer.
1017
+ */
1018
+ share_storage(buffer2: Buffer): boolean
1019
+ /**
1020
+ * This function should be used instead of g_signal_connect when connecting to
1021
+ * the GeglBuffer::changed signal handler, GeglBuffer contains additional
1022
+ * machinery to avoid the overhead of changes when no signal handler have been
1023
+ * connected, if regular g_signal_connect is used; then no signals will be
1024
+ * emitted.
1025
+ * @param detailed_signal only "changed" expected for now
1026
+ * @param c_handler c function callback
1027
+ * @returns an handle like g_signal_connect.
1028
+ */
1029
+ signal_connect(detailed_signal: string | null, c_handler: GObject.Callback): number
1030
+ /**
1031
+ * Unblocks emission of the "changed" signal for `buffer`.
1032
+ *
1033
+ * Once all calls to gegl_buffer_freeze_changed() are matched by corresponding
1034
+ * calls to gegl_buffer_freeze_changed(), all accumulated changes are emitted.
1035
+ */
1036
+ thaw_changed(): void
1037
+
1038
+ // Own signals of Gegl-0.4.Gegl.Buffer
1039
+
1040
+ connect(sigName: "changed", callback: Buffer.ChangedSignalCallback): number
1041
+ connect_after(sigName: "changed", callback: Buffer.ChangedSignalCallback): number
1042
+ emit(sigName: "changed", object: Rectangle, ...args: any[]): void
1043
+
1044
+ // Class property signals of Gegl-0.4.Gegl.Buffer
1045
+
1046
+ connect(sigName: "notify::abyss-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1047
+ connect_after(sigName: "notify::abyss-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1048
+ emit(sigName: "notify::abyss-height", ...args: any[]): void
1049
+ connect(sigName: "notify::abyss-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1050
+ connect_after(sigName: "notify::abyss-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1051
+ emit(sigName: "notify::abyss-width", ...args: any[]): void
1052
+ connect(sigName: "notify::abyss-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1053
+ connect_after(sigName: "notify::abyss-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1054
+ emit(sigName: "notify::abyss-x", ...args: any[]): void
1055
+ connect(sigName: "notify::abyss-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1056
+ connect_after(sigName: "notify::abyss-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1057
+ emit(sigName: "notify::abyss-y", ...args: any[]): void
1058
+ connect(sigName: "notify::backend", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1059
+ connect_after(sigName: "notify::backend", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1060
+ emit(sigName: "notify::backend", ...args: any[]): void
1061
+ connect(sigName: "notify::format", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1062
+ connect_after(sigName: "notify::format", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1063
+ emit(sigName: "notify::format", ...args: any[]): void
1064
+ connect(sigName: "notify::height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1065
+ connect_after(sigName: "notify::height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1066
+ emit(sigName: "notify::height", ...args: any[]): void
1067
+ connect(sigName: "notify::initialized", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1068
+ connect_after(sigName: "notify::initialized", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1069
+ emit(sigName: "notify::initialized", ...args: any[]): void
1070
+ connect(sigName: "notify::path", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1071
+ connect_after(sigName: "notify::path", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1072
+ emit(sigName: "notify::path", ...args: any[]): void
1073
+ connect(sigName: "notify::pixels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1074
+ connect_after(sigName: "notify::pixels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1075
+ emit(sigName: "notify::pixels", ...args: any[]): void
1076
+ connect(sigName: "notify::px-size", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1077
+ connect_after(sigName: "notify::px-size", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1078
+ emit(sigName: "notify::px-size", ...args: any[]): void
1079
+ connect(sigName: "notify::shift-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1080
+ connect_after(sigName: "notify::shift-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1081
+ emit(sigName: "notify::shift-x", ...args: any[]): void
1082
+ connect(sigName: "notify::shift-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1083
+ connect_after(sigName: "notify::shift-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1084
+ emit(sigName: "notify::shift-y", ...args: any[]): void
1085
+ connect(sigName: "notify::tile-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1086
+ connect_after(sigName: "notify::tile-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1087
+ emit(sigName: "notify::tile-height", ...args: any[]): void
1088
+ connect(sigName: "notify::tile-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1089
+ connect_after(sigName: "notify::tile-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1090
+ emit(sigName: "notify::tile-width", ...args: any[]): void
1091
+ connect(sigName: "notify::width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1092
+ connect_after(sigName: "notify::width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1093
+ emit(sigName: "notify::width", ...args: any[]): void
1094
+ connect(sigName: "notify::x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1095
+ connect_after(sigName: "notify::x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1096
+ emit(sigName: "notify::x", ...args: any[]): void
1097
+ connect(sigName: "notify::y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1098
+ connect_after(sigName: "notify::y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
1099
+ emit(sigName: "notify::y", ...args: any[]): void
1100
+ connect(sigName: string, callback: (...args: any[]) => void): number
1101
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1102
+ emit(sigName: string, ...args: any[]): void
1103
+ disconnect(id: number): void
1104
+ }
1105
+
1106
+ class Buffer extends TileHandler {
1107
+
1108
+ // Own properties of Gegl-0.4.Gegl.Buffer
1109
+
1110
+ static name: string
1111
+ static $gtype: GObject.GType<Buffer>
1112
+
1113
+ // Constructors of Gegl-0.4.Gegl.Buffer
1114
+
1115
+ constructor(config?: Buffer.ConstructorProperties)
1116
+ /**
1117
+ * Create a new GeglBuffer with the given format and dimensions.
1118
+ * @constructor
1119
+ * @param format_name The Babl format name for this buffer, e.g. "RGBA float"
1120
+ * @param x x origin of the buffer's extent
1121
+ * @param y y origin of the buffer's extent
1122
+ * @param width width of the buffer's extent
1123
+ * @param height height of the buffer's extent
1124
+ */
1125
+ constructor(format_name: string | null, x: number, y: number, width: number, height: number)
1126
+ /**
1127
+ * Create a new GeglBuffer with the given format and dimensions.
1128
+ * @constructor
1129
+ * @param format_name The Babl format name for this buffer, e.g. "RGBA float"
1130
+ * @param x x origin of the buffer's extent
1131
+ * @param y y origin of the buffer's extent
1132
+ * @param width width of the buffer's extent
1133
+ * @param height height of the buffer's extent
1134
+ */
1135
+ static new(format_name: string | null, x: number, y: number, width: number, height: number): Buffer
1136
+ /**
1137
+ * Create a new GeglBuffer from a backend, if NULL is passed in the extent of
1138
+ * the buffer will be inherited from the extent of the backend.
1139
+ *
1140
+ * returns a GeglBuffer, that holds a reference to the provided backend.
1141
+ * @constructor
1142
+ * @param extent the geometry of the buffer (origin, width and height) a GeglRectangle.
1143
+ * @param backend an instance of a GeglTileBackend subclass.
1144
+ */
1145
+ static new_for_backend(extent: Rectangle, backend: TileBackend): Buffer
1146
+ _init(config?: Buffer.ConstructorProperties): void
1147
+ /**
1148
+ * Loads an existing GeglBuffer from disk, if it has previously been saved with
1149
+ * gegl_buffer_save it should be possible to open through any GIO transport, buffers
1150
+ * that have been used as swap needs random access to be opened.
1151
+ * @param path the path to a gegl buffer on disk.
1152
+ * @returns a #GeglBuffer object.
1153
+ */
1154
+ static load(path: string | null): Buffer
1155
+ /**
1156
+ * Open an existing on-disk GeglBuffer, this buffer is opened in a monitored
1157
+ * state so multiple instances of gegl can share the same buffer. Sets on
1158
+ * one buffer are reflected in the other.
1159
+ * @param path the path to a gegl buffer on disk.
1160
+ * @returns a GeglBuffer object.
1161
+ */
1162
+ static open(path: string | null): Buffer
1163
+ /**
1164
+ * Generates a unique filename in the GEGL swap directory, suitable for
1165
+ * using as swap space. When the file is no longer needed, it may be
1166
+ * removed with gegl_buffer_swap_remove_file(); otherwise, it will be
1167
+ * removed when gegl_exit() is called.
1168
+ * @param suffix a string to suffix the filename with, for identification purposes, or %NULL.
1169
+ * @returns a string containing the full file path, or %NULL is the swap is disabled. The returned string should be freed with g_free() when no longer needed.
1170
+ */
1171
+ static swap_create_file(suffix: string | null): string | null
1172
+ /**
1173
+ * Tests if `path` is a swap file, that is, if it has been created
1174
+ * with gegl_buffer_swap_create_file(), and hasn't been removed
1175
+ * yet.
1176
+ * @param path a filename
1177
+ */
1178
+ static swap_has_file(path: string): boolean
1179
+ /**
1180
+ * Removes a swap file, generated using gegl_buffer_swap_create_file(),
1181
+ * unlinking the file, if exists.
1182
+ * @param path the swap file to remove, as returned by gegl_buffer_swap_create_file()
1183
+ */
1184
+ static swap_remove_file(path: string): void
1185
+ }
1186
+
1187
+ module Color {
1188
+
1189
+ // Constructor properties interface
1190
+
1191
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1192
+
1193
+ // Own constructor properties of Gegl-0.4.Gegl.Color
1194
+
1195
+ string?: string | null
1196
+ }
1197
+
1198
+ }
1199
+
1200
+ interface Color {
1201
+
1202
+ // Own properties of Gegl-0.4.Gegl.Color
1203
+
1204
+ string: string | null
1205
+
1206
+ // Own fields of Gegl-0.4.Gegl.Color
1207
+
1208
+ parent_instance: GObject.Object
1209
+ priv: ColorPrivate
1210
+
1211
+ // Owm methods of Gegl-0.4.Gegl.Color
1212
+
1213
+ /**
1214
+ * Creates a copy of `color`.
1215
+ * @returns A new copy of @color.
1216
+ */
1217
+ duplicate(): Color
1218
+ /**
1219
+ * Get the component values of the color in `format`.
1220
+ * @param format A Babl pointer
1221
+ * @returns The color components If value format not supported return NULL and components_length set to 0.
1222
+ */
1223
+ get_components(format: any): number[]
1224
+ get_format(): Babl.Object
1225
+ /**
1226
+ * Retrieves the current set color as linear light non premultipled RGBA data,
1227
+ * any of the return pointers can be omitted.
1228
+ */
1229
+ get_rgba(): [ /* red */ number, /* green */ number, /* blue */ number, /* alpha */ number ]
1230
+ /**
1231
+ * Set the color using the component values as `format`.
1232
+ * @param format A Babl pointer
1233
+ * @param components The color components.
1234
+ */
1235
+ set_components(format: any, components: number[]): void
1236
+ /**
1237
+ * Set color as linear light non premultipled RGBA data
1238
+ * @param red red value
1239
+ * @param green green value
1240
+ * @param blue blue value
1241
+ * @param alpha alpha value
1242
+ */
1243
+ set_rgba(red: number, green: number, blue: number, alpha: number): void
1244
+
1245
+ // Class property signals of Gegl-0.4.Gegl.Color
1246
+
1247
+ connect(sigName: "notify::string", callback: (($obj: Color, pspec: GObject.ParamSpec) => void)): number
1248
+ connect_after(sigName: "notify::string", callback: (($obj: Color, pspec: GObject.ParamSpec) => void)): number
1249
+ emit(sigName: "notify::string", ...args: any[]): void
1250
+ connect(sigName: string, callback: (...args: any[]) => void): number
1251
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1252
+ emit(sigName: string, ...args: any[]): void
1253
+ disconnect(id: number): void
1254
+ }
1255
+
1256
+ class Color extends GObject.Object {
1257
+
1258
+ // Own properties of Gegl-0.4.Gegl.Color
1259
+
1260
+ static name: string
1261
+ static $gtype: GObject.GType<Color>
1262
+
1263
+ // Constructors of Gegl-0.4.Gegl.Color
1264
+
1265
+ constructor(config?: Color.ConstructorProperties)
1266
+ /**
1267
+ * Creates a new #GeglColor.
1268
+ *
1269
+ * Returns the newly created #GeglColor.
1270
+ * @constructor
1271
+ * @param string a string describing the color to be created.
1272
+ */
1273
+ constructor(string: string | null)
1274
+ /**
1275
+ * Creates a new #GeglColor.
1276
+ *
1277
+ * Returns the newly created #GeglColor.
1278
+ * @constructor
1279
+ * @param string a string describing the color to be created.
1280
+ */
1281
+ static new(string: string | null): Color
1282
+ _init(config?: Color.ConstructorProperties): void
1283
+ }
1284
+
1285
+ module Config {
1286
+
1287
+ // Constructor properties interface
1288
+
1289
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1290
+
1291
+ // Own constructor properties of Gegl-0.4.Gegl.Config
1292
+
1293
+ application_license?: string | null
1294
+ chunk_size?: number | null
1295
+ mipmap_rendering?: boolean | null
1296
+ quality?: number | null
1297
+ queue_size?: number | null
1298
+ swap?: string | null
1299
+ swap_compression?: string | null
1300
+ threads?: number | null
1301
+ tile_cache_size?: number | null
1302
+ tile_height?: number | null
1303
+ tile_width?: number | null
1304
+ use_opencl?: boolean | null
1305
+ }
1306
+
1307
+ }
1308
+
1309
+ interface Config {
1310
+
1311
+ // Own properties of Gegl-0.4.Gegl.Config
1312
+
1313
+ application_license: string | null
1314
+ chunk_size: number
1315
+ mipmap_rendering: boolean
1316
+ quality: number
1317
+ queue_size: number
1318
+ swap: string | null
1319
+ swap_compression: string | null
1320
+ threads: number
1321
+ tile_cache_size: number
1322
+ tile_height: number
1323
+ tile_width: number
1324
+ use_opencl: boolean
1325
+
1326
+ // Class property signals of Gegl-0.4.Gegl.Config
1327
+
1328
+ connect(sigName: "notify::application-license", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1329
+ connect_after(sigName: "notify::application-license", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1330
+ emit(sigName: "notify::application-license", ...args: any[]): void
1331
+ connect(sigName: "notify::chunk-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1332
+ connect_after(sigName: "notify::chunk-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1333
+ emit(sigName: "notify::chunk-size", ...args: any[]): void
1334
+ connect(sigName: "notify::mipmap-rendering", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1335
+ connect_after(sigName: "notify::mipmap-rendering", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1336
+ emit(sigName: "notify::mipmap-rendering", ...args: any[]): void
1337
+ connect(sigName: "notify::quality", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1338
+ connect_after(sigName: "notify::quality", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1339
+ emit(sigName: "notify::quality", ...args: any[]): void
1340
+ connect(sigName: "notify::queue-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1341
+ connect_after(sigName: "notify::queue-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1342
+ emit(sigName: "notify::queue-size", ...args: any[]): void
1343
+ connect(sigName: "notify::swap", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1344
+ connect_after(sigName: "notify::swap", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1345
+ emit(sigName: "notify::swap", ...args: any[]): void
1346
+ connect(sigName: "notify::swap-compression", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1347
+ connect_after(sigName: "notify::swap-compression", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1348
+ emit(sigName: "notify::swap-compression", ...args: any[]): void
1349
+ connect(sigName: "notify::threads", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1350
+ connect_after(sigName: "notify::threads", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1351
+ emit(sigName: "notify::threads", ...args: any[]): void
1352
+ connect(sigName: "notify::tile-cache-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1353
+ connect_after(sigName: "notify::tile-cache-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1354
+ emit(sigName: "notify::tile-cache-size", ...args: any[]): void
1355
+ connect(sigName: "notify::tile-height", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1356
+ connect_after(sigName: "notify::tile-height", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1357
+ emit(sigName: "notify::tile-height", ...args: any[]): void
1358
+ connect(sigName: "notify::tile-width", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1359
+ connect_after(sigName: "notify::tile-width", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1360
+ emit(sigName: "notify::tile-width", ...args: any[]): void
1361
+ connect(sigName: "notify::use-opencl", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1362
+ connect_after(sigName: "notify::use-opencl", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
1363
+ emit(sigName: "notify::use-opencl", ...args: any[]): void
1364
+ connect(sigName: string, callback: (...args: any[]) => void): number
1365
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1366
+ emit(sigName: string, ...args: any[]): void
1367
+ disconnect(id: number): void
1368
+ }
1369
+
1370
+ class Config extends GObject.Object {
1371
+
1372
+ // Own properties of Gegl-0.4.Gegl.Config
1373
+
1374
+ static name: string
1375
+ static $gtype: GObject.GType<Config>
1376
+
1377
+ // Constructors of Gegl-0.4.Gegl.Config
1378
+
1379
+ constructor(config?: Config.ConstructorProperties)
1380
+ _init(config?: Config.ConstructorProperties): void
1381
+ }
1382
+
1383
+ module Curve {
1384
+
1385
+ // Constructor properties interface
1386
+
1387
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1388
+ }
1389
+
1390
+ }
1391
+
1392
+ interface Curve {
1393
+
1394
+ // Own fields of Gegl-0.4.Gegl.Curve
1395
+
1396
+ parent_instance: GObject.Object
1397
+
1398
+ // Owm methods of Gegl-0.4.Gegl.Curve
1399
+
1400
+ /**
1401
+ * Add a point to the curve at `x` `y` (replacing the value exactly for `x` if it
1402
+ * already exists.
1403
+ * @param x x coordinate
1404
+ * @param y y coordinate
1405
+ */
1406
+ add_point(x: number, y: number): number
1407
+ /**
1408
+ * Retrieve the number of points in the curve.
1409
+ *
1410
+ * Returns the number of points for the coordinates in the curve.
1411
+ * @param x
1412
+ */
1413
+ calc_value(x: number): number
1414
+ /**
1415
+ * Create a copy of `curve`.
1416
+ * @returns A new copy of @curve.
1417
+ */
1418
+ duplicate(): Curve
1419
+ /**
1420
+ * Retrive the coordinates for an index.
1421
+ * @param index the position of the value number to retrieve.
1422
+ */
1423
+ get_point(index: number): [ /* x */ number, /* y */ number ]
1424
+ /**
1425
+ * Get the bounds on the values of the curve and store the values in
1426
+ * the return locaitons provided in `min_y` and `max_y`.
1427
+ */
1428
+ get_y_bounds(): [ /* min_y */ number, /* max_y */ number ]
1429
+ /**
1430
+ * Retrieve the number of points in the curve.
1431
+ *
1432
+ * Returns the number of points for the coordinates in the curve.
1433
+ */
1434
+ num_points(): number
1435
+ /**
1436
+ * Replace an existing point in a curve.
1437
+ * @param index the position of the value number to retrieve.
1438
+ * @param x x coordinate
1439
+ * @param y y coordinate
1440
+ */
1441
+ set_point(index: number, x: number, y: number): void
1442
+
1443
+ // Class property signals of Gegl-0.4.Gegl.Curve
1444
+
1445
+ connect(sigName: string, callback: (...args: any[]) => void): number
1446
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1447
+ emit(sigName: string, ...args: any[]): void
1448
+ disconnect(id: number): void
1449
+ }
1450
+
1451
+ class Curve extends GObject.Object {
1452
+
1453
+ // Own properties of Gegl-0.4.Gegl.Curve
1454
+
1455
+ static name: string
1456
+ static $gtype: GObject.GType<Curve>
1457
+
1458
+ // Constructors of Gegl-0.4.Gegl.Curve
1459
+
1460
+ constructor(config?: Curve.ConstructorProperties)
1461
+ /**
1462
+ * Create a #GeglCurve that can store a curve with values between `y_min` and
1463
+ * `y_max`.
1464
+ *
1465
+ * Returns the newly created #GeglCurve.
1466
+ * @constructor
1467
+ * @param y_min minimum y value for curve.
1468
+ * @param y_max maximum y value for curve.
1469
+ */
1470
+ constructor(y_min: number, y_max: number)
1471
+ /**
1472
+ * Create a #GeglCurve that can store a curve with values between `y_min` and
1473
+ * `y_max`.
1474
+ *
1475
+ * Returns the newly created #GeglCurve.
1476
+ * @constructor
1477
+ * @param y_min minimum y value for curve.
1478
+ * @param y_max maximum y value for curve.
1479
+ */
1480
+ static new(y_min: number, y_max: number): Curve
1481
+ /**
1482
+ * Create a default #GeglCurve with an identify mapping of
1483
+ * (0.0..1.0) -> (0.0..1.0).
1484
+ *
1485
+ * Returns the newly created default #GeglCurve.
1486
+ * @constructor
1487
+ */
1488
+ static new_default(): Curve
1489
+ _init(config?: Curve.ConstructorProperties): void
1490
+ }
1491
+
1492
+ module MetadataHash {
1493
+
1494
+ // Constructor properties interface
1495
+
1496
+ interface ConstructorProperties extends Metadata.ConstructorProperties, MetadataStore.ConstructorProperties {
1497
+ }
1498
+
1499
+ }
1500
+
1501
+ interface MetadataHash extends Metadata {
1502
+
1503
+ // Conflicting methods
1504
+
1505
+ /**
1506
+ * gegl_metadata_store_notify() is called by subclasses when the value of a
1507
+ * metadata variable changes. It emits the `::changed` signal with the variable
1508
+ * name as the detail parameter. Set `shadow` = %TRUE if variable is shadowed
1509
+ * by a property so that a notify signal is emitted with the property name as
1510
+ * the detail parameter.
1511
+ * @param pspec The #GParamSpec used to declare the variable.
1512
+ * @param shadow The metadata variable shadows a property.
1513
+ */
1514
+ notify(pspec: GObject.ParamSpec, shadow: boolean): void
1515
+
1516
+ // Overloads of notify
1517
+
1518
+ /**
1519
+ * Emits a "notify" signal for the property `property_name` on `object`.
1520
+ *
1521
+ * When possible, eg. when signaling a property change from within the class
1522
+ * that registered the property, you should use g_object_notify_by_pspec()
1523
+ * instead.
1524
+ *
1525
+ * Note that emission of the notify signal may be blocked with
1526
+ * g_object_freeze_notify(). In this case, the signal emissions are queued
1527
+ * and will be emitted (in reverse order) when g_object_thaw_notify() is
1528
+ * called.
1529
+ * @param property_name the name of a property installed on the class of `object`.
1530
+ */
1531
+ notify(property_name: string | null): void
1532
+ /**
1533
+ * Emits a "notify" signal for the property `property_name` on `object`.
1534
+ *
1535
+ * When possible, eg. when signaling a property change from within the class
1536
+ * that registered the property, you should use g_object_notify_by_pspec()
1537
+ * instead.
1538
+ *
1539
+ * Note that emission of the notify signal may be blocked with
1540
+ * g_object_freeze_notify(). In this case, the signal emissions are queued
1541
+ * and will be emitted (in reverse order) when g_object_thaw_notify() is
1542
+ * called.
1543
+ * @param property_name the name of a property installed on the class of `object`.
1544
+ */
1545
+ notify(property_name: string | null): void
1546
+
1547
+ // Class property signals of Gegl-0.4.Gegl.MetadataHash
1548
+
1549
+ connect(sigName: "notify::artist", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1550
+ connect_after(sigName: "notify::artist", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1551
+ emit(sigName: "notify::artist", ...args: any[]): void
1552
+ connect(sigName: "notify::comment", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1553
+ connect_after(sigName: "notify::comment", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1554
+ emit(sigName: "notify::comment", ...args: any[]): void
1555
+ connect(sigName: "notify::copyright", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1556
+ connect_after(sigName: "notify::copyright", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1557
+ emit(sigName: "notify::copyright", ...args: any[]): void
1558
+ connect(sigName: "notify::description", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1559
+ connect_after(sigName: "notify::description", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1560
+ emit(sigName: "notify::description", ...args: any[]): void
1561
+ connect(sigName: "notify::disclaimer", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1562
+ connect_after(sigName: "notify::disclaimer", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1563
+ emit(sigName: "notify::disclaimer", ...args: any[]): void
1564
+ connect(sigName: "notify::file-module-name", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1565
+ connect_after(sigName: "notify::file-module-name", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1566
+ emit(sigName: "notify::file-module-name", ...args: any[]): void
1567
+ connect(sigName: "notify::resolution-unit", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1568
+ connect_after(sigName: "notify::resolution-unit", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1569
+ emit(sigName: "notify::resolution-unit", ...args: any[]): void
1570
+ connect(sigName: "notify::resolution-x", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1571
+ connect_after(sigName: "notify::resolution-x", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1572
+ emit(sigName: "notify::resolution-x", ...args: any[]): void
1573
+ connect(sigName: "notify::resolution-y", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1574
+ connect_after(sigName: "notify::resolution-y", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1575
+ emit(sigName: "notify::resolution-y", ...args: any[]): void
1576
+ connect(sigName: "notify::software", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1577
+ connect_after(sigName: "notify::software", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1578
+ emit(sigName: "notify::software", ...args: any[]): void
1579
+ connect(sigName: "notify::source", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1580
+ connect_after(sigName: "notify::source", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1581
+ emit(sigName: "notify::source", ...args: any[]): void
1582
+ connect(sigName: "notify::timestamp", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1583
+ connect_after(sigName: "notify::timestamp", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1584
+ emit(sigName: "notify::timestamp", ...args: any[]): void
1585
+ connect(sigName: "notify::title", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1586
+ connect_after(sigName: "notify::title", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1587
+ emit(sigName: "notify::title", ...args: any[]): void
1588
+ connect(sigName: "notify::warning", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1589
+ connect_after(sigName: "notify::warning", callback: (($obj: MetadataHash, pspec: GObject.ParamSpec) => void)): number
1590
+ emit(sigName: "notify::warning", ...args: any[]): void
1591
+ connect(sigName: string, callback: (...args: any[]) => void): number
1592
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1593
+ emit(sigName: string, ...args: any[]): void
1594
+ disconnect(id: number): void
1595
+ }
1596
+
1597
+ class MetadataHash extends MetadataStore {
1598
+
1599
+ // Own properties of Gegl-0.4.Gegl.MetadataHash
1600
+
1601
+ static name: string
1602
+ static $gtype: GObject.GType<MetadataHash>
1603
+
1604
+ // Constructors of Gegl-0.4.Gegl.MetadataHash
1605
+
1606
+ constructor(config?: MetadataHash.ConstructorProperties)
1607
+ /**
1608
+ * Create a new #GeglMetadataHash
1609
+ * @constructor
1610
+ * @returns New #GeglMetadataHash cast to #GeglMetadataStore
1611
+ */
1612
+ constructor()
1613
+ /**
1614
+ * Create a new #GeglMetadataHash
1615
+ * @constructor
1616
+ * @returns New #GeglMetadataHash cast to #GeglMetadataStore
1617
+ */
1618
+ static new(): MetadataHash
1619
+ _init(config?: MetadataHash.ConstructorProperties): void
1620
+ }
1621
+
1622
+ module MetadataStore {
1623
+
1624
+ // Signal callback interfaces
1625
+
1626
+ /**
1627
+ * Signal callback interface for `changed`
1628
+ */
1629
+ interface ChangedSignalCallback {
1630
+ ($obj: MetadataStore, pspec: GObject.ParamSpec): void
1631
+ }
1632
+
1633
+ /**
1634
+ * Signal callback interface for `generate-value`
1635
+ */
1636
+ interface GenerateValueSignalCallback {
1637
+ ($obj: MetadataStore, pspec: GObject.ParamSpec, value: any): boolean
1638
+ }
1639
+
1640
+ /**
1641
+ * Signal callback interface for `mapped`
1642
+ */
1643
+ interface MappedSignalCallback {
1644
+ ($obj: MetadataStore, file_module: string | null, exclude_unmapped: boolean): void
1645
+ }
1646
+
1647
+ /**
1648
+ * Signal callback interface for `parse-value`
1649
+ */
1650
+ interface ParseValueSignalCallback {
1651
+ ($obj: MetadataStore, pspec: GObject.ParamSpec, value: any): boolean
1652
+ }
1653
+
1654
+ /**
1655
+ * Signal callback interface for `unmapped`
1656
+ */
1657
+ interface UnmappedSignalCallback {
1658
+ ($obj: MetadataStore, file_module: string | null, local_name: string | null): void
1659
+ }
1660
+
1661
+
1662
+ // Constructor properties interface
1663
+
1664
+ interface ConstructorProperties extends Metadata.ConstructorProperties, GObject.Object.ConstructorProperties {
1665
+
1666
+ // Own constructor properties of Gegl-0.4.Gegl.MetadataStore
1667
+
1668
+ /**
1669
+ * Name of image creator.
1670
+ */
1671
+ artist?: string | null
1672
+ /**
1673
+ * Miscellaneous comment; conversion from GIF comment.
1674
+ */
1675
+ comment?: string | null
1676
+ /**
1677
+ * Copyright notice.
1678
+ */
1679
+ copyright?: string | null
1680
+ /**
1681
+ * Description of image (possibly long).
1682
+ */
1683
+ description?: string | null
1684
+ /**
1685
+ * Legal disclaimer.
1686
+ */
1687
+ disclaimer?: string | null
1688
+ /**
1689
+ * A #GeglResolutionUnit specifying units for the image resolution (density).
1690
+ */
1691
+ resolution_unit?: ResolutionUnit | null
1692
+ /**
1693
+ * X resolution or density in dots per unit.
1694
+ */
1695
+ resolution_x?: number | null
1696
+ /**
1697
+ * Y resolution or density in dots per unit.
1698
+ */
1699
+ resolution_y?: number | null
1700
+ /**
1701
+ * Software used to create the image.
1702
+ */
1703
+ software?: string | null
1704
+ /**
1705
+ * Device used to create the image.
1706
+ */
1707
+ source?: string | null
1708
+ /**
1709
+ * Time of original image creation.
1710
+ */
1711
+ timestamp?: GLib.DateTime | null
1712
+ /**
1713
+ * Short (one line) title or caption for image.
1714
+ */
1715
+ title?: string | null
1716
+ /**
1717
+ * Warning of nature of content.
1718
+ */
1719
+ warning?: string | null
1720
+ }
1721
+
1722
+ }
1723
+
1724
+ interface MetadataStore extends Metadata {
1725
+
1726
+ // Own properties of Gegl-0.4.Gegl.MetadataStore
1727
+
1728
+ /**
1729
+ * Name of image creator.
1730
+ */
1731
+ artist: string | null
1732
+ /**
1733
+ * Miscellaneous comment; conversion from GIF comment.
1734
+ */
1735
+ comment: string | null
1736
+ /**
1737
+ * Copyright notice.
1738
+ */
1739
+ copyright: string | null
1740
+ /**
1741
+ * Description of image (possibly long).
1742
+ */
1743
+ description: string | null
1744
+ /**
1745
+ * Legal disclaimer.
1746
+ */
1747
+ disclaimer: string | null
1748
+ /**
1749
+ * Current file loader/saver module name. Valid only while a #GeglMetadata
1750
+ * mapping is registered. This property is mainly provided for use in signal
1751
+ * handlers.
1752
+ */
1753
+ readonly file_module_name: string | null
1754
+ /**
1755
+ * A #GeglResolutionUnit specifying units for the image resolution (density).
1756
+ */
1757
+ resolution_unit: ResolutionUnit
1758
+ /**
1759
+ * X resolution or density in dots per unit.
1760
+ */
1761
+ resolution_x: number
1762
+ /**
1763
+ * Y resolution or density in dots per unit.
1764
+ */
1765
+ resolution_y: number
1766
+ /**
1767
+ * Software used to create the image.
1768
+ */
1769
+ software: string | null
1770
+ /**
1771
+ * Device used to create the image.
1772
+ */
1773
+ source: string | null
1774
+ /**
1775
+ * Time of original image creation.
1776
+ */
1777
+ timestamp: GLib.DateTime
1778
+ /**
1779
+ * Short (one line) title or caption for image.
1780
+ */
1781
+ title: string | null
1782
+ /**
1783
+ * Warning of nature of content.
1784
+ */
1785
+ warning: string | null
1786
+
1787
+ // Own fields of Gegl-0.4.Gegl.MetadataStore
1788
+
1789
+ parent_instance: GObject.Object
1790
+
1791
+ // Owm methods of Gegl-0.4.Gegl.MetadataStore
1792
+
1793
+ /**
1794
+ * Declare a metadata value using a #GParamSpec.
1795
+ * @param pspec A #GParamSpec
1796
+ */
1797
+ declare(pspec: GObject.ParamSpec): void
1798
+ /**
1799
+ * Get name of image creator.
1800
+ * @returns Artist or %NULL if not set
1801
+ */
1802
+ get_artist(): string | null
1803
+ /**
1804
+ * Get the comment.
1805
+ * @returns Comment or %NULL if not set
1806
+ */
1807
+ get_comment(): string | null
1808
+ /**
1809
+ * Get the copyright notice.
1810
+ * @returns Copyright or %NULL if not set
1811
+ */
1812
+ get_copyright(): string | null
1813
+ /**
1814
+ * Get description of image.
1815
+ * @returns Description or %NULL if not set
1816
+ */
1817
+ get_description(): string | null
1818
+ /**
1819
+ * Get the legal disclaimer.
1820
+ * @returns Disclaimer or %NULL if not set
1821
+ */
1822
+ get_disclaimer(): string | null
1823
+ /**
1824
+ * Return the name registered by the current file module.
1825
+ * @returns Current file module name or %NULL.
1826
+ */
1827
+ get_file_module_name(): string | null
1828
+ /**
1829
+ * Get the units used for resolution.
1830
+ * @returns a #GeglResolutionUnit.
1831
+ */
1832
+ get_resolution_unit(): ResolutionUnit
1833
+ /**
1834
+ * Get the X resolution or density in dots per unit.
1835
+ * @returns X resolution
1836
+ */
1837
+ get_resolution_x(): number
1838
+ /**
1839
+ * Get the Y resolution or density in dots per unit.
1840
+ * @returns Y resolution
1841
+ */
1842
+ get_resolution_y(): number
1843
+ /**
1844
+ * Get software used to create the image.
1845
+ * @returns Software or %NULL if not set
1846
+ */
1847
+ get_software(): string | null
1848
+ /**
1849
+ * Get device used to create the image.
1850
+ * @returns source or %NULL if not set
1851
+ */
1852
+ get_source(): string | null
1853
+ /**
1854
+ * A slightly more efficient version of gegl_metadata_store_get_value()
1855
+ * for string values avoiding a duplication. Otherwise it behaves the same
1856
+ * gegl_metadata_store_get_value().
1857
+ * @param name Metadata name
1858
+ * @returns String or %NULL.
1859
+ */
1860
+ get_string(name: string | null): string | null
1861
+ /**
1862
+ * Get time of original image creation.
1863
+ * @returns #GDateTime or %NULL if not set. Free with g_date_time_unref() when done.
1864
+ */
1865
+ get_timestamp(): GLib.DateTime
1866
+ /**
1867
+ * Get title or caption for image.
1868
+ * @returns Title or %NULL if not set
1869
+ */
1870
+ get_title(): string | null
1871
+ /**
1872
+ * Retrieve the metadata value. `value` must be initialised with a compatible
1873
+ * type. If the value is unset or has not been previously declared `value` is
1874
+ * unchanged and an error message is logged.
1875
+ * @param name Metadata name
1876
+ * @param value An initialised #GValue.
1877
+ */
1878
+ get_value(name: string | null, value: any): /* value */ any
1879
+ /**
1880
+ * Get warning.
1881
+ * @returns Warning or %NULL if not set
1882
+ */
1883
+ get_warning(): string | null
1884
+ /**
1885
+ * Test whether the #GeglMetadataStore contains a value for the specified name.
1886
+ * @param name Metadata name
1887
+ * @returns %TRUE if metadata is declared and contains a valid value.
1888
+ */
1889
+ has_value(name: string | null): boolean
1890
+ /**
1891
+ * gegl_metadata_store_notify() is called by subclasses when the value of a
1892
+ * metadata variable changes. It emits the `::changed` signal with the variable
1893
+ * name as the detail parameter. Set `shadow` = %TRUE if variable is shadowed
1894
+ * by a property so that a notify signal is emitted with the property name as
1895
+ * the detail parameter.
1896
+ * @param pspec The #GParamSpec used to declare the variable.
1897
+ * @param shadow The metadata variable shadows a property.
1898
+ */
1899
+ notify(pspec: GObject.ParamSpec, shadow: boolean): void
1900
+
1901
+ // Overloads of notify
1902
+
1903
+ /**
1904
+ * Emits a "notify" signal for the property `property_name` on `object`.
1905
+ *
1906
+ * When possible, eg. when signaling a property change from within the class
1907
+ * that registered the property, you should use g_object_notify_by_pspec()
1908
+ * instead.
1909
+ *
1910
+ * Note that emission of the notify signal may be blocked with
1911
+ * g_object_freeze_notify(). In this case, the signal emissions are queued
1912
+ * and will be emitted (in reverse order) when g_object_thaw_notify() is
1913
+ * called.
1914
+ * @param property_name the name of a property installed on the class of `object`.
1915
+ */
1916
+ notify(property_name: string | null): void
1917
+ register(local_name: string | null, name: string | null, transform: GObject.ValueTransform): void
1918
+ /**
1919
+ * Set name of image creator.
1920
+ * @param artist Artist string
1921
+ */
1922
+ set_artist(artist: string | null): void
1923
+ /**
1924
+ * Set the miscellaneous comment; conversion from GIF comment.
1925
+ * @param comment Comment string
1926
+ */
1927
+ set_comment(comment: string | null): void
1928
+ /**
1929
+ * Set the copyright notice.
1930
+ * @param copyright Copyright string
1931
+ */
1932
+ set_copyright(copyright: string | null): void
1933
+ /**
1934
+ * Set description of image.
1935
+ * @param description Description string
1936
+ */
1937
+ set_description(description: string | null): void
1938
+ /**
1939
+ * Set the legal disclaimer.
1940
+ * @param disclaimer Disclaimer string
1941
+ */
1942
+ set_disclaimer(disclaimer: string | null): void
1943
+ /**
1944
+ * Set the units used for the resolution (density) values.
1945
+ * @param unit Units as a #GeglResolutionUnit
1946
+ */
1947
+ set_resolution_unit(unit: ResolutionUnit): void
1948
+ /**
1949
+ * Set the X resolution or density in dots per unit.
1950
+ * @param resolution_x X resolution or density
1951
+ */
1952
+ set_resolution_x(resolution_x: number): void
1953
+ /**
1954
+ * Set the Y resolution or density in dots per unit.
1955
+ * @param resolution_y Y resolution or density
1956
+ */
1957
+ set_resolution_y(resolution_y: number): void
1958
+ /**
1959
+ * Set software used to create the image.
1960
+ * @param software Software string
1961
+ */
1962
+ set_software(software: string | null): void
1963
+ /**
1964
+ * Set device used to create the image.
1965
+ * @param source Source string
1966
+ */
1967
+ set_source(source: string | null): void
1968
+ /**
1969
+ * A slightly more efficient version of gegl_metadata_store_set_value()
1970
+ * for string values avoiding a duplication. Otherwise it behaves the same
1971
+ * gegl_metadata_store_set_value().
1972
+ * @param name Metadata name
1973
+ * @param string String value to set
1974
+ */
1975
+ set_string(name: string | null, string: string | null): void
1976
+ /**
1977
+ * Set time of original image creation.
1978
+ * @param timestamp A #GDateTime
1979
+ */
1980
+ set_timestamp(timestamp: GLib.DateTime): void
1981
+ /**
1982
+ * Set title or caption for image.
1983
+ * @param title Title string
1984
+ */
1985
+ set_title(title: string | null): void
1986
+ /**
1987
+ * Set the specified metadata value. If `value` is %NULL the default value from
1988
+ * the associated #GParamSpec is used. This operation will fail if the value
1989
+ * has not been previously declared. A `changed::name` signal is emitted when
1990
+ * the value is set. If the value is shadowed by a property a `notify::name`
1991
+ * signal is also emitted.
1992
+ * @param name Metadata name
1993
+ * @param value (nullable): A valid #GValue or %NULL
1994
+ */
1995
+ set_value(name: string | null, value: any): void
1996
+ /**
1997
+ * Set the warning of nature of content.
1998
+ * @param warning Warning string
1999
+ */
2000
+ set_warning(warning: string | null): void
2001
+ /**
2002
+ * Get the declared type of the value in the #GeglMetadataStore.
2003
+ * @param name Metadata name
2004
+ * @returns Declared #GType of metadata value or %G_TYPE_INVALID.
2005
+ */
2006
+ typeof_value(name: string | null): GObject.GType
2007
+
2008
+ // Own virtual methods of Gegl-0.4.Gegl.MetadataStore
2009
+
2010
+ vfunc__declare(pspec: GObject.ParamSpec, shadow: boolean): void
2011
+ vfunc__get_value(name: string | null): any
2012
+ /**
2013
+ * Test whether the #GeglMetadataStore contains a value for the specified name.
2014
+ * @virtual
2015
+ * @param name Metadata name
2016
+ * @returns %TRUE if metadata is declared and contains a valid value.
2017
+ */
2018
+ vfunc_has_value(name: string | null): boolean
2019
+ vfunc_register_hook(file_module_name: string | null, flags: number): void
2020
+ /**
2021
+ * Set the specified metadata value. If `value` is %NULL the default value from
2022
+ * the associated #GParamSpec is used. This operation will fail if the value
2023
+ * has not been previously declared. A `changed::name` signal is emitted when
2024
+ * the value is set. If the value is shadowed by a property a `notify::name`
2025
+ * signal is also emitted.
2026
+ * @virtual
2027
+ * @param name Metadata name
2028
+ * @param value (nullable): A valid #GValue or %NULL
2029
+ */
2030
+ vfunc_set_value(name: string | null, value: any): void
2031
+
2032
+ // Own signals of Gegl-0.4.Gegl.MetadataStore
2033
+
2034
+ connect(sigName: "changed", callback: MetadataStore.ChangedSignalCallback): number
2035
+ connect_after(sigName: "changed", callback: MetadataStore.ChangedSignalCallback): number
2036
+ emit(sigName: "changed", pspec: GObject.ParamSpec, ...args: any[]): void
2037
+ connect(sigName: "generate-value", callback: MetadataStore.GenerateValueSignalCallback): number
2038
+ connect_after(sigName: "generate-value", callback: MetadataStore.GenerateValueSignalCallback): number
2039
+ emit(sigName: "generate-value", pspec: GObject.ParamSpec, value: any, ...args: any[]): void
2040
+ connect(sigName: "mapped", callback: MetadataStore.MappedSignalCallback): number
2041
+ connect_after(sigName: "mapped", callback: MetadataStore.MappedSignalCallback): number
2042
+ emit(sigName: "mapped", file_module: string | null, exclude_unmapped: boolean, ...args: any[]): void
2043
+ connect(sigName: "parse-value", callback: MetadataStore.ParseValueSignalCallback): number
2044
+ connect_after(sigName: "parse-value", callback: MetadataStore.ParseValueSignalCallback): number
2045
+ emit(sigName: "parse-value", pspec: GObject.ParamSpec, value: any, ...args: any[]): void
2046
+ connect(sigName: "unmapped", callback: MetadataStore.UnmappedSignalCallback): number
2047
+ connect_after(sigName: "unmapped", callback: MetadataStore.UnmappedSignalCallback): number
2048
+ emit(sigName: "unmapped", file_module: string | null, local_name: string | null, ...args: any[]): void
2049
+
2050
+ // Class property signals of Gegl-0.4.Gegl.MetadataStore
2051
+
2052
+ connect(sigName: "notify::artist", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2053
+ connect_after(sigName: "notify::artist", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2054
+ emit(sigName: "notify::artist", ...args: any[]): void
2055
+ connect(sigName: "notify::comment", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2056
+ connect_after(sigName: "notify::comment", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2057
+ emit(sigName: "notify::comment", ...args: any[]): void
2058
+ connect(sigName: "notify::copyright", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2059
+ connect_after(sigName: "notify::copyright", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2060
+ emit(sigName: "notify::copyright", ...args: any[]): void
2061
+ connect(sigName: "notify::description", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2062
+ connect_after(sigName: "notify::description", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2063
+ emit(sigName: "notify::description", ...args: any[]): void
2064
+ connect(sigName: "notify::disclaimer", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2065
+ connect_after(sigName: "notify::disclaimer", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2066
+ emit(sigName: "notify::disclaimer", ...args: any[]): void
2067
+ connect(sigName: "notify::file-module-name", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2068
+ connect_after(sigName: "notify::file-module-name", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2069
+ emit(sigName: "notify::file-module-name", ...args: any[]): void
2070
+ connect(sigName: "notify::resolution-unit", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2071
+ connect_after(sigName: "notify::resolution-unit", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2072
+ emit(sigName: "notify::resolution-unit", ...args: any[]): void
2073
+ connect(sigName: "notify::resolution-x", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2074
+ connect_after(sigName: "notify::resolution-x", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2075
+ emit(sigName: "notify::resolution-x", ...args: any[]): void
2076
+ connect(sigName: "notify::resolution-y", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2077
+ connect_after(sigName: "notify::resolution-y", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2078
+ emit(sigName: "notify::resolution-y", ...args: any[]): void
2079
+ connect(sigName: "notify::software", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2080
+ connect_after(sigName: "notify::software", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2081
+ emit(sigName: "notify::software", ...args: any[]): void
2082
+ connect(sigName: "notify::source", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2083
+ connect_after(sigName: "notify::source", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2084
+ emit(sigName: "notify::source", ...args: any[]): void
2085
+ connect(sigName: "notify::timestamp", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2086
+ connect_after(sigName: "notify::timestamp", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2087
+ emit(sigName: "notify::timestamp", ...args: any[]): void
2088
+ connect(sigName: "notify::title", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2089
+ connect_after(sigName: "notify::title", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2090
+ emit(sigName: "notify::title", ...args: any[]): void
2091
+ connect(sigName: "notify::warning", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2092
+ connect_after(sigName: "notify::warning", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
2093
+ emit(sigName: "notify::warning", ...args: any[]): void
2094
+ connect(sigName: string, callback: (...args: any[]) => void): number
2095
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2096
+ emit(sigName: string, ...args: any[]): void
2097
+ disconnect(id: number): void
2098
+ }
2099
+
2100
+ class MetadataStore extends GObject.Object {
2101
+
2102
+ // Own properties of Gegl-0.4.Gegl.MetadataStore
2103
+
2104
+ static name: string
2105
+ static $gtype: GObject.GType<MetadataStore>
2106
+
2107
+ // Constructors of Gegl-0.4.Gegl.MetadataStore
2108
+
2109
+ constructor(config?: MetadataStore.ConstructorProperties)
2110
+ _init(config?: MetadataStore.ConstructorProperties): void
2111
+ }
2112
+
2113
+ module Node {
2114
+
2115
+ // Signal callback interfaces
2116
+
2117
+ /**
2118
+ * Signal callback interface for `computed`
2119
+ */
2120
+ interface ComputedSignalCallback {
2121
+ ($obj: Node, object: Rectangle): void
2122
+ }
2123
+
2124
+ /**
2125
+ * Signal callback interface for `invalidated`
2126
+ */
2127
+ interface InvalidatedSignalCallback {
2128
+ ($obj: Node, object: Rectangle): void
2129
+ }
2130
+
2131
+ /**
2132
+ * Signal callback interface for `progress`
2133
+ */
2134
+ interface ProgressSignalCallback {
2135
+ ($obj: Node, object: number): void
2136
+ }
2137
+
2138
+
2139
+ // Constructor properties interface
2140
+
2141
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2142
+
2143
+ // Own constructor properties of Gegl-0.4.Gegl.Node
2144
+
2145
+ cache_policy?: CachePolicy | null
2146
+ dont_cache?: boolean | null
2147
+ gegl_operation?: Operation | null
2148
+ name?: string | null
2149
+ operation?: string | null
2150
+ passthrough?: boolean | null
2151
+ use_opencl?: boolean | null
2152
+ }
2153
+
2154
+ }
2155
+
2156
+ interface Node {
2157
+
2158
+ // Own properties of Gegl-0.4.Gegl.Node
2159
+
2160
+ cache_policy: CachePolicy
2161
+ dont_cache: boolean
2162
+ gegl_operation: Operation
2163
+ name: string | null
2164
+ operation: string | null
2165
+ passthrough: boolean
2166
+ use_opencl: boolean
2167
+
2168
+ // Owm methods of Gegl-0.4.Gegl.Node
2169
+
2170
+ /**
2171
+ * Make the GeglNode `graph,` take a reference on child. This reference
2172
+ * will be dropped when the reference count on the graph reaches zero.
2173
+ * @param child a GeglNode.
2174
+ * @returns the child.
2175
+ */
2176
+ add_child(child: Node): Node
2177
+ /**
2178
+ * Render a rectangular region from a node to the given buffer.
2179
+ * @param buffer the #GeglBuffer to render to.
2180
+ * @param roi the rectangle to render.
2181
+ * @param level mipmap level to render (0 for all)
2182
+ * @param abyss_policy
2183
+ */
2184
+ blit_buffer(buffer: Buffer | null, roi: Rectangle | null, level: number, abyss_policy: AbyssPolicy): void
2185
+ /**
2186
+ * Makes a connection between the pads of two nodes.
2187
+ *
2188
+ * Returns TRUE if the connection was successfully made.
2189
+ * @param input_pad_name the name of the input pad we are connecting to
2190
+ * @param source the node producing data we want to connect.
2191
+ * @param output_pad_name the output pad we want to use on the source.
2192
+ */
2193
+ connect_from(input_pad_name: string | null, source: Node, output_pad_name: string | null): boolean
2194
+ /**
2195
+ * Makes a connection between the pads of two nodes.
2196
+ *
2197
+ * Returns TRUE if the connection was successfully made.
2198
+ * @param output_pad_name the output pad we want to use on the source.
2199
+ * @param sink the node we're connecting an input to
2200
+ * @param input_pad_name the name of the input pad we are connecting to
2201
+ */
2202
+ connect_to(output_pad_name: string | null, sink: Node, input_pad_name: string | null): boolean
2203
+ /**
2204
+ * Creates a new processing node that performs the specified operation.
2205
+ * All properties of the operation will have their default values. This
2206
+ * is included as an addition to #gegl_node_new_child in the public API to have
2207
+ * a non varargs entry point for bindings as well as sometimes simpler more
2208
+ * readable code.
2209
+ * @param operation the type of node to create.
2210
+ * @returns a newly created node. The node will be destroyed by the parent. Calling g_object_unref on a node will cause the node to be dropped by the parent. (You may also add additional references using g_object_ref/g_object_unref, but in general relying on the parents reference counting is easiest.)
2211
+ */
2212
+ create_child(operation: string | null): Node
2213
+ /**
2214
+ * Performs hit detection by returning the node providing data at a given
2215
+ * coordinate pair. Currently operates only on bounding boxes and not
2216
+ * pixel data.
2217
+ * @param x x coordinate
2218
+ * @param y y coordinate
2219
+ * @returns the GeglNode providing the data ending up at @x,@y in the output of @node.
2220
+ */
2221
+ detect(x: number, y: number): Node
2222
+ /**
2223
+ * Disconnects node connected to `input_pad` of `node` (if any).
2224
+ *
2225
+ * Returns TRUE if a connection was broken.
2226
+ * @param input_pad the input pad to disconnect.
2227
+ */
2228
+ disconnect(input_pad: string | null): boolean
2229
+ find_property(property_name: string | null): GObject.ParamSpec
2230
+ get_children(): Node[]
2231
+ /**
2232
+ * Retrieve which pads on which nodes are connected to a named output_pad,
2233
+ * and the number of connections. Both the location for the generated
2234
+ * nodes array and pads array can be left as NULL. If they are non NULL
2235
+ * both should be freed with g_free. The arrays are NULL terminated.
2236
+ *
2237
+ * Returns the number of consumers connected to this output_pad.
2238
+ * @param output_pad the output pad we want to know who uses.
2239
+ */
2240
+ get_consumers(output_pad: string | null): [ /* returnType */ number, /* nodes */ Node[], /* pads */ string[] ]
2241
+ get_gegl_operation(): Operation | null
2242
+ /**
2243
+ * Proxies are used to route between nodes of a subgraph contained within
2244
+ * a node.
2245
+ * @param pad_name the name of the pad.
2246
+ * @returns Returns an input proxy for the named pad. If no input proxy exists with this name a new one will be created.
2247
+ */
2248
+ get_input_proxy(pad_name: string | null): Node
2249
+ get_operation(): string | null
2250
+ /**
2251
+ * Proxies are used to route between nodes of a subgraph contained within
2252
+ * a node.
2253
+ * @param pad_name the name of the pad.
2254
+ * @returns Returns a output proxy for the named pad. If no output proxy exists with this name a new one will be created.
2255
+ */
2256
+ get_output_proxy(pad_name: string | null): Node
2257
+ /**
2258
+ * Returns a GeglNode that keeps a reference on a child.
2259
+ * @returns the parent of a node or NULL.
2260
+ */
2261
+ get_parent(): Node
2262
+ get_passthrough(): boolean
2263
+ get_producer(input_pad_name: string | null, output_pad_name: string | null): Node
2264
+ /**
2265
+ * Returns TRUE if the node has a pad with the specified name
2266
+ * @param pad_name the pad name we are looking for
2267
+ */
2268
+ has_pad(pad_name: string | null): boolean
2269
+ /**
2270
+ * Returns the position and dimensions of a rectangle spanning the area
2271
+ * defined by a node.
2272
+ * @returns pointer a #GeglRectangle
2273
+ */
2274
+ get_bounding_box(): Rectangle
2275
+ get_property(property_name: string | null): any
2276
+
2277
+ // Overloads of get_property
2278
+
2279
+ /**
2280
+ * Gets a property of an object.
2281
+ *
2282
+ * The `value` can be:
2283
+ *
2284
+ * - an empty #GValue initialized by %G_VALUE_INIT, which will be
2285
+ * automatically initialized with the expected type of the property
2286
+ * (since GLib 2.60)
2287
+ * - a #GValue initialized with the expected type of the property
2288
+ * - a #GValue initialized with a type to which the expected type
2289
+ * of the property can be transformed
2290
+ *
2291
+ * In general, a copy is made of the property contents and the caller is
2292
+ * responsible for freeing the memory by calling g_value_unset().
2293
+ *
2294
+ * Note that g_object_get_property() is really intended for language
2295
+ * bindings, g_object_get() is much more convenient for C programming.
2296
+ * @param property_name the name of the property to get
2297
+ * @param value return location for the property value
2298
+ */
2299
+ get_property(property_name: string | null, value: any): void
2300
+ is_graph(): boolean
2301
+ /**
2302
+ * Synthetic sugar for linking the "output" pad of `source` to the "input"
2303
+ * pad of `sink`.
2304
+ * @param sink the consumer of data.
2305
+ */
2306
+ link(sink: Node): void
2307
+ /**
2308
+ * If the node has any input pads this function returns a null terminated
2309
+ * array of pad names, otherwise it returns NULL. The return value can be
2310
+ * freed with g_strfreev().
2311
+ */
2312
+ list_input_pads(): string[]
2313
+ /**
2314
+ * If the node has any output pads this function returns a null terminated
2315
+ * array of pad names, otherwise it returns NULL. The return value can be
2316
+ * freed with g_strfreev().
2317
+ */
2318
+ list_output_pads(): string[]
2319
+ new_processor(rectangle: Rectangle): Processor
2320
+ /**
2321
+ * Render a composition. This can be used for instance on a node with a "png-save"
2322
+ * operation to render all necessary data, and make it be written to file. This
2323
+ * function wraps the usage of a GeglProcessor in a single blocking function
2324
+ * call. If you need a non-blocking operation, then make a direct use of
2325
+ * #gegl_processor_work. See #GeglProcessor.
2326
+ *
2327
+ * ---
2328
+ * GeglNode *gegl;
2329
+ * GeglRectangle roi;
2330
+ * GeglNode *png_save;
2331
+ * unsigned char *buffer;
2332
+ *
2333
+ * gegl = gegl_parse_xml (xml_data);
2334
+ * roi = gegl_node_get_bounding_box (gegl);
2335
+ * # create png_save from the graph, the parent/child relationship
2336
+ * # only mean anything when it comes to memory management.
2337
+ * png_save = gegl_node_new_child (gegl,
2338
+ * "operation", "gegl:png-save",
2339
+ * "path", "output.png",
2340
+ * NULL);
2341
+ *
2342
+ * gegl_node_link (gegl, png_save);
2343
+ * gegl_node_process (png_save);
2344
+ *
2345
+ * buffer = malloc (roi.w*roi.h*4);
2346
+ * gegl_node_blit (gegl,
2347
+ * 1.0,
2348
+ * &roi,
2349
+ * babl_format("R'G'B'A u8"),
2350
+ * buffer,
2351
+ * GEGL_AUTO_ROWSTRIDE,
2352
+ * GEGL_BLIT_DEFAULT);
2353
+ */
2354
+ process(): void
2355
+ progress(progress: number, message: string | null): void
2356
+ /**
2357
+ * Removes a child from a GeglNode. The reference previously held will be
2358
+ * dropped so increase the reference count before removing when reparenting
2359
+ * a child between two graphs.
2360
+ * @param child a GeglNode.
2361
+ * @returns the child.
2362
+ */
2363
+ remove_child(child: Node): Node
2364
+ set_passthrough(passthrough: boolean): void
2365
+ /**
2366
+ * This is mainly included for language bindings. Using #gegl_node_set is
2367
+ * more convenient when programming in C.
2368
+ * @param property_name the name of the property to set
2369
+ * @param value a GValue containing the value to be set in the property.
2370
+ */
2371
+ set_property(property_name: string | null, value: any): void
2372
+ /**
2373
+ * Sets the right value in animated properties of this node and all its
2374
+ * dependendcies to be the specified time position.
2375
+ * @param time the time to set the properties which have keyfraes attached to
2376
+ */
2377
+ set_time(time: number): void
2378
+ /**
2379
+ * Returns a freshly allocated \0 terminated string containing a XML
2380
+ * serialization of the composition produced by a node (and thus also
2381
+ * the nodes contributing data to the specified node). To export a
2382
+ * gegl graph, connect the internal output node to an output proxy (see
2383
+ * #gegl_node_get_output_proxy.) and use the proxy node as the basis
2384
+ * for the serialization.
2385
+ * @param path_root filesystem path to construct relative paths from.
2386
+ */
2387
+ to_xml(path_root: string | null): string | null
2388
+ /**
2389
+ * Returns a freshly allocated \0 terminated string containing a XML
2390
+ * serialization of a segment of a graph from `head` to `tail` nodes.
2391
+ * If `tail` is %NULL then this behaves just like #gegl_node_to_xml.
2392
+ * @param tail a #GeglNode
2393
+ * @param path_root filesystem path to construct relative paths from.
2394
+ * @returns XML serialization of a graph segment.
2395
+ */
2396
+ to_xml_full(tail: Node | null, path_root: string | null): string | null
2397
+
2398
+ // Own signals of Gegl-0.4.Gegl.Node
2399
+
2400
+ connect(sigName: "computed", callback: Node.ComputedSignalCallback): number
2401
+ connect_after(sigName: "computed", callback: Node.ComputedSignalCallback): number
2402
+ emit(sigName: "computed", object: Rectangle, ...args: any[]): void
2403
+ connect(sigName: "invalidated", callback: Node.InvalidatedSignalCallback): number
2404
+ connect_after(sigName: "invalidated", callback: Node.InvalidatedSignalCallback): number
2405
+ emit(sigName: "invalidated", object: Rectangle, ...args: any[]): void
2406
+ connect(sigName: "progress", callback: Node.ProgressSignalCallback): number
2407
+ connect_after(sigName: "progress", callback: Node.ProgressSignalCallback): number
2408
+ emit(sigName: "progress", object: number, ...args: any[]): void
2409
+
2410
+ // Class property signals of Gegl-0.4.Gegl.Node
2411
+
2412
+ connect(sigName: "notify::cache-policy", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2413
+ connect_after(sigName: "notify::cache-policy", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2414
+ emit(sigName: "notify::cache-policy", ...args: any[]): void
2415
+ connect(sigName: "notify::dont-cache", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2416
+ connect_after(sigName: "notify::dont-cache", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2417
+ emit(sigName: "notify::dont-cache", ...args: any[]): void
2418
+ connect(sigName: "notify::gegl-operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2419
+ connect_after(sigName: "notify::gegl-operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2420
+ emit(sigName: "notify::gegl-operation", ...args: any[]): void
2421
+ connect(sigName: "notify::name", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2422
+ connect_after(sigName: "notify::name", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2423
+ emit(sigName: "notify::name", ...args: any[]): void
2424
+ connect(sigName: "notify::operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2425
+ connect_after(sigName: "notify::operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2426
+ emit(sigName: "notify::operation", ...args: any[]): void
2427
+ connect(sigName: "notify::passthrough", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2428
+ connect_after(sigName: "notify::passthrough", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2429
+ emit(sigName: "notify::passthrough", ...args: any[]): void
2430
+ connect(sigName: "notify::use-opencl", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2431
+ connect_after(sigName: "notify::use-opencl", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
2432
+ emit(sigName: "notify::use-opencl", ...args: any[]): void
2433
+ connect(sigName: string, callback: (...args: any[]) => void): number
2434
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2435
+ emit(sigName: string, ...args: any[]): void
2436
+ disconnect(id: number): void
2437
+ }
2438
+
2439
+ class Node extends GObject.Object {
2440
+
2441
+ // Own properties of Gegl-0.4.Gegl.Node
2442
+
2443
+ static name: string
2444
+ static $gtype: GObject.GType<Node>
2445
+
2446
+ // Constructors of Gegl-0.4.Gegl.Node
2447
+
2448
+ constructor(config?: Node.ConstructorProperties)
2449
+ /**
2450
+ * Create a new graph that can contain further processing nodes.
2451
+ * @constructor
2452
+ * @returns A new top level #GeglNode (which can be used as a graph). When you are done using this graph instance it should be unreferenced with g_object_unref. This will also free any sub nodes created from this node.
2453
+ */
2454
+ constructor()
2455
+ /**
2456
+ * Create a new graph that can contain further processing nodes.
2457
+ * @constructor
2458
+ * @returns A new top level #GeglNode (which can be used as a graph). When you are done using this graph instance it should be unreferenced with g_object_unref. This will also free any sub nodes created from this node.
2459
+ */
2460
+ static new(): Node
2461
+ /**
2462
+ * The #GeglNode returned contains the graph described by the tree of stacks
2463
+ * in the XML document. The tree is connected to the "output" pad of the
2464
+ * returned node and thus can be used directly for processing.
2465
+ * @constructor
2466
+ * @param path the path to a file on the local file system to be parsed.
2467
+ * @returns a GeglNode containing the parsed XML as a subgraph.
2468
+ */
2469
+ static new_from_file(path: string | null): Node
2470
+ static new_from_serialized(chaindata: string | null, path_root: string | null): Node
2471
+ /**
2472
+ * The #GeglNode returned contains the graph described by the tree of stacks
2473
+ * in the XML document. The tree is connected to the "output" pad of the
2474
+ * returned node and thus can be used directly for processing.
2475
+ * @constructor
2476
+ * @param xmldata a \0 terminated string containing XML data to be parsed.
2477
+ * @param path_root a file system path that relative paths in the XML will be resolved in relation to.
2478
+ * @returns a GeglNode containing the parsed XML as a subgraph.
2479
+ */
2480
+ static new_from_xml(xmldata: string | null, path_root: string | null): Node
2481
+ _init(config?: Node.ConstructorProperties): void
2482
+ }
2483
+
2484
+ module Operation {
2485
+
2486
+ // Constructor properties interface
2487
+
2488
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2489
+ }
2490
+
2491
+ }
2492
+
2493
+ interface Operation {
2494
+
2495
+ // Class property signals of Gegl-0.4.Gegl.Operation
2496
+
2497
+ connect(sigName: string, callback: (...args: any[]) => void): number
2498
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2499
+ emit(sigName: string, ...args: any[]): void
2500
+ disconnect(id: number): void
2501
+ }
2502
+
2503
+ class Operation extends GObject.Object {
2504
+
2505
+ // Own properties of Gegl-0.4.Gegl.Operation
2506
+
2507
+ static name: string
2508
+ static $gtype: GObject.GType<Operation>
2509
+
2510
+ // Constructors of Gegl-0.4.Gegl.Operation
2511
+
2512
+ constructor(config?: Operation.ConstructorProperties)
2513
+ _init(config?: Operation.ConstructorProperties): void
2514
+ static find_property(operation_type: string | null, property_name: string | null): GObject.ParamSpec
2515
+ static get_key(operation_type: string | null, key_name: string | null): string | null
2516
+ static get_op_version(op_name: string | null): string | null
2517
+ static get_property_key(operation_type: string | null, property_name: string | null, property_key_name: string | null): string | null
2518
+ static list_keys(operation_type: string | null): string[]
2519
+ static list_properties(operation_type: string | null): GObject.ParamSpec[]
2520
+ static list_property_keys(operation_type: string | null, property_name: string | null): string[]
2521
+ }
2522
+
2523
+ interface ParamAudioFragment {
2524
+ }
2525
+
2526
+ class ParamAudioFragment extends GObject.ParamSpec {
2527
+
2528
+ // Own properties of Gegl-0.4.Gegl.ParamAudioFragment
2529
+
2530
+ static name: string
2531
+ }
2532
+
2533
+ interface ParamColor {
2534
+ }
2535
+
2536
+ class ParamColor extends GObject.ParamSpec {
2537
+
2538
+ // Own properties of Gegl-0.4.Gegl.ParamColor
2539
+
2540
+ static name: string
2541
+ }
2542
+
2543
+ interface ParamCurve {
2544
+ }
2545
+
2546
+ class ParamCurve extends GObject.ParamSpec {
2547
+
2548
+ // Own properties of Gegl-0.4.Gegl.ParamCurve
2549
+
2550
+ static name: string
2551
+ }
2552
+
2553
+ interface ParamDouble {
2554
+ }
2555
+
2556
+ class ParamDouble extends GObject.ParamSpecDouble {
2557
+
2558
+ // Own properties of Gegl-0.4.Gegl.ParamDouble
2559
+
2560
+ static name: string
2561
+ }
2562
+
2563
+ interface ParamEnum {
2564
+ }
2565
+
2566
+ class ParamEnum extends GObject.ParamSpecEnum {
2567
+
2568
+ // Own properties of Gegl-0.4.Gegl.ParamEnum
2569
+
2570
+ static name: string
2571
+ }
2572
+
2573
+ interface ParamFilePath {
2574
+ }
2575
+
2576
+ class ParamFilePath extends GObject.ParamSpecString {
2577
+
2578
+ // Own properties of Gegl-0.4.Gegl.ParamFilePath
2579
+
2580
+ static name: string
2581
+ }
2582
+
2583
+ interface ParamFormat {
2584
+ }
2585
+
2586
+ class ParamFormat extends GObject.ParamSpecPointer {
2587
+
2588
+ // Own properties of Gegl-0.4.Gegl.ParamFormat
2589
+
2590
+ static name: string
2591
+ }
2592
+
2593
+ interface ParamInt {
2594
+ }
2595
+
2596
+ class ParamInt extends GObject.ParamSpecInt {
2597
+
2598
+ // Own properties of Gegl-0.4.Gegl.ParamInt
2599
+
2600
+ static name: string
2601
+ }
2602
+
2603
+ interface ParamPath {
2604
+ }
2605
+
2606
+ class ParamPath extends GObject.ParamSpec {
2607
+
2608
+ // Own properties of Gegl-0.4.Gegl.ParamPath
2609
+
2610
+ static name: string
2611
+ }
2612
+
2613
+ interface ParamSeed {
2614
+ }
2615
+
2616
+ class ParamSeed extends GObject.ParamSpecUInt {
2617
+
2618
+ // Own properties of Gegl-0.4.Gegl.ParamSeed
2619
+
2620
+ static name: string
2621
+ }
2622
+
2623
+ interface ParamString {
2624
+ }
2625
+
2626
+ class ParamString extends GObject.ParamSpecString {
2627
+
2628
+ // Own properties of Gegl-0.4.Gegl.ParamString
2629
+
2630
+ static name: string
2631
+ }
2632
+
2633
+ interface ParamUri {
2634
+ }
2635
+
2636
+ class ParamUri extends GObject.ParamSpecString {
2637
+
2638
+ // Own properties of Gegl-0.4.Gegl.ParamUri
2639
+
2640
+ static name: string
2641
+ }
2642
+
2643
+ module Path {
2644
+
2645
+ // Signal callback interfaces
2646
+
2647
+ /**
2648
+ * Signal callback interface for `changed`
2649
+ */
2650
+ interface ChangedSignalCallback {
2651
+ ($obj: Path, object: any | null): void
2652
+ }
2653
+
2654
+
2655
+ // Constructor properties interface
2656
+
2657
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2658
+ }
2659
+
2660
+ }
2661
+
2662
+ interface Path {
2663
+
2664
+ // Own fields of Gegl-0.4.Gegl.Path
2665
+
2666
+ parent_instance: GObject.Object
2667
+
2668
+ // Owm methods of Gegl-0.4.Gegl.Path
2669
+
2670
+ /**
2671
+ * Compute the coordinates of the path at the `position` (length measured from
2672
+ * start of path, not including discontinuities).
2673
+ * @param pos how far along the path.
2674
+ */
2675
+ calc(pos: number): [ /* returnType */ boolean, /* x */ number, /* y */ number ]
2676
+ /**
2677
+ * Compute a corresponding y coordinate for a given x input coordinate,
2678
+ * returns 0 if computed correctly and -1 if the path doesn't exist for the
2679
+ * specified x coordinate.
2680
+ * @param x x coordinate to compute for
2681
+ */
2682
+ calc_y_for_x(x: number): [ /* returnType */ number, /* y */ number ]
2683
+ /**
2684
+ * Remove all nods from a `path`.
2685
+ */
2686
+ clear(): void
2687
+ /**
2688
+ * Figure out what and where on a path is closest to arbitrary coordinates.
2689
+ *
2690
+ * Returns the length along the path where the closest point was encountered.
2691
+ * @param x x coordinate.
2692
+ * @param y y coordinate
2693
+ */
2694
+ closest_point(x: number, y: number): [ /* returnType */ number, /* on_path_x */ number, /* on_path_y */ number, /* node_pos_before */ number ]
2695
+ /**
2696
+ * Marks the path as dirty and issues an invalidation for the path rendering,
2697
+ * use this if modifying the values of a GeglPathPoint inline.
2698
+ */
2699
+ dirty(): void
2700
+ /**
2701
+ * Execute a provided function for every node in the path (useful for
2702
+ * drawing and otherwise traversing a path.)
2703
+ * @param each_item a function to call for each node in the path.
2704
+ */
2705
+ foreach(each_item: NodeFunction): void
2706
+ /**
2707
+ * Execute a provided function for the segments of a poly line approximating
2708
+ * the path.
2709
+ * @param each_item a function to call for each node in the path.
2710
+ */
2711
+ foreach_flat(each_item: NodeFunction): void
2712
+ /**
2713
+ * Make the `GeglPath` stop firing signals as it changes must be paired with a
2714
+ * gegl_path_thaw() for the signals to start again.
2715
+ */
2716
+ freeze(): void
2717
+ /**
2718
+ * Compute the bounding box of a path.
2719
+ */
2720
+ get_bounds(): [ /* min_x */ number, /* max_x */ number, /* min_y */ number, /* max_y */ number ]
2721
+ /**
2722
+ * Returns the total length of the path.
2723
+ * @returns the length of the path.
2724
+ */
2725
+ get_length(): number
2726
+ /**
2727
+ * Get the transformation matrix of the path.
2728
+ */
2729
+ get_matrix(): /* matrix */ Matrix3
2730
+ /**
2731
+ * Retrieves the number of nodes in the path.
2732
+ * @returns the number of nodes in the path.
2733
+ */
2734
+ get_n_nodes(): number
2735
+ /**
2736
+ * Retrieve the node of the path at position `pos`.
2737
+ *
2738
+ * Returns TRUE if the node was successfully retrieved.
2739
+ * @param index the node number to retrieve
2740
+ */
2741
+ get_node(index: number): [ /* returnType */ boolean, /* node */ PathItem ]
2742
+ /**
2743
+ * Insert the new node `node` at position `pos` in `path`.
2744
+ * if `pos` = -1, the node is added in the last position.
2745
+ * @param pos the position we want the new node to have.
2746
+ * @param node pointer to a structure describing the GeglPathItem we want to store
2747
+ */
2748
+ insert_node(pos: number, node: PathItem): void
2749
+ /**
2750
+ * Check if the path contains any nodes.
2751
+ *
2752
+ * Returns TRUE if the path has no nodes.
2753
+ */
2754
+ is_empty(): boolean
2755
+ /**
2756
+ * Parses `instructions` and appends corresponding nodes to path (call
2757
+ * gegl_path_clean() first if you want to replace the existing path.
2758
+ * @param instructions a string describing a path.
2759
+ */
2760
+ parse_string(instructions: string | null): void
2761
+ /**
2762
+ * Removes the node number `pos` in `path`.
2763
+ * @param pos a node in the path.
2764
+ */
2765
+ remove_node(pos: number): void
2766
+ /**
2767
+ * Replaces the exiting node at position `pos` in `path`.
2768
+ * @param pos the position we want the new node to have.
2769
+ * @param node pointer to a structure describing the GeglPathItem we want to store.
2770
+ */
2771
+ replace_node(pos: number, node: PathItem): void
2772
+ /**
2773
+ * Set the transformation matrix of the path.
2774
+ *
2775
+ * The path is transformed through this matrix when being evaluated,
2776
+ * causing the calculated positions and length to be changed by the transform.
2777
+ * @param matrix a #GeglMatrix3 to copy the matrix from
2778
+ */
2779
+ set_matrix(matrix: Matrix3): void
2780
+ /**
2781
+ * Restart firing signals (unless the path has been frozen multiple times).
2782
+ */
2783
+ thaw(): void
2784
+ /**
2785
+ * Serialize the paths nodes to a string.
2786
+ * @returns return a string with instructions describing the string you need to free this with g_free().
2787
+ */
2788
+ to_string(): string | null
2789
+
2790
+ // Own signals of Gegl-0.4.Gegl.Path
2791
+
2792
+ connect(sigName: "changed", callback: Path.ChangedSignalCallback): number
2793
+ connect_after(sigName: "changed", callback: Path.ChangedSignalCallback): number
2794
+ emit(sigName: "changed", object: any | null, ...args: any[]): void
2795
+
2796
+ // Class property signals of Gegl-0.4.Gegl.Path
2797
+
2798
+ connect(sigName: string, callback: (...args: any[]) => void): number
2799
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2800
+ emit(sigName: string, ...args: any[]): void
2801
+ disconnect(id: number): void
2802
+ }
2803
+
2804
+ class Path extends GObject.Object {
2805
+
2806
+ // Own properties of Gegl-0.4.Gegl.Path
2807
+
2808
+ static name: string
2809
+ static $gtype: GObject.GType<Path>
2810
+
2811
+ // Constructors of Gegl-0.4.Gegl.Path
2812
+
2813
+ constructor(config?: Path.ConstructorProperties)
2814
+ /**
2815
+ * Creates a new #GeglPath with no nodes.
2816
+ *
2817
+ * Returns the newly created #GeglPath
2818
+ * @constructor
2819
+ */
2820
+ constructor()
2821
+ /**
2822
+ * Creates a new #GeglPath with no nodes.
2823
+ *
2824
+ * Returns the newly created #GeglPath
2825
+ * @constructor
2826
+ */
2827
+ static new(): Path
2828
+ /**
2829
+ * Creates a new #GeglPath with the nodes described in the string
2830
+ * `instructions`. See gegl_path_parse_string() for details of the
2831
+ * format of the string.
2832
+ *
2833
+ * Returns the newly created #GeglPath
2834
+ * @constructor
2835
+ * @param instructions a string describing the path.
2836
+ */
2837
+ static new_from_string(instructions: string | null): Path
2838
+ _init(config?: Path.ConstructorProperties): void
2839
+ /**
2840
+ * Adds a new type to the path system, FIXME this should probably
2841
+ * return something on registration conflicts, for now it expects
2842
+ * all registered paths to be aware of each other.
2843
+ * @param type a gchar to recognize in path descriptions.
2844
+ * @param items the number of floating point data items the instruction takes
2845
+ * @param description a human readable description of this entry
2846
+ */
2847
+ static add_type(type: number, items: number, description: string | null): void
2848
+ }
2849
+
2850
+ module Processor {
2851
+
2852
+ // Constructor properties interface
2853
+
2854
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2855
+
2856
+ // Own constructor properties of Gegl-0.4.Gegl.Processor
2857
+
2858
+ chunksize?: number | null
2859
+ node?: Node | null
2860
+ progress?: number | null
2861
+ rectangle?: any | null
2862
+ }
2863
+
2864
+ }
2865
+
2866
+ interface Processor {
2867
+
2868
+ // Own properties of Gegl-0.4.Gegl.Processor
2869
+
2870
+ readonly chunksize: number
2871
+ node: Node
2872
+ progress: number
2873
+ rectangle: any
2874
+
2875
+ // Owm methods of Gegl-0.4.Gegl.Processor
2876
+
2877
+ /**
2878
+ * Returns the (cache) buffer the processor is rendering into, another way of
2879
+ * getting to the same pixel data is calling gegl_node_blit with flags
2880
+ * indicating that we want caching and accept dirty data.
2881
+ * @returns the #GeglBuffer rendered into.
2882
+ */
2883
+ get_buffer(): Buffer
2884
+ set_level(level: number): void
2885
+ /**
2886
+ * Change the rectangle a #GeglProcessor is working on.
2887
+ * @param rectangle the new #GeglRectangle the processor shold work on or NULL to make it work on all data in the buffer.
2888
+ */
2889
+ set_rectangle(rectangle: Rectangle): void
2890
+ set_scale(scale: number): void
2891
+ /**
2892
+ * Do an iteration of work for the processor.
2893
+ *
2894
+ * Returns TRUE if there is more work to be done.
2895
+ *
2896
+ * ---
2897
+ * GeglProcessor *processor = gegl_node_new_processor (node, &roi);
2898
+ * double progress;
2899
+ *
2900
+ * while (gegl_processor_work (processor, &progress))
2901
+ * g_warning ("%f%% complete", progress);
2902
+ * g_object_unref (processor);
2903
+ */
2904
+ work(): [ /* returnType */ boolean, /* progress */ number ]
2905
+
2906
+ // Class property signals of Gegl-0.4.Gegl.Processor
2907
+
2908
+ connect(sigName: "notify::chunksize", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2909
+ connect_after(sigName: "notify::chunksize", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2910
+ emit(sigName: "notify::chunksize", ...args: any[]): void
2911
+ connect(sigName: "notify::node", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2912
+ connect_after(sigName: "notify::node", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2913
+ emit(sigName: "notify::node", ...args: any[]): void
2914
+ connect(sigName: "notify::progress", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2915
+ connect_after(sigName: "notify::progress", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2916
+ emit(sigName: "notify::progress", ...args: any[]): void
2917
+ connect(sigName: "notify::rectangle", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2918
+ connect_after(sigName: "notify::rectangle", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
2919
+ emit(sigName: "notify::rectangle", ...args: any[]): void
2920
+ connect(sigName: string, callback: (...args: any[]) => void): number
2921
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2922
+ emit(sigName: string, ...args: any[]): void
2923
+ disconnect(id: number): void
2924
+ }
2925
+
2926
+ class Processor extends GObject.Object {
2927
+
2928
+ // Own properties of Gegl-0.4.Gegl.Processor
2929
+
2930
+ static name: string
2931
+ static $gtype: GObject.GType<Processor>
2932
+
2933
+ // Constructors of Gegl-0.4.Gegl.Processor
2934
+
2935
+ constructor(config?: Processor.ConstructorProperties)
2936
+ _init(config?: Processor.ConstructorProperties): void
2937
+ }
2938
+
2939
+ module Stats {
2940
+
2941
+ // Constructor properties interface
2942
+
2943
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2944
+ }
2945
+
2946
+ }
2947
+
2948
+ interface Stats {
2949
+
2950
+ // Own properties of Gegl-0.4.Gegl.Stats
2951
+
2952
+ readonly active_threads: number
2953
+ readonly assigned_threads: number
2954
+ readonly scratch_total: number
2955
+ readonly swap_busy: boolean
2956
+ readonly swap_file_size: number
2957
+ readonly swap_queue_full: boolean
2958
+ readonly swap_queue_stalls: number
2959
+ readonly swap_queued_total: number
2960
+ readonly swap_read_total: number
2961
+ readonly swap_reading: boolean
2962
+ readonly swap_total: number
2963
+ readonly swap_total_uncompressed: number
2964
+ readonly swap_write_total: number
2965
+ readonly swap_writing: boolean
2966
+ readonly tile_alloc_total: number
2967
+ readonly tile_cache_hits: number
2968
+ readonly tile_cache_misses: number
2969
+ readonly tile_cache_total: number
2970
+ readonly tile_cache_total_max: number
2971
+ readonly tile_cache_total_uncompressed: number
2972
+ readonly zoom_total: number
2973
+
2974
+ // Class property signals of Gegl-0.4.Gegl.Stats
2975
+
2976
+ connect(sigName: "notify::active-threads", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2977
+ connect_after(sigName: "notify::active-threads", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2978
+ emit(sigName: "notify::active-threads", ...args: any[]): void
2979
+ connect(sigName: "notify::assigned-threads", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2980
+ connect_after(sigName: "notify::assigned-threads", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2981
+ emit(sigName: "notify::assigned-threads", ...args: any[]): void
2982
+ connect(sigName: "notify::scratch-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2983
+ connect_after(sigName: "notify::scratch-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2984
+ emit(sigName: "notify::scratch-total", ...args: any[]): void
2985
+ connect(sigName: "notify::swap-busy", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2986
+ connect_after(sigName: "notify::swap-busy", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2987
+ emit(sigName: "notify::swap-busy", ...args: any[]): void
2988
+ connect(sigName: "notify::swap-file-size", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2989
+ connect_after(sigName: "notify::swap-file-size", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2990
+ emit(sigName: "notify::swap-file-size", ...args: any[]): void
2991
+ connect(sigName: "notify::swap-queue-full", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2992
+ connect_after(sigName: "notify::swap-queue-full", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2993
+ emit(sigName: "notify::swap-queue-full", ...args: any[]): void
2994
+ connect(sigName: "notify::swap-queue-stalls", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2995
+ connect_after(sigName: "notify::swap-queue-stalls", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2996
+ emit(sigName: "notify::swap-queue-stalls", ...args: any[]): void
2997
+ connect(sigName: "notify::swap-queued-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2998
+ connect_after(sigName: "notify::swap-queued-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
2999
+ emit(sigName: "notify::swap-queued-total", ...args: any[]): void
3000
+ connect(sigName: "notify::swap-read-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3001
+ connect_after(sigName: "notify::swap-read-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3002
+ emit(sigName: "notify::swap-read-total", ...args: any[]): void
3003
+ connect(sigName: "notify::swap-reading", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3004
+ connect_after(sigName: "notify::swap-reading", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3005
+ emit(sigName: "notify::swap-reading", ...args: any[]): void
3006
+ connect(sigName: "notify::swap-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3007
+ connect_after(sigName: "notify::swap-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3008
+ emit(sigName: "notify::swap-total", ...args: any[]): void
3009
+ connect(sigName: "notify::swap-total-uncompressed", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3010
+ connect_after(sigName: "notify::swap-total-uncompressed", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3011
+ emit(sigName: "notify::swap-total-uncompressed", ...args: any[]): void
3012
+ connect(sigName: "notify::swap-write-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3013
+ connect_after(sigName: "notify::swap-write-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3014
+ emit(sigName: "notify::swap-write-total", ...args: any[]): void
3015
+ connect(sigName: "notify::swap-writing", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3016
+ connect_after(sigName: "notify::swap-writing", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3017
+ emit(sigName: "notify::swap-writing", ...args: any[]): void
3018
+ connect(sigName: "notify::tile-alloc-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3019
+ connect_after(sigName: "notify::tile-alloc-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3020
+ emit(sigName: "notify::tile-alloc-total", ...args: any[]): void
3021
+ connect(sigName: "notify::tile-cache-hits", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3022
+ connect_after(sigName: "notify::tile-cache-hits", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3023
+ emit(sigName: "notify::tile-cache-hits", ...args: any[]): void
3024
+ connect(sigName: "notify::tile-cache-misses", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3025
+ connect_after(sigName: "notify::tile-cache-misses", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3026
+ emit(sigName: "notify::tile-cache-misses", ...args: any[]): void
3027
+ connect(sigName: "notify::tile-cache-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3028
+ connect_after(sigName: "notify::tile-cache-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3029
+ emit(sigName: "notify::tile-cache-total", ...args: any[]): void
3030
+ connect(sigName: "notify::tile-cache-total-max", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3031
+ connect_after(sigName: "notify::tile-cache-total-max", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3032
+ emit(sigName: "notify::tile-cache-total-max", ...args: any[]): void
3033
+ connect(sigName: "notify::tile-cache-total-uncompressed", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3034
+ connect_after(sigName: "notify::tile-cache-total-uncompressed", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3035
+ emit(sigName: "notify::tile-cache-total-uncompressed", ...args: any[]): void
3036
+ connect(sigName: "notify::zoom-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3037
+ connect_after(sigName: "notify::zoom-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
3038
+ emit(sigName: "notify::zoom-total", ...args: any[]): void
3039
+ connect(sigName: string, callback: (...args: any[]) => void): number
3040
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3041
+ emit(sigName: string, ...args: any[]): void
3042
+ disconnect(id: number): void
3043
+ }
3044
+
3045
+ class Stats extends GObject.Object {
3046
+
3047
+ // Own properties of Gegl-0.4.Gegl.Stats
3048
+
3049
+ static name: string
3050
+ static $gtype: GObject.GType<Stats>
3051
+
3052
+ // Constructors of Gegl-0.4.Gegl.Stats
3053
+
3054
+ constructor(config?: Stats.ConstructorProperties)
3055
+ _init(config?: Stats.ConstructorProperties): void
3056
+ }
3057
+
3058
+ module TileBackend {
3059
+
3060
+ // Constructor properties interface
3061
+
3062
+ interface ConstructorProperties extends TileSource.ConstructorProperties {
3063
+
3064
+ // Own constructor properties of Gegl-0.4.Gegl.TileBackend
3065
+
3066
+ flush_on_destroy?: boolean | null
3067
+ format?: any | null
3068
+ tile_height?: number | null
3069
+ tile_width?: number | null
3070
+ }
3071
+
3072
+ }
3073
+
3074
+ interface TileBackend {
3075
+
3076
+ // Own properties of Gegl-0.4.Gegl.TileBackend
3077
+
3078
+ flush_on_destroy: boolean
3079
+ readonly format: any
3080
+ readonly px_size: number
3081
+ readonly tile_height: number
3082
+ readonly tile_size: number
3083
+ readonly tile_width: number
3084
+
3085
+ // Own fields of Gegl-0.4.Gegl.TileBackend
3086
+
3087
+ parent_instance: TileSource & GObject.Object
3088
+ priv: TileBackendPrivate
3089
+
3090
+ // Owm methods of Gegl-0.4.Gegl.TileBackend
3091
+
3092
+ /**
3093
+ * The default tile-backend command handler. Tile backends should forward
3094
+ * commands they don't handle themselves to this function.
3095
+ * @param command the tile command
3096
+ * @param x x coordinate
3097
+ * @param y y coordinate
3098
+ * @param z tile zoom level
3099
+ * @param data user data
3100
+ * @returns Command result.
3101
+ */
3102
+ command(command: TileCommand, x: number, y: number, z: number, data: any | null): any | null
3103
+ get_flush_on_destroy(): boolean
3104
+ get_tile_height(): number
3105
+ get_tile_size(): number
3106
+ get_tile_width(): number
3107
+ /**
3108
+ * Gets a pointer to the GeglTileStorage that uses the backend
3109
+ * @returns the #GeglTileStorage
3110
+ */
3111
+ peek_storage(): TileSource
3112
+ /**
3113
+ * Specify the extent of the backend, can be used to pre-prime the
3114
+ * backend with the width/height information when constructing proxy
3115
+ * GeglBuffers to interact with other systems
3116
+ * @param rectangle the new extent
3117
+ */
3118
+ set_extent(rectangle: Rectangle): void
3119
+ /**
3120
+ * Control whether cached data will be written to the backend before it
3121
+ * is destroyed. If false unwritten data will be discarded.
3122
+ * @param flush_on_destroy true if the backend needs to be flushed
3123
+ */
3124
+ set_flush_on_destroy(flush_on_destroy: boolean): void
3125
+
3126
+ // Class property signals of Gegl-0.4.Gegl.TileBackend
3127
+
3128
+ connect(sigName: "notify::flush-on-destroy", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3129
+ connect_after(sigName: "notify::flush-on-destroy", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3130
+ emit(sigName: "notify::flush-on-destroy", ...args: any[]): void
3131
+ connect(sigName: "notify::format", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3132
+ connect_after(sigName: "notify::format", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3133
+ emit(sigName: "notify::format", ...args: any[]): void
3134
+ connect(sigName: "notify::px-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3135
+ connect_after(sigName: "notify::px-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3136
+ emit(sigName: "notify::px-size", ...args: any[]): void
3137
+ connect(sigName: "notify::tile-height", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3138
+ connect_after(sigName: "notify::tile-height", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3139
+ emit(sigName: "notify::tile-height", ...args: any[]): void
3140
+ connect(sigName: "notify::tile-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3141
+ connect_after(sigName: "notify::tile-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3142
+ emit(sigName: "notify::tile-size", ...args: any[]): void
3143
+ connect(sigName: "notify::tile-width", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3144
+ connect_after(sigName: "notify::tile-width", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
3145
+ emit(sigName: "notify::tile-width", ...args: any[]): void
3146
+ connect(sigName: string, callback: (...args: any[]) => void): number
3147
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3148
+ emit(sigName: string, ...args: any[]): void
3149
+ disconnect(id: number): void
3150
+ }
3151
+
3152
+ class TileBackend extends TileSource {
3153
+
3154
+ // Own properties of Gegl-0.4.Gegl.TileBackend
3155
+
3156
+ static name: string
3157
+ static $gtype: GObject.GType<TileBackend>
3158
+
3159
+ // Constructors of Gegl-0.4.Gegl.TileBackend
3160
+
3161
+ constructor(config?: TileBackend.ConstructorProperties)
3162
+ _init(config?: TileBackend.ConstructorProperties): void
3163
+ /**
3164
+ * Delete a swap file from disk. This must be used by tile backends which may
3165
+ * swap to disk under certain circonstances.
3166
+ *
3167
+ * For safety, this function will check that the swap file is in the swap
3168
+ * directory before deletion but it won't perform any other check.
3169
+ * @param path the path where the gegl tile backend has swapped.
3170
+ */
3171
+ static unlink_swap(path: string | null): void
3172
+ }
3173
+
3174
+ module TileHandler {
3175
+
3176
+ // Constructor properties interface
3177
+
3178
+ interface ConstructorProperties extends TileSource.ConstructorProperties {
3179
+
3180
+ // Own constructor properties of Gegl-0.4.Gegl.TileHandler
3181
+
3182
+ source?: GObject.Object | null
3183
+ }
3184
+
3185
+ }
3186
+
3187
+ interface TileHandler {
3188
+
3189
+ // Own fields of Gegl-0.4.Gegl.TileHandler
3190
+
3191
+ parent_instance: TileSource & GObject.Object
3192
+ source: TileSource
3193
+ priv: TileHandlerPrivate
3194
+
3195
+ // Owm methods of Gegl-0.4.Gegl.TileHandler
3196
+
3197
+ damage_rect(rect: Rectangle): void
3198
+ damage_tile(x: number, y: number, z: number, damage: number): void
3199
+ lock(): void
3200
+ set_source(source: TileSource): void
3201
+ unlock(): void
3202
+
3203
+ // Class property signals of Gegl-0.4.Gegl.TileHandler
3204
+
3205
+ connect(sigName: string, callback: (...args: any[]) => void): number
3206
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3207
+ emit(sigName: string, ...args: any[]): void
3208
+ disconnect(id: number): void
3209
+ }
3210
+
3211
+ class TileHandler extends TileSource {
3212
+
3213
+ // Own properties of Gegl-0.4.Gegl.TileHandler
3214
+
3215
+ static name: string
3216
+ static $gtype: GObject.GType<TileHandler>
3217
+
3218
+ // Constructors of Gegl-0.4.Gegl.TileHandler
3219
+
3220
+ constructor(config?: TileHandler.ConstructorProperties)
3221
+ _init(config?: TileHandler.ConstructorProperties): void
3222
+ }
3223
+
3224
+ module TileSource {
3225
+
3226
+ // Constructor properties interface
3227
+
3228
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
3229
+ }
3230
+
3231
+ }
3232
+
3233
+ interface TileSource {
3234
+
3235
+ // Own fields of Gegl-0.4.Gegl.TileSource
3236
+
3237
+ parent_instance: GObject.Object
3238
+ // Has conflict: command: TileSourceCommand
3239
+ padding: any[]
3240
+
3241
+ // Class property signals of Gegl-0.4.Gegl.TileSource
3242
+
3243
+ connect(sigName: string, callback: (...args: any[]) => void): number
3244
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3245
+ emit(sigName: string, ...args: any[]): void
3246
+ disconnect(id: number): void
3247
+ }
3248
+
3249
+ class TileSource extends GObject.Object {
3250
+
3251
+ // Own properties of Gegl-0.4.Gegl.TileSource
3252
+
3253
+ static name: string
3254
+ static $gtype: GObject.GType<TileSource>
3255
+
3256
+ // Constructors of Gegl-0.4.Gegl.TileSource
3257
+
3258
+ constructor(config?: TileSource.ConstructorProperties)
3259
+ _init(config?: TileSource.ConstructorProperties): void
3260
+ }
3261
+
3262
+ interface AudioFragmentClass {
3263
+
3264
+ // Own fields of Gegl-0.4.Gegl.AudioFragmentClass
3265
+
3266
+ parent_class: GObject.ObjectClass
3267
+ }
3268
+
3269
+ abstract class AudioFragmentClass {
3270
+
3271
+ // Own properties of Gegl-0.4.Gegl.AudioFragmentClass
3272
+
3273
+ static name: string
3274
+ }
3275
+
3276
+ interface AudioFragmentPrivate {
3277
+ }
3278
+
3279
+ class AudioFragmentPrivate {
3280
+
3281
+ // Own properties of Gegl-0.4.Gegl.AudioFragmentPrivate
3282
+
3283
+ static name: string
3284
+ }
3285
+
3286
+ interface BufferIterator {
3287
+
3288
+ // Own fields of Gegl-0.4.Gegl.BufferIterator
3289
+
3290
+ length: number
3291
+ priv: BufferIteratorPriv
3292
+ items: BufferIteratorItem[]
3293
+ }
3294
+
3295
+ class BufferIterator {
3296
+
3297
+ // Own properties of Gegl-0.4.Gegl.BufferIterator
3298
+
3299
+ static name: string
3300
+ }
3301
+
3302
+ interface BufferIteratorItem {
3303
+
3304
+ // Own fields of Gegl-0.4.Gegl.BufferIteratorItem
3305
+
3306
+ data: any
3307
+ roi: Rectangle
3308
+ }
3309
+
3310
+ class BufferIteratorItem {
3311
+
3312
+ // Own properties of Gegl-0.4.Gegl.BufferIteratorItem
3313
+
3314
+ static name: string
3315
+ }
3316
+
3317
+ interface BufferIteratorPriv {
3318
+ }
3319
+
3320
+ class BufferIteratorPriv {
3321
+
3322
+ // Own properties of Gegl-0.4.Gegl.BufferIteratorPriv
3323
+
3324
+ static name: string
3325
+ }
3326
+
3327
+ interface BufferMatrix2 {
3328
+
3329
+ // Own fields of Gegl-0.4.Gegl.BufferMatrix2
3330
+
3331
+ coeff: number[]
3332
+
3333
+ // Owm methods of Gegl-0.4.Gegl.BufferMatrix2
3334
+
3335
+ determinant(): number
3336
+ is_identity(): boolean
3337
+ is_scale(): boolean
3338
+ }
3339
+
3340
+ class BufferMatrix2 {
3341
+
3342
+ // Own properties of Gegl-0.4.Gegl.BufferMatrix2
3343
+
3344
+ static name: string
3345
+ }
3346
+
3347
+ interface ColorClass {
3348
+
3349
+ // Own fields of Gegl-0.4.Gegl.ColorClass
3350
+
3351
+ parent_class: GObject.ObjectClass
3352
+ }
3353
+
3354
+ abstract class ColorClass {
3355
+
3356
+ // Own properties of Gegl-0.4.Gegl.ColorClass
3357
+
3358
+ static name: string
3359
+ }
3360
+
3361
+ interface ColorPrivate {
3362
+ }
3363
+
3364
+ class ColorPrivate {
3365
+
3366
+ // Own properties of Gegl-0.4.Gegl.ColorPrivate
3367
+
3368
+ static name: string
3369
+ }
3370
+
3371
+ interface CurveClass {
3372
+
3373
+ // Own fields of Gegl-0.4.Gegl.CurveClass
3374
+
3375
+ parent_class: GObject.ObjectClass
3376
+ }
3377
+
3378
+ abstract class CurveClass {
3379
+
3380
+ // Own properties of Gegl-0.4.Gegl.CurveClass
3381
+
3382
+ static name: string
3383
+ }
3384
+
3385
+ interface Lookup {
3386
+
3387
+ // Own fields of Gegl-0.4.Gegl.Lookup
3388
+
3389
+ function_: LookupFunction
3390
+ data: any
3391
+ shift: number
3392
+ positive_min: number
3393
+ positive_max: number
3394
+ negative_min: number
3395
+ negative_max: number
3396
+ bitmask: number[]
3397
+ table: number[]
3398
+ }
3399
+
3400
+ class Lookup {
3401
+
3402
+ // Own properties of Gegl-0.4.Gegl.Lookup
3403
+
3404
+ static name: string
3405
+ }
3406
+
3407
+ interface Matrix3 {
3408
+
3409
+ // Own fields of Gegl-0.4.Gegl.Matrix3
3410
+
3411
+ coeff: number[]
3412
+
3413
+ // Owm methods of Gegl-0.4.Gegl.Matrix3
3414
+
3415
+ /**
3416
+ * Returns a copy of `src`.
3417
+ */
3418
+ copy(): Matrix3
3419
+ /**
3420
+ * Copies the matrix in `src` into `dst`.
3421
+ * @param src a #GeglMatrix3
3422
+ */
3423
+ copy_into(src: Matrix3): void
3424
+ /**
3425
+ * Returns the determinant for the matrix.
3426
+ */
3427
+ determinant(): number
3428
+ /**
3429
+ * Check if two matrices are equal.
3430
+ *
3431
+ * Returns TRUE if the matrices are equal.
3432
+ * @param matrix2 a #GeglMatrix3
3433
+ */
3434
+ equal(matrix2: Matrix3): boolean
3435
+ /**
3436
+ * Set the provided `matrix` to the identity matrix.
3437
+ */
3438
+ identity(): void
3439
+ /**
3440
+ * Inverts `matrix`.
3441
+ */
3442
+ invert(): void
3443
+ /**
3444
+ * Check if a matrix only does an affine transformation.
3445
+ *
3446
+ * Returns TRUE if the matrix only does an affine transformation.
3447
+ */
3448
+ is_affine(): boolean
3449
+ /**
3450
+ * Check if a matrix is the identity matrix.
3451
+ *
3452
+ * Returns TRUE if the matrix is the identity matrix.
3453
+ */
3454
+ is_identity(): boolean
3455
+ /**
3456
+ * Check if a matrix only does scaling.
3457
+ *
3458
+ * Returns TRUE if the matrix only does scaling.
3459
+ */
3460
+ is_scale(): boolean
3461
+ /**
3462
+ * Check if a matrix only does translation.
3463
+ *
3464
+ * Returns TRUE if the matrix only does trasnlation.
3465
+ */
3466
+ is_translate(): boolean
3467
+ /**
3468
+ * Multiples `product` = `left` · `right`
3469
+ * @param right a #GeglMatrix3
3470
+ * @param product a #GeglMatrix3 to store the result in.
3471
+ */
3472
+ multiply(right: Matrix3, product: Matrix3): void
3473
+ /**
3474
+ * Shift the origin of the transformation specified by `matrix`
3475
+ * to (`x,` `y)`. In other words, calculate the matrix that:
3476
+ *
3477
+ * 1. Translates the input by (-`x,` -`y)`.
3478
+ *
3479
+ * 2. Transforms the result using the original `matrix`.
3480
+ *
3481
+ * 3. Translates the result by (`x,` `y)`.
3482
+ * @param x x coordinate of new origin
3483
+ * @param y y coordinate of new origin.
3484
+ */
3485
+ originate(x: number, y: number): void
3486
+ /**
3487
+ * Parse a transofmation matrix from a string.
3488
+ * @param string a string describing the matrix (right now a small subset of the transform strings allowed by SVG)
3489
+ */
3490
+ parse_string(string: string | null): void
3491
+ /**
3492
+ * Rounds numerical errors in `matrix` to the nearest integer.
3493
+ */
3494
+ round_error(): void
3495
+ /**
3496
+ * Serialize a #GeglMatrix3 to a string.
3497
+ *
3498
+ * Returns a freshly allocated string representing that #GeglMatrix3, the
3499
+ * returned string should be g_free()'d.
3500
+ */
3501
+ to_string(): string | null
3502
+ /**
3503
+ * transforms the coordinates provided in `x` and `y` and changes to the
3504
+ * coordinates gotten when the transformed with the matrix.
3505
+ * @param x pointer to an x coordinate
3506
+ * @param y pointer to an y coordinate
3507
+ */
3508
+ transform_point(x: number, y: number): void
3509
+ }
3510
+
3511
+ class Matrix3 {
3512
+
3513
+ // Own properties of Gegl-0.4.Gegl.Matrix3
3514
+
3515
+ static name: string
3516
+
3517
+ // Constructors of Gegl-0.4.Gegl.Matrix3
3518
+
3519
+ constructor()
3520
+ static new(): Matrix3
3521
+ }
3522
+
3523
+ interface MetadataHashClass {
3524
+
3525
+ // Own fields of Gegl-0.4.Gegl.MetadataHashClass
3526
+
3527
+ parent_class: MetadataStoreClass
3528
+ }
3529
+
3530
+ abstract class MetadataHashClass {
3531
+
3532
+ // Own properties of Gegl-0.4.Gegl.MetadataHashClass
3533
+
3534
+ static name: string
3535
+ }
3536
+
3537
+ interface MetadataInterface {
3538
+
3539
+ // Own fields of Gegl-0.4.Gegl.MetadataInterface
3540
+
3541
+ register_map: (metadata: Metadata, file_module: string | null, flags: number, map: MetadataMap[]) => void
3542
+ set_resolution: (metadata: Metadata, unit: ResolutionUnit, x: number, y: number) => boolean
3543
+ get_resolution: (metadata: Metadata, unit: ResolutionUnit, x: number, y: number) => boolean
3544
+ iter_lookup: (metadata: Metadata, iter: MetadataIter, key: string | null) => boolean
3545
+ iter_init: (metadata: Metadata, iter: MetadataIter) => void
3546
+ iter_next: (metadata: Metadata, iter: MetadataIter) => string | null
3547
+ iter_set_value: (metadata: Metadata, iter: MetadataIter, value: any) => boolean
3548
+ iter_get_value: (metadata: Metadata, iter: MetadataIter, value: any) => boolean
3549
+ }
3550
+
3551
+ /**
3552
+ * The #GeglMetadata interface structure.
3553
+ * @record
3554
+ */
3555
+ abstract class MetadataInterface {
3556
+
3557
+ // Own properties of Gegl-0.4.Gegl.MetadataInterface
3558
+
3559
+ static name: string
3560
+ }
3561
+
3562
+ interface MetadataIter {
3563
+ }
3564
+
3565
+ /**
3566
+ * An opaque type representing a metadata iterator.
3567
+ * @record
3568
+ */
3569
+ class MetadataIter {
3570
+
3571
+ // Own properties of Gegl-0.4.Gegl.MetadataIter
3572
+
3573
+ static name: string
3574
+ }
3575
+
3576
+ interface MetadataMap {
3577
+
3578
+ // Own fields of Gegl-0.4.Gegl.MetadataMap
3579
+
3580
+ /**
3581
+ * Name of metadata variable used in the file module.
3582
+ * @field
3583
+ */
3584
+ local_name: string | null
3585
+ /**
3586
+ * Standard metadata variable name used by Gegl.
3587
+ * @field
3588
+ */
3589
+ name: string | null
3590
+ /**
3591
+ * Optional #GValue transform function.
3592
+ * @field
3593
+ */
3594
+ transform: GObject.ValueTransform
3595
+ }
3596
+
3597
+ /**
3598
+ * Struct to describe how a metadata variable is mapped from the name used by
3599
+ * the image file module to the name used by Gegl. An optional transform
3600
+ * function may be specified, e.g. to transform from a #GDatetime to a string.
3601
+ * @record
3602
+ */
3603
+ class MetadataMap {
3604
+
3605
+ // Own properties of Gegl-0.4.Gegl.MetadataMap
3606
+
3607
+ static name: string
3608
+ }
3609
+
3610
+ interface MetadataStoreClass {
3611
+
3612
+ // Own fields of Gegl-0.4.Gegl.MetadataStoreClass
3613
+
3614
+ set_value: (self: MetadataStore, name: string | null, value: any) => void
3615
+ has_value: (self: MetadataStore, name: string | null) => boolean
3616
+ register_hook: (self: MetadataStore, file_module_name: string | null, flags: number) => void
3617
+ }
3618
+
3619
+ /**
3620
+ * The class structure for the #GeglMetadataStore
3621
+ * @record
3622
+ */
3623
+ abstract class MetadataStoreClass {
3624
+
3625
+ // Own properties of Gegl-0.4.Gegl.MetadataStoreClass
3626
+
3627
+ static name: string
3628
+ }
3629
+
3630
+ interface OperationContext {
3631
+ }
3632
+
3633
+ class OperationContext {
3634
+
3635
+ // Own properties of Gegl-0.4.Gegl.OperationContext
3636
+
3637
+ static name: string
3638
+ }
3639
+
3640
+ interface ParamSpecDouble {
3641
+
3642
+ // Own fields of Gegl-0.4.Gegl.ParamSpecDouble
3643
+
3644
+ parent_instance: GObject.ParamSpecDouble
3645
+ ui_minimum: number
3646
+ ui_maximum: number
3647
+ ui_gamma: number
3648
+ ui_step_small: number
3649
+ ui_step_big: number
3650
+ ui_digits: number
3651
+
3652
+ // Owm methods of Gegl-0.4.Gegl.ParamSpecDouble
3653
+
3654
+ set_digits(digits: number): void
3655
+ set_steps(small_step: number, big_step: number): void
3656
+ }
3657
+
3658
+ class ParamSpecDouble {
3659
+
3660
+ // Own properties of Gegl-0.4.Gegl.ParamSpecDouble
3661
+
3662
+ static name: string
3663
+ }
3664
+
3665
+ interface ParamSpecEnum {
3666
+
3667
+ // Own fields of Gegl-0.4.Gegl.ParamSpecEnum
3668
+
3669
+ parent_instance: GObject.ParamSpecEnum
3670
+ excluded_values: any[]
3671
+
3672
+ // Owm methods of Gegl-0.4.Gegl.ParamSpecEnum
3673
+
3674
+ exclude_value(value: number): void
3675
+ }
3676
+
3677
+ class ParamSpecEnum {
3678
+
3679
+ // Own properties of Gegl-0.4.Gegl.ParamSpecEnum
3680
+
3681
+ static name: string
3682
+ }
3683
+
3684
+ interface ParamSpecFilePath {
3685
+
3686
+ // Own fields of Gegl-0.4.Gegl.ParamSpecFilePath
3687
+
3688
+ parent_instance: GObject.ParamSpecString
3689
+ no_validate: number
3690
+ null_ok: number
3691
+ }
3692
+
3693
+ class ParamSpecFilePath {
3694
+
3695
+ // Own properties of Gegl-0.4.Gegl.ParamSpecFilePath
3696
+
3697
+ static name: string
3698
+ }
3699
+
3700
+ interface ParamSpecFormat {
3701
+
3702
+ // Own fields of Gegl-0.4.Gegl.ParamSpecFormat
3703
+
3704
+ parent_instance: GObject.ParamSpecPointer
3705
+ }
3706
+
3707
+ class ParamSpecFormat {
3708
+
3709
+ // Own properties of Gegl-0.4.Gegl.ParamSpecFormat
3710
+
3711
+ static name: string
3712
+ }
3713
+
3714
+ interface ParamSpecInt {
3715
+
3716
+ // Own fields of Gegl-0.4.Gegl.ParamSpecInt
3717
+
3718
+ parent_instance: GObject.ParamSpecInt
3719
+ ui_minimum: number
3720
+ ui_maximum: number
3721
+ ui_gamma: number
3722
+ ui_step_small: number
3723
+ ui_step_big: number
3724
+
3725
+ // Owm methods of Gegl-0.4.Gegl.ParamSpecInt
3726
+
3727
+ set_steps(small_step: number, big_step: number): void
3728
+ }
3729
+
3730
+ class ParamSpecInt {
3731
+
3732
+ // Own properties of Gegl-0.4.Gegl.ParamSpecInt
3733
+
3734
+ static name: string
3735
+ }
3736
+
3737
+ interface ParamSpecSeed {
3738
+
3739
+ // Own fields of Gegl-0.4.Gegl.ParamSpecSeed
3740
+
3741
+ parent_instance: GObject.ParamSpecUInt
3742
+ ui_minimum: number
3743
+ ui_maximum: number
3744
+ }
3745
+
3746
+ class ParamSpecSeed {
3747
+
3748
+ // Own properties of Gegl-0.4.Gegl.ParamSpecSeed
3749
+
3750
+ static name: string
3751
+ }
3752
+
3753
+ interface ParamSpecString {
3754
+
3755
+ // Own fields of Gegl-0.4.Gegl.ParamSpecString
3756
+
3757
+ parent_instance: GObject.ParamSpecString
3758
+ no_validate: number
3759
+ null_ok: number
3760
+ }
3761
+
3762
+ class ParamSpecString {
3763
+
3764
+ // Own properties of Gegl-0.4.Gegl.ParamSpecString
3765
+
3766
+ static name: string
3767
+ }
3768
+
3769
+ interface ParamSpecUri {
3770
+
3771
+ // Own fields of Gegl-0.4.Gegl.ParamSpecUri
3772
+
3773
+ parent_instance: GObject.ParamSpecString
3774
+ no_validate: number
3775
+ null_ok: number
3776
+ }
3777
+
3778
+ class ParamSpecUri {
3779
+
3780
+ // Own properties of Gegl-0.4.Gegl.ParamSpecUri
3781
+
3782
+ static name: string
3783
+ }
3784
+
3785
+ interface PathClass {
3786
+ }
3787
+
3788
+ abstract class PathClass {
3789
+
3790
+ // Own properties of Gegl-0.4.Gegl.PathClass
3791
+
3792
+ static name: string
3793
+ }
3794
+
3795
+ interface PathItem {
3796
+
3797
+ // Own fields of Gegl-0.4.Gegl.PathItem
3798
+
3799
+ type: number
3800
+ point: PathPoint[]
3801
+ }
3802
+
3803
+ class PathItem {
3804
+
3805
+ // Own properties of Gegl-0.4.Gegl.PathItem
3806
+
3807
+ static name: string
3808
+ }
3809
+
3810
+ interface PathList {
3811
+
3812
+ // Own fields of Gegl-0.4.Gegl.PathList
3813
+
3814
+ next: any
3815
+ d: PathItem
3816
+ }
3817
+
3818
+ class PathList {
3819
+
3820
+ // Own properties of Gegl-0.4.Gegl.PathList
3821
+
3822
+ static name: string
3823
+ }
3824
+
3825
+ interface PathPoint {
3826
+
3827
+ // Own fields of Gegl-0.4.Gegl.PathPoint
3828
+
3829
+ x: number
3830
+ y: number
3831
+ }
3832
+
3833
+ class PathPoint {
3834
+
3835
+ // Own properties of Gegl-0.4.Gegl.PathPoint
3836
+
3837
+ static name: string
3838
+ }
3839
+
3840
+ interface Random {
3841
+
3842
+ // Owm methods of Gegl-0.4.Gegl.Random
3843
+
3844
+ /**
3845
+ * Return a new copy of an existing GeglRandom
3846
+ */
3847
+ duplicate(): Random
3848
+ /**
3849
+ * Return a random floating point number in range 0.0 .. 1.0.
3850
+ * @param x x coordinate
3851
+ * @param y y coordinate
3852
+ * @param z z coordinate (mipmap level)
3853
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
3854
+ */
3855
+ float(x: number, y: number, z: number, n: number): number
3856
+ /**
3857
+ * Return a random floating point number in the range specified,
3858
+ * for the given x,y coordinates and GeglRandom provided, if multiple different
3859
+ * numbers are needed pass in incrementing n's.
3860
+ * @param x x coordinate
3861
+ * @param y y coordinate
3862
+ * @param z z coordinate (mipmap level)
3863
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
3864
+ * @param min minimum value
3865
+ * @param max maximum value
3866
+ */
3867
+ float_range(x: number, y: number, z: number, n: number, min: number, max: number): number
3868
+ /**
3869
+ * Free a GeglRandom structure created with gegl_random_new() or
3870
+ * gegl_random_new_with_seed()
3871
+ */
3872
+ free(): void
3873
+ /**
3874
+ * Return a random integer number in range 0 .. MAX_UINT
3875
+ * @param x x coordinate
3876
+ * @param y y coordinate
3877
+ * @param z z coordinate (mipmap level)
3878
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
3879
+ */
3880
+ int(x: number, y: number, z: number, n: number): number
3881
+ /**
3882
+ * Return a random integer point number in the range specified,
3883
+ * for the given x,y coordinates and GeglRandom provided, if multiple different
3884
+ * numbers are needed pass in incrementing n's.
3885
+ * @param x x coordinate
3886
+ * @param y y coordinate
3887
+ * @param z z coordinate (mipmap level)
3888
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
3889
+ * @param min minimum value
3890
+ * @param max maximum value+1
3891
+ */
3892
+ int_range(x: number, y: number, z: number, n: number, min: number, max: number): number
3893
+ /**
3894
+ * Change the seed of an existing GeglRandom.
3895
+ * @param seed an integer seed, change for different permutation.
3896
+ */
3897
+ set_seed(seed: number): void
3898
+ }
3899
+
3900
+ class Random {
3901
+
3902
+ // Own properties of Gegl-0.4.Gegl.Random
3903
+
3904
+ static name: string
3905
+
3906
+ // Constructors of Gegl-0.4.Gegl.Random
3907
+
3908
+ /**
3909
+ * Creates a new random number generator initialized with a random seed.
3910
+ * This structure needs to be freed by the user with gegl_random_free();
3911
+ * @constructor
3912
+ */
3913
+ constructor()
3914
+ /**
3915
+ * Creates a new random number generator initialized with a random seed.
3916
+ * This structure needs to be freed by the user with gegl_random_free();
3917
+ * @constructor
3918
+ */
3919
+ static new(): Random
3920
+ /**
3921
+ * Return an opaque structure associated to the seed.
3922
+ * This structure needs to be freed by the user with gegl_random_free();
3923
+ * @constructor
3924
+ * @param seed an integer seed, change for different permutation.
3925
+ */
3926
+ static new_with_seed(seed: number): Random
3927
+ }
3928
+
3929
+ interface Rectangle {
3930
+
3931
+ // Own fields of Gegl-0.4.Gegl.Rectangle
3932
+
3933
+ x: number
3934
+ y: number
3935
+ width: number
3936
+ height: number
3937
+
3938
+ // Owm methods of Gegl-0.4.Gegl.Rectangle
3939
+
3940
+ /**
3941
+ * Aligns `rectangle` to a regular tile grid, of which `tile` is a representative
3942
+ * tile, and stores the result in `destination`.
3943
+ *
3944
+ * `alignment` can be one of:
3945
+ *
3946
+ * GEGL_RECTANGLE_ALIGNMENT_SUBSET: Calculate the biggest aligned rectangle
3947
+ * contained in `rectangle`.
3948
+ *
3949
+ * GEGL_RECTANGLE_ALIGNMENT_SUPERSET: Calculate the smallest aligned
3950
+ * rectangle containing `rectangle`.
3951
+ *
3952
+ * GEGL_RECTANGLE_ALIGNMENT_NEAREST: Calculate the nearest aligned rectangle
3953
+ * to `rectangle`.
3954
+ *
3955
+ * `destination` may point to the same object as `rectangle` or `tile`.
3956
+ *
3957
+ * Returns TRUE if the result is not empty.
3958
+ * @param rectangle a #GeglRectangle
3959
+ * @param tile a #GeglRectangle
3960
+ * @param alignment a #GeglRectangleAlignment value
3961
+ */
3962
+ align(rectangle: Rectangle, tile: Rectangle, alignment: RectangleAlignment): boolean
3963
+ /**
3964
+ * Aligns `rectangle` to the tile grid of `buffer,` and stores the result in
3965
+ * `destination`.
3966
+ *
3967
+ * `alignment` has the same meaning as for gegl_rectangle_align().
3968
+ *
3969
+ * `destination` may point to the same object as `rectangle`.
3970
+ *
3971
+ * Returns TRUE if the result is not empty.
3972
+ * @param rectangle a #GeglRectangle
3973
+ * @param buffer a #GeglBuffer
3974
+ * @param alignment a #GeglRectangleAlignment value
3975
+ */
3976
+ align_to_buffer(rectangle: Rectangle, buffer: Buffer, alignment: RectangleAlignment): boolean
3977
+ /**
3978
+ * Computes the bounding box of the rectangles `source1` and `source2` and stores the
3979
+ * resulting bounding box in `destination`.
3980
+ *
3981
+ * `destination` may point to the same object as `source1` or `source2`.
3982
+ * @param source1 a #GeglRectangle
3983
+ * @param source2 a #GeglRectangle
3984
+ */
3985
+ bounding_box(source1: Rectangle, source2: Rectangle): void
3986
+ /**
3987
+ * Checks if the #GeglRectangle `child` is fully contained within `parent`.
3988
+ *
3989
+ * Returns TRUE if the `child` is fully contained in `parent`.
3990
+ * @param child a #GeglRectangle
3991
+ */
3992
+ contains(child: Rectangle): boolean
3993
+ /**
3994
+ * Copies the rectangle information stored in `source` over the information in
3995
+ * `destination`.
3996
+ *
3997
+ * `destination` may point to the same object as `source`.
3998
+ * @param source a #GeglRectangle
3999
+ */
4000
+ copy(source: Rectangle): void
4001
+ /**
4002
+ * For debugging purposes, not stable API.
4003
+ */
4004
+ dump(): void
4005
+ /**
4006
+ * Create a new copy of `rectangle`.
4007
+ * @returns a #GeglRectangle
4008
+ */
4009
+ dup(): Rectangle
4010
+ /**
4011
+ * Check if two #GeglRectangles are equal.
4012
+ *
4013
+ * Returns TRUE if `rectangle` and `rectangle2` are equal.
4014
+ * @param rectangle2 a #GeglRectangle
4015
+ */
4016
+ equal(rectangle2: Rectangle): boolean
4017
+ /**
4018
+ * Check if a rectangle is equal to a set of parameters.
4019
+ *
4020
+ * Returns TRUE if `rectangle` and `x,``y` `width` x `height` are equal.
4021
+ * @param x X coordinate
4022
+ * @param y Y coordinate
4023
+ * @param width width of rectangle
4024
+ * @param height height of rectangle
4025
+ */
4026
+ equal_coords(x: number, y: number, width: number, height: number): boolean
4027
+ /**
4028
+ * Calculates the intersection of two rectangles. If the rectangles do not
4029
+ * intersect, dest's width and height are set to 0 and its x and y values
4030
+ * are undefined.
4031
+ *
4032
+ * `dest` may point to the same object as `src1` or `src2`.
4033
+ *
4034
+ * Returns TRUE if the rectangles intersect.
4035
+ * @param src1 a #GeglRectangle
4036
+ * @param src2 a #GeglRectangle
4037
+ */
4038
+ intersect(src1: Rectangle, src2: Rectangle): boolean
4039
+ /**
4040
+ * Check if a rectangle has zero area.
4041
+ *
4042
+ * Returns TRUE if the width or height of `rectangle` is 0.
4043
+ */
4044
+ is_empty(): boolean
4045
+ /**
4046
+ * Returns TRUE if the GeglRectangle represents an infininte plane,
4047
+ * FALSE otherwise.
4048
+ */
4049
+ is_infinite_plane(): boolean
4050
+ /**
4051
+ * Sets the `x,` `y,` `width` and `height` on `rectangle`.
4052
+ * @param x upper left x coordinate
4053
+ * @param y upper left y coordinate
4054
+ * @param width width in pixels.
4055
+ * @param height height in pixels.
4056
+ */
4057
+ set(x: number, y: number, width: number, height: number): void
4058
+ /**
4059
+ * Subtracts `subtrahend` from `minuend,` and stores the resulting rectangles in
4060
+ * `destination`. Between 0 and 4 disjoint rectangles may be produced.
4061
+ *
4062
+ * `destination` may contain `minuend` or `subtrahend`.
4063
+ *
4064
+ * Returns the number of resulting rectangles.
4065
+ * @param minuend a #GeglRectangle
4066
+ * @param subtrahend a #GeglRectangle
4067
+ */
4068
+ subtract(minuend: Rectangle, subtrahend: Rectangle): number
4069
+ /**
4070
+ * Computes the bounding box of the area formed by subtracting `subtrahend`
4071
+ * from `minuend,` and stores the result in `destination`.
4072
+ *
4073
+ * `destination` may point to the same object as `minuend` or `subtrahend`.
4074
+ *
4075
+ * Returns TRUE if the result is not empty.
4076
+ * @param minuend a #GeglRectangle
4077
+ * @param subtrahend a #GeglRectangle
4078
+ */
4079
+ subtract_bounding_box(minuend: Rectangle, subtrahend: Rectangle): boolean
4080
+ /**
4081
+ * Computes the symmetric difference of the rectangles `source1` and `source2`,
4082
+ * and stores the resulting rectangles in `destination`. Between 0 and 4
4083
+ * disjoint rectangles may be produced.
4084
+ *
4085
+ * `destination` may contain `rectangle1` or `rectangle2`.
4086
+ *
4087
+ * Returns the number of resulting rectangles.
4088
+ * @param source1 a #GeglRectangle
4089
+ * @param source2 a #GeglRectangle
4090
+ */
4091
+ xor(source1: Rectangle, source2: Rectangle): number
4092
+ }
4093
+
4094
+ class Rectangle {
4095
+
4096
+ // Own properties of Gegl-0.4.Gegl.Rectangle
4097
+
4098
+ static name: string
4099
+
4100
+ // Constructors of Gegl-0.4.Gegl.Rectangle
4101
+
4102
+ /**
4103
+ * Creates a new rectangle set with the values from `x,` `y,` `width` and `height`.
4104
+ * @constructor
4105
+ * @param x upper left x coordinate
4106
+ * @param y upper left y coordinate
4107
+ * @param width width in pixels.
4108
+ * @param height height in pixels.
4109
+ */
4110
+ constructor(x: number, y: number, width: number, height: number)
4111
+ /**
4112
+ * Creates a new rectangle set with the values from `x,` `y,` `width` and `height`.
4113
+ * @constructor
4114
+ * @param x upper left x coordinate
4115
+ * @param y upper left y coordinate
4116
+ * @param width width in pixels.
4117
+ * @param height height in pixels.
4118
+ */
4119
+ static new(x: number, y: number, width: number, height: number): Rectangle
4120
+ /**
4121
+ * Returns a GeglRectangle that represents an infininte plane.
4122
+ */
4123
+ static infinite_plane(): Rectangle
4124
+ }
4125
+
4126
+ interface Sampler {
4127
+
4128
+ // Owm methods of Gegl-0.4.Gegl.Sampler
4129
+
4130
+ /**
4131
+ * Perform a sampling with the provided `sampler`.
4132
+ * @param x x coordinate to sample
4133
+ * @param y y coordinate to sample
4134
+ * @param scale matrix representing extent of sampling area in source buffer.
4135
+ * @param output memory location for output data.
4136
+ * @param repeat_mode how requests outside the buffer extent are handled. Valid values: GEGL_ABYSS_NONE (abyss pixels are zeroed), GEGL_ABYSS_WHITE (abyss pixels are white), GEGL_ABYSS_BLACK (abyss pixels are black), GEGL_ABYSS_CLAMP (coordinates are clamped to the abyss rectangle), GEGL_ABYSS_LOOP (buffer contents are tiled if outside of the abyss rectangle).
4137
+ */
4138
+ get(x: number, y: number, scale: BufferMatrix2, output: any | null, repeat_mode: AbyssPolicy): void
4139
+ get_context_rect(): Rectangle
4140
+ }
4141
+
4142
+ class Sampler {
4143
+
4144
+ // Own properties of Gegl-0.4.Gegl.Sampler
4145
+
4146
+ static name: string
4147
+ }
4148
+
4149
+ interface Tile {
4150
+ }
4151
+
4152
+ class Tile {
4153
+
4154
+ // Own properties of Gegl-0.4.Gegl.Tile
4155
+
4156
+ static name: string
4157
+ }
4158
+
4159
+ interface TileBackendClass {
4160
+
4161
+ // Own fields of Gegl-0.4.Gegl.TileBackendClass
4162
+
4163
+ parent_class: TileSourceClass
4164
+ padding: any[]
4165
+ }
4166
+
4167
+ abstract class TileBackendClass {
4168
+
4169
+ // Own properties of Gegl-0.4.Gegl.TileBackendClass
4170
+
4171
+ static name: string
4172
+ }
4173
+
4174
+ interface TileBackendPrivate {
4175
+ }
4176
+
4177
+ class TileBackendPrivate {
4178
+
4179
+ // Own properties of Gegl-0.4.Gegl.TileBackendPrivate
4180
+
4181
+ static name: string
4182
+ }
4183
+
4184
+ interface TileCopyParams {
4185
+
4186
+ // Own fields of Gegl-0.4.Gegl.TileCopyParams
4187
+
4188
+ dst_buffer: Buffer
4189
+ dst_x: number
4190
+ dst_y: number
4191
+ dst_z: number
4192
+ }
4193
+
4194
+ class TileCopyParams {
4195
+
4196
+ // Own properties of Gegl-0.4.Gegl.TileCopyParams
4197
+
4198
+ static name: string
4199
+ }
4200
+
4201
+ interface TileHandlerClass {
4202
+
4203
+ // Own fields of Gegl-0.4.Gegl.TileHandlerClass
4204
+
4205
+ parent_class: TileSourceClass
4206
+ }
4207
+
4208
+ abstract class TileHandlerClass {
4209
+
4210
+ // Own properties of Gegl-0.4.Gegl.TileHandlerClass
4211
+
4212
+ static name: string
4213
+ }
4214
+
4215
+ interface TileHandlerPrivate {
4216
+ }
4217
+
4218
+ class TileHandlerPrivate {
4219
+
4220
+ // Own properties of Gegl-0.4.Gegl.TileHandlerPrivate
4221
+
4222
+ static name: string
4223
+ }
4224
+
4225
+ interface TileSourceClass {
4226
+
4227
+ // Own fields of Gegl-0.4.Gegl.TileSourceClass
4228
+
4229
+ parent_class: GObject.ObjectClass
4230
+ padding: any[]
4231
+ }
4232
+
4233
+ abstract class TileSourceClass {
4234
+
4235
+ // Own properties of Gegl-0.4.Gegl.TileSourceClass
4236
+
4237
+ static name: string
4238
+ }
4239
+
4240
+ /**
4241
+ * Name of the imported GIR library
4242
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
4243
+ */
4244
+ const __name__: string
4245
+ /**
4246
+ * Version of the imported GIR library
4247
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
4248
+ */
4249
+ const __version__: string
4250
+ }
4251
+
4252
+ export default Gegl;
4253
+ // END