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