@girs/gegl-0.3 0.3.35-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.3.d.ts ADDED
@@ -0,0 +1,2959 @@
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.3
10
+ */
11
+
12
+ import type GObject from '@girs/gobject-2.0';
13
+ import type GLib from '@girs/glib-2.0';
14
+
15
+ export namespace Gegl {
16
+
17
+ enum AbyssPolicy {
18
+ NONE,
19
+ CLAMP,
20
+ LOOP,
21
+ BLACK,
22
+ WHITE,
23
+ }
24
+ enum DistanceMetric {
25
+ EUCLIDEAN,
26
+ MANHATTAN,
27
+ CHEBYSHEV,
28
+ }
29
+ enum DitherMethod {
30
+ NONE,
31
+ FLOYD_STEINBERG,
32
+ BAYER,
33
+ RANDOM,
34
+ RANDOM_COVARIANT,
35
+ ADD,
36
+ ADD_COVARIANT,
37
+ XOR,
38
+ XOR_COVARIANT,
39
+ }
40
+ enum Orientation {
41
+ HORIZONTAL,
42
+ VERTICAL,
43
+ }
44
+ enum SamplerType {
45
+ NEAREST,
46
+ LINEAR,
47
+ CUBIC,
48
+ NOHALO,
49
+ LOHALO,
50
+ }
51
+ enum SplitStrategy {
52
+ AUTO,
53
+ HORIZONTAL,
54
+ VERTICAL,
55
+ }
56
+ enum TileCommand {
57
+ IDLE,
58
+ SET,
59
+ GET,
60
+ IS_CACHED,
61
+ EXIST,
62
+ VOID,
63
+ FLUSH,
64
+ REFETCH,
65
+ REINIT,
66
+ LAST_COMMAND,
67
+ }
68
+ enum AccessMode {
69
+ READ,
70
+ WRITE,
71
+ READWRITE,
72
+ }
73
+ enum BlitFlags {
74
+ DEFAULT,
75
+ CACHE,
76
+ DIRTY,
77
+ }
78
+ enum PadType {
79
+ OUTPUT,
80
+ INPUT,
81
+ }
82
+ enum SerializeFlag {
83
+ TRIM_DEFAULTS,
84
+ VERSION,
85
+ INDENT,
86
+ }
87
+ const AUTO_ROWSTRIDE: number
88
+ const BUFFER_MAX_ITERATORS: number
89
+ const CH_BACK_CENTER: number
90
+ const CH_BACK_LEFT: number
91
+ const CH_BACK_RIGHT: number
92
+ const CH_FRONT_CENTER: number
93
+ const CH_FRONT_LEFT: number
94
+ const CH_FRONT_LEFT_OF_CENTER: number
95
+ const CH_FRONT_RIGHT: number
96
+ const CH_FRONT_RIGHT_OF_CENTER: number
97
+ const CH_LAYOUT_2POINT1: number
98
+ const CH_LAYOUT_2_1: number
99
+ const CH_LAYOUT_2_2: number
100
+ const CH_LAYOUT_3POINT1: number
101
+ const CH_LAYOUT_4POINT0: number
102
+ const CH_LAYOUT_4POINT1: number
103
+ const CH_LAYOUT_5POINT0: number
104
+ const CH_LAYOUT_5POINT0_BACK: number
105
+ const CH_LAYOUT_5POINT1: number
106
+ const CH_LAYOUT_5POINT1_BACK: number
107
+ const CH_LAYOUT_6POINT0: number
108
+ const CH_LAYOUT_6POINT0_FRONT: number
109
+ const CH_LAYOUT_6POINT1: number
110
+ const CH_LAYOUT_6POINT1_BACK: number
111
+ const CH_LAYOUT_6POINT1_FRONT: number
112
+ const CH_LAYOUT_7POINT0: number
113
+ const CH_LAYOUT_7POINT0_FRONT: number
114
+ const CH_LAYOUT_7POINT1: number
115
+ const CH_LAYOUT_7POINT1_WIDE: number
116
+ const CH_LAYOUT_7POINT1_WIDE_BACK: number
117
+ const CH_LAYOUT_HEXADECAGONAL: number
118
+ const CH_LAYOUT_HEXAGONAL: number
119
+ const CH_LAYOUT_NATIVE: number
120
+ const CH_LAYOUT_OCTAGONAL: number
121
+ const CH_LAYOUT_QUAD: number
122
+ const CH_LAYOUT_STEREO: number
123
+ const CH_LAYOUT_STEREO_DOWNMIX: number
124
+ const CH_LAYOUT_SURROUND: number
125
+ const CH_LOW_FREQUENCY: number
126
+ const CH_LOW_FREQUENCY_2: number
127
+ const CH_SIDE_LEFT: number
128
+ const CH_SIDE_RIGHT: number
129
+ const CH_STEREO_LEFT: number
130
+ const CH_STEREO_RIGHT: number
131
+ const CH_SURROUND_DIRECT_LEFT: number
132
+ const CH_SURROUND_DIRECT_RIGHT: number
133
+ const CH_TOP_BACK_CENTER: number
134
+ const CH_TOP_BACK_LEFT: number
135
+ const CH_TOP_BACK_RIGHT: number
136
+ const CH_TOP_CENTER: number
137
+ const CH_TOP_FRONT_CENTER: number
138
+ const CH_TOP_FRONT_LEFT: number
139
+ const CH_TOP_FRONT_RIGHT: number
140
+ const CH_WIDE_LEFT: number
141
+ const CH_WIDE_RIGHT: number
142
+ const FLOAT_EPSILON: number
143
+ const LOOKUP_MAX_ENTRIES: number
144
+ const MAJOR_VERSION: number
145
+ const MAX_AUDIO_CHANNELS: number
146
+ const MICRO_VERSION: number
147
+ const MINOR_VERSION: number
148
+ const PARAM_NO_VALIDATE: number
149
+ /**
150
+ * Disable OpenCL
151
+ */
152
+ function cl_disable(): void
153
+ /**
154
+ * Initialize and enable OpenCL, calling this function again
155
+ * will re-enable OpenCL if it has been disabled.
156
+ * @returns True if OpenCL was initialized
157
+ */
158
+ function cl_init(): boolean
159
+ /**
160
+ * Check if OpenCL is enabled.
161
+ * @returns True if OpenCL is initialized and enabled
162
+ */
163
+ function cl_is_accelerated(): boolean
164
+ /**
165
+ * Returns a GeglConfig object with properties that can be manipulated to control
166
+ * GEGLs behavior.
167
+ * @returns a #GeglConfig
168
+ */
169
+ function config(): Config
170
+ /**
171
+ * Create a node chain from an unparsed commandline string.
172
+ * @param ops an argv style, NULL terminated array of arguments
173
+ * @param op_start node to pass in as input of chain
174
+ * @param op_end node to get processed data
175
+ * @param time the time to use for interpolatino of keyframed values
176
+ * @param rel_dim relative dimension to scale rel suffixed values by
177
+ * @param path_root path in filesystem to use as relative root
178
+ */
179
+ function create_chain(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
180
+ /**
181
+ * Create a node chain from argv style list of op data.
182
+ * @param ops an argv style, NULL terminated array of arguments
183
+ * @param op_start node to pass in as input of chain
184
+ * @param op_end node to get processed data
185
+ * @param time the time to use for interpolatino of keyframed values
186
+ * @param rel_dim relative dimension to scale rel suffixed values by
187
+ * @param path_root path in filesystem to use as relative root
188
+ */
189
+ function create_chain_argv(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
190
+ /**
191
+ * Call this function when you're done using GEGL. It will clean up
192
+ * caches and write/dump debug information if the correct debug flags
193
+ * are set.
194
+ */
195
+ function exit(): void
196
+ /**
197
+ * Returns a value sutable to pass to the GeglBuffer constructor
198
+ * or any other property that expects a Babl format.
199
+ * @param format_name A Babl format name, e.g. "RGBA float"
200
+ * @returns the format pointer
201
+ */
202
+ function format(format_name: string | null): any | null
203
+ function format_get_name(format: any): string | null
204
+ /**
205
+ * This function fetches the version of the GEGL library being used by
206
+ * the running process.
207
+ */
208
+ function get_version(): [ /* major */ number, /* minor */ number, /* micro */ number ]
209
+ /**
210
+ * Dump the bounds and format of each node in the graph to stdout.
211
+ * @param node The final node of the graph
212
+ */
213
+ function graph_dump_outputs(node: Node): void
214
+ /**
215
+ * Dump the region that will be rendered for each node to fulfill
216
+ * the request.
217
+ * @param node The final node of the graph
218
+ * @param roi The request rectangle
219
+ */
220
+ function graph_dump_request(node: Node, roi: Rectangle): void
221
+ function has_operation(operation_type: string | null): boolean
222
+ /**
223
+ * Call this function before using any other GEGL functions. It will
224
+ * initialize everything needed to operate GEGL and parses some
225
+ * standard command line options. `argc` and `argv` are adjusted
226
+ * accordingly so your own code will never see those standard
227
+ * arguments.
228
+ *
229
+ * Note that there is an alternative way to initialize GEGL: if you
230
+ * are calling g_option_context_parse() with the option group returned
231
+ * by #gegl_get_option_group(), you don't have to call #gegl_init().
232
+ * @param argv a pointer to the array of command line arguments.
233
+ */
234
+ function init(argv: string[] | null): /* argv */ string[] | null
235
+ function is_main_thread(): boolean
236
+ function list_operations(): string[]
237
+ /**
238
+ * Load all gegl modules found in the given directory.
239
+ * @param path the directory to load modules from
240
+ */
241
+ function load_module_directory(path: string | null): void
242
+ /**
243
+ * Creates a new #GParamSpec instance specifying a #GeglAudioFragment property.
244
+ * @param name canonical name of the property specified
245
+ * @param nick nick name for the property specified
246
+ * @param blurb description of the property specified
247
+ * @param flags flags for the property specified
248
+ * @returns a newly created parameter specification
249
+ */
250
+ function param_spec_audio_fragment(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
251
+ /**
252
+ * Creates a new #GParamSpec instance specifying a #GeglColor property.
253
+ * @param name canonical name of the property specified
254
+ * @param nick nick name for the property specified
255
+ * @param blurb description of the property specified
256
+ * @param default_color the default value for the property specified
257
+ * @param flags flags for the property specified
258
+ * @returns a newly created parameter specification
259
+ */
260
+ function param_spec_color(name: string | null, nick: string | null, blurb: string | null, default_color: Color, flags: GObject.ParamFlags): GObject.ParamSpec
261
+ /**
262
+ * Creates a new #GParamSpec instance specifying a #GeglColor property.
263
+ * @param name canonical name of the property specified
264
+ * @param nick nick name for the property specified
265
+ * @param blurb description of the property specified
266
+ * @param default_color_string the default value for the property specified
267
+ * @param flags flags for the property specified
268
+ * @returns a newly created parameter specification
269
+ */
270
+ 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
271
+ /**
272
+ * Get the default color value of the param spec
273
+ * @param self a #GeglColor #GParamSpec
274
+ * @returns the default #GeglColor
275
+ */
276
+ function param_spec_color_get_default(self: GObject.ParamSpec): Color
277
+ /**
278
+ * Creates a new #GParamSpec instance specifying a #GeglCurve property.
279
+ * @param name canonical name of the property specified
280
+ * @param nick nick name for the property specified
281
+ * @param blurb description of the property specified
282
+ * @param default_curve the default value for the property specified
283
+ * @param flags flags for the property specified
284
+ * @returns a newly created parameter specification
285
+ */
286
+ function param_spec_curve(name: string | null, nick: string | null, blurb: string | null, default_curve: Curve, flags: GObject.ParamFlags): GObject.ParamSpec
287
+ /**
288
+ * Creates a new #GeglParamSpecDouble instance.
289
+ * @param name canonical name of the property specified
290
+ * @param nick nick name for the property specified
291
+ * @param blurb description of the property specified
292
+ * @param minimum minimum value for the property specified
293
+ * @param maximum maximum value for the property specified
294
+ * @param default_value default value for the property specified
295
+ * @param ui_minimum minimum value a user should be allowed to input
296
+ * @param ui_maximum maximum value a user should be allowed to input
297
+ * @param ui_gamma the gamma that should be used when adjusting the value
298
+ * @param flags flags for the property specified
299
+ * @returns a newly created parameter specification
300
+ */
301
+ 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
302
+ /**
303
+ * Creates a new #GeglParamSpecEnum instance.
304
+ * @param name canonical name of the property specified
305
+ * @param nick nick name for the property specified
306
+ * @param blurb description of the property specified
307
+ * @param enum_type the enum type to get valid values from
308
+ * @param default_value default value for the property specified
309
+ * @param flags flags for the property specified
310
+ * @returns a newly created parameter specification
311
+ */
312
+ 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
313
+ /**
314
+ * Creates a new #GeglParamSpecFilePath instance.
315
+ * @param name canonical name of the property specified
316
+ * @param nick nick name for the property specified
317
+ * @param blurb description of the property specified
318
+ * @param no_validate true if the string should be validated with g_utf8_validate
319
+ * @param null_ok true if the string can be NULL
320
+ * @param default_value default value for the property specified
321
+ * @param flags flags for the property specified
322
+ * @returns a newly created parameter specification
323
+ */
324
+ 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
325
+ /**
326
+ * Creates a new #GeglParamSpecFormat instance specifying a Babl format.
327
+ * @param name canonical name of the property specified
328
+ * @param nick nick name for the property specified
329
+ * @param blurb description of the property specified
330
+ * @param flags flags for the property specified
331
+ * @returns a newly created parameter specification
332
+ */
333
+ function param_spec_format(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
334
+ function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name: string | null): string | null
335
+ /**
336
+ * Creates a new #GeglParamSpecInt instance.
337
+ * @param name canonical name of the property specified
338
+ * @param nick nick name for the property specified
339
+ * @param blurb description of the property specified
340
+ * @param minimum minimum value for the property specified
341
+ * @param maximum maximum value for the property specified
342
+ * @param default_value default value for the property specified
343
+ * @param ui_minimum minimum value a user should be allowed to input
344
+ * @param ui_maximum maximum value a user should be allowed to input
345
+ * @param ui_gamma the gamma that should be used when adjusting the value
346
+ * @param flags flags for the property specified
347
+ * @returns a newly created parameter specification
348
+ */
349
+ 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
350
+ /**
351
+ * Creates a new #GParamSpec instance specifying a #GeglPath property.
352
+ * @param name canonical name of the property specified
353
+ * @param nick nick name for the property specified
354
+ * @param blurb description of the property specified
355
+ * @param default_path the default value for the property specified
356
+ * @param flags flags for the property specified
357
+ * @returns a newly created parameter specification
358
+ */
359
+ function param_spec_path(name: string | null, nick: string | null, blurb: string | null, default_path: Path, flags: GObject.ParamFlags): GObject.ParamSpec
360
+ /**
361
+ * Creates a new #GeglParamSpecSeed instance specifying an integer random seed.
362
+ * @param name canonical name of the property specified
363
+ * @param nick nick name for the property specified
364
+ * @param blurb description of the property specified
365
+ * @param flags flags for the property specified
366
+ * @returns a newly created parameter specification
367
+ */
368
+ function param_spec_seed(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
369
+ function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name: string | null, value: string | null): void
370
+ /**
371
+ * Creates a new #GeglParamSpecString instance.
372
+ * @param name canonical name of the property specified
373
+ * @param nick nick name for the property specified
374
+ * @param blurb description of the property specified
375
+ * @param no_validate true if the string should be validated with g_utf8_validate
376
+ * @param null_ok true if the string can be NULL
377
+ * @param default_value default value for the property specified
378
+ * @param flags flags for the property specified
379
+ * @returns a newly created parameter specification
380
+ */
381
+ 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
382
+ /**
383
+ * Creates a new #GeglParamSpecUri instance.
384
+ * @param name canonical name of the property specified
385
+ * @param nick nick name for the property specified
386
+ * @param blurb description of the property specified
387
+ * @param no_validate true if the string should be validated with g_utf8_validate
388
+ * @param null_ok true if the string can be NULL
389
+ * @param default_value default value for the property specified
390
+ * @param flags flags for the property specified
391
+ * @returns a newly created parameter specification
392
+ */
393
+ 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
394
+ /**
395
+ * Returns a GeglRectangle that represents an infininte plane.
396
+ */
397
+ function rectangle_infinite_plane(): Rectangle
398
+ /**
399
+ * Resets the cumulative data gathered by the #GeglStats object returned
400
+ * by #gegl_stats().
401
+ */
402
+ function reset_stats(): void
403
+ function serialize(start: Node, end: Node, basepath: string | null, serialize_flags: SerializeFlag): string | null
404
+ /**
405
+ * Returns a GeglStats object with properties that can be read to monitor
406
+ * GEGL statistics.
407
+ * @returns a #GeglStats
408
+ */
409
+ function stats(): Stats
410
+ interface LookupFunction {
411
+ (value: number, data: any | null): number
412
+ }
413
+ interface NodeFunction {
414
+ (node: PathItem): void
415
+ }
416
+ interface SamplerGetFun {
417
+ (self: Sampler, x: number, y: number, scale: Matrix2, output: any | null, repeat_mode: AbyssPolicy): void
418
+ }
419
+ interface TileCallback {
420
+ (tile: Tile): void
421
+ }
422
+ interface TileSourceCommand {
423
+ (gegl_tile_source: TileSource, command: TileCommand, x: number, y: number, z: number, data: any | null): any | null
424
+ }
425
+ module AudioFragment {
426
+
427
+ // Constructor properties interface
428
+
429
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
430
+
431
+ // Own constructor properties of Gegl-0.3.Gegl.AudioFragment
432
+
433
+ string?: string | null
434
+ }
435
+
436
+ }
437
+
438
+ interface AudioFragment {
439
+
440
+ // Own properties of Gegl-0.3.Gegl.AudioFragment
441
+
442
+ string: string | null
443
+
444
+ // Own fields of Gegl-0.3.Gegl.AudioFragment
445
+
446
+ parent_instance: GObject.Object
447
+ data: number[]
448
+ priv: AudioFragmentPrivate
449
+
450
+ // Owm methods of Gegl-0.3.Gegl.AudioFragment
451
+
452
+ get_channel_layout(): number
453
+ get_channels(): number
454
+ get_max_samples(): number
455
+ get_pos(): number
456
+ get_sample_count(): number
457
+ get_sample_rate(): number
458
+ set_channel_layout(channel_layout: number): void
459
+ set_channels(channels: number): void
460
+ set_max_samples(max_samples: number): void
461
+ set_pos(pos: number): void
462
+ set_sample_count(sample_count: number): void
463
+ set_sample_rate(sample_rate: number): void
464
+
465
+ // Class property signals of Gegl-0.3.Gegl.AudioFragment
466
+
467
+ connect(sigName: "notify::string", callback: (($obj: AudioFragment, pspec: GObject.ParamSpec) => void)): number
468
+ connect_after(sigName: "notify::string", callback: (($obj: AudioFragment, pspec: GObject.ParamSpec) => void)): number
469
+ emit(sigName: "notify::string", ...args: any[]): void
470
+ connect(sigName: string, callback: (...args: any[]) => void): number
471
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
472
+ emit(sigName: string, ...args: any[]): void
473
+ disconnect(id: number): void
474
+ }
475
+
476
+ class AudioFragment extends GObject.Object {
477
+
478
+ // Own properties of Gegl-0.3.Gegl.AudioFragment
479
+
480
+ static name: string
481
+ static $gtype: GObject.GType<AudioFragment>
482
+
483
+ // Constructors of Gegl-0.3.Gegl.AudioFragment
484
+
485
+ constructor(config?: AudioFragment.ConstructorProperties)
486
+ constructor(sample_rate: number, channels: number, channel_layout: number, max_samples: number)
487
+ static new(sample_rate: number, channels: number, channel_layout: number, max_samples: number): AudioFragment
488
+ _init(config?: AudioFragment.ConstructorProperties): void
489
+ }
490
+
491
+ module Buffer {
492
+
493
+ // Signal callback interfaces
494
+
495
+ /**
496
+ * Signal callback interface for `changed`
497
+ */
498
+ interface ChangedSignalCallback {
499
+ ($obj: Buffer, object: Rectangle): void
500
+ }
501
+
502
+
503
+ // Constructor properties interface
504
+
505
+ interface ConstructorProperties extends TileHandler.ConstructorProperties {
506
+
507
+ // Own constructor properties of Gegl-0.3.Gegl.Buffer
508
+
509
+ abyss_height?: number | null
510
+ abyss_width?: number | null
511
+ abyss_x?: number | null
512
+ abyss_y?: number | null
513
+ backend?: TileBackend | null
514
+ format?: any | null
515
+ height?: number | null
516
+ path?: string | null
517
+ shift_x?: number | null
518
+ shift_y?: number | null
519
+ tile_height?: number | null
520
+ tile_width?: number | null
521
+ width?: number | null
522
+ x?: number | null
523
+ y?: number | null
524
+ }
525
+
526
+ }
527
+
528
+ interface Buffer {
529
+
530
+ // Own properties of Gegl-0.3.Gegl.Buffer
531
+
532
+ readonly abyss_height: number
533
+ readonly abyss_width: number
534
+ readonly abyss_x: number
535
+ readonly abyss_y: number
536
+ readonly backend: TileBackend
537
+ format: any
538
+ height: number
539
+ readonly path: string | null
540
+ readonly pixels: number
541
+ readonly px_size: number
542
+ readonly shift_x: number
543
+ readonly shift_y: number
544
+ readonly tile_height: number
545
+ readonly tile_width: number
546
+ width: number
547
+ x: number
548
+ y: number
549
+
550
+ // Conflicting properties
551
+
552
+ parent_instance: TileSource & GObject.Object & GObject.Object
553
+
554
+ // Owm methods of Gegl-0.3.Gegl.Buffer
555
+
556
+ /**
557
+ * Add a new tile handler in the existing chain of tile handler of a GeglBuffer.
558
+ * @param handler a #GeglTileHandler
559
+ */
560
+ add_handler(handler: any | null): void
561
+ /**
562
+ * Clears the provided rectangular region by setting all the associated memory
563
+ * to 0.
564
+ * @param roi a rectangular region
565
+ */
566
+ clear(roi: Rectangle): void
567
+ /**
568
+ * Copy a region from source buffer to destination buffer.
569
+ *
570
+ * If the babl_formats of the buffers are the same, and the tile boundaries
571
+ * align, this will create copy-on-write tiles in the destination buffer.
572
+ *
573
+ * This function never does any scaling. When src_rect and dst_rect do not have
574
+ * the same width and height, the size of src_rect is used.
575
+ * @param src_rect source rectangle (or NULL to copy entire source buffer)
576
+ * @param repeat_mode the abyss policy to be using if src_rect is outside src's extent.
577
+ * @param dst destination buffer.
578
+ * @param dst_rect position of upper left destination pixel, or NULL for top left coordinates of the buffer extents.
579
+ */
580
+ copy(src_rect: Rectangle, repeat_mode: AbyssPolicy, dst: Buffer, dst_rect: Rectangle): void
581
+ /**
582
+ * Create a new sub GeglBuffer, that is a view on a larger buffer.
583
+ * @param extent coordinates of new buffer.
584
+ * @returns the new sub buffer
585
+ */
586
+ create_sub_buffer(extent: Rectangle): Buffer
587
+ /**
588
+ * Duplicate a buffer (internally uses gegl_buffer_copy). Aligned tiles
589
+ * will create copy-on-write clones in the new buffer.
590
+ * @returns the new buffer
591
+ */
592
+ dup(): Buffer
593
+ /**
594
+ * Flushes all unsaved data to disk, this is not necessary for shared
595
+ * geglbuffers opened with gegl_buffer_open since they auto-sync on writes.
596
+ */
597
+ flush(): void
598
+ /**
599
+ * Return the abyss extent of a buffer, this expands out to the parents extent in
600
+ * subbuffers.
601
+ */
602
+ get_abyss(): Rectangle
603
+ /**
604
+ * Returns a pointer to a GeglRectangle structure defining the geometry of a
605
+ * specific GeglBuffer, this is also the default width/height of buffers passed
606
+ * in to gegl_buffer_set and gegl_buffer_get (with a scale of 1.0 at least).
607
+ */
608
+ get_extent(): Rectangle
609
+ /**
610
+ * Fetch a rectangular linear buffer of pixel data from the GeglBuffer.
611
+ * @param rect the coordinates we want to retrieve data from.
612
+ * @param scale sampling scale, 1.0 = pixel for pixel 2.0 = magnify, 0.5 scale down.
613
+ * @param format_name the format to store data in, if NULL the format of the buffer is used.
614
+ * @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).
615
+ * @returns A copy of the requested data
616
+ */
617
+ get(rect: Rectangle, scale: number, format_name: string | null, repeat_mode: AbyssPolicy): Uint8Array
618
+ /**
619
+ * Store a linear raster buffer into the GeglBuffer.
620
+ * @param rect the rectangle to write.
621
+ * @param format_name the format of the input data.
622
+ * @param src pixel data to write to `buffer`.
623
+ */
624
+ set(rect: Rectangle, format_name: string | null, src: Uint8Array): void
625
+ /**
626
+ * This function makes sure GeglBuffer and underlying code is aware of changes
627
+ * being made to the linear buffer. If the request was not a compatible one
628
+ * it is written back to the buffer. Multiple concurrent users can be handed
629
+ * the same buffer (both raw access and converted).
630
+ * @param linear a previously returned buffer.
631
+ */
632
+ linear_close(linear: any | null): void
633
+ /**
634
+ * Remove the provided tile handler in the existing chain of tile handler of a GeglBuffer.
635
+ * @param handler a #GeglTileHandler
636
+ */
637
+ remove_handler(handler: any | null): void
638
+ /**
639
+ * Clean up resources used by sampling framework of buffer (will be freed
640
+ * automatically later when the buffer is destroyed, for long lived buffers
641
+ * cleaning up the sampling infrastructure when it has been used for its
642
+ * purpose will sometimes be more efficient).
643
+ */
644
+ sample_cleanup(): void
645
+ /**
646
+ * Write a GeglBuffer to a file.
647
+ * @param path the path where the gegl buffer will be saved, any writable GIO uri is valid.
648
+ * @param roi the region of interest to write, this is the tiles that will be collected and written to disk.
649
+ */
650
+ save(path: string | null, roi: Rectangle): void
651
+ /**
652
+ * Changes the size and position of the abyss rectangle of a buffer.
653
+ *
654
+ * Returns TRUE if the change of abyss was successful.
655
+ * @param abyss new abyss.
656
+ */
657
+ set_abyss(abyss: Rectangle): boolean
658
+ /**
659
+ * Sets the region covered by rect to the specified color.
660
+ * @param rect a rectangular region to fill with a color.
661
+ * @param color the GeglColor to fill with.
662
+ */
663
+ set_color(rect: Rectangle, color: Color): void
664
+ /**
665
+ * Changes the size and position that is considered active in a buffer, this
666
+ * operation is valid on any buffer, reads on subbuffers outside the master
667
+ * buffer's extent are at the moment undefined.
668
+ *
669
+ * Returns TRUE if the change of extent was successful.
670
+ * @param extent new extent.
671
+ */
672
+ set_extent(extent: Rectangle): boolean
673
+ /**
674
+ * Fill a region with a repeating pattern. Offsets parameters are
675
+ * relative to the origin (0, 0) and not to the rectangle. So be carefull
676
+ * about the origin of `pattern` and `buffer` extents.
677
+ * @param rect the region of `buffer` to fill
678
+ * @param pattern a #GeglBuffer to be repeated as a pattern
679
+ * @param x_offset where the pattern starts horizontally
680
+ * @param y_offset where the pattern starts vertical
681
+ */
682
+ set_pattern(rect: Rectangle, pattern: Buffer, x_offset: number, y_offset: number): void
683
+ /**
684
+ * This function should be used instead of g_signal_connect when connecting to
685
+ * the GeglBuffer::changed signal handler, GeglBuffer contains additional
686
+ * machinery to avoid the overhead of changes when no signal handler have been
687
+ * connected, if regular g_signal_connect is used; then no signals will be
688
+ * emitted.
689
+ * @param detailed_signal only "changed" expected for now
690
+ * @param c_handler c function callback
691
+ * @returns an handle like g_signal_connect.
692
+ */
693
+ signal_connect(detailed_signal: string | null, c_handler: GObject.Callback): number
694
+
695
+ // Own signals of Gegl-0.3.Gegl.Buffer
696
+
697
+ connect(sigName: "changed", callback: Buffer.ChangedSignalCallback): number
698
+ connect_after(sigName: "changed", callback: Buffer.ChangedSignalCallback): number
699
+ emit(sigName: "changed", object: Rectangle, ...args: any[]): void
700
+
701
+ // Class property signals of Gegl-0.3.Gegl.Buffer
702
+
703
+ connect(sigName: "notify::abyss-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
704
+ connect_after(sigName: "notify::abyss-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
705
+ emit(sigName: "notify::abyss-height", ...args: any[]): void
706
+ connect(sigName: "notify::abyss-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
707
+ connect_after(sigName: "notify::abyss-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
708
+ emit(sigName: "notify::abyss-width", ...args: any[]): void
709
+ connect(sigName: "notify::abyss-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
710
+ connect_after(sigName: "notify::abyss-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
711
+ emit(sigName: "notify::abyss-x", ...args: any[]): void
712
+ connect(sigName: "notify::abyss-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
713
+ connect_after(sigName: "notify::abyss-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
714
+ emit(sigName: "notify::abyss-y", ...args: any[]): void
715
+ connect(sigName: "notify::backend", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
716
+ connect_after(sigName: "notify::backend", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
717
+ emit(sigName: "notify::backend", ...args: any[]): void
718
+ connect(sigName: "notify::format", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
719
+ connect_after(sigName: "notify::format", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
720
+ emit(sigName: "notify::format", ...args: any[]): void
721
+ connect(sigName: "notify::height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
722
+ connect_after(sigName: "notify::height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
723
+ emit(sigName: "notify::height", ...args: any[]): void
724
+ connect(sigName: "notify::path", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
725
+ connect_after(sigName: "notify::path", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
726
+ emit(sigName: "notify::path", ...args: any[]): void
727
+ connect(sigName: "notify::pixels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
728
+ connect_after(sigName: "notify::pixels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
729
+ emit(sigName: "notify::pixels", ...args: any[]): void
730
+ connect(sigName: "notify::px-size", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
731
+ connect_after(sigName: "notify::px-size", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
732
+ emit(sigName: "notify::px-size", ...args: any[]): void
733
+ connect(sigName: "notify::shift-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
734
+ connect_after(sigName: "notify::shift-x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
735
+ emit(sigName: "notify::shift-x", ...args: any[]): void
736
+ connect(sigName: "notify::shift-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
737
+ connect_after(sigName: "notify::shift-y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
738
+ emit(sigName: "notify::shift-y", ...args: any[]): void
739
+ connect(sigName: "notify::tile-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
740
+ connect_after(sigName: "notify::tile-height", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
741
+ emit(sigName: "notify::tile-height", ...args: any[]): void
742
+ connect(sigName: "notify::tile-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
743
+ connect_after(sigName: "notify::tile-width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
744
+ emit(sigName: "notify::tile-width", ...args: any[]): void
745
+ connect(sigName: "notify::width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
746
+ connect_after(sigName: "notify::width", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
747
+ emit(sigName: "notify::width", ...args: any[]): void
748
+ connect(sigName: "notify::x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
749
+ connect_after(sigName: "notify::x", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
750
+ emit(sigName: "notify::x", ...args: any[]): void
751
+ connect(sigName: "notify::y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
752
+ connect_after(sigName: "notify::y", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
753
+ emit(sigName: "notify::y", ...args: any[]): void
754
+ connect(sigName: string, callback: (...args: any[]) => void): number
755
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
756
+ emit(sigName: string, ...args: any[]): void
757
+ disconnect(id: number): void
758
+ }
759
+
760
+ class Buffer extends TileHandler {
761
+
762
+ // Own properties of Gegl-0.3.Gegl.Buffer
763
+
764
+ static name: string
765
+ static $gtype: GObject.GType<Buffer>
766
+
767
+ // Constructors of Gegl-0.3.Gegl.Buffer
768
+
769
+ constructor(config?: Buffer.ConstructorProperties)
770
+ /**
771
+ * Create a new GeglBuffer with the given format and dimensions.
772
+ * @constructor
773
+ * @param format_name The Babl format name for this buffer, e.g. "RGBA float"
774
+ * @param x x origin of the buffer's extent
775
+ * @param y y origin of the buffer's extent
776
+ * @param width width of the buffer's extent
777
+ * @param height height of the buffer's extent
778
+ */
779
+ constructor(format_name: string | null, x: number, y: number, width: number, height: number)
780
+ /**
781
+ * Create a new GeglBuffer with the given format and dimensions.
782
+ * @constructor
783
+ * @param format_name The Babl format name for this buffer, e.g. "RGBA float"
784
+ * @param x x origin of the buffer's extent
785
+ * @param y y origin of the buffer's extent
786
+ * @param width width of the buffer's extent
787
+ * @param height height of the buffer's extent
788
+ */
789
+ static new(format_name: string | null, x: number, y: number, width: number, height: number): Buffer
790
+ /**
791
+ * Create a new GeglBuffer from a backend, if NULL is passed in the extent of
792
+ * the buffer will be inherited from the extent of the backend.
793
+ *
794
+ * returns a GeglBuffer, that holds a reference to the provided backend.
795
+ * @constructor
796
+ * @param extent the geometry of the buffer (origin, width and height) a GeglRectangle.
797
+ * @param backend an instance of a GeglTileBackend subclass.
798
+ */
799
+ static new_for_backend(extent: Rectangle, backend: TileBackend): Buffer
800
+ _init(config?: Buffer.ConstructorProperties): void
801
+ /**
802
+ * Loads an existing GeglBuffer from disk, if it has previously been saved with
803
+ * gegl_buffer_save it should be possible to open through any GIO transport, buffers
804
+ * that have been used as swap needs random access to be opened.
805
+ * @param path the path to a gegl buffer on disk.
806
+ * @returns a #GeglBuffer object.
807
+ */
808
+ static load(path: string | null): Buffer
809
+ /**
810
+ * Open an existing on-disk GeglBuffer, this buffer is opened in a monitored
811
+ * state so multiple instances of gegl can share the same buffer. Sets on
812
+ * one buffer are reflected in the other.
813
+ * @param path the path to a gegl buffer on disk.
814
+ * @returns a GeglBuffer object.
815
+ */
816
+ static open(path: string | null): Buffer
817
+ }
818
+
819
+ module Color {
820
+
821
+ // Constructor properties interface
822
+
823
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
824
+
825
+ // Own constructor properties of Gegl-0.3.Gegl.Color
826
+
827
+ string?: string | null
828
+ }
829
+
830
+ }
831
+
832
+ interface Color {
833
+
834
+ // Own properties of Gegl-0.3.Gegl.Color
835
+
836
+ string: string | null
837
+
838
+ // Own fields of Gegl-0.3.Gegl.Color
839
+
840
+ parent_instance: GObject.Object
841
+ priv: ColorPrivate
842
+
843
+ // Owm methods of Gegl-0.3.Gegl.Color
844
+
845
+ /**
846
+ * Creates a copy of `color`.
847
+ * @returns A new copy of @color.
848
+ */
849
+ duplicate(): Color
850
+ /**
851
+ * Get the component values of the color in `format`.
852
+ * @param format A Babl pointer
853
+ * @returns The color components
854
+ */
855
+ get_components(format: any): number[]
856
+ /**
857
+ * Retrieves the current set color as linear light non premultipled RGBA data,
858
+ * any of the return pointers can be omitted.
859
+ */
860
+ get_rgba(): [ /* red */ number, /* green */ number, /* blue */ number, /* alpha */ number ]
861
+ /**
862
+ * Set the color using the component values as `format`.
863
+ * @param format A Babl pointer
864
+ * @param components The color components.
865
+ */
866
+ set_components(format: any, components: number[]): void
867
+ /**
868
+ * Retrieves the current set color as linear light non premultipled RGBA data
869
+ * @param red red value
870
+ * @param green green value
871
+ * @param blue blue value
872
+ * @param alpha alpha value
873
+ */
874
+ set_rgba(red: number, green: number, blue: number, alpha: number): void
875
+
876
+ // Class property signals of Gegl-0.3.Gegl.Color
877
+
878
+ connect(sigName: "notify::string", callback: (($obj: Color, pspec: GObject.ParamSpec) => void)): number
879
+ connect_after(sigName: "notify::string", callback: (($obj: Color, pspec: GObject.ParamSpec) => void)): number
880
+ emit(sigName: "notify::string", ...args: any[]): void
881
+ connect(sigName: string, callback: (...args: any[]) => void): number
882
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
883
+ emit(sigName: string, ...args: any[]): void
884
+ disconnect(id: number): void
885
+ }
886
+
887
+ class Color extends GObject.Object {
888
+
889
+ // Own properties of Gegl-0.3.Gegl.Color
890
+
891
+ static name: string
892
+ static $gtype: GObject.GType<Color>
893
+
894
+ // Constructors of Gegl-0.3.Gegl.Color
895
+
896
+ constructor(config?: Color.ConstructorProperties)
897
+ /**
898
+ * Creates a new #GeglColor.
899
+ *
900
+ * Returns the newly created #GeglColor.
901
+ * @constructor
902
+ * @param string a string describing the color to be created.
903
+ */
904
+ constructor(string: string | null)
905
+ /**
906
+ * Creates a new #GeglColor.
907
+ *
908
+ * Returns the newly created #GeglColor.
909
+ * @constructor
910
+ * @param string a string describing the color to be created.
911
+ */
912
+ static new(string: string | null): Color
913
+ _init(config?: Color.ConstructorProperties): void
914
+ }
915
+
916
+ module Config {
917
+
918
+ // Constructor properties interface
919
+
920
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
921
+
922
+ // Own constructor properties of Gegl-0.3.Gegl.Config
923
+
924
+ application_license?: string | null
925
+ chunk_size?: number | null
926
+ quality?: number | null
927
+ queue_size?: number | null
928
+ swap?: string | null
929
+ threads?: number | null
930
+ tile_cache_size?: number | null
931
+ tile_height?: number | null
932
+ tile_width?: number | null
933
+ use_opencl?: boolean | null
934
+ }
935
+
936
+ }
937
+
938
+ interface Config {
939
+
940
+ // Own properties of Gegl-0.3.Gegl.Config
941
+
942
+ application_license: string | null
943
+ chunk_size: number
944
+ quality: number
945
+ queue_size: number
946
+ swap: string | null
947
+ threads: number
948
+ tile_cache_size: number
949
+ tile_height: number
950
+ tile_width: number
951
+ use_opencl: boolean
952
+
953
+ // Class property signals of Gegl-0.3.Gegl.Config
954
+
955
+ connect(sigName: "notify::application-license", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
956
+ connect_after(sigName: "notify::application-license", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
957
+ emit(sigName: "notify::application-license", ...args: any[]): void
958
+ connect(sigName: "notify::chunk-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
959
+ connect_after(sigName: "notify::chunk-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
960
+ emit(sigName: "notify::chunk-size", ...args: any[]): void
961
+ connect(sigName: "notify::quality", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
962
+ connect_after(sigName: "notify::quality", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
963
+ emit(sigName: "notify::quality", ...args: any[]): void
964
+ connect(sigName: "notify::queue-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
965
+ connect_after(sigName: "notify::queue-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
966
+ emit(sigName: "notify::queue-size", ...args: any[]): void
967
+ connect(sigName: "notify::swap", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
968
+ connect_after(sigName: "notify::swap", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
969
+ emit(sigName: "notify::swap", ...args: any[]): void
970
+ connect(sigName: "notify::threads", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
971
+ connect_after(sigName: "notify::threads", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
972
+ emit(sigName: "notify::threads", ...args: any[]): void
973
+ connect(sigName: "notify::tile-cache-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
974
+ connect_after(sigName: "notify::tile-cache-size", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
975
+ emit(sigName: "notify::tile-cache-size", ...args: any[]): void
976
+ connect(sigName: "notify::tile-height", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
977
+ connect_after(sigName: "notify::tile-height", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
978
+ emit(sigName: "notify::tile-height", ...args: any[]): void
979
+ connect(sigName: "notify::tile-width", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
980
+ connect_after(sigName: "notify::tile-width", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
981
+ emit(sigName: "notify::tile-width", ...args: any[]): void
982
+ connect(sigName: "notify::use-opencl", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
983
+ connect_after(sigName: "notify::use-opencl", callback: (($obj: Config, pspec: GObject.ParamSpec) => void)): number
984
+ emit(sigName: "notify::use-opencl", ...args: any[]): void
985
+ connect(sigName: string, callback: (...args: any[]) => void): number
986
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
987
+ emit(sigName: string, ...args: any[]): void
988
+ disconnect(id: number): void
989
+ }
990
+
991
+ class Config extends GObject.Object {
992
+
993
+ // Own properties of Gegl-0.3.Gegl.Config
994
+
995
+ static name: string
996
+ static $gtype: GObject.GType<Config>
997
+
998
+ // Constructors of Gegl-0.3.Gegl.Config
999
+
1000
+ constructor(config?: Config.ConstructorProperties)
1001
+ _init(config?: Config.ConstructorProperties): void
1002
+ }
1003
+
1004
+ module Curve {
1005
+
1006
+ // Constructor properties interface
1007
+
1008
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1009
+ }
1010
+
1011
+ }
1012
+
1013
+ interface Curve {
1014
+
1015
+ // Own fields of Gegl-0.3.Gegl.Curve
1016
+
1017
+ parent_instance: GObject.Object
1018
+
1019
+ // Owm methods of Gegl-0.3.Gegl.Curve
1020
+
1021
+ /**
1022
+ * Add a point to the curve at `x` `y` (replacing the value exactly for `x` if it
1023
+ * already exists.
1024
+ * @param x x coordinate
1025
+ * @param y y coordinate
1026
+ */
1027
+ add_point(x: number, y: number): number
1028
+ /**
1029
+ * Retrieve the number of points in the curve.
1030
+ *
1031
+ * Returns the number of points for the coordinates in the curve.
1032
+ * @param x
1033
+ */
1034
+ calc_value(x: number): number
1035
+ /**
1036
+ * Create a copy of `curve`.
1037
+ * @returns A new copy of @curve.
1038
+ */
1039
+ duplicate(): Curve
1040
+ /**
1041
+ * Retrive the coordinates for an index.
1042
+ * @param index the position of the value number to retrieve.
1043
+ */
1044
+ get_point(index: number): [ /* x */ number, /* y */ number ]
1045
+ /**
1046
+ * Get the bounds on the values of the curve and store the values in
1047
+ * the return locaitons provided in `min_y` and `max_y`.
1048
+ */
1049
+ get_y_bounds(): [ /* min_y */ number, /* max_y */ number ]
1050
+ /**
1051
+ * Retrieve the number of points in the curve.
1052
+ *
1053
+ * Returns the number of points for the coordinates in the curve.
1054
+ */
1055
+ num_points(): number
1056
+ /**
1057
+ * Replace an existing point in a curve.
1058
+ * @param index the position of the value number to retrieve.
1059
+ * @param x x coordinate
1060
+ * @param y y coordinate
1061
+ */
1062
+ set_point(index: number, x: number, y: number): void
1063
+
1064
+ // Class property signals of Gegl-0.3.Gegl.Curve
1065
+
1066
+ connect(sigName: string, callback: (...args: any[]) => void): number
1067
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1068
+ emit(sigName: string, ...args: any[]): void
1069
+ disconnect(id: number): void
1070
+ }
1071
+
1072
+ class Curve extends GObject.Object {
1073
+
1074
+ // Own properties of Gegl-0.3.Gegl.Curve
1075
+
1076
+ static name: string
1077
+ static $gtype: GObject.GType<Curve>
1078
+
1079
+ // Constructors of Gegl-0.3.Gegl.Curve
1080
+
1081
+ constructor(config?: Curve.ConstructorProperties)
1082
+ /**
1083
+ * Create a #GeglCurve that can store a curve with values between `y_min` and
1084
+ * `y_max`.
1085
+ *
1086
+ * Returns the newly created #GeglCurve.
1087
+ * @constructor
1088
+ * @param y_min minimum y value for curve.
1089
+ * @param y_max maximum y value for curve.
1090
+ */
1091
+ constructor(y_min: number, y_max: number)
1092
+ /**
1093
+ * Create a #GeglCurve that can store a curve with values between `y_min` and
1094
+ * `y_max`.
1095
+ *
1096
+ * Returns the newly created #GeglCurve.
1097
+ * @constructor
1098
+ * @param y_min minimum y value for curve.
1099
+ * @param y_max maximum y value for curve.
1100
+ */
1101
+ static new(y_min: number, y_max: number): Curve
1102
+ /**
1103
+ * Create a default #GeglCurve with an identify mapping of
1104
+ * (0.0..1.0) -> (0.0..1.0).
1105
+ *
1106
+ * Returns the newly created default #GeglCurve.
1107
+ * @constructor
1108
+ */
1109
+ static new_default(): Curve
1110
+ _init(config?: Curve.ConstructorProperties): void
1111
+ }
1112
+
1113
+ module Node {
1114
+
1115
+ // Signal callback interfaces
1116
+
1117
+ /**
1118
+ * Signal callback interface for `computed`
1119
+ */
1120
+ interface ComputedSignalCallback {
1121
+ ($obj: Node, object: Rectangle): void
1122
+ }
1123
+
1124
+ /**
1125
+ * Signal callback interface for `invalidated`
1126
+ */
1127
+ interface InvalidatedSignalCallback {
1128
+ ($obj: Node, object: Rectangle): void
1129
+ }
1130
+
1131
+ /**
1132
+ * Signal callback interface for `progress`
1133
+ */
1134
+ interface ProgressSignalCallback {
1135
+ ($obj: Node, object: number): void
1136
+ }
1137
+
1138
+
1139
+ // Constructor properties interface
1140
+
1141
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1142
+
1143
+ // Own constructor properties of Gegl-0.3.Gegl.Node
1144
+
1145
+ dont_cache?: boolean | null
1146
+ gegl_operation?: Operation | null
1147
+ name?: string | null
1148
+ operation?: string | null
1149
+ passthrough?: boolean | null
1150
+ use_opencl?: boolean | null
1151
+ }
1152
+
1153
+ }
1154
+
1155
+ interface Node {
1156
+
1157
+ // Own properties of Gegl-0.3.Gegl.Node
1158
+
1159
+ dont_cache: boolean
1160
+ gegl_operation: Operation
1161
+ name: string | null
1162
+ operation: string | null
1163
+ passthrough: boolean
1164
+ use_opencl: boolean
1165
+
1166
+ // Owm methods of Gegl-0.3.Gegl.Node
1167
+
1168
+ /**
1169
+ * Make the GeglNode `graph,` take a reference on child. This reference
1170
+ * will be dropped when the reference count on the graph reaches zero.
1171
+ * @param child a GeglNode.
1172
+ * @returns the child.
1173
+ */
1174
+ add_child(child: Node): Node
1175
+ /**
1176
+ * Render a rectangular region from a node to the given buffer.
1177
+ * @param buffer the #GeglBuffer to render to.
1178
+ * @param roi the rectangle to render.
1179
+ * @param level mipmap level to render (0 for all)
1180
+ * @param abyss_policy
1181
+ */
1182
+ blit_buffer(buffer: Buffer | null, roi: Rectangle | null, level: number, abyss_policy: AbyssPolicy): void
1183
+ /**
1184
+ * Makes a connection between the pads of two nodes.
1185
+ *
1186
+ * Returns TRUE if the connection was successfully made.
1187
+ * @param input_pad_name the name of the input pad we are connecting to
1188
+ * @param source the node producing data we want to connect.
1189
+ * @param output_pad_name the output pad we want to use on the source.
1190
+ */
1191
+ connect_from(input_pad_name: string | null, source: Node, output_pad_name: string | null): boolean
1192
+ /**
1193
+ * Makes a connection between the pads of two nodes.
1194
+ *
1195
+ * Returns TRUE if the connection was successfully made.
1196
+ * @param output_pad_name the output pad we want to use on the source.
1197
+ * @param sink the node we're connecting an input to
1198
+ * @param input_pad_name the name of the input pad we are connecting to
1199
+ */
1200
+ connect_to(output_pad_name: string | null, sink: Node, input_pad_name: string | null): boolean
1201
+ /**
1202
+ * Creates a new processing node that performs the specified operation.
1203
+ * All properties of the operation will have their default values. This
1204
+ * is included as an addition to #gegl_node_new_child in the public API to have
1205
+ * a non varargs entry point for bindings as well as sometimes simpler more
1206
+ * readable code.
1207
+ * @param operation the type of node to create.
1208
+ * @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.)
1209
+ */
1210
+ create_child(operation: string | null): Node
1211
+ /**
1212
+ * Performs hit detection by returning the node providing data at a given
1213
+ * coordinate pair. Currently operates only on bounding boxes and not
1214
+ * pixel data.
1215
+ * @param x x coordinate
1216
+ * @param y y coordinate
1217
+ * @returns the GeglNode providing the data ending up at @x,@y in the output of @node.
1218
+ */
1219
+ detect(x: number, y: number): Node
1220
+ /**
1221
+ * Disconnects node connected to `input_pad` of `node` (if any).
1222
+ *
1223
+ * Returns TRUE if a connection was broken.
1224
+ * @param input_pad the input pad to disconnect.
1225
+ */
1226
+ disconnect(input_pad: string | null): boolean
1227
+ find_property(property_name: string | null): GObject.ParamSpec
1228
+ get_children(): Node[]
1229
+ /**
1230
+ * Retrieve which pads on which nodes are connected to a named output_pad,
1231
+ * and the number of connections. Both the location for the generated
1232
+ * nodes array and pads array can be left as NULL. If they are non NULL
1233
+ * both should be freed with g_free. The arrays are NULL terminated.
1234
+ *
1235
+ * Returns the number of consumers connected to this output_pad.
1236
+ * @param output_pad the output pad we want to know who uses.
1237
+ */
1238
+ get_consumers(output_pad: string | null): [ /* returnType */ number, /* nodes */ Node[], /* pads */ string[] ]
1239
+ get_gegl_operation(): Operation | null
1240
+ /**
1241
+ * Proxies are used to route between nodes of a subgraph contained within
1242
+ * a node.
1243
+ * @param pad_name the name of the pad.
1244
+ * @returns Returns an input proxy for the named pad. If no input proxy exists with this name a new one will be created.
1245
+ */
1246
+ get_input_proxy(pad_name: string | null): Node
1247
+ get_operation(): string | null
1248
+ /**
1249
+ * Proxies are used to route between nodes of a subgraph contained within
1250
+ * a node.
1251
+ * @param pad_name the name of the pad.
1252
+ * @returns Returns a output proxy for the named pad. If no output proxy exists with this name a new one will be created.
1253
+ */
1254
+ get_output_proxy(pad_name: string | null): Node
1255
+ /**
1256
+ * Returns a GeglNode that keeps a reference on a child.
1257
+ * @returns the parent of a node or NULL.
1258
+ */
1259
+ get_parent(): Node
1260
+ get_passthrough(): boolean
1261
+ get_producer(input_pad_name: string | null, output_pad_name: string | null): Node
1262
+ /**
1263
+ * Returns TRUE if the node has a pad with the specified name
1264
+ * @param pad_name the pad name we are looking for
1265
+ */
1266
+ has_pad(pad_name: string | null): boolean
1267
+ /**
1268
+ * Returns the position and dimensions of a rectangle spanning the area
1269
+ * defined by a node.
1270
+ * @returns pointer a #GeglRectangle
1271
+ */
1272
+ get_bounding_box(): Rectangle
1273
+ get_property(property_name: string | null): any
1274
+
1275
+ // Overloads of get_property
1276
+
1277
+ /**
1278
+ * Gets a property of an object.
1279
+ *
1280
+ * The `value` can be:
1281
+ *
1282
+ * - an empty #GValue initialized by %G_VALUE_INIT, which will be
1283
+ * automatically initialized with the expected type of the property
1284
+ * (since GLib 2.60)
1285
+ * - a #GValue initialized with the expected type of the property
1286
+ * - a #GValue initialized with a type to which the expected type
1287
+ * of the property can be transformed
1288
+ *
1289
+ * In general, a copy is made of the property contents and the caller is
1290
+ * responsible for freeing the memory by calling g_value_unset().
1291
+ *
1292
+ * Note that g_object_get_property() is really intended for language
1293
+ * bindings, g_object_get() is much more convenient for C programming.
1294
+ * @param property_name the name of the property to get
1295
+ * @param value return location for the property value
1296
+ */
1297
+ get_property(property_name: string | null, value: any): void
1298
+ /**
1299
+ * Synthetic sugar for linking the "output" pad of `source` to the "input"
1300
+ * pad of `sink`.
1301
+ * @param sink the consumer of data.
1302
+ */
1303
+ link(sink: Node): void
1304
+ /**
1305
+ * If the node has any input pads this function returns a null terminated
1306
+ * array of pad names, otherwise it returns NULL. The return value can be
1307
+ * freed with g_strfreev().
1308
+ */
1309
+ list_input_pads(): string[]
1310
+ /**
1311
+ * If the node has any output pads this function returns a null terminated
1312
+ * array of pad names, otherwise it returns NULL. The return value can be
1313
+ * freed with g_strfreev().
1314
+ */
1315
+ list_output_pads(): string[]
1316
+ new_processor(rectangle: Rectangle): Processor
1317
+ /**
1318
+ * Render a composition. This can be used for instance on a node with a "png-save"
1319
+ * operation to render all necessary data, and make it be written to file. This
1320
+ * function wraps the usage of a GeglProcessor in a single blocking function
1321
+ * call. If you need a non-blocking operation, then make a direct use of
1322
+ * #gegl_processor_work. See #GeglProcessor.
1323
+ *
1324
+ * ---
1325
+ * GeglNode *gegl;
1326
+ * GeglRectangle roi;
1327
+ * GeglNode *png_save;
1328
+ * unsigned char *buffer;
1329
+ *
1330
+ * gegl = gegl_parse_xml (xml_data);
1331
+ * roi = gegl_node_get_bounding_box (gegl);
1332
+ * # create png_save from the graph, the parent/child relationship
1333
+ * # only mean anything when it comes to memory management.
1334
+ * png_save = gegl_node_new_child (gegl,
1335
+ * "operation", "gegl:png-save",
1336
+ * "path", "output.png",
1337
+ * NULL);
1338
+ *
1339
+ * gegl_node_link (gegl, png_save);
1340
+ * gegl_node_process (png_save);
1341
+ *
1342
+ * buffer = malloc (roi.w*roi.h*4);
1343
+ * gegl_node_blit (gegl,
1344
+ * 1.0,
1345
+ * &roi,
1346
+ * babl_format("R'G'B'A u8"),
1347
+ * buffer,
1348
+ * GEGL_AUTO_ROWSTRIDE,
1349
+ * GEGL_BLIT_DEFAULT);
1350
+ */
1351
+ process(): void
1352
+ progress(progress: number, message: string | null): void
1353
+ /**
1354
+ * Removes a child from a GeglNode. The reference previously held will be
1355
+ * dropped so increase the reference count before removing when reparenting
1356
+ * a child between two graphs.
1357
+ * @param child a GeglNode.
1358
+ * @returns the child.
1359
+ */
1360
+ remove_child(child: Node): Node
1361
+ set_passthrough(passthrough: boolean): void
1362
+ /**
1363
+ * This is mainly included for language bindings. Using #gegl_node_set is
1364
+ * more convenient when programming in C.
1365
+ * @param property_name the name of the property to set
1366
+ * @param value a GValue containing the value to be set in the property.
1367
+ */
1368
+ set_property(property_name: string | null, value: any): void
1369
+ /**
1370
+ * Returns a freshly allocated \0 terminated string containing a XML
1371
+ * serialization of the composition produced by a node (and thus also
1372
+ * the nodes contributing data to the specified node). To export a
1373
+ * gegl graph, connect the internal output node to an output proxy (see
1374
+ * #gegl_node_get_output_proxy.) and use the proxy node as the basis
1375
+ * for the serialization.
1376
+ * @param path_root filesystem path to construct relative paths from.
1377
+ */
1378
+ to_xml(path_root: string | null): string | null
1379
+ /**
1380
+ * Returns a freshly allocated \0 terminated string containing a XML
1381
+ * serialization of a segment of a graph from `head` to `tail` nodes.
1382
+ * If `tail` is %NULL then this behaves just like #gegl_node_to_xml.
1383
+ * @param tail a #GeglNode
1384
+ * @param path_root filesystem path to construct relative paths from.
1385
+ * @returns XML serialization of a graph segment.
1386
+ */
1387
+ to_xml_full(tail: Node | null, path_root: string | null): string | null
1388
+
1389
+ // Own signals of Gegl-0.3.Gegl.Node
1390
+
1391
+ connect(sigName: "computed", callback: Node.ComputedSignalCallback): number
1392
+ connect_after(sigName: "computed", callback: Node.ComputedSignalCallback): number
1393
+ emit(sigName: "computed", object: Rectangle, ...args: any[]): void
1394
+ connect(sigName: "invalidated", callback: Node.InvalidatedSignalCallback): number
1395
+ connect_after(sigName: "invalidated", callback: Node.InvalidatedSignalCallback): number
1396
+ emit(sigName: "invalidated", object: Rectangle, ...args: any[]): void
1397
+ connect(sigName: "progress", callback: Node.ProgressSignalCallback): number
1398
+ connect_after(sigName: "progress", callback: Node.ProgressSignalCallback): number
1399
+ emit(sigName: "progress", object: number, ...args: any[]): void
1400
+
1401
+ // Class property signals of Gegl-0.3.Gegl.Node
1402
+
1403
+ connect(sigName: "notify::dont-cache", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1404
+ connect_after(sigName: "notify::dont-cache", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1405
+ emit(sigName: "notify::dont-cache", ...args: any[]): void
1406
+ connect(sigName: "notify::gegl-operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1407
+ connect_after(sigName: "notify::gegl-operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1408
+ emit(sigName: "notify::gegl-operation", ...args: any[]): void
1409
+ connect(sigName: "notify::name", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1410
+ connect_after(sigName: "notify::name", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1411
+ emit(sigName: "notify::name", ...args: any[]): void
1412
+ connect(sigName: "notify::operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1413
+ connect_after(sigName: "notify::operation", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1414
+ emit(sigName: "notify::operation", ...args: any[]): void
1415
+ connect(sigName: "notify::passthrough", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1416
+ connect_after(sigName: "notify::passthrough", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1417
+ emit(sigName: "notify::passthrough", ...args: any[]): void
1418
+ connect(sigName: "notify::use-opencl", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1419
+ connect_after(sigName: "notify::use-opencl", callback: (($obj: Node, pspec: GObject.ParamSpec) => void)): number
1420
+ emit(sigName: "notify::use-opencl", ...args: any[]): void
1421
+ connect(sigName: string, callback: (...args: any[]) => void): number
1422
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1423
+ emit(sigName: string, ...args: any[]): void
1424
+ disconnect(id: number): void
1425
+ }
1426
+
1427
+ class Node extends GObject.Object {
1428
+
1429
+ // Own properties of Gegl-0.3.Gegl.Node
1430
+
1431
+ static name: string
1432
+ static $gtype: GObject.GType<Node>
1433
+
1434
+ // Constructors of Gegl-0.3.Gegl.Node
1435
+
1436
+ constructor(config?: Node.ConstructorProperties)
1437
+ /**
1438
+ * Create a new graph that can contain further processing nodes.
1439
+ * @constructor
1440
+ * @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.
1441
+ */
1442
+ constructor()
1443
+ /**
1444
+ * Create a new graph that can contain further processing nodes.
1445
+ * @constructor
1446
+ * @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.
1447
+ */
1448
+ static new(): Node
1449
+ /**
1450
+ * The #GeglNode returned contains the graph described by the tree of stacks
1451
+ * in the XML document. The tree is connected to the "output" pad of the
1452
+ * returned node and thus can be used directly for processing.
1453
+ * @constructor
1454
+ * @param path the path to a file on the local file system to be parsed.
1455
+ * @returns a GeglNode containing the parsed XML as a subgraph.
1456
+ */
1457
+ static new_from_file(path: string | null): Node
1458
+ static new_from_serialized(chaindata: string | null, path_root: string | null): Node
1459
+ /**
1460
+ * The #GeglNode returned contains the graph described by the tree of stacks
1461
+ * in the XML document. The tree is connected to the "output" pad of the
1462
+ * returned node and thus can be used directly for processing.
1463
+ * @constructor
1464
+ * @param xmldata a \0 terminated string containing XML data to be parsed.
1465
+ * @param path_root a file system path that relative paths in the XML will be resolved in relation to.
1466
+ * @returns a GeglNode containing the parsed XML as a subgraph.
1467
+ */
1468
+ static new_from_xml(xmldata: string | null, path_root: string | null): Node
1469
+ _init(config?: Node.ConstructorProperties): void
1470
+ }
1471
+
1472
+ module Operation {
1473
+
1474
+ // Constructor properties interface
1475
+
1476
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1477
+ }
1478
+
1479
+ }
1480
+
1481
+ interface Operation {
1482
+
1483
+ // Class property signals of Gegl-0.3.Gegl.Operation
1484
+
1485
+ connect(sigName: string, callback: (...args: any[]) => void): number
1486
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1487
+ emit(sigName: string, ...args: any[]): void
1488
+ disconnect(id: number): void
1489
+ }
1490
+
1491
+ class Operation extends GObject.Object {
1492
+
1493
+ // Own properties of Gegl-0.3.Gegl.Operation
1494
+
1495
+ static name: string
1496
+ static $gtype: GObject.GType<Operation>
1497
+
1498
+ // Constructors of Gegl-0.3.Gegl.Operation
1499
+
1500
+ constructor(config?: Operation.ConstructorProperties)
1501
+ _init(config?: Operation.ConstructorProperties): void
1502
+ static find_property(operation_type: string | null, property_name: string | null): GObject.ParamSpec
1503
+ static get_key(operation_type: string | null, key_name: string | null): string | null
1504
+ static get_op_version(op_name: string | null): string | null
1505
+ static get_property_key(operation_type: string | null, property_name: string | null, property_key_name: string | null): string | null
1506
+ static list_keys(operation_type: string | null): string[]
1507
+ static list_properties(operation_type: string | null): GObject.ParamSpec[]
1508
+ static list_property_keys(operation_type: string | null, property_name: string | null): string[]
1509
+ }
1510
+
1511
+ interface ParamAudioFragment {
1512
+ }
1513
+
1514
+ class ParamAudioFragment extends GObject.ParamSpec {
1515
+
1516
+ // Own properties of Gegl-0.3.Gegl.ParamAudioFragment
1517
+
1518
+ static name: string
1519
+ }
1520
+
1521
+ interface ParamColor {
1522
+ }
1523
+
1524
+ class ParamColor extends GObject.ParamSpec {
1525
+
1526
+ // Own properties of Gegl-0.3.Gegl.ParamColor
1527
+
1528
+ static name: string
1529
+ }
1530
+
1531
+ interface ParamCurve {
1532
+ }
1533
+
1534
+ class ParamCurve extends GObject.ParamSpec {
1535
+
1536
+ // Own properties of Gegl-0.3.Gegl.ParamCurve
1537
+
1538
+ static name: string
1539
+ }
1540
+
1541
+ interface ParamDouble {
1542
+ }
1543
+
1544
+ class ParamDouble extends GObject.ParamSpecDouble {
1545
+
1546
+ // Own properties of Gegl-0.3.Gegl.ParamDouble
1547
+
1548
+ static name: string
1549
+ }
1550
+
1551
+ interface ParamEnum {
1552
+ }
1553
+
1554
+ class ParamEnum extends GObject.ParamSpecEnum {
1555
+
1556
+ // Own properties of Gegl-0.3.Gegl.ParamEnum
1557
+
1558
+ static name: string
1559
+ }
1560
+
1561
+ interface ParamFilePath {
1562
+ }
1563
+
1564
+ class ParamFilePath extends GObject.ParamSpecString {
1565
+
1566
+ // Own properties of Gegl-0.3.Gegl.ParamFilePath
1567
+
1568
+ static name: string
1569
+ }
1570
+
1571
+ interface ParamFormat {
1572
+ }
1573
+
1574
+ class ParamFormat extends GObject.ParamSpecPointer {
1575
+
1576
+ // Own properties of Gegl-0.3.Gegl.ParamFormat
1577
+
1578
+ static name: string
1579
+ }
1580
+
1581
+ interface ParamInt {
1582
+ }
1583
+
1584
+ class ParamInt extends GObject.ParamSpecInt {
1585
+
1586
+ // Own properties of Gegl-0.3.Gegl.ParamInt
1587
+
1588
+ static name: string
1589
+ }
1590
+
1591
+ interface ParamPath {
1592
+ }
1593
+
1594
+ class ParamPath extends GObject.ParamSpec {
1595
+
1596
+ // Own properties of Gegl-0.3.Gegl.ParamPath
1597
+
1598
+ static name: string
1599
+ }
1600
+
1601
+ interface ParamSeed {
1602
+ }
1603
+
1604
+ class ParamSeed extends GObject.ParamSpecUInt {
1605
+
1606
+ // Own properties of Gegl-0.3.Gegl.ParamSeed
1607
+
1608
+ static name: string
1609
+ }
1610
+
1611
+ interface ParamString {
1612
+ }
1613
+
1614
+ class ParamString extends GObject.ParamSpecString {
1615
+
1616
+ // Own properties of Gegl-0.3.Gegl.ParamString
1617
+
1618
+ static name: string
1619
+ }
1620
+
1621
+ interface ParamUri {
1622
+ }
1623
+
1624
+ class ParamUri extends GObject.ParamSpecString {
1625
+
1626
+ // Own properties of Gegl-0.3.Gegl.ParamUri
1627
+
1628
+ static name: string
1629
+ }
1630
+
1631
+ module Path {
1632
+
1633
+ // Signal callback interfaces
1634
+
1635
+ /**
1636
+ * Signal callback interface for `changed`
1637
+ */
1638
+ interface ChangedSignalCallback {
1639
+ ($obj: Path, object: any | null): void
1640
+ }
1641
+
1642
+
1643
+ // Constructor properties interface
1644
+
1645
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1646
+ }
1647
+
1648
+ }
1649
+
1650
+ interface Path {
1651
+
1652
+ // Own fields of Gegl-0.3.Gegl.Path
1653
+
1654
+ parent_instance: GObject.Object
1655
+
1656
+ // Owm methods of Gegl-0.3.Gegl.Path
1657
+
1658
+ /**
1659
+ * Compute the coordinates of the path at the `position` (length measured from
1660
+ * start of path, not including discontinuities).
1661
+ * @param pos how far along the path.
1662
+ */
1663
+ calc(pos: number): [ /* returnType */ boolean, /* x */ number, /* y */ number ]
1664
+ /**
1665
+ * Compute a corresponding y coordinate for a given x input coordinate,
1666
+ * returns 0 if computed correctly and -1 if the path doesn't exist for the
1667
+ * specified x coordinate.
1668
+ * @param x x coordinate to compute for
1669
+ */
1670
+ calc_y_for_x(x: number): [ /* returnType */ number, /* y */ number ]
1671
+ /**
1672
+ * Remove all nods from a `path`.
1673
+ */
1674
+ clear(): void
1675
+ /**
1676
+ * Figure out what and where on a path is closest to arbitrary coordinates.
1677
+ *
1678
+ * Returns the length along the path where the closest point was encountered.
1679
+ * @param x x coordinate.
1680
+ * @param y y coordinate
1681
+ */
1682
+ closest_point(x: number, y: number): [ /* returnType */ number, /* on_path_x */ number, /* on_path_y */ number, /* node_pos_before */ number ]
1683
+ /**
1684
+ * Execute a provided function for every node in the path (useful for
1685
+ * drawing and otherwise traversing a path.)
1686
+ * @param each_item a function to call for each node in the path.
1687
+ */
1688
+ foreach(each_item: NodeFunction): void
1689
+ /**
1690
+ * Execute a provided function for the segments of a poly line approximating
1691
+ * the path.
1692
+ * @param each_item a function to call for each node in the path.
1693
+ */
1694
+ foreach_flat(each_item: NodeFunction): void
1695
+ /**
1696
+ * Make the `GeglPath` stop firing signals as it changes must be paired with a
1697
+ * gegl_path_thaw() for the signals to start again.
1698
+ */
1699
+ freeze(): void
1700
+ /**
1701
+ * Compute the bounding box of a path.
1702
+ */
1703
+ get_bounds(): [ /* min_x */ number, /* max_x */ number, /* min_y */ number, /* max_y */ number ]
1704
+ /**
1705
+ * Returns the total length of the path.
1706
+ * @returns the length of the path.
1707
+ */
1708
+ get_length(): number
1709
+ /**
1710
+ * Get the transformation matrix of the path.
1711
+ */
1712
+ get_matrix(): /* matrix */ Matrix3
1713
+ /**
1714
+ * Retrieves the number of nodes in the path.
1715
+ * @returns the number of nodes in the path.
1716
+ */
1717
+ get_n_nodes(): number
1718
+ /**
1719
+ * Retrieve the node of the path at position `pos`.
1720
+ *
1721
+ * Returns TRUE if the node was successfully retrieved.
1722
+ * @param index the node number to retrieve
1723
+ */
1724
+ get_node(index: number): [ /* returnType */ boolean, /* node */ PathItem ]
1725
+ /**
1726
+ * Insert the new node `node` at position `pos` in `path`.
1727
+ * if `pos` = -1, the node is added in the last position.
1728
+ * @param pos the position we want the new node to have.
1729
+ * @param node pointer to a structure describing the GeglPathItem we want to store
1730
+ */
1731
+ insert_node(pos: number, node: PathItem): void
1732
+ /**
1733
+ * Check if the path contains any nodes.
1734
+ *
1735
+ * Returns TRUE if the path has no nodes.
1736
+ */
1737
+ is_empty(): boolean
1738
+ /**
1739
+ * Parses `instructions` and appends corresponding nodes to path (call
1740
+ * gegl_path_clean() first if you want to replace the existing path.
1741
+ * @param instructions a string describing a path.
1742
+ */
1743
+ parse_string(instructions: string | null): void
1744
+ /**
1745
+ * Removes the node number `pos` in `path`.
1746
+ * @param pos a node in the path.
1747
+ */
1748
+ remove_node(pos: number): void
1749
+ /**
1750
+ * Replaces the exiting node at position `pos` in `path`.
1751
+ * @param pos the position we want the new node to have.
1752
+ * @param node pointer to a structure describing the GeglPathItem we want to store.
1753
+ */
1754
+ replace_node(pos: number, node: PathItem): void
1755
+ /**
1756
+ * Set the transformation matrix of the path.
1757
+ *
1758
+ * The path is transformed through this matrix when being evaluated,
1759
+ * causing the calculated positions and length to be changed by the transform.
1760
+ * @param matrix a #GeglMatrix3 to copy the matrix from
1761
+ */
1762
+ set_matrix(matrix: Matrix3): void
1763
+ /**
1764
+ * Restart firing signals (unless the path has been frozen multiple times).
1765
+ */
1766
+ thaw(): void
1767
+ /**
1768
+ * Serialize the paths nodes to a string.
1769
+ * @returns return a string with instructions describing the string you need to free this with g_free().
1770
+ */
1771
+ to_string(): string | null
1772
+
1773
+ // Own signals of Gegl-0.3.Gegl.Path
1774
+
1775
+ connect(sigName: "changed", callback: Path.ChangedSignalCallback): number
1776
+ connect_after(sigName: "changed", callback: Path.ChangedSignalCallback): number
1777
+ emit(sigName: "changed", object: any | null, ...args: any[]): void
1778
+
1779
+ // Class property signals of Gegl-0.3.Gegl.Path
1780
+
1781
+ connect(sigName: string, callback: (...args: any[]) => void): number
1782
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1783
+ emit(sigName: string, ...args: any[]): void
1784
+ disconnect(id: number): void
1785
+ }
1786
+
1787
+ class Path extends GObject.Object {
1788
+
1789
+ // Own properties of Gegl-0.3.Gegl.Path
1790
+
1791
+ static name: string
1792
+ static $gtype: GObject.GType<Path>
1793
+
1794
+ // Constructors of Gegl-0.3.Gegl.Path
1795
+
1796
+ constructor(config?: Path.ConstructorProperties)
1797
+ /**
1798
+ * Creates a new #GeglPath with no nodes.
1799
+ *
1800
+ * Returns the newly created #GeglPath
1801
+ * @constructor
1802
+ */
1803
+ constructor()
1804
+ /**
1805
+ * Creates a new #GeglPath with no nodes.
1806
+ *
1807
+ * Returns the newly created #GeglPath
1808
+ * @constructor
1809
+ */
1810
+ static new(): Path
1811
+ /**
1812
+ * Creates a new #GeglPath with the nodes described in the string
1813
+ * `instructions`. See gegl_path_parse_string() for details of the
1814
+ * format of the string.
1815
+ *
1816
+ * Returns the newly created #GeglPath
1817
+ * @constructor
1818
+ * @param instructions a string describing the path.
1819
+ */
1820
+ static new_from_string(instructions: string | null): Path
1821
+ _init(config?: Path.ConstructorProperties): void
1822
+ /**
1823
+ * Adds a new type to the path system, FIXME this should probably
1824
+ * return something on registration conflicts, for now it expects
1825
+ * all registered paths to be aware of each other.
1826
+ * @param type a gchar to recognize in path descriptions.
1827
+ * @param items the number of floating point data items the instruction takes
1828
+ * @param description a human readable description of this entry
1829
+ */
1830
+ static add_type(type: number, items: number, description: string | null): void
1831
+ }
1832
+
1833
+ module Processor {
1834
+
1835
+ // Constructor properties interface
1836
+
1837
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1838
+
1839
+ // Own constructor properties of Gegl-0.3.Gegl.Processor
1840
+
1841
+ chunksize?: number | null
1842
+ node?: Node | null
1843
+ progress?: number | null
1844
+ rectangle?: any | null
1845
+ }
1846
+
1847
+ }
1848
+
1849
+ interface Processor {
1850
+
1851
+ // Own properties of Gegl-0.3.Gegl.Processor
1852
+
1853
+ readonly chunksize: number
1854
+ node: Node
1855
+ progress: number
1856
+ rectangle: any
1857
+
1858
+ // Owm methods of Gegl-0.3.Gegl.Processor
1859
+
1860
+ set_level(level: number): void
1861
+ /**
1862
+ * Change the rectangle a #GeglProcessor is working on.
1863
+ * @param rectangle the new #GeglRectangle the processor shold work on or NULL to make it work on all data in the buffer.
1864
+ */
1865
+ set_rectangle(rectangle: Rectangle): void
1866
+ set_scale(scale: number): void
1867
+ /**
1868
+ * Do an iteration of work for the processor.
1869
+ *
1870
+ * Returns TRUE if there is more work to be done.
1871
+ *
1872
+ * ---
1873
+ * GeglProcessor *processor = gegl_node_new_processor (node, &roi);
1874
+ * double progress;
1875
+ *
1876
+ * while (gegl_processor_work (processor, &progress))
1877
+ * g_warning ("%f%% complete", progress);
1878
+ * g_object_unref (processor);
1879
+ */
1880
+ work(): [ /* returnType */ boolean, /* progress */ number ]
1881
+
1882
+ // Class property signals of Gegl-0.3.Gegl.Processor
1883
+
1884
+ connect(sigName: "notify::chunksize", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1885
+ connect_after(sigName: "notify::chunksize", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1886
+ emit(sigName: "notify::chunksize", ...args: any[]): void
1887
+ connect(sigName: "notify::node", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1888
+ connect_after(sigName: "notify::node", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1889
+ emit(sigName: "notify::node", ...args: any[]): void
1890
+ connect(sigName: "notify::progress", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1891
+ connect_after(sigName: "notify::progress", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1892
+ emit(sigName: "notify::progress", ...args: any[]): void
1893
+ connect(sigName: "notify::rectangle", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1894
+ connect_after(sigName: "notify::rectangle", callback: (($obj: Processor, pspec: GObject.ParamSpec) => void)): number
1895
+ emit(sigName: "notify::rectangle", ...args: any[]): void
1896
+ connect(sigName: string, callback: (...args: any[]) => void): number
1897
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1898
+ emit(sigName: string, ...args: any[]): void
1899
+ disconnect(id: number): void
1900
+ }
1901
+
1902
+ class Processor extends GObject.Object {
1903
+
1904
+ // Own properties of Gegl-0.3.Gegl.Processor
1905
+
1906
+ static name: string
1907
+ static $gtype: GObject.GType<Processor>
1908
+
1909
+ // Constructors of Gegl-0.3.Gegl.Processor
1910
+
1911
+ constructor(config?: Processor.ConstructorProperties)
1912
+ _init(config?: Processor.ConstructorProperties): void
1913
+ }
1914
+
1915
+ module Stats {
1916
+
1917
+ // Constructor properties interface
1918
+
1919
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1920
+ }
1921
+
1922
+ }
1923
+
1924
+ interface Stats {
1925
+
1926
+ // Own properties of Gegl-0.3.Gegl.Stats
1927
+
1928
+ readonly swap_busy: boolean
1929
+ readonly swap_file_size: number
1930
+ readonly swap_total: number
1931
+ readonly tile_cache_hits: number
1932
+ readonly tile_cache_misses: number
1933
+ readonly tile_cache_total: number
1934
+ readonly tile_cache_total_max: number
1935
+ readonly tile_cache_total_uncloned: number
1936
+ readonly zoom_total: number
1937
+
1938
+ // Class property signals of Gegl-0.3.Gegl.Stats
1939
+
1940
+ connect(sigName: "notify::swap-busy", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1941
+ connect_after(sigName: "notify::swap-busy", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1942
+ emit(sigName: "notify::swap-busy", ...args: any[]): void
1943
+ connect(sigName: "notify::swap-file-size", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1944
+ connect_after(sigName: "notify::swap-file-size", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1945
+ emit(sigName: "notify::swap-file-size", ...args: any[]): void
1946
+ connect(sigName: "notify::swap-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1947
+ connect_after(sigName: "notify::swap-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1948
+ emit(sigName: "notify::swap-total", ...args: any[]): void
1949
+ connect(sigName: "notify::tile-cache-hits", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1950
+ connect_after(sigName: "notify::tile-cache-hits", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1951
+ emit(sigName: "notify::tile-cache-hits", ...args: any[]): void
1952
+ connect(sigName: "notify::tile-cache-misses", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1953
+ connect_after(sigName: "notify::tile-cache-misses", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1954
+ emit(sigName: "notify::tile-cache-misses", ...args: any[]): void
1955
+ connect(sigName: "notify::tile-cache-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1956
+ connect_after(sigName: "notify::tile-cache-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1957
+ emit(sigName: "notify::tile-cache-total", ...args: any[]): void
1958
+ connect(sigName: "notify::tile-cache-total-max", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1959
+ connect_after(sigName: "notify::tile-cache-total-max", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1960
+ emit(sigName: "notify::tile-cache-total-max", ...args: any[]): void
1961
+ connect(sigName: "notify::tile-cache-total-uncloned", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1962
+ connect_after(sigName: "notify::tile-cache-total-uncloned", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1963
+ emit(sigName: "notify::tile-cache-total-uncloned", ...args: any[]): void
1964
+ connect(sigName: "notify::zoom-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1965
+ connect_after(sigName: "notify::zoom-total", callback: (($obj: Stats, pspec: GObject.ParamSpec) => void)): number
1966
+ emit(sigName: "notify::zoom-total", ...args: any[]): void
1967
+ connect(sigName: string, callback: (...args: any[]) => void): number
1968
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1969
+ emit(sigName: string, ...args: any[]): void
1970
+ disconnect(id: number): void
1971
+ }
1972
+
1973
+ class Stats extends GObject.Object {
1974
+
1975
+ // Own properties of Gegl-0.3.Gegl.Stats
1976
+
1977
+ static name: string
1978
+ static $gtype: GObject.GType<Stats>
1979
+
1980
+ // Constructors of Gegl-0.3.Gegl.Stats
1981
+
1982
+ constructor(config?: Stats.ConstructorProperties)
1983
+ _init(config?: Stats.ConstructorProperties): void
1984
+ }
1985
+
1986
+ module TileBackend {
1987
+
1988
+ // Constructor properties interface
1989
+
1990
+ interface ConstructorProperties extends TileSource.ConstructorProperties {
1991
+
1992
+ // Own constructor properties of Gegl-0.3.Gegl.TileBackend
1993
+
1994
+ flush_on_destroy?: boolean | null
1995
+ format?: any | null
1996
+ tile_height?: number | null
1997
+ tile_width?: number | null
1998
+ }
1999
+
2000
+ }
2001
+
2002
+ interface TileBackend {
2003
+
2004
+ // Own properties of Gegl-0.3.Gegl.TileBackend
2005
+
2006
+ flush_on_destroy: boolean
2007
+ readonly format: any
2008
+ readonly px_size: number
2009
+ readonly tile_height: number
2010
+ readonly tile_size: number
2011
+ readonly tile_width: number
2012
+
2013
+ // Own fields of Gegl-0.3.Gegl.TileBackend
2014
+
2015
+ parent_instance: TileSource & GObject.Object
2016
+ priv: TileBackendPrivate
2017
+
2018
+ // Owm methods of Gegl-0.3.Gegl.TileBackend
2019
+
2020
+ get_extent(): Rectangle
2021
+ get_flush_on_destroy(): boolean
2022
+ get_tile_height(): number
2023
+ get_tile_size(): number
2024
+ get_tile_width(): number
2025
+ /**
2026
+ * Gets a pointer to the GeglTileStorage that uses the backend
2027
+ * @returns the #GeglTileStorage
2028
+ */
2029
+ peek_storage(): TileSource
2030
+ /**
2031
+ * Specify the extent of the backend, can be used to pre-prime the
2032
+ * backend with the width/height information when constructing proxy
2033
+ * GeglBuffers to interact with other systems
2034
+ * @param rectangle the new extent
2035
+ */
2036
+ set_extent(rectangle: Rectangle): void
2037
+ /**
2038
+ * Control whether cached data will be written to the backend before it
2039
+ * is destroyed. If false unwritten data will be discarded.
2040
+ * @param flush_on_destroy true if the backend needs to be flushed
2041
+ */
2042
+ set_flush_on_destroy(flush_on_destroy: boolean): void
2043
+
2044
+ // Class property signals of Gegl-0.3.Gegl.TileBackend
2045
+
2046
+ connect(sigName: "notify::flush-on-destroy", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2047
+ connect_after(sigName: "notify::flush-on-destroy", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2048
+ emit(sigName: "notify::flush-on-destroy", ...args: any[]): void
2049
+ connect(sigName: "notify::format", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2050
+ connect_after(sigName: "notify::format", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2051
+ emit(sigName: "notify::format", ...args: any[]): void
2052
+ connect(sigName: "notify::px-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2053
+ connect_after(sigName: "notify::px-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2054
+ emit(sigName: "notify::px-size", ...args: any[]): void
2055
+ connect(sigName: "notify::tile-height", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2056
+ connect_after(sigName: "notify::tile-height", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2057
+ emit(sigName: "notify::tile-height", ...args: any[]): void
2058
+ connect(sigName: "notify::tile-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2059
+ connect_after(sigName: "notify::tile-size", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2060
+ emit(sigName: "notify::tile-size", ...args: any[]): void
2061
+ connect(sigName: "notify::tile-width", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2062
+ connect_after(sigName: "notify::tile-width", callback: (($obj: TileBackend, pspec: GObject.ParamSpec) => void)): number
2063
+ emit(sigName: "notify::tile-width", ...args: any[]): void
2064
+ connect(sigName: string, callback: (...args: any[]) => void): number
2065
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2066
+ emit(sigName: string, ...args: any[]): void
2067
+ disconnect(id: number): void
2068
+ }
2069
+
2070
+ class TileBackend extends TileSource {
2071
+
2072
+ // Own properties of Gegl-0.3.Gegl.TileBackend
2073
+
2074
+ static name: string
2075
+ static $gtype: GObject.GType<TileBackend>
2076
+
2077
+ // Constructors of Gegl-0.3.Gegl.TileBackend
2078
+
2079
+ constructor(config?: TileBackend.ConstructorProperties)
2080
+ _init(config?: TileBackend.ConstructorProperties): void
2081
+ /**
2082
+ * Delete a swap file from disk. This must be used by tile backends which may
2083
+ * swap to disk under certain circonstances.
2084
+ *
2085
+ * For safety, this function will check that the swap file is in the swap
2086
+ * directory before deletion but it won't perform any other check.
2087
+ * @param path the path where the gegl tile backend has swapped.
2088
+ */
2089
+ static unlink_swap(path: string | null): void
2090
+ }
2091
+
2092
+ module TileHandler {
2093
+
2094
+ // Constructor properties interface
2095
+
2096
+ interface ConstructorProperties extends TileSource.ConstructorProperties {
2097
+
2098
+ // Own constructor properties of Gegl-0.3.Gegl.TileHandler
2099
+
2100
+ source?: GObject.Object | null
2101
+ }
2102
+
2103
+ }
2104
+
2105
+ interface TileHandler {
2106
+
2107
+ // Own fields of Gegl-0.3.Gegl.TileHandler
2108
+
2109
+ parent_instance: TileSource & GObject.Object
2110
+ source: TileSource
2111
+ priv: TileHandlerPrivate
2112
+
2113
+ // Owm methods of Gegl-0.3.Gegl.TileHandler
2114
+
2115
+ damage_rect(rect: Rectangle): void
2116
+ set_source(source: TileSource): void
2117
+
2118
+ // Class property signals of Gegl-0.3.Gegl.TileHandler
2119
+
2120
+ connect(sigName: string, callback: (...args: any[]) => void): number
2121
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2122
+ emit(sigName: string, ...args: any[]): void
2123
+ disconnect(id: number): void
2124
+ }
2125
+
2126
+ class TileHandler extends TileSource {
2127
+
2128
+ // Own properties of Gegl-0.3.Gegl.TileHandler
2129
+
2130
+ static name: string
2131
+ static $gtype: GObject.GType<TileHandler>
2132
+
2133
+ // Constructors of Gegl-0.3.Gegl.TileHandler
2134
+
2135
+ constructor(config?: TileHandler.ConstructorProperties)
2136
+ _init(config?: TileHandler.ConstructorProperties): void
2137
+ }
2138
+
2139
+ module TileSource {
2140
+
2141
+ // Constructor properties interface
2142
+
2143
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2144
+ }
2145
+
2146
+ }
2147
+
2148
+ interface TileSource {
2149
+
2150
+ // Own fields of Gegl-0.3.Gegl.TileSource
2151
+
2152
+ parent_instance: GObject.Object
2153
+ command: TileSourceCommand
2154
+ padding: any[]
2155
+
2156
+ // Class property signals of Gegl-0.3.Gegl.TileSource
2157
+
2158
+ connect(sigName: string, callback: (...args: any[]) => void): number
2159
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2160
+ emit(sigName: string, ...args: any[]): void
2161
+ disconnect(id: number): void
2162
+ }
2163
+
2164
+ class TileSource extends GObject.Object {
2165
+
2166
+ // Own properties of Gegl-0.3.Gegl.TileSource
2167
+
2168
+ static name: string
2169
+ static $gtype: GObject.GType<TileSource>
2170
+
2171
+ // Constructors of Gegl-0.3.Gegl.TileSource
2172
+
2173
+ constructor(config?: TileSource.ConstructorProperties)
2174
+ _init(config?: TileSource.ConstructorProperties): void
2175
+ }
2176
+
2177
+ interface AudioFragmentClass {
2178
+
2179
+ // Own fields of Gegl-0.3.Gegl.AudioFragmentClass
2180
+
2181
+ parent_class: GObject.ObjectClass
2182
+ }
2183
+
2184
+ abstract class AudioFragmentClass {
2185
+
2186
+ // Own properties of Gegl-0.3.Gegl.AudioFragmentClass
2187
+
2188
+ static name: string
2189
+ }
2190
+
2191
+ interface AudioFragmentPrivate {
2192
+ }
2193
+
2194
+ class AudioFragmentPrivate {
2195
+
2196
+ // Own properties of Gegl-0.3.Gegl.AudioFragmentPrivate
2197
+
2198
+ static name: string
2199
+ }
2200
+
2201
+ interface BufferIterator {
2202
+
2203
+ // Own fields of Gegl-0.3.Gegl.BufferIterator
2204
+
2205
+ length: number
2206
+ data: any[]
2207
+ roi: Rectangle[]
2208
+ priv: BufferIteratorPriv
2209
+ }
2210
+
2211
+ class BufferIterator {
2212
+
2213
+ // Own properties of Gegl-0.3.Gegl.BufferIterator
2214
+
2215
+ static name: string
2216
+ }
2217
+
2218
+ interface BufferIteratorPriv {
2219
+ }
2220
+
2221
+ class BufferIteratorPriv {
2222
+
2223
+ // Own properties of Gegl-0.3.Gegl.BufferIteratorPriv
2224
+
2225
+ static name: string
2226
+ }
2227
+
2228
+ interface ColorClass {
2229
+
2230
+ // Own fields of Gegl-0.3.Gegl.ColorClass
2231
+
2232
+ parent_class: GObject.ObjectClass
2233
+ }
2234
+
2235
+ abstract class ColorClass {
2236
+
2237
+ // Own properties of Gegl-0.3.Gegl.ColorClass
2238
+
2239
+ static name: string
2240
+ }
2241
+
2242
+ interface ColorPrivate {
2243
+ }
2244
+
2245
+ class ColorPrivate {
2246
+
2247
+ // Own properties of Gegl-0.3.Gegl.ColorPrivate
2248
+
2249
+ static name: string
2250
+ }
2251
+
2252
+ interface CurveClass {
2253
+
2254
+ // Own fields of Gegl-0.3.Gegl.CurveClass
2255
+
2256
+ parent_class: GObject.ObjectClass
2257
+ }
2258
+
2259
+ abstract class CurveClass {
2260
+
2261
+ // Own properties of Gegl-0.3.Gegl.CurveClass
2262
+
2263
+ static name: string
2264
+ }
2265
+
2266
+ interface Lookup {
2267
+
2268
+ // Own fields of Gegl-0.3.Gegl.Lookup
2269
+
2270
+ function_: LookupFunction
2271
+ data: any
2272
+ shift: number
2273
+ positive_min: number
2274
+ positive_max: number
2275
+ negative_min: number
2276
+ negative_max: number
2277
+ bitmask: number[]
2278
+ table: number[]
2279
+ }
2280
+
2281
+ class Lookup {
2282
+
2283
+ // Own properties of Gegl-0.3.Gegl.Lookup
2284
+
2285
+ static name: string
2286
+ }
2287
+
2288
+ interface Matrix2 {
2289
+
2290
+ // Own fields of Gegl-0.3.Gegl.Matrix2
2291
+
2292
+ coeff: number[]
2293
+
2294
+ // Owm methods of Gegl-0.3.Gegl.Matrix2
2295
+
2296
+ determinant(): number
2297
+ is_scale(): boolean
2298
+ }
2299
+
2300
+ class Matrix2 {
2301
+
2302
+ // Own properties of Gegl-0.3.Gegl.Matrix2
2303
+
2304
+ static name: string
2305
+ }
2306
+
2307
+ interface Matrix3 {
2308
+
2309
+ // Own fields of Gegl-0.3.Gegl.Matrix3
2310
+
2311
+ coeff: number[]
2312
+
2313
+ // Owm methods of Gegl-0.3.Gegl.Matrix3
2314
+
2315
+ /**
2316
+ * Returns a copy of `src`.
2317
+ */
2318
+ copy(): Matrix3
2319
+ /**
2320
+ * Copies the matrix in `src` into `dst`.
2321
+ * @param src a #GeglMatrix3
2322
+ */
2323
+ copy_into(src: Matrix3): void
2324
+ /**
2325
+ * Returns the determinant for the matrix.
2326
+ */
2327
+ determinant(): number
2328
+ /**
2329
+ * Check if two matrices are equal.
2330
+ *
2331
+ * Returns TRUE if the matrices are equal.
2332
+ * @param matrix2 a #GeglMatrix3
2333
+ */
2334
+ equal(matrix2: Matrix3): boolean
2335
+ /**
2336
+ * Set the provided `matrix` to the identity matrix.
2337
+ */
2338
+ identity(): void
2339
+ /**
2340
+ * Inverts `matrix`.
2341
+ */
2342
+ invert(): void
2343
+ /**
2344
+ * Check if a matrix is the identity matrix.
2345
+ *
2346
+ * Returns TRUE if the matrix is the identity matrix.
2347
+ */
2348
+ is_identity(): boolean
2349
+ /**
2350
+ * Check if a matrix only does scaling.
2351
+ *
2352
+ * Returns TRUE if the matrix only does scaling.
2353
+ */
2354
+ is_scale(): boolean
2355
+ /**
2356
+ * Check if a matrix only does translation.
2357
+ *
2358
+ * Returns TRUE if the matrix only does trasnlation.
2359
+ */
2360
+ is_translate(): boolean
2361
+ /**
2362
+ * Multiples `product` = `left` · `right`
2363
+ * @param right a #GeglMatrix3
2364
+ * @param product a #GeglMatrix3 to store the result in.
2365
+ */
2366
+ multiply(right: Matrix3, product: Matrix3): void
2367
+ /**
2368
+ * Shift the origin of the transformation specified by `matrix`
2369
+ * to (`x,` `y)`. In other words, calculate the matrix that:
2370
+ *
2371
+ * 1. Translates the input by (-`x,` -`y)`.
2372
+ *
2373
+ * 2. Transforms the result using the original `matrix`.
2374
+ *
2375
+ * 3. Translates the result by (`x,` `y)`.
2376
+ * @param x x coordinate of new origin
2377
+ * @param y y coordinate of new origin.
2378
+ */
2379
+ originate(x: number, y: number): void
2380
+ /**
2381
+ * Parse a transofmation matrix from a string.
2382
+ * @param string a string describing the matrix (right now a small subset of the transform strings allowed by SVG)
2383
+ */
2384
+ parse_string(string: string | null): void
2385
+ /**
2386
+ * Serialize a #GeglMatrix3 to a string.
2387
+ *
2388
+ * Returns a freshly allocated string representing that #GeglMatrix3, the
2389
+ * returned string should be g_free()'d.
2390
+ */
2391
+ to_string(): string | null
2392
+ /**
2393
+ * transforms the coordinates provided in `x` and `y` and changes to the
2394
+ * coordinates gotten when the transformed with the matrix.
2395
+ * @param x pointer to an x coordinate
2396
+ * @param y pointer to an y coordinate
2397
+ */
2398
+ transform_point(x: number, y: number): void
2399
+ }
2400
+
2401
+ class Matrix3 {
2402
+
2403
+ // Own properties of Gegl-0.3.Gegl.Matrix3
2404
+
2405
+ static name: string
2406
+
2407
+ // Constructors of Gegl-0.3.Gegl.Matrix3
2408
+
2409
+ constructor()
2410
+ static new(): Matrix3
2411
+ }
2412
+
2413
+ interface OperationContext {
2414
+ }
2415
+
2416
+ class OperationContext {
2417
+
2418
+ // Own properties of Gegl-0.3.Gegl.OperationContext
2419
+
2420
+ static name: string
2421
+ }
2422
+
2423
+ interface ParamSpecDouble {
2424
+
2425
+ // Own fields of Gegl-0.3.Gegl.ParamSpecDouble
2426
+
2427
+ parent_instance: GObject.ParamSpecDouble
2428
+ ui_minimum: number
2429
+ ui_maximum: number
2430
+ ui_gamma: number
2431
+ ui_step_small: number
2432
+ ui_step_big: number
2433
+ ui_digits: number
2434
+
2435
+ // Owm methods of Gegl-0.3.Gegl.ParamSpecDouble
2436
+
2437
+ set_digits(digits: number): void
2438
+ set_steps(small_step: number, big_step: number): void
2439
+ }
2440
+
2441
+ class ParamSpecDouble {
2442
+
2443
+ // Own properties of Gegl-0.3.Gegl.ParamSpecDouble
2444
+
2445
+ static name: string
2446
+ }
2447
+
2448
+ interface ParamSpecEnum {
2449
+
2450
+ // Own fields of Gegl-0.3.Gegl.ParamSpecEnum
2451
+
2452
+ parent_instance: GObject.ParamSpecEnum
2453
+ excluded_values: any[]
2454
+
2455
+ // Owm methods of Gegl-0.3.Gegl.ParamSpecEnum
2456
+
2457
+ exclude_value(value: number): void
2458
+ }
2459
+
2460
+ class ParamSpecEnum {
2461
+
2462
+ // Own properties of Gegl-0.3.Gegl.ParamSpecEnum
2463
+
2464
+ static name: string
2465
+ }
2466
+
2467
+ interface ParamSpecFilePath {
2468
+
2469
+ // Own fields of Gegl-0.3.Gegl.ParamSpecFilePath
2470
+
2471
+ parent_instance: GObject.ParamSpecString
2472
+ no_validate: number
2473
+ null_ok: number
2474
+ }
2475
+
2476
+ class ParamSpecFilePath {
2477
+
2478
+ // Own properties of Gegl-0.3.Gegl.ParamSpecFilePath
2479
+
2480
+ static name: string
2481
+ }
2482
+
2483
+ interface ParamSpecFormat {
2484
+
2485
+ // Own fields of Gegl-0.3.Gegl.ParamSpecFormat
2486
+
2487
+ parent_instance: GObject.ParamSpecPointer
2488
+ }
2489
+
2490
+ class ParamSpecFormat {
2491
+
2492
+ // Own properties of Gegl-0.3.Gegl.ParamSpecFormat
2493
+
2494
+ static name: string
2495
+ }
2496
+
2497
+ interface ParamSpecInt {
2498
+
2499
+ // Own fields of Gegl-0.3.Gegl.ParamSpecInt
2500
+
2501
+ parent_instance: GObject.ParamSpecInt
2502
+ ui_minimum: number
2503
+ ui_maximum: number
2504
+ ui_gamma: number
2505
+ ui_step_small: number
2506
+ ui_step_big: number
2507
+
2508
+ // Owm methods of Gegl-0.3.Gegl.ParamSpecInt
2509
+
2510
+ set_steps(small_step: number, big_step: number): void
2511
+ }
2512
+
2513
+ class ParamSpecInt {
2514
+
2515
+ // Own properties of Gegl-0.3.Gegl.ParamSpecInt
2516
+
2517
+ static name: string
2518
+ }
2519
+
2520
+ interface ParamSpecSeed {
2521
+
2522
+ // Own fields of Gegl-0.3.Gegl.ParamSpecSeed
2523
+
2524
+ parent_instance: GObject.ParamSpecUInt
2525
+ ui_minimum: number
2526
+ ui_maximum: number
2527
+ }
2528
+
2529
+ class ParamSpecSeed {
2530
+
2531
+ // Own properties of Gegl-0.3.Gegl.ParamSpecSeed
2532
+
2533
+ static name: string
2534
+ }
2535
+
2536
+ interface ParamSpecString {
2537
+
2538
+ // Own fields of Gegl-0.3.Gegl.ParamSpecString
2539
+
2540
+ parent_instance: GObject.ParamSpecString
2541
+ no_validate: number
2542
+ null_ok: number
2543
+ }
2544
+
2545
+ class ParamSpecString {
2546
+
2547
+ // Own properties of Gegl-0.3.Gegl.ParamSpecString
2548
+
2549
+ static name: string
2550
+ }
2551
+
2552
+ interface ParamSpecUri {
2553
+
2554
+ // Own fields of Gegl-0.3.Gegl.ParamSpecUri
2555
+
2556
+ parent_instance: GObject.ParamSpecString
2557
+ no_validate: number
2558
+ null_ok: number
2559
+ }
2560
+
2561
+ class ParamSpecUri {
2562
+
2563
+ // Own properties of Gegl-0.3.Gegl.ParamSpecUri
2564
+
2565
+ static name: string
2566
+ }
2567
+
2568
+ interface PathClass {
2569
+ }
2570
+
2571
+ abstract class PathClass {
2572
+
2573
+ // Own properties of Gegl-0.3.Gegl.PathClass
2574
+
2575
+ static name: string
2576
+ }
2577
+
2578
+ interface PathItem {
2579
+
2580
+ // Own fields of Gegl-0.3.Gegl.PathItem
2581
+
2582
+ type: number
2583
+ point: PathPoint[]
2584
+ }
2585
+
2586
+ class PathItem {
2587
+
2588
+ // Own properties of Gegl-0.3.Gegl.PathItem
2589
+
2590
+ static name: string
2591
+ }
2592
+
2593
+ interface PathList {
2594
+
2595
+ // Own fields of Gegl-0.3.Gegl.PathList
2596
+
2597
+ next: any
2598
+ d: PathItem
2599
+ }
2600
+
2601
+ class PathList {
2602
+
2603
+ // Own properties of Gegl-0.3.Gegl.PathList
2604
+
2605
+ static name: string
2606
+ }
2607
+
2608
+ interface PathPoint {
2609
+
2610
+ // Own fields of Gegl-0.3.Gegl.PathPoint
2611
+
2612
+ x: number
2613
+ y: number
2614
+ }
2615
+
2616
+ class PathPoint {
2617
+
2618
+ // Own properties of Gegl-0.3.Gegl.PathPoint
2619
+
2620
+ static name: string
2621
+ }
2622
+
2623
+ interface Random {
2624
+
2625
+ // Owm methods of Gegl-0.3.Gegl.Random
2626
+
2627
+ /**
2628
+ * Return a new copy of an existing GeglRandom
2629
+ */
2630
+ duplicate(): Random
2631
+ /**
2632
+ * Return a random floating point number in range 0.0 .. 1.0.
2633
+ * @param x x coordinate
2634
+ * @param y y coordinate
2635
+ * @param z z coordinate (mipmap level)
2636
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
2637
+ */
2638
+ float(x: number, y: number, z: number, n: number): number
2639
+ /**
2640
+ * Return a random floating point number in the range specified,
2641
+ * for the given x,y coordinates and GeglRandom provided, if multiple different
2642
+ * numbers are needed pass in incrementing n's.
2643
+ * @param x x coordinate
2644
+ * @param y y coordinate
2645
+ * @param z z coordinate (mipmap level)
2646
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
2647
+ * @param min minimum value
2648
+ * @param max maximum value
2649
+ */
2650
+ float_range(x: number, y: number, z: number, n: number, min: number, max: number): number
2651
+ /**
2652
+ * Free a GeglRandom structure created with gegl_random_new() or
2653
+ * gegl_random_new_with_seed()
2654
+ */
2655
+ free(): void
2656
+ /**
2657
+ * Return a random integer number in range 0 .. MAX_UINT
2658
+ * @param x x coordinate
2659
+ * @param y y coordinate
2660
+ * @param z z coordinate (mipmap level)
2661
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
2662
+ */
2663
+ int(x: number, y: number, z: number, n: number): number
2664
+ /**
2665
+ * Return a random integer point number in the range specified,
2666
+ * for the given x,y coordinates and GeglRandom provided, if multiple different
2667
+ * numbers are needed pass in incrementing n's.
2668
+ * @param x x coordinate
2669
+ * @param y y coordinate
2670
+ * @param z z coordinate (mipmap level)
2671
+ * @param n number no (each x,y coordinate provides its own sequence of numbers
2672
+ * @param min minimum value
2673
+ * @param max maximum value+1
2674
+ */
2675
+ int_range(x: number, y: number, z: number, n: number, min: number, max: number): number
2676
+ /**
2677
+ * Change the seed of an existing GeglRandom.
2678
+ * @param seed an integer seed, change for different permutation.
2679
+ */
2680
+ set_seed(seed: number): void
2681
+ }
2682
+
2683
+ class Random {
2684
+
2685
+ // Own properties of Gegl-0.3.Gegl.Random
2686
+
2687
+ static name: string
2688
+
2689
+ // Constructors of Gegl-0.3.Gegl.Random
2690
+
2691
+ /**
2692
+ * Creates a new random number generator initialized with a random seed.
2693
+ * This structure needs to be freed by the user with gegl_random_free();
2694
+ * @constructor
2695
+ */
2696
+ constructor()
2697
+ /**
2698
+ * Creates a new random number generator initialized with a random seed.
2699
+ * This structure needs to be freed by the user with gegl_random_free();
2700
+ * @constructor
2701
+ */
2702
+ static new(): Random
2703
+ /**
2704
+ * Return an opaque structure associated to the seed.
2705
+ * This structure needs to be freed by the user with gegl_random_free();
2706
+ * @constructor
2707
+ * @param seed an integer seed, change for different permutation.
2708
+ */
2709
+ static new_with_seed(seed: number): Random
2710
+ }
2711
+
2712
+ interface Rectangle {
2713
+
2714
+ // Own fields of Gegl-0.3.Gegl.Rectangle
2715
+
2716
+ x: number
2717
+ y: number
2718
+ width: number
2719
+ height: number
2720
+
2721
+ // Owm methods of Gegl-0.3.Gegl.Rectangle
2722
+
2723
+ /**
2724
+ * Computes the bounding box of the rectangles `source1` and `source2` and stores the
2725
+ * resulting bounding box in `destination`.
2726
+ *
2727
+ * `destination` may point to the same object as `source1` or `source2`.
2728
+ * @param source1 a #GeglRectangle
2729
+ * @param source2 a #GeglRectangle
2730
+ */
2731
+ bounding_box(source1: Rectangle, source2: Rectangle): void
2732
+ /**
2733
+ * Checks if the #GeglRectangle `child` is fully contained within `parent`.
2734
+ *
2735
+ * Returns TRUE if the `child` is fully contained in `parent`.
2736
+ * @param child a #GeglRectangle
2737
+ */
2738
+ contains(child: Rectangle): boolean
2739
+ /**
2740
+ * Copies the rectangle information stored in `source` over the information in
2741
+ * `destination`.
2742
+ *
2743
+ * `destination` may point to the same object as `source`.
2744
+ * @param source a #GeglRectangle
2745
+ */
2746
+ copy(source: Rectangle): void
2747
+ /**
2748
+ * For debugging purposes, not stable API.
2749
+ */
2750
+ dump(): void
2751
+ /**
2752
+ * Create a new copy of `rectangle`.
2753
+ * @returns a #GeglRectangle
2754
+ */
2755
+ dup(): Rectangle
2756
+ /**
2757
+ * Check if two #GeglRectangles are equal.
2758
+ *
2759
+ * Returns TRUE if `rectangle` and `rectangle2` are equal.
2760
+ * @param rectangle2 a #GeglRectangle
2761
+ */
2762
+ equal(rectangle2: Rectangle): boolean
2763
+ /**
2764
+ * Check if a rectangle is equal to a set of parameters.
2765
+ *
2766
+ * Returns TRUE if `rectangle` and `x,``y` `width` x `height` are equal.
2767
+ * @param x X coordinate
2768
+ * @param y Y coordinate
2769
+ * @param width width of rectangle
2770
+ * @param height height of rectangle
2771
+ */
2772
+ equal_coords(x: number, y: number, width: number, height: number): boolean
2773
+ /**
2774
+ * Calculates the intersection of two rectangles. If the rectangles do not
2775
+ * intersect, dest's width and height are set to 0 and its x and y values
2776
+ * are undefined.
2777
+ *
2778
+ * `dest` may point to the same object as `src1` or `src2`.
2779
+ *
2780
+ * Returns TRUE if the rectangles intersect.
2781
+ * @param src1 a #GeglRectangle
2782
+ * @param src2 a #GeglRectangle
2783
+ */
2784
+ intersect(src1: Rectangle, src2: Rectangle): boolean
2785
+ /**
2786
+ * Check if a rectangle has zero area.
2787
+ *
2788
+ * Returns TRUE if `rectangle` height and width are both zero.
2789
+ */
2790
+ is_empty(): boolean
2791
+ /**
2792
+ * Returns TRUE if the GeglRectangle represents an infininte plane,
2793
+ * FALSE otherwise.
2794
+ */
2795
+ is_infinite_plane(): boolean
2796
+ /**
2797
+ * Sets the `x,` `y,` `width` and `height` on `rectangle`.
2798
+ * @param x upper left x coordinate
2799
+ * @param y upper left y coordinate
2800
+ * @param width width in pixels.
2801
+ * @param height height in pixels.
2802
+ */
2803
+ set(x: number, y: number, width: number, height: number): void
2804
+ /**
2805
+ * Computes the bounding box of the area formed by subtracting `subtrahend`
2806
+ * from `minuend,` and stores the result in `destination`.
2807
+ *
2808
+ * `destination` may point to the same object as `minuend` or `subtrahend`.
2809
+ *
2810
+ * Returns TRUE if the result is not empty.
2811
+ * @param minuend a #GeglRectangle
2812
+ * @param subtrahend a #GeglRectangle
2813
+ */
2814
+ subtract_bounding_box(minuend: Rectangle, subtrahend: Rectangle): boolean
2815
+ }
2816
+
2817
+ class Rectangle {
2818
+
2819
+ // Own properties of Gegl-0.3.Gegl.Rectangle
2820
+
2821
+ static name: string
2822
+
2823
+ // Constructors of Gegl-0.3.Gegl.Rectangle
2824
+
2825
+ /**
2826
+ * Creates a new rectangle set with the values from `x,` `y,` `width` and `height`.
2827
+ * @constructor
2828
+ * @param x upper left x coordinate
2829
+ * @param y upper left y coordinate
2830
+ * @param width width in pixels.
2831
+ * @param height height in pixels.
2832
+ */
2833
+ constructor(x: number, y: number, width: number, height: number)
2834
+ /**
2835
+ * Creates a new rectangle set with the values from `x,` `y,` `width` and `height`.
2836
+ * @constructor
2837
+ * @param x upper left x coordinate
2838
+ * @param y upper left y coordinate
2839
+ * @param width width in pixels.
2840
+ * @param height height in pixels.
2841
+ */
2842
+ static new(x: number, y: number, width: number, height: number): Rectangle
2843
+ /**
2844
+ * Returns a GeglRectangle that represents an infininte plane.
2845
+ */
2846
+ static infinite_plane(): Rectangle
2847
+ }
2848
+
2849
+ interface Sampler {
2850
+
2851
+ // Owm methods of Gegl-0.3.Gegl.Sampler
2852
+
2853
+ /**
2854
+ * Perform a sampling with the provided `sampler`.
2855
+ * @param x x coordinate to sample
2856
+ * @param y y coordinate to sample
2857
+ * @param scale matrix representing extent of sampling area in source buffer.
2858
+ * @param output memory location for output data.
2859
+ * @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).
2860
+ */
2861
+ get(x: number, y: number, scale: Matrix2, output: any | null, repeat_mode: AbyssPolicy): void
2862
+ get_context_rect(): Rectangle
2863
+ }
2864
+
2865
+ class Sampler {
2866
+
2867
+ // Own properties of Gegl-0.3.Gegl.Sampler
2868
+
2869
+ static name: string
2870
+ }
2871
+
2872
+ interface Tile {
2873
+ }
2874
+
2875
+ class Tile {
2876
+
2877
+ // Own properties of Gegl-0.3.Gegl.Tile
2878
+
2879
+ static name: string
2880
+ }
2881
+
2882
+ interface TileBackendClass {
2883
+
2884
+ // Own fields of Gegl-0.3.Gegl.TileBackendClass
2885
+
2886
+ parent_class: TileSourceClass
2887
+ padding: any[]
2888
+ }
2889
+
2890
+ abstract class TileBackendClass {
2891
+
2892
+ // Own properties of Gegl-0.3.Gegl.TileBackendClass
2893
+
2894
+ static name: string
2895
+ }
2896
+
2897
+ interface TileBackendPrivate {
2898
+ }
2899
+
2900
+ class TileBackendPrivate {
2901
+
2902
+ // Own properties of Gegl-0.3.Gegl.TileBackendPrivate
2903
+
2904
+ static name: string
2905
+ }
2906
+
2907
+ interface TileHandlerClass {
2908
+
2909
+ // Own fields of Gegl-0.3.Gegl.TileHandlerClass
2910
+
2911
+ parent_class: TileSourceClass
2912
+ }
2913
+
2914
+ abstract class TileHandlerClass {
2915
+
2916
+ // Own properties of Gegl-0.3.Gegl.TileHandlerClass
2917
+
2918
+ static name: string
2919
+ }
2920
+
2921
+ interface TileHandlerPrivate {
2922
+ }
2923
+
2924
+ class TileHandlerPrivate {
2925
+
2926
+ // Own properties of Gegl-0.3.Gegl.TileHandlerPrivate
2927
+
2928
+ static name: string
2929
+ }
2930
+
2931
+ interface TileSourceClass {
2932
+
2933
+ // Own fields of Gegl-0.3.Gegl.TileSourceClass
2934
+
2935
+ parent_class: GObject.ObjectClass
2936
+ padding: any[]
2937
+ }
2938
+
2939
+ abstract class TileSourceClass {
2940
+
2941
+ // Own properties of Gegl-0.3.Gegl.TileSourceClass
2942
+
2943
+ static name: string
2944
+ }
2945
+
2946
+ /**
2947
+ * Name of the imported GIR library
2948
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
2949
+ */
2950
+ const __name__: string
2951
+ /**
2952
+ * Version of the imported GIR library
2953
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
2954
+ */
2955
+ const __version__: string
2956
+ }
2957
+
2958
+ export default Gegl;
2959
+ // END