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