@girs/gtef-2 2.0.0-3.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gtef-2.d.ts ADDED
@@ -0,0 +1,3241 @@
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
+ * Gtef-2
10
+ */
11
+
12
+ import type GtkSource from '@girs/gtksource-3.0';
13
+ import type Gtk from '@girs/gtk-3.0';
14
+ import type xlib from '@girs/xlib-2.0';
15
+ import type Gdk from '@girs/gdk-3.0';
16
+ import type cairo from '@girs/cairo-1.0';
17
+ import type Pango from '@girs/pango-1.0';
18
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
19
+ import type freetype2 from '@girs/freetype2-2.0';
20
+ import type GObject from '@girs/gobject-2.0';
21
+ import type GLib from '@girs/glib-2.0';
22
+ import type Gio from '@girs/gio-2.0';
23
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
24
+ import type GModule from '@girs/gmodule-2.0';
25
+ import type Atk from '@girs/atk-1.0';
26
+
27
+ export namespace Gtef {
28
+
29
+ enum CompressionType {
30
+ /**
31
+ * plain text.
32
+ */
33
+ NONE,
34
+ /**
35
+ * gzip compression.
36
+ */
37
+ GZIP,
38
+ }
39
+ /**
40
+ * An error code used with the %GTEF_FILE_LOADER_ERROR domain.
41
+ */
42
+ enum FileLoaderError {
43
+ /**
44
+ * The file is too big.
45
+ */
46
+ TOO_BIG,
47
+ /**
48
+ * It is not possible to
49
+ * detect the encoding automatically.
50
+ */
51
+ ENCODING_AUTO_DETECTION_FAILED,
52
+ }
53
+ /**
54
+ * An error code used with the %GTEF_FILE_SAVER_ERROR domain.
55
+ */
56
+ enum FileSaverError {
57
+ /**
58
+ * The buffer contains invalid
59
+ * characters.
60
+ */
61
+ INVALID_CHARS,
62
+ /**
63
+ * The file is externally
64
+ * modified.
65
+ */
66
+ EXTERNALLY_MODIFIED,
67
+ }
68
+ enum NewlineType {
69
+ /**
70
+ * line feed, used on UNIX.
71
+ */
72
+ LF,
73
+ /**
74
+ * carriage return, used on Mac.
75
+ */
76
+ CR,
77
+ /**
78
+ * carriage return followed by a line feed, used
79
+ * on Windows.
80
+ */
81
+ CR_LF,
82
+ }
83
+ enum SelectionType {
84
+ /**
85
+ * No selection.
86
+ */
87
+ NO_SELECTION,
88
+ /**
89
+ * The start and end selection bounds are on
90
+ * the same line.
91
+ */
92
+ ON_SAME_LINE,
93
+ /**
94
+ * The selection spans multiple lines.
95
+ */
96
+ MULTIPLE_LINES,
97
+ }
98
+ /**
99
+ * Flags to define the behavior of a #GtefFileSaver.
100
+ * @bitfield
101
+ */
102
+ enum FileSaverFlags {
103
+ /**
104
+ * No flags.
105
+ */
106
+ NONE,
107
+ /**
108
+ * Ignore invalid characters.
109
+ */
110
+ IGNORE_INVALID_CHARS,
111
+ /**
112
+ * Save file despite external modifications.
113
+ */
114
+ IGNORE_MODIFICATION_TIME,
115
+ /**
116
+ * Create a backup before saving the file.
117
+ */
118
+ CREATE_BACKUP,
119
+ }
120
+ /**
121
+ * The folding state at a certain line in the #GtkTextBuffer.
122
+ *
123
+ * Since #GtefGutterRendererFolds has a flat view of the folding tree, some
124
+ * states can be combined; for example, %GTEF_GUTTER_RENDERER_FOLDS_STATE_END
125
+ * and %GTEF_GUTTER_RENDERER_FOLDS_STATE_CONTINUE.
126
+ * @bitfield
127
+ */
128
+ enum GutterRendererFoldsState {
129
+ /**
130
+ * No code folding here.
131
+ */
132
+ NONE,
133
+ /**
134
+ * Start of currently folded
135
+ * fold region.
136
+ */
137
+ START_FOLDED,
138
+ /**
139
+ * Start of currently opened
140
+ * fold region.
141
+ */
142
+ START_OPENED,
143
+ /**
144
+ * Fold region continues.
145
+ */
146
+ CONTINUE,
147
+ /**
148
+ * End of fold region.
149
+ */
150
+ END,
151
+ }
152
+ /**
153
+ * A wrapper function for g_action_map_add_action_entries() that checks
154
+ * duplicates.
155
+ *
156
+ * This function first checks - for each entry - that the `action_map` doesn't
157
+ * already contain a #GAction with the same name. A warning is printed if an old
158
+ * action will be dropped. In any case, it then calls
159
+ * g_action_map_add_action_entries() with the same arguments as passed to this
160
+ * function.
161
+ *
162
+ * This function also checks if there are duplicates in the `entries` array
163
+ * itself.
164
+ * @param action_map a #GActionMap.
165
+ * @param entries a pointer to the first item in an array of #GActionEntry structs.
166
+ * @param user_data the user data for signal connections.
167
+ */
168
+ function action_map_add_action_entries_check_dups(action_map: Gio.ActionMap, entries: Gio.ActionEntry[], user_data: any | null): void
169
+ /**
170
+ * Gets a list of all encodings known by #GtefEncoding.
171
+ * @returns a list of #GtefEncoding's.
172
+ */
173
+ function encoding_get_all(): Encoding[]
174
+ /**
175
+ * Gets the list of default candidate encodings to try when loading a file. See
176
+ * gtk_source_file_loader_set_candidate_encodings().
177
+ *
178
+ * This function returns a different list depending on the current locale (i.e.
179
+ * language, country and default encoding). The UTF-8 encoding and the current
180
+ * locale encoding are guaranteed to be present in the returned list.
181
+ * @returns the list of default candidate encodings.
182
+ */
183
+ function encoding_get_default_candidates(): Encoding[]
184
+ function file_loader_error_quark(): GLib.Quark
185
+ function file_saver_error_quark(): GLib.Quark
186
+ /**
187
+ * Gets the indentation, as a string, of the line at `iter`. `iter` can be
188
+ * anywhere in the line.
189
+ *
190
+ * Possible use-case: to implement an action that inserts some text in a
191
+ * #GtkTextBuffer. If the text to insert spans multiple lines, it is usually
192
+ * desired to keep the same indentation level.
193
+ * @param iter a #GtkTextIter.
194
+ * @returns the line indentation at @iter. Free with g_free().
195
+ */
196
+ function iter_get_line_indentation(iter: Gtk.TextIter): string | null
197
+ function menu_item_get_long_description(menu_item: Gtk.MenuItem): string | null
198
+ /**
199
+ * Sets an icon to a #GtkMenuItem.
200
+ *
201
+ * If the child widget of `item` is already a #GtkBox, all #GtkImage widgets
202
+ * inside that box are first destroyed. A #GtkImage for `icon_name` is then
203
+ * inserted to the box.
204
+ *
205
+ * If the child widget of `item` is not a #GtkBox (it's usually the
206
+ * #GtkAccelLabel), it is replaced by a new #GtkBox and the initial child widget
207
+ * is inserted to the #GtkBox, alongside the icon.
208
+ *
209
+ * As a consequence, if you want to call functions on the #GtkAccelLabel, it's
210
+ * easier to do it before calling this function.
211
+ * @param item a #GtkMenuItem.
212
+ * @param icon_name an icon name.
213
+ */
214
+ function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string | null): void
215
+ /**
216
+ * Sets the long description of `menu_item`. A possible use-case is to display it
217
+ * in a #GtkStatusbar, or as a tooltip.
218
+ * @param menu_item a #GtkMenuItem.
219
+ * @param long_description the long description, or %NULL to unset it.
220
+ */
221
+ function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_description: string | null): void
222
+ /**
223
+ * This function initializes the metadata manager.
224
+ *
225
+ * The `metadata_path` must be different for each process. It is advised for your
226
+ * application to rely on #GApplication process uniqueness.
227
+ *
228
+ * A good place to store the metadata is in a sub-directory of the user data
229
+ * directory. See g_get_user_data_dir().
230
+ * @param metadata_path the filename where the metadata is stored.
231
+ */
232
+ function metadata_manager_init(metadata_path: string | null): void
233
+ /**
234
+ * This function saves synchronously metadata if they need to be saved, and
235
+ * frees the internal data of the metadata manager.
236
+ */
237
+ function metadata_manager_shutdown(): void
238
+ /**
239
+ * Gets the URI of `item`. `item` must be a child of `menu`. `menu` must be a
240
+ * #GtkRecentChooserMenu.
241
+ *
242
+ * This function has been written because the value returned by
243
+ * gtk_recent_chooser_get_current_uri() is not updated when #GtkMenuItem's of a
244
+ * #GtkRecentChooserMenu are selected/deselected.
245
+ * @param menu a #GtkRecentChooserMenu.
246
+ * @param item a #GtkMenuItem.
247
+ * @returns the URI of @item. Free with g_free() when no longer needed.
248
+ */
249
+ function utils_recent_chooser_menu_get_item_uri(menu: Gtk.RecentChooserMenu, item: Gtk.MenuItem): string | null
250
+ module ActionInfoCentralStore {
251
+
252
+ // Constructor properties interface
253
+
254
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
255
+ }
256
+
257
+ }
258
+
259
+ interface ActionInfoCentralStore {
260
+
261
+ // Own fields of Gtef-2.Gtef.ActionInfoCentralStore
262
+
263
+ parent: GObject.Object
264
+ priv: ActionInfoCentralStorePrivate
265
+
266
+ // Owm methods of Gtef-2.Gtef.ActionInfoCentralStore
267
+
268
+ lookup(action_name: string | null): ActionInfo
269
+
270
+ // Class property signals of Gtef-2.Gtef.ActionInfoCentralStore
271
+
272
+ connect(sigName: string, callback: (...args: any[]) => void): number
273
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
274
+ emit(sigName: string, ...args: any[]): void
275
+ disconnect(id: number): void
276
+ }
277
+
278
+ class ActionInfoCentralStore extends GObject.Object {
279
+
280
+ // Own properties of Gtef-2.Gtef.ActionInfoCentralStore
281
+
282
+ static name: string
283
+ static $gtype: GObject.GType<ActionInfoCentralStore>
284
+
285
+ // Constructors of Gtef-2.Gtef.ActionInfoCentralStore
286
+
287
+ constructor(config?: ActionInfoCentralStore.ConstructorProperties)
288
+ _init(config?: ActionInfoCentralStore.ConstructorProperties): void
289
+ static get_instance(): ActionInfoCentralStore
290
+ }
291
+
292
+ module ActionInfoStore {
293
+
294
+ // Constructor properties interface
295
+
296
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
297
+
298
+ // Own constructor properties of Gtef-2.Gtef.ActionInfoStore
299
+
300
+ /**
301
+ * The associated #GtkApplication. #GtefActionInfoStore has a weak
302
+ * reference to the #GtkApplication.
303
+ */
304
+ application?: Gtk.Application | null
305
+ }
306
+
307
+ }
308
+
309
+ interface ActionInfoStore {
310
+
311
+ // Own properties of Gtef-2.Gtef.ActionInfoStore
312
+
313
+ /**
314
+ * The associated #GtkApplication. #GtefActionInfoStore has a weak
315
+ * reference to the #GtkApplication.
316
+ */
317
+ readonly application: Gtk.Application
318
+
319
+ // Own fields of Gtef-2.Gtef.ActionInfoStore
320
+
321
+ parent: GObject.Object
322
+ priv: ActionInfoStorePrivate
323
+
324
+ // Owm methods of Gtef-2.Gtef.ActionInfoStore
325
+
326
+ /**
327
+ * Inserts `info` into `store` and into the #GtefActionInfoCentralStore. Both the
328
+ * `store` and central store must <emphasis>not</emphasis> already contain a
329
+ * #GtefActionInfo with the same action name. The stores take their own
330
+ * reference on `info`.
331
+ * @param info a #GtefActionInfo.
332
+ */
333
+ add(info: ActionInfo): void
334
+ /**
335
+ * Calls gtef_action_info_store_add() for each entry.
336
+ *
337
+ * If `translation_domain` is not %NULL, g_dgettext() is used to translate the
338
+ * `label` and `tooltip` of each entry before setting them to the #GtefActionInfo.
339
+ *
340
+ * An API similar to g_action_map_add_action_entries().
341
+ * @param entries a pointer to the first item in an array of #GtefActionInfoEntry structs.
342
+ * @param translation_domain a gettext domain, or %NULL.
343
+ */
344
+ add_entries(entries: ActionInfoEntry[], translation_domain: string | null): void
345
+ /**
346
+ * Checks that all #GtefActionInfo's of `store` have been used by
347
+ * gtef_action_info_store_create_menu_item(). If not, a warning is printed and
348
+ * might indicate dead code.
349
+ *
350
+ * You probably want to call this function on the store returned by
351
+ * gtef_application_get_app_action_info_store(). But it can also be useful for a
352
+ * store provided by a library, to easily see which actions you don't use.
353
+ */
354
+ check_all_used(): void
355
+ /**
356
+ * Creates a new #GtkMenuItem for `action_name`. The `store` must contain a
357
+ * #GtefActionInfo for `action_name`.
358
+ *
359
+ * gtk_actionable_set_action_name() is called on the menu item with
360
+ * `action_name`. The label is set with the #GtkMenuItem:use-underline property
361
+ * enabled. The first accelerator is set to the #GtkAccelLabel of the menu item.
362
+ * The icon is set. And the tooltip is set with
363
+ * gtef_menu_item_set_long_description().
364
+ *
365
+ * If #GtefActionInfoStore:application is non-%NULL, this function also calls
366
+ * gtk_application_set_accels_for_action() with the accelerators returned by
367
+ * gtef_action_info_get_accels() (this will erase previously set accelerators
368
+ * for that action, if any).
369
+ * @param action_name an action name.
370
+ * @returns a new #GtkMenuItem for @action_name.
371
+ */
372
+ create_menu_item(action_name: string | null): Gtk.Widget
373
+ get_application(): Gtk.Application | null
374
+ lookup(action_name: string | null): ActionInfo
375
+
376
+ // Class property signals of Gtef-2.Gtef.ActionInfoStore
377
+
378
+ connect(sigName: "notify::application", callback: (($obj: ActionInfoStore, pspec: GObject.ParamSpec) => void)): number
379
+ connect_after(sigName: "notify::application", callback: (($obj: ActionInfoStore, pspec: GObject.ParamSpec) => void)): number
380
+ emit(sigName: "notify::application", ...args: any[]): void
381
+ connect(sigName: string, callback: (...args: any[]) => void): number
382
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
383
+ emit(sigName: string, ...args: any[]): void
384
+ disconnect(id: number): void
385
+ }
386
+
387
+ class ActionInfoStore extends GObject.Object {
388
+
389
+ // Own properties of Gtef-2.Gtef.ActionInfoStore
390
+
391
+ static name: string
392
+ static $gtype: GObject.GType<ActionInfoStore>
393
+
394
+ // Constructors of Gtef-2.Gtef.ActionInfoStore
395
+
396
+ constructor(config?: ActionInfoStore.ConstructorProperties)
397
+ /**
398
+ * Creates a new #GtefActionInfoStore object. Associating a #GtkApplication is
399
+ * optional.
400
+ * @constructor
401
+ * @param application a #GtkApplication, or %NULL.
402
+ * @returns a new #GtefActionInfoStore.
403
+ */
404
+ constructor(application: Gtk.Application | null)
405
+ /**
406
+ * Creates a new #GtefActionInfoStore object. Associating a #GtkApplication is
407
+ * optional.
408
+ * @constructor
409
+ * @param application a #GtkApplication, or %NULL.
410
+ * @returns a new #GtefActionInfoStore.
411
+ */
412
+ static new(application: Gtk.Application | null): ActionInfoStore
413
+ _init(config?: ActionInfoStore.ConstructorProperties): void
414
+ }
415
+
416
+ module Application {
417
+
418
+ // Constructor properties interface
419
+
420
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
421
+
422
+ // Own constructor properties of Gtef-2.Gtef.Application
423
+
424
+ /**
425
+ * The #GtkApplication.
426
+ */
427
+ application?: Gtk.Application | null
428
+ }
429
+
430
+ }
431
+
432
+ interface Application {
433
+
434
+ // Own properties of Gtef-2.Gtef.Application
435
+
436
+ /**
437
+ * The #GtkApplication.
438
+ */
439
+ readonly application: Gtk.Application
440
+
441
+ // Own fields of Gtef-2.Gtef.Application
442
+
443
+ parent: GObject.Object
444
+ priv: ApplicationPrivate
445
+
446
+ // Owm methods of Gtef-2.Gtef.Application
447
+
448
+ /**
449
+ * Returns an initially empty #GtefActionInfoStore reserved for the
450
+ * application-specific actions. Libraries should not add #GtefActionInfo's to
451
+ * this store. Libraries should provide their own store if they want to share
452
+ * #GtefActionInfo's.
453
+ * @returns the #GtefActionInfoStore reserved for the application.
454
+ */
455
+ get_app_action_info_store(): ActionInfoStore
456
+ get_application(): Gtk.Application
457
+ /**
458
+ * Calls g_application_open() with a single file and an empty hint.
459
+ * @param file a #GFile.
460
+ */
461
+ open_simple(file: Gio.File): void
462
+
463
+ // Class property signals of Gtef-2.Gtef.Application
464
+
465
+ connect(sigName: "notify::application", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
466
+ connect_after(sigName: "notify::application", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
467
+ emit(sigName: "notify::application", ...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
+ class Application extends GObject.Object {
475
+
476
+ // Own properties of Gtef-2.Gtef.Application
477
+
478
+ static name: string
479
+ static $gtype: GObject.GType<Application>
480
+
481
+ // Constructors of Gtef-2.Gtef.Application
482
+
483
+ constructor(config?: Application.ConstructorProperties)
484
+ _init(config?: Application.ConstructorProperties): void
485
+ /**
486
+ * Convenience function that calls g_application_get_default() followed by
487
+ * gtef_application_get_from_gtk_application(). The object returned by
488
+ * g_application_get_default() must be a #GtkApplication.
489
+ * @returns the default #GtefApplication.
490
+ */
491
+ static get_default(): Application
492
+ /**
493
+ * Returns the #GtefApplication of `gtk_app`. The returned object is guaranteed
494
+ * to be the same for the lifetime of `gtk_app`.
495
+ * @param gtk_app a #GtkApplication.
496
+ * @returns the #GtefApplication of @gtk_app.
497
+ */
498
+ static get_from_gtk_application(gtk_app: Gtk.Application): Application
499
+ }
500
+
501
+ module ApplicationWindow {
502
+
503
+ // Constructor properties interface
504
+
505
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
506
+
507
+ // Own constructor properties of Gtef-2.Gtef.ApplicationWindow
508
+
509
+ /**
510
+ * The #GtkApplicationWindow.
511
+ */
512
+ application_window?: Gtk.ApplicationWindow | null
513
+ /**
514
+ * The #GtkStatusbar. %NULL by default.
515
+ */
516
+ statusbar?: Gtk.Statusbar | null
517
+ }
518
+
519
+ }
520
+
521
+ interface ApplicationWindow {
522
+
523
+ // Own properties of Gtef-2.Gtef.ApplicationWindow
524
+
525
+ /**
526
+ * The #GtkApplicationWindow.
527
+ */
528
+ readonly application_window: Gtk.ApplicationWindow
529
+ /**
530
+ * The #GtkStatusbar. %NULL by default.
531
+ */
532
+ statusbar: Gtk.Statusbar
533
+
534
+ // Own fields of Gtef-2.Gtef.ApplicationWindow
535
+
536
+ parent: GObject.Object
537
+ priv: ApplicationWindowPrivate
538
+
539
+ // Owm methods of Gtef-2.Gtef.ApplicationWindow
540
+
541
+ /**
542
+ * Connect to the #GtefMenuShell::menu-item-selected and
543
+ * #GtefMenuShell::menu-item-deselected signals of `gtef_menu_shell` to push/pop
544
+ * the long description of #GtkMenuItem's to the
545
+ * #GtefApplicationWindow:statusbar.
546
+ *
547
+ * The long description is retrieved with gtef_menu_item_get_long_description().
548
+ * So gtef_menu_item_set_long_description() must have been called, which is the
549
+ * case if the #GtkMenuItem has been created with the functions available in
550
+ * #GtefActionInfoStore.
551
+ * @param gtef_menu_shell a #GtefMenuShell.
552
+ */
553
+ connect_menu_to_statusbar(gtef_menu_shell: MenuShell): void
554
+ /**
555
+ * An alternative to gtk_recent_chooser_set_show_tips(). Shows the full path in
556
+ * the #GtefApplicationWindow:statusbar when a #GtkMenuItem of `menu` is
557
+ * selected.
558
+ *
559
+ * The full path is retrieved with
560
+ * gtef_utils_recent_chooser_menu_get_item_uri().
561
+ * @param menu a #GtkRecentChooserMenu.
562
+ */
563
+ connect_recent_chooser_menu_to_statusbar(menu: Gtk.RecentChooserMenu): void
564
+ /**
565
+ * Creates a #GtkMenuItem with a simple and generic #GtkRecentChooserMenu as
566
+ * submenu.
567
+ *
568
+ * The #GtkRecentChooser is configured to show files only recently used with the
569
+ * current application, as returned by g_get_application_name(). If recent files
570
+ * are added to the default #GtkRecentManager with
571
+ * gtk_recent_manager_add_item(), the files will normally show up in the
572
+ * #GtkRecentChooserMenu.
573
+ *
574
+ * The #GtkRecentChooserMenu is connected to the statusbar with
575
+ * gtef_application_window_connect_recent_chooser_menu_to_statusbar().
576
+ *
577
+ * When the #GtkRecentChooser::item-activated signal is emitted,
578
+ * gtef_application_open_simple() is called, so the #GApplication must have the
579
+ * %G_APPLICATION_HANDLES_OPEN flag set.
580
+ * @returns a new #GtkMenuItem.
581
+ */
582
+ create_open_recent_menu_item(): Gtk.Widget
583
+ get_application_window(): Gtk.ApplicationWindow
584
+ get_statusbar(): Gtk.Statusbar | null
585
+ /**
586
+ * Sets the #GtefApplicationWindow:statusbar property.
587
+ * @param statusbar a #GtkStatusbar, or %NULL.
588
+ */
589
+ set_statusbar(statusbar: Gtk.Statusbar | null): void
590
+
591
+ // Class property signals of Gtef-2.Gtef.ApplicationWindow
592
+
593
+ connect(sigName: "notify::application-window", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
594
+ connect_after(sigName: "notify::application-window", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
595
+ emit(sigName: "notify::application-window", ...args: any[]): void
596
+ connect(sigName: "notify::statusbar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
597
+ connect_after(sigName: "notify::statusbar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
598
+ emit(sigName: "notify::statusbar", ...args: any[]): void
599
+ connect(sigName: string, callback: (...args: any[]) => void): number
600
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
601
+ emit(sigName: string, ...args: any[]): void
602
+ disconnect(id: number): void
603
+ }
604
+
605
+ class ApplicationWindow extends GObject.Object {
606
+
607
+ // Own properties of Gtef-2.Gtef.ApplicationWindow
608
+
609
+ static name: string
610
+ static $gtype: GObject.GType<ApplicationWindow>
611
+
612
+ // Constructors of Gtef-2.Gtef.ApplicationWindow
613
+
614
+ constructor(config?: ApplicationWindow.ConstructorProperties)
615
+ _init(config?: ApplicationWindow.ConstructorProperties): void
616
+ /**
617
+ * Returns the #GtefApplicationWindow of `gtk_window`. The returned object is
618
+ * guaranteed to be the same for the lifetime of `gtk_window`.
619
+ * @param gtk_window a #GtkApplicationWindow.
620
+ * @returns the #GtefApplicationWindow of @gtk_window.
621
+ */
622
+ static get_from_gtk_application_window(gtk_window: Gtk.ApplicationWindow): ApplicationWindow
623
+ }
624
+
625
+ module Buffer {
626
+
627
+ // Signal callback interfaces
628
+
629
+ /**
630
+ * Signal callback interface for `gtef-cursor-moved`
631
+ */
632
+ interface GtefCursorMovedSignalCallback {
633
+ ($obj: Buffer): void
634
+ }
635
+
636
+
637
+ // Constructor properties interface
638
+
639
+ interface ConstructorProperties extends GtkSource.Buffer.ConstructorProperties {
640
+
641
+ // Own constructor properties of Gtef-2.Gtef.Buffer
642
+
643
+ /**
644
+ * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
645
+ * useful for binding it to a #GSettings key.
646
+ *
647
+ * When the #GtkSourceBuffer:style-scheme is %NULL,
648
+ * #GtefBuffer:gtef-style-scheme-id contains the empty string.
649
+ */
650
+ gtef_style_scheme_id?: string | null
651
+ }
652
+
653
+ }
654
+
655
+ interface Buffer {
656
+
657
+ // Own properties of Gtef-2.Gtef.Buffer
658
+
659
+ /**
660
+ * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
661
+ * useful for binding it to a #GSettings key.
662
+ *
663
+ * When the #GtkSourceBuffer:style-scheme is %NULL,
664
+ * #GtefBuffer:gtef-style-scheme-id contains the empty string.
665
+ */
666
+ gtef_style_scheme_id: string | null
667
+ /**
668
+ * The buffer title. See gtef_buffer_get_title().
669
+ */
670
+ readonly gtef_title: string | null
671
+
672
+ // Conflicting properties
673
+
674
+ priv: any & Gtk.TextBufferPrivate
675
+
676
+ // Own fields of Gtef-2.Gtef.Buffer
677
+
678
+ parent_instance: GtkSource.Buffer & Gtk.TextBuffer & GObject.Object & GObject.Object
679
+
680
+ // Owm methods of Gtef-2.Gtef.Buffer
681
+
682
+ /**
683
+ * Returns the #GtefFile of `buffer`. The returned object is guaranteed to be the
684
+ * same for the lifetime of `buffer`.
685
+ * @returns the associated #GtefFile.
686
+ */
687
+ get_file(): File
688
+ get_selection_type(): SelectionType
689
+ get_style_scheme_id(): string | null
690
+ /**
691
+ * Returns a title suitable for a #GtkWindow title. It contains (in that order):
692
+ * - '*' if the buffer is modified;
693
+ * - the #GtefFile:short-name;
694
+ * - the directory path in parenthesis if the #GtefFile:location isn't
695
+ * %NULL.
696
+ * @returns the @buffer title. Free the return value with g_free() when no longer needed.
697
+ */
698
+ get_title(): string | null
699
+ /**
700
+ * Returns whether `buffer` is untouched.
701
+ *
702
+ * This function is for example useful to know if we can re-use this buffer to
703
+ * load a file, instead of opening a new tab or window.
704
+ *
705
+ * For this function to return %TRUE, the `buffer` must be empty, non-modified,
706
+ * the undo/redo #GtkSourceBuffer history must be empty, and the
707
+ * #GtefFile:location must be %NULL.
708
+ * @returns %TRUE if @buffer has not been touched, %FALSE otherwise.
709
+ */
710
+ is_untouched(): boolean
711
+ /**
712
+ * Sets the #GtefBuffer:gtef-style-scheme-id property.
713
+ *
714
+ * The #GtkSourceStyleScheme is taken from the default
715
+ * #GtkSourceStyleSchemeManager as returned by
716
+ * gtk_source_style_scheme_manager_get_default().
717
+ * @param style_scheme_id the new value.
718
+ */
719
+ set_style_scheme_id(style_scheme_id: string | null): void
720
+
721
+ // Own virtual methods of Gtef-2.Gtef.Buffer
722
+
723
+ vfunc_gtef_cursor_moved(): void
724
+
725
+ // Own signals of Gtef-2.Gtef.Buffer
726
+
727
+ connect(sigName: "gtef-cursor-moved", callback: Buffer.GtefCursorMovedSignalCallback): number
728
+ connect_after(sigName: "gtef-cursor-moved", callback: Buffer.GtefCursorMovedSignalCallback): number
729
+ emit(sigName: "gtef-cursor-moved", ...args: any[]): void
730
+
731
+ // Class property signals of Gtef-2.Gtef.Buffer
732
+
733
+ connect(sigName: "notify::gtef-style-scheme-id", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
734
+ connect_after(sigName: "notify::gtef-style-scheme-id", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
735
+ emit(sigName: "notify::gtef-style-scheme-id", ...args: any[]): void
736
+ connect(sigName: "notify::gtef-title", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
737
+ connect_after(sigName: "notify::gtef-title", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
738
+ emit(sigName: "notify::gtef-title", ...args: any[]): void
739
+ connect(sigName: "notify::can-redo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
740
+ connect_after(sigName: "notify::can-redo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
741
+ emit(sigName: "notify::can-redo", ...args: any[]): void
742
+ connect(sigName: "notify::can-undo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
743
+ connect_after(sigName: "notify::can-undo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
744
+ emit(sigName: "notify::can-undo", ...args: any[]): void
745
+ connect(sigName: "notify::highlight-matching-brackets", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
746
+ connect_after(sigName: "notify::highlight-matching-brackets", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
747
+ emit(sigName: "notify::highlight-matching-brackets", ...args: any[]): void
748
+ connect(sigName: "notify::highlight-syntax", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
749
+ connect_after(sigName: "notify::highlight-syntax", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
750
+ emit(sigName: "notify::highlight-syntax", ...args: any[]): void
751
+ connect(sigName: "notify::implicit-trailing-newline", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
752
+ connect_after(sigName: "notify::implicit-trailing-newline", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
753
+ emit(sigName: "notify::implicit-trailing-newline", ...args: any[]): void
754
+ connect(sigName: "notify::language", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
755
+ connect_after(sigName: "notify::language", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
756
+ emit(sigName: "notify::language", ...args: any[]): void
757
+ connect(sigName: "notify::max-undo-levels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
758
+ connect_after(sigName: "notify::max-undo-levels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
759
+ emit(sigName: "notify::max-undo-levels", ...args: any[]): void
760
+ connect(sigName: "notify::style-scheme", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
761
+ connect_after(sigName: "notify::style-scheme", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
762
+ emit(sigName: "notify::style-scheme", ...args: any[]): void
763
+ connect(sigName: "notify::undo-manager", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
764
+ connect_after(sigName: "notify::undo-manager", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
765
+ emit(sigName: "notify::undo-manager", ...args: any[]): void
766
+ connect(sigName: "notify::copy-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
767
+ connect_after(sigName: "notify::copy-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
768
+ emit(sigName: "notify::copy-target-list", ...args: any[]): void
769
+ connect(sigName: "notify::cursor-position", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
770
+ connect_after(sigName: "notify::cursor-position", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
771
+ emit(sigName: "notify::cursor-position", ...args: any[]): void
772
+ connect(sigName: "notify::has-selection", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
773
+ connect_after(sigName: "notify::has-selection", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
774
+ emit(sigName: "notify::has-selection", ...args: any[]): void
775
+ connect(sigName: "notify::paste-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
776
+ connect_after(sigName: "notify::paste-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
777
+ emit(sigName: "notify::paste-target-list", ...args: any[]): void
778
+ connect(sigName: "notify::tag-table", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
779
+ connect_after(sigName: "notify::tag-table", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
780
+ emit(sigName: "notify::tag-table", ...args: any[]): void
781
+ connect(sigName: "notify::text", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
782
+ connect_after(sigName: "notify::text", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
783
+ emit(sigName: "notify::text", ...args: any[]): void
784
+ connect(sigName: string, callback: (...args: any[]) => void): number
785
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
786
+ emit(sigName: string, ...args: any[]): void
787
+ disconnect(id: number): void
788
+ }
789
+
790
+ class Buffer extends GtkSource.Buffer {
791
+
792
+ // Own properties of Gtef-2.Gtef.Buffer
793
+
794
+ static name: string
795
+ static $gtype: GObject.GType<Buffer>
796
+
797
+ // Constructors of Gtef-2.Gtef.Buffer
798
+
799
+ constructor(config?: Buffer.ConstructorProperties)
800
+ constructor()
801
+ static new(): Buffer
802
+
803
+ // Overloads of new
804
+
805
+ /**
806
+ * Creates a new source buffer.
807
+ * @constructor
808
+ * @param table a #GtkTextTagTable, or %NULL to create a new one.
809
+ * @returns a new source buffer.
810
+ */
811
+ static new(table: Gtk.TextTagTable | null): GtkSource.Buffer
812
+ /**
813
+ * Creates a new text buffer.
814
+ * @constructor
815
+ * @param table a tag table, or %NULL to create a new one
816
+ * @returns a new text buffer
817
+ */
818
+ static new(table: Gtk.TextTagTable | null): Gtk.TextBuffer
819
+ _init(config?: Buffer.ConstructorProperties): void
820
+ }
821
+
822
+ module File {
823
+
824
+ // Constructor properties interface
825
+
826
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
827
+
828
+ // Own constructor properties of Gtef-2.Gtef.File
829
+
830
+ /**
831
+ * The location.
832
+ */
833
+ location?: Gio.File | null
834
+ }
835
+
836
+ }
837
+
838
+ interface File {
839
+
840
+ // Own properties of Gtef-2.Gtef.File
841
+
842
+ /**
843
+ * The compression type.
844
+ */
845
+ readonly compression_type: CompressionType
846
+ /**
847
+ * The character encoding, initially %NULL. After a successful file
848
+ * loading or saving operation, the encoding is non-%NULL.
849
+ */
850
+ readonly encoding: Encoding
851
+ /**
852
+ * The location.
853
+ */
854
+ location: Gio.File
855
+ /**
856
+ * The line ending type.
857
+ */
858
+ readonly newline_type: NewlineType
859
+ /**
860
+ * Whether the file is read-only or not. The value of this property is
861
+ * not updated automatically (there is no file monitors).
862
+ */
863
+ readonly read_only: boolean
864
+ /**
865
+ * The file short name. See gtef_file_get_short_name().
866
+ */
867
+ readonly short_name: string | null
868
+
869
+ // Own fields of Gtef-2.Gtef.File
870
+
871
+ parent_instance: GObject.Object
872
+
873
+ // Owm methods of Gtef-2.Gtef.File
874
+
875
+ /**
876
+ * Checks synchronously the file on disk, to know whether the file is externally
877
+ * modified, or has been deleted, and whether the file is read-only.
878
+ *
879
+ * #GtefFile doesn't create a #GFileMonitor to track those properties, so
880
+ * this function needs to be called instead. Creating lots of #GFileMonitor's
881
+ * would take lots of resources.
882
+ *
883
+ * Since this function is synchronous, it is advised to call it only on local
884
+ * files. See gtef_file_is_local().
885
+ */
886
+ check_file_on_disk(): void
887
+ get_compression_type(): CompressionType
888
+ /**
889
+ * The encoding is initially %NULL. After a successful file loading or saving
890
+ * operation, the encoding is non-%NULL.
891
+ * @returns the character encoding.
892
+ */
893
+ get_encoding(): Encoding
894
+ get_file_metadata(): FileMetadata
895
+ get_location(): Gio.File
896
+ get_newline_type(): NewlineType
897
+ /**
898
+ * Gets the `file` short name. If the #GtefFile:location isn't %NULL,
899
+ * returns its display-name (see #G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME).
900
+ * Otherwise returns "Untitled File N", with N the Nth untitled file of the
901
+ * application, starting at 1. When an untitled file is closed, its number is
902
+ * released and can be used by a later untitled file.
903
+ * @returns the @file short name.
904
+ */
905
+ get_short_name(): string | null
906
+ /**
907
+ * Returns whether the file has been deleted. If the
908
+ * #GtefFile:location is %NULL, returns %FALSE.
909
+ *
910
+ * To have an up-to-date value, you must first call
911
+ * gtef_file_check_file_on_disk().
912
+ * @returns whether the file has been deleted.
913
+ */
914
+ is_deleted(): boolean
915
+ /**
916
+ * Returns whether the file is externally modified. If the
917
+ * #GtefFile:location is %NULL, returns %FALSE.
918
+ *
919
+ * To have an up-to-date value, you must first call
920
+ * gtef_file_check_file_on_disk().
921
+ * @returns whether the file is externally modified.
922
+ */
923
+ is_externally_modified(): boolean
924
+ /**
925
+ * Returns whether the file is local. If the #GtefFile:location is %NULL,
926
+ * returns %FALSE.
927
+ * @returns whether the file is local.
928
+ */
929
+ is_local(): boolean
930
+ /**
931
+ * Returns whether the file is read-only. If the
932
+ * #GtefFile:location is %NULL, returns %FALSE.
933
+ *
934
+ * To have an up-to-date value, you must first call
935
+ * gtef_file_check_file_on_disk().
936
+ * @returns whether the file is read-only.
937
+ */
938
+ is_readonly(): boolean
939
+ /**
940
+ * Sets the location.
941
+ * @param location the new #GFile, or %NULL.
942
+ */
943
+ set_location(location: Gio.File | null): void
944
+
945
+ // Class property signals of Gtef-2.Gtef.File
946
+
947
+ connect(sigName: "notify::compression-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
948
+ connect_after(sigName: "notify::compression-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
949
+ emit(sigName: "notify::compression-type", ...args: any[]): void
950
+ connect(sigName: "notify::encoding", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
951
+ connect_after(sigName: "notify::encoding", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
952
+ emit(sigName: "notify::encoding", ...args: any[]): void
953
+ connect(sigName: "notify::location", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
954
+ connect_after(sigName: "notify::location", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
955
+ emit(sigName: "notify::location", ...args: any[]): void
956
+ connect(sigName: "notify::newline-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
957
+ connect_after(sigName: "notify::newline-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
958
+ emit(sigName: "notify::newline-type", ...args: any[]): void
959
+ connect(sigName: "notify::read-only", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
960
+ connect_after(sigName: "notify::read-only", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
961
+ emit(sigName: "notify::read-only", ...args: any[]): void
962
+ connect(sigName: "notify::short-name", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
963
+ connect_after(sigName: "notify::short-name", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
964
+ emit(sigName: "notify::short-name", ...args: any[]): void
965
+ connect(sigName: string, callback: (...args: any[]) => void): number
966
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
967
+ emit(sigName: string, ...args: any[]): void
968
+ disconnect(id: number): void
969
+ }
970
+
971
+ class File extends GObject.Object {
972
+
973
+ // Own properties of Gtef-2.Gtef.File
974
+
975
+ static name: string
976
+ static $gtype: GObject.GType<File>
977
+
978
+ // Constructors of Gtef-2.Gtef.File
979
+
980
+ constructor(config?: File.ConstructorProperties)
981
+ constructor()
982
+ static new(): File
983
+ _init(config?: File.ConstructorProperties): void
984
+ }
985
+
986
+ module FileLoader {
987
+
988
+ // Constructor properties interface
989
+
990
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
991
+
992
+ // Own constructor properties of Gtef-2.Gtef.FileLoader
993
+
994
+ /**
995
+ * The #GtefBuffer to load the content into. The #GtefFileLoader object
996
+ * has a weak reference to the buffer.
997
+ */
998
+ buffer?: Buffer | null
999
+ /**
1000
+ * The chunk size, in bytes. The content is loaded chunk by chunk. It
1001
+ * permits to avoid allocating a too big contiguous memory area, as well
1002
+ * as reporting progress information after each chunk read.
1003
+ *
1004
+ * A small chunk size is better when loading a remote file with a slow
1005
+ * connection. For local files, the chunk size can be larger.
1006
+ */
1007
+ chunk_size?: number | null
1008
+ /**
1009
+ * The #GtefFile. The #GtefFileLoader object has a weak
1010
+ * reference to the file.
1011
+ */
1012
+ file?: File | null
1013
+ /**
1014
+ * The #GFile to load. By default the location is taken from the
1015
+ * #GtefFile at construction time.
1016
+ */
1017
+ location?: Gio.File | null
1018
+ /**
1019
+ * The maximum content size, in bytes. Keep in mind that all the
1020
+ * content is loaded in memory, and when loaded into a #GtkTextBuffer
1021
+ * it takes more memory than just the content size.
1022
+ *
1023
+ * Set to -1 for unlimited size.
1024
+ */
1025
+ max_size?: number | null
1026
+ }
1027
+
1028
+ }
1029
+
1030
+ interface FileLoader {
1031
+
1032
+ // Own properties of Gtef-2.Gtef.FileLoader
1033
+
1034
+ /**
1035
+ * The #GtefBuffer to load the content into. The #GtefFileLoader object
1036
+ * has a weak reference to the buffer.
1037
+ */
1038
+ readonly buffer: Buffer
1039
+ /**
1040
+ * The chunk size, in bytes. The content is loaded chunk by chunk. It
1041
+ * permits to avoid allocating a too big contiguous memory area, as well
1042
+ * as reporting progress information after each chunk read.
1043
+ *
1044
+ * A small chunk size is better when loading a remote file with a slow
1045
+ * connection. For local files, the chunk size can be larger.
1046
+ */
1047
+ chunk_size: number
1048
+ /**
1049
+ * The #GtefFile. The #GtefFileLoader object has a weak
1050
+ * reference to the file.
1051
+ */
1052
+ readonly file: File
1053
+ /**
1054
+ * The #GFile to load. By default the location is taken from the
1055
+ * #GtefFile at construction time.
1056
+ */
1057
+ readonly location: Gio.File
1058
+ /**
1059
+ * The maximum content size, in bytes. Keep in mind that all the
1060
+ * content is loaded in memory, and when loaded into a #GtkTextBuffer
1061
+ * it takes more memory than just the content size.
1062
+ *
1063
+ * Set to -1 for unlimited size.
1064
+ */
1065
+ max_size: number
1066
+
1067
+ // Own fields of Gtef-2.Gtef.FileLoader
1068
+
1069
+ parent_instance: GObject.Object
1070
+
1071
+ // Owm methods of Gtef-2.Gtef.FileLoader
1072
+
1073
+ get_buffer(): Buffer | null
1074
+ get_chunk_size(): number
1075
+ get_encoding(): Encoding | null
1076
+ get_file(): File | null
1077
+ get_location(): Gio.File | null
1078
+ get_max_size(): number
1079
+ get_newline_type(): NewlineType
1080
+ /**
1081
+ * Loads asynchronously the file content into the #GtefBuffer.
1082
+ *
1083
+ * See the #GAsyncResult documentation to know how to use this function.
1084
+ * @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
1085
+ * @param cancellable optional #GCancellable object, %NULL to ignore.
1086
+ * @param progress_callback function to call back with progress information, or %NULL if progress information is not needed.
1087
+ * @param callback a #GAsyncReadyCallback to call when the request is satisfied.
1088
+ */
1089
+ load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void
1090
+ /**
1091
+ * Finishes a file loading started with gtef_file_loader_load_async().
1092
+ * @param result a #GAsyncResult.
1093
+ * @returns whether the content has been loaded successfully.
1094
+ */
1095
+ load_finish(result: Gio.AsyncResult): boolean
1096
+ set_chunk_size(chunk_size: number): void
1097
+ set_max_size(max_size: number): void
1098
+
1099
+ // Class property signals of Gtef-2.Gtef.FileLoader
1100
+
1101
+ connect(sigName: "notify::buffer", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1102
+ connect_after(sigName: "notify::buffer", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1103
+ emit(sigName: "notify::buffer", ...args: any[]): void
1104
+ connect(sigName: "notify::chunk-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1105
+ connect_after(sigName: "notify::chunk-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1106
+ emit(sigName: "notify::chunk-size", ...args: any[]): void
1107
+ connect(sigName: "notify::file", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1108
+ connect_after(sigName: "notify::file", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1109
+ emit(sigName: "notify::file", ...args: any[]): void
1110
+ connect(sigName: "notify::location", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1111
+ connect_after(sigName: "notify::location", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1112
+ emit(sigName: "notify::location", ...args: any[]): void
1113
+ connect(sigName: "notify::max-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1114
+ connect_after(sigName: "notify::max-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
1115
+ emit(sigName: "notify::max-size", ...args: any[]): void
1116
+ connect(sigName: string, callback: (...args: any[]) => void): number
1117
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1118
+ emit(sigName: string, ...args: any[]): void
1119
+ disconnect(id: number): void
1120
+ }
1121
+
1122
+ class FileLoader extends GObject.Object {
1123
+
1124
+ // Own properties of Gtef-2.Gtef.FileLoader
1125
+
1126
+ static name: string
1127
+ static $gtype: GObject.GType<FileLoader>
1128
+
1129
+ // Constructors of Gtef-2.Gtef.FileLoader
1130
+
1131
+ constructor(config?: FileLoader.ConstructorProperties)
1132
+ /**
1133
+ * Creates a new #GtefFileLoader object. The content is read from the #GtefFile
1134
+ * location.
1135
+ *
1136
+ * If not already done, call gtef_file_set_location() before calling this
1137
+ * constructor. The previous location is anyway not needed, because as soon as
1138
+ * the file loading begins, the `buffer` is emptied. Setting the #GtefFile
1139
+ * location directly permits to update the UI, to display the good location when
1140
+ * the file is loading.
1141
+ * @constructor
1142
+ * @param buffer the #GtefBuffer to load the content into.
1143
+ * @param file the #GtefFile.
1144
+ * @returns a new #GtefFileLoader object.
1145
+ */
1146
+ constructor(buffer: Buffer, file: File)
1147
+ /**
1148
+ * Creates a new #GtefFileLoader object. The content is read from the #GtefFile
1149
+ * location.
1150
+ *
1151
+ * If not already done, call gtef_file_set_location() before calling this
1152
+ * constructor. The previous location is anyway not needed, because as soon as
1153
+ * the file loading begins, the `buffer` is emptied. Setting the #GtefFile
1154
+ * location directly permits to update the UI, to display the good location when
1155
+ * the file is loading.
1156
+ * @constructor
1157
+ * @param buffer the #GtefBuffer to load the content into.
1158
+ * @param file the #GtefFile.
1159
+ * @returns a new #GtefFileLoader object.
1160
+ */
1161
+ static new(buffer: Buffer, file: File): FileLoader
1162
+ _init(config?: FileLoader.ConstructorProperties): void
1163
+ }
1164
+
1165
+ module FileMetadata {
1166
+
1167
+ // Constructor properties interface
1168
+
1169
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1170
+
1171
+ // Own constructor properties of Gtef-2.Gtef.FileMetadata
1172
+
1173
+ /**
1174
+ * The #GtefFile that the metadata belong to.
1175
+ */
1176
+ file?: File | null
1177
+ }
1178
+
1179
+ }
1180
+
1181
+ interface FileMetadata {
1182
+
1183
+ // Own properties of Gtef-2.Gtef.FileMetadata
1184
+
1185
+ /**
1186
+ * The #GtefFile that the metadata belong to.
1187
+ */
1188
+ readonly file: File
1189
+
1190
+ // Own fields of Gtef-2.Gtef.FileMetadata
1191
+
1192
+ parent_instance: GObject.Object
1193
+
1194
+ // Owm methods of Gtef-2.Gtef.FileMetadata
1195
+
1196
+ /**
1197
+ * Gets the value of a metadata stored in the `metadata` object memory.
1198
+ * @param key the name of the metadata.
1199
+ * @returns the value of the metadata, or %NULL if the metadata doesn't exist. Free with g_free().
1200
+ */
1201
+ get(key: string | null): string | null
1202
+ get_file(): File
1203
+ /**
1204
+ * Loads synchronously the metadata from #GtefFile:location. The loaded
1205
+ * metadata values can then be accessed with gtef_file_metadata_get().
1206
+ *
1207
+ * If the metadata are loaded successfully, this function deletes all previous
1208
+ * metadata stored in the `metadata` object memory.
1209
+ *
1210
+ * The file at #GtefFile:location, if non-%NULL, must exist on the
1211
+ * filesystem, otherwise an error is returned.
1212
+ *
1213
+ * If #GtefFile:location is %NULL, %FALSE is simply returned.
1214
+ * @param cancellable optional #GCancellable object, %NULL to ignore.
1215
+ * @returns whether the metadata was loaded successfully.
1216
+ */
1217
+ load(cancellable: Gio.Cancellable | null): boolean
1218
+ /**
1219
+ * The asynchronous version of gtef_file_metadata_load().
1220
+ *
1221
+ * If the metadata is loaded from the metadata manager (i.e. not with GVfs),
1222
+ * this function loads the metadata synchronously. A future version might fix
1223
+ * this.
1224
+ *
1225
+ * See the #GAsyncResult documentation to know how to use this function.
1226
+ * @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
1227
+ * @param cancellable optional #GCancellable object, %NULL to ignore.
1228
+ * @param callback a #GAsyncReadyCallback to call when the request is satisfied.
1229
+ */
1230
+ load_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1231
+ /**
1232
+ * Finishes the metadata loading started with gtef_file_metadata_load_async().
1233
+ * @param result a #GAsyncResult.
1234
+ * @returns whether the metadata was loaded successfully.
1235
+ */
1236
+ load_finish(result: Gio.AsyncResult): boolean
1237
+ /**
1238
+ * Saves synchronously the metadata for #GtefFile:location.
1239
+ *
1240
+ * The file at #GtefFile:location, if non-%NULL, must exist on the
1241
+ * filesystem, otherwise an error is returned.
1242
+ *
1243
+ * If #GtefFile:location is %NULL, %FALSE is simply returned.
1244
+ * @param cancellable optional #GCancellable object, %NULL to ignore.
1245
+ * @returns whether the metadata was saved successfully.
1246
+ */
1247
+ save(cancellable: Gio.Cancellable | null): boolean
1248
+ /**
1249
+ * The asynchronous version of gtef_file_metadata_save().
1250
+ *
1251
+ * If the metadata is saved with the metadata manager (i.e. not with GVfs), this
1252
+ * function saves the metadata synchronously. A future version might fix this.
1253
+ *
1254
+ * See the #GAsyncResult documentation to know how to use this function.
1255
+ * @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
1256
+ * @param cancellable optional #GCancellable object, %NULL to ignore.
1257
+ * @param callback a #GAsyncReadyCallback to call when the request is satisfied.
1258
+ */
1259
+ save_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
1260
+ /**
1261
+ * Finishes the metadata saving started with gtef_file_metadata_save_async().
1262
+ * @param result a #GAsyncResult.
1263
+ * @returns whether the metadata was saved successfully.
1264
+ */
1265
+ save_finish(result: Gio.AsyncResult): boolean
1266
+ /**
1267
+ * Sets the value of a metadata. It's preferable that `key` starts with a
1268
+ * namespace, to not get metadata conflicts between applications.
1269
+ *
1270
+ * This function just stores the new metadata value in the `metadata` object
1271
+ * memory.
1272
+ * @param key the name of the metadata.
1273
+ * @param value the value of the metadata, or %NULL to unset.
1274
+ */
1275
+ set(key: string | null, value: string | null): void
1276
+
1277
+ // Class property signals of Gtef-2.Gtef.FileMetadata
1278
+
1279
+ connect(sigName: "notify::file", callback: (($obj: FileMetadata, pspec: GObject.ParamSpec) => void)): number
1280
+ connect_after(sigName: "notify::file", callback: (($obj: FileMetadata, pspec: GObject.ParamSpec) => void)): number
1281
+ emit(sigName: "notify::file", ...args: any[]): void
1282
+ connect(sigName: string, callback: (...args: any[]) => void): number
1283
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1284
+ emit(sigName: string, ...args: any[]): void
1285
+ disconnect(id: number): void
1286
+ }
1287
+
1288
+ class FileMetadata extends GObject.Object {
1289
+
1290
+ // Own properties of Gtef-2.Gtef.FileMetadata
1291
+
1292
+ static name: string
1293
+ static $gtype: GObject.GType<FileMetadata>
1294
+
1295
+ // Constructors of Gtef-2.Gtef.FileMetadata
1296
+
1297
+ constructor(config?: FileMetadata.ConstructorProperties)
1298
+ constructor(file: File)
1299
+ static new(file: File): FileMetadata
1300
+ _init(config?: FileMetadata.ConstructorProperties): void
1301
+ }
1302
+
1303
+ module FileSaver {
1304
+
1305
+ // Constructor properties interface
1306
+
1307
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1308
+
1309
+ // Own constructor properties of Gtef-2.Gtef.FileSaver
1310
+
1311
+ /**
1312
+ * The #GtefBuffer to save. The #GtefFileSaver object has a weak
1313
+ * reference to the buffer.
1314
+ */
1315
+ buffer?: GtkSource.Buffer | null
1316
+ /**
1317
+ * The compression type.
1318
+ */
1319
+ compression_type?: GtkSource.CompressionType | null
1320
+ /**
1321
+ * The file's encoding.
1322
+ */
1323
+ encoding?: Encoding | null
1324
+ /**
1325
+ * The #GtefFile. The #GtefFileSaver object has a weak
1326
+ * reference to the file.
1327
+ */
1328
+ file?: File | null
1329
+ /**
1330
+ * File saving flags.
1331
+ */
1332
+ flags?: FileSaverFlags | null
1333
+ /**
1334
+ * The #GFile where to save the buffer. By default the location is taken
1335
+ * from the #GtefFile at construction time.
1336
+ */
1337
+ location?: Gio.File | null
1338
+ /**
1339
+ * The newline type.
1340
+ */
1341
+ newline_type?: GtkSource.NewlineType | null
1342
+ }
1343
+
1344
+ }
1345
+
1346
+ interface FileSaver {
1347
+
1348
+ // Own properties of Gtef-2.Gtef.FileSaver
1349
+
1350
+ /**
1351
+ * The #GtefBuffer to save. The #GtefFileSaver object has a weak
1352
+ * reference to the buffer.
1353
+ */
1354
+ readonly buffer: GtkSource.Buffer
1355
+ /**
1356
+ * The compression type.
1357
+ */
1358
+ compression_type: GtkSource.CompressionType
1359
+ /**
1360
+ * The file's encoding.
1361
+ */
1362
+ encoding: Encoding
1363
+ /**
1364
+ * The #GtefFile. The #GtefFileSaver object has a weak
1365
+ * reference to the file.
1366
+ */
1367
+ readonly file: File
1368
+ /**
1369
+ * File saving flags.
1370
+ */
1371
+ flags: FileSaverFlags
1372
+ /**
1373
+ * The #GFile where to save the buffer. By default the location is taken
1374
+ * from the #GtefFile at construction time.
1375
+ */
1376
+ readonly location: Gio.File
1377
+ /**
1378
+ * The newline type.
1379
+ */
1380
+ newline_type: GtkSource.NewlineType
1381
+
1382
+ // Own fields of Gtef-2.Gtef.FileSaver
1383
+
1384
+ object: GObject.Object
1385
+ priv: FileSaverPrivate
1386
+
1387
+ // Owm methods of Gtef-2.Gtef.FileSaver
1388
+
1389
+ get_buffer(): Buffer
1390
+ get_compression_type(): CompressionType
1391
+ get_encoding(): Encoding
1392
+ get_file(): File
1393
+ get_flags(): FileSaverFlags
1394
+ get_location(): Gio.File
1395
+ get_newline_type(): NewlineType
1396
+ /**
1397
+ * Saves asynchronously the buffer into the file. See the #GAsyncResult
1398
+ * documentation to know how to use this function.
1399
+ * @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
1400
+ * @param cancellable optional #GCancellable object, %NULL to ignore.
1401
+ * @param progress_callback function to call back with progress information, or %NULL if progress information is not needed.
1402
+ * @param callback a #GAsyncReadyCallback to call when the request is satisfied.
1403
+ */
1404
+ save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void
1405
+ /**
1406
+ * Finishes a file saving started with gtef_file_saver_save_async().
1407
+ *
1408
+ * If the file has been saved successfully, the following #GtefFile
1409
+ * properties will be updated: the location, the encoding, the newline type and
1410
+ * the compression type.
1411
+ *
1412
+ * gtk_text_buffer_set_modified() is called with %FALSE if the file has been
1413
+ * saved successfully.
1414
+ * @param result a #GAsyncResult.
1415
+ * @returns whether the file was saved successfully.
1416
+ */
1417
+ save_finish(result: Gio.AsyncResult): boolean
1418
+ /**
1419
+ * Sets the compression type. By default the compression type is taken from the
1420
+ * #GtefFile.
1421
+ * @param compression_type the new compression type.
1422
+ */
1423
+ set_compression_type(compression_type: CompressionType): void
1424
+ /**
1425
+ * Sets the encoding. If `encoding` is %NULL, the UTF-8 encoding will be set.
1426
+ * By default the encoding is taken from the #GtefFile.
1427
+ * @param encoding the new encoding, or %NULL for UTF-8.
1428
+ */
1429
+ set_encoding(encoding: Encoding | null): void
1430
+ set_flags(flags: FileSaverFlags): void
1431
+ /**
1432
+ * Sets the newline type. By default the newline type is taken from the
1433
+ * #GtefFile.
1434
+ * @param newline_type the new newline type.
1435
+ */
1436
+ set_newline_type(newline_type: NewlineType): void
1437
+
1438
+ // Class property signals of Gtef-2.Gtef.FileSaver
1439
+
1440
+ connect(sigName: "notify::buffer", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1441
+ connect_after(sigName: "notify::buffer", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1442
+ emit(sigName: "notify::buffer", ...args: any[]): void
1443
+ connect(sigName: "notify::compression-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1444
+ connect_after(sigName: "notify::compression-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1445
+ emit(sigName: "notify::compression-type", ...args: any[]): void
1446
+ connect(sigName: "notify::encoding", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1447
+ connect_after(sigName: "notify::encoding", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1448
+ emit(sigName: "notify::encoding", ...args: any[]): void
1449
+ connect(sigName: "notify::file", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1450
+ connect_after(sigName: "notify::file", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1451
+ emit(sigName: "notify::file", ...args: any[]): void
1452
+ connect(sigName: "notify::flags", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1453
+ connect_after(sigName: "notify::flags", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1454
+ emit(sigName: "notify::flags", ...args: any[]): void
1455
+ connect(sigName: "notify::location", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1456
+ connect_after(sigName: "notify::location", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1457
+ emit(sigName: "notify::location", ...args: any[]): void
1458
+ connect(sigName: "notify::newline-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1459
+ connect_after(sigName: "notify::newline-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
1460
+ emit(sigName: "notify::newline-type", ...args: any[]): void
1461
+ connect(sigName: string, callback: (...args: any[]) => void): number
1462
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1463
+ emit(sigName: string, ...args: any[]): void
1464
+ disconnect(id: number): void
1465
+ }
1466
+
1467
+ class FileSaver extends GObject.Object {
1468
+
1469
+ // Own properties of Gtef-2.Gtef.FileSaver
1470
+
1471
+ static name: string
1472
+ static $gtype: GObject.GType<FileSaver>
1473
+
1474
+ // Constructors of Gtef-2.Gtef.FileSaver
1475
+
1476
+ constructor(config?: FileSaver.ConstructorProperties)
1477
+ /**
1478
+ * Creates a new #GtefFileSaver object. The `buffer` will be saved to the
1479
+ * #GtefFile's location.
1480
+ *
1481
+ * This constructor is suitable for a simple "save" operation, when the `file`
1482
+ * already contains a non-%NULL #GtefFile:location.
1483
+ * @constructor
1484
+ * @param buffer the #GtefBuffer to save.
1485
+ * @param file the #GtefFile.
1486
+ * @returns a new #GtefFileSaver object.
1487
+ */
1488
+ constructor(buffer: Buffer, file: File)
1489
+ /**
1490
+ * Creates a new #GtefFileSaver object. The `buffer` will be saved to the
1491
+ * #GtefFile's location.
1492
+ *
1493
+ * This constructor is suitable for a simple "save" operation, when the `file`
1494
+ * already contains a non-%NULL #GtefFile:location.
1495
+ * @constructor
1496
+ * @param buffer the #GtefBuffer to save.
1497
+ * @param file the #GtefFile.
1498
+ * @returns a new #GtefFileSaver object.
1499
+ */
1500
+ static new(buffer: Buffer, file: File): FileSaver
1501
+ /**
1502
+ * Creates a new #GtefFileSaver object with a target location. When the
1503
+ * file saving is finished successfully, `target_location` is set to the `file'`s
1504
+ * #GtefFile:location property. If an error occurs, the previous valid
1505
+ * location is still available in #GtefFile.
1506
+ *
1507
+ * This constructor adds %GTEF_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME to the
1508
+ * #GtefFileSaver:flags property.
1509
+ *
1510
+ * This constructor is suitable for a "save as" operation, or for saving a new
1511
+ * buffer for the first time.
1512
+ * @constructor
1513
+ * @param buffer the #GtefBuffer to save.
1514
+ * @param file the #GtefFile.
1515
+ * @param target_location the #GFile where to save the buffer to.
1516
+ * @returns a new #GtefFileSaver object.
1517
+ */
1518
+ static new_with_target(buffer: Buffer, file: File, target_location: Gio.File): FileSaver
1519
+ _init(config?: FileSaver.ConstructorProperties): void
1520
+ }
1521
+
1522
+ module FoldRegion {
1523
+
1524
+ // Constructor properties interface
1525
+
1526
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1527
+
1528
+ // Own constructor properties of Gtef-2.Gtef.FoldRegion
1529
+
1530
+ /**
1531
+ * The #GtkTextBuffer where the fold region is applied. The
1532
+ * #GtefFoldRegion object has a weak reference to the buffer.
1533
+ */
1534
+ buffer?: Gtk.TextBuffer | null
1535
+ /**
1536
+ * Whether the #GtefFoldRegion is folded or not.
1537
+ */
1538
+ folded?: boolean | null
1539
+ }
1540
+
1541
+ }
1542
+
1543
+ interface FoldRegion {
1544
+
1545
+ // Own properties of Gtef-2.Gtef.FoldRegion
1546
+
1547
+ /**
1548
+ * The #GtkTextBuffer where the fold region is applied. The
1549
+ * #GtefFoldRegion object has a weak reference to the buffer.
1550
+ */
1551
+ readonly buffer: Gtk.TextBuffer
1552
+ /**
1553
+ * Whether the #GtefFoldRegion is folded or not.
1554
+ */
1555
+ folded: boolean
1556
+
1557
+ // Own fields of Gtef-2.Gtef.FoldRegion
1558
+
1559
+ parent_instance: GObject.Object
1560
+
1561
+ // Owm methods of Gtef-2.Gtef.FoldRegion
1562
+
1563
+ /**
1564
+ * Obtains iterators pointing to the start and end of the #GtefFoldRegion.
1565
+ * @returns %TRUE on success, %FALSE otherwise.
1566
+ */
1567
+ get_bounds(): [ /* returnType */ boolean, /* start */ Gtk.TextIter, /* end */ Gtk.TextIter ]
1568
+ get_buffer(): Gtk.TextBuffer | null
1569
+ get_folded(): boolean
1570
+ /**
1571
+ * Sets the start and end of the #GtefFoldRegion.
1572
+ * @param start a #GtkTextIter.
1573
+ * @param end a #GtkTextIter.
1574
+ */
1575
+ set_bounds(start: Gtk.TextIter, end: Gtk.TextIter): void
1576
+ /**
1577
+ * Folds or unfolds the region.
1578
+ * @param folded the new value.
1579
+ */
1580
+ set_folded(folded: boolean): void
1581
+
1582
+ // Class property signals of Gtef-2.Gtef.FoldRegion
1583
+
1584
+ connect(sigName: "notify::buffer", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
1585
+ connect_after(sigName: "notify::buffer", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
1586
+ emit(sigName: "notify::buffer", ...args: any[]): void
1587
+ connect(sigName: "notify::folded", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
1588
+ connect_after(sigName: "notify::folded", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
1589
+ emit(sigName: "notify::folded", ...args: any[]): void
1590
+ connect(sigName: string, callback: (...args: any[]) => void): number
1591
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1592
+ emit(sigName: string, ...args: any[]): void
1593
+ disconnect(id: number): void
1594
+ }
1595
+
1596
+ class FoldRegion extends GObject.Object {
1597
+
1598
+ // Own properties of Gtef-2.Gtef.FoldRegion
1599
+
1600
+ static name: string
1601
+ static $gtype: GObject.GType<FoldRegion>
1602
+
1603
+ // Constructors of Gtef-2.Gtef.FoldRegion
1604
+
1605
+ constructor(config?: FoldRegion.ConstructorProperties)
1606
+ constructor(buffer: Gtk.TextBuffer, start: Gtk.TextIter, end: Gtk.TextIter)
1607
+ static new(buffer: Gtk.TextBuffer, start: Gtk.TextIter, end: Gtk.TextIter): FoldRegion
1608
+ _init(config?: FoldRegion.ConstructorProperties): void
1609
+ }
1610
+
1611
+ module GutterRendererFolds {
1612
+
1613
+ // Constructor properties interface
1614
+
1615
+ interface ConstructorProperties extends GtkSource.GutterRenderer.ConstructorProperties {
1616
+ }
1617
+
1618
+ }
1619
+
1620
+ interface GutterRendererFolds {
1621
+
1622
+ // Own fields of Gtef-2.Gtef.GutterRendererFolds
1623
+
1624
+ parent_instance: GtkSource.GutterRenderer
1625
+
1626
+ // Owm methods of Gtef-2.Gtef.GutterRendererFolds
1627
+
1628
+ /**
1629
+ * Sets the folding state of the next cell to be drawn.
1630
+ *
1631
+ * This function is intended to be called from a subclass' draw method before
1632
+ * chaining-up to its parent's draw method.
1633
+ * @param state a #GtefGutterRendererFoldsState.
1634
+ */
1635
+ set_state(state: GutterRendererFoldsState): void
1636
+
1637
+ // Class property signals of Gtef-2.Gtef.GutterRendererFolds
1638
+
1639
+ connect(sigName: "notify::alignment-mode", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1640
+ connect_after(sigName: "notify::alignment-mode", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1641
+ emit(sigName: "notify::alignment-mode", ...args: any[]): void
1642
+ connect(sigName: "notify::background-rgba", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1643
+ connect_after(sigName: "notify::background-rgba", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1644
+ emit(sigName: "notify::background-rgba", ...args: any[]): void
1645
+ connect(sigName: "notify::background-set", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1646
+ connect_after(sigName: "notify::background-set", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1647
+ emit(sigName: "notify::background-set", ...args: any[]): void
1648
+ connect(sigName: "notify::size", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1649
+ connect_after(sigName: "notify::size", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1650
+ emit(sigName: "notify::size", ...args: any[]): void
1651
+ connect(sigName: "notify::view", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1652
+ connect_after(sigName: "notify::view", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1653
+ emit(sigName: "notify::view", ...args: any[]): void
1654
+ connect(sigName: "notify::visible", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1655
+ connect_after(sigName: "notify::visible", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1656
+ emit(sigName: "notify::visible", ...args: any[]): void
1657
+ connect(sigName: "notify::window-type", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1658
+ connect_after(sigName: "notify::window-type", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1659
+ emit(sigName: "notify::window-type", ...args: any[]): void
1660
+ connect(sigName: "notify::xalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1661
+ connect_after(sigName: "notify::xalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1662
+ emit(sigName: "notify::xalign", ...args: any[]): void
1663
+ connect(sigName: "notify::xpad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1664
+ connect_after(sigName: "notify::xpad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1665
+ emit(sigName: "notify::xpad", ...args: any[]): void
1666
+ connect(sigName: "notify::yalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1667
+ connect_after(sigName: "notify::yalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1668
+ emit(sigName: "notify::yalign", ...args: any[]): void
1669
+ connect(sigName: "notify::ypad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1670
+ connect_after(sigName: "notify::ypad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
1671
+ emit(sigName: "notify::ypad", ...args: any[]): void
1672
+ connect(sigName: string, callback: (...args: any[]) => void): number
1673
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1674
+ emit(sigName: string, ...args: any[]): void
1675
+ disconnect(id: number): void
1676
+ }
1677
+
1678
+ class GutterRendererFolds extends GtkSource.GutterRenderer {
1679
+
1680
+ // Own properties of Gtef-2.Gtef.GutterRendererFolds
1681
+
1682
+ static name: string
1683
+ static $gtype: GObject.GType<GutterRendererFolds>
1684
+
1685
+ // Constructors of Gtef-2.Gtef.GutterRendererFolds
1686
+
1687
+ constructor(config?: GutterRendererFolds.ConstructorProperties)
1688
+ constructor()
1689
+ static new(): GutterRendererFolds
1690
+ _init(config?: GutterRendererFolds.ConstructorProperties): void
1691
+ }
1692
+
1693
+ module InfoBar {
1694
+
1695
+ // Constructor properties interface
1696
+
1697
+ interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.InfoBar.ConstructorProperties {
1698
+ }
1699
+
1700
+ }
1701
+
1702
+ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1703
+
1704
+ // Conflicting properties
1705
+
1706
+ parent: Gtk.Box & Gtk.Container & Gtk.Container
1707
+
1708
+ // Own fields of Gtef-2.Gtef.InfoBar
1709
+
1710
+ parent_instance: Gtk.InfoBar & GObject.InitiallyUnowned
1711
+
1712
+ // Owm methods of Gtef-2.Gtef.InfoBar
1713
+
1714
+ /**
1715
+ * Calls gtk_info_bar_set_show_close_button(), and additionnally closes the
1716
+ * `info_bar` when the #GtkInfoBar::response signal is received with the
1717
+ * `response_id` %GTK_RESPONSE_CLOSE.
1718
+ */
1719
+ add_close_button(): void
1720
+ /**
1721
+ * Adds `content` to `info_bar`.
1722
+ *
1723
+ * #GtefInfoBar has an internal container, to be able to add the icon and add
1724
+ * primary or secondary messages. The internal container is added to the content
1725
+ * area, as returned by gtk_info_bar_get_content_area(). So if you use a
1726
+ * #GtefInfoBar and you need to add a custom #GtkWidget, it is better to use
1727
+ * this function instead of adding the #GtkWidget directly to the content area.
1728
+ * @param content a #GtkWidget.
1729
+ */
1730
+ add_content_widget(content: Gtk.Widget): void
1731
+ /**
1732
+ * Adds an icon on the left, determined by the message type. So before calling
1733
+ * this function, gtk_info_bar_set_message_type() must have been called.
1734
+ *
1735
+ * The icon is not updated when the message type changes. Another #GtefInfoBar
1736
+ * must be created in that case.
1737
+ */
1738
+ add_icon(): void
1739
+ /**
1740
+ * Adds a primary message.
1741
+ * @param primary_msg a primary message.
1742
+ */
1743
+ add_primary_message(primary_msg: string | null): void
1744
+ /**
1745
+ * Adds a secondary message.
1746
+ * @param secondary_msg a secondary message.
1747
+ */
1748
+ add_secondary_message(secondary_msg: string | null): void
1749
+
1750
+ // Conflicting methods
1751
+
1752
+ /**
1753
+ * Emits a #GtkWidget::child-notify signal for the
1754
+ * [child property][child-properties]
1755
+ * `child_property` on the child.
1756
+ *
1757
+ * This is an analogue of g_object_notify() for child properties.
1758
+ *
1759
+ * Also see gtk_widget_child_notify().
1760
+ * @param child the child widget
1761
+ * @param child_property the name of a child property installed on the class of `container`
1762
+ */
1763
+ child_notify(child: Gtk.Widget, child_property: string | null): void
1764
+
1765
+ // Overloads of child_notify
1766
+
1767
+ /**
1768
+ * Emits a #GtkWidget::child-notify signal for the
1769
+ * [child property][child-properties] `child_property`
1770
+ * on `widget`.
1771
+ *
1772
+ * This is the analogue of g_object_notify() for child properties.
1773
+ *
1774
+ * Also see gtk_container_child_notify().
1775
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
1776
+ */
1777
+ child_notify(child_property: string | null): void
1778
+ /**
1779
+ * Emits a #GtkWidget::child-notify signal for the
1780
+ * [child property][child-properties] `child_property`
1781
+ * on `widget`.
1782
+ *
1783
+ * This is the analogue of g_object_notify() for child properties.
1784
+ *
1785
+ * Also see gtk_container_child_notify().
1786
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
1787
+ */
1788
+ child_notify(child_property: string | null): void
1789
+
1790
+ // Class property signals of Gtef-2.Gtef.InfoBar
1791
+
1792
+ connect(sigName: "notify::message-type", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1793
+ connect_after(sigName: "notify::message-type", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1794
+ emit(sigName: "notify::message-type", ...args: any[]): void
1795
+ connect(sigName: "notify::revealed", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1796
+ connect_after(sigName: "notify::revealed", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1797
+ emit(sigName: "notify::revealed", ...args: any[]): void
1798
+ connect(sigName: "notify::show-close-button", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1799
+ connect_after(sigName: "notify::show-close-button", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1800
+ emit(sigName: "notify::show-close-button", ...args: any[]): void
1801
+ connect(sigName: "notify::baseline-position", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1802
+ connect_after(sigName: "notify::baseline-position", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1803
+ emit(sigName: "notify::baseline-position", ...args: any[]): void
1804
+ connect(sigName: "notify::homogeneous", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1805
+ connect_after(sigName: "notify::homogeneous", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1806
+ emit(sigName: "notify::homogeneous", ...args: any[]): void
1807
+ connect(sigName: "notify::spacing", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1808
+ connect_after(sigName: "notify::spacing", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1809
+ emit(sigName: "notify::spacing", ...args: any[]): void
1810
+ connect(sigName: "notify::border-width", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1811
+ connect_after(sigName: "notify::border-width", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1812
+ emit(sigName: "notify::border-width", ...args: any[]): void
1813
+ connect(sigName: "notify::child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1814
+ connect_after(sigName: "notify::child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1815
+ emit(sigName: "notify::child", ...args: any[]): void
1816
+ connect(sigName: "notify::resize-mode", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1817
+ connect_after(sigName: "notify::resize-mode", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1818
+ emit(sigName: "notify::resize-mode", ...args: any[]): void
1819
+ connect(sigName: "notify::app-paintable", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1820
+ connect_after(sigName: "notify::app-paintable", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1821
+ emit(sigName: "notify::app-paintable", ...args: any[]): void
1822
+ connect(sigName: "notify::can-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1823
+ connect_after(sigName: "notify::can-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1824
+ emit(sigName: "notify::can-default", ...args: any[]): void
1825
+ connect(sigName: "notify::can-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1826
+ connect_after(sigName: "notify::can-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1827
+ emit(sigName: "notify::can-focus", ...args: any[]): void
1828
+ connect(sigName: "notify::composite-child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1829
+ connect_after(sigName: "notify::composite-child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1830
+ emit(sigName: "notify::composite-child", ...args: any[]): void
1831
+ connect(sigName: "notify::double-buffered", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1832
+ connect_after(sigName: "notify::double-buffered", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1833
+ emit(sigName: "notify::double-buffered", ...args: any[]): void
1834
+ connect(sigName: "notify::events", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1835
+ connect_after(sigName: "notify::events", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1836
+ emit(sigName: "notify::events", ...args: any[]): void
1837
+ connect(sigName: "notify::expand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1838
+ connect_after(sigName: "notify::expand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1839
+ emit(sigName: "notify::expand", ...args: any[]): void
1840
+ connect(sigName: "notify::focus-on-click", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1841
+ connect_after(sigName: "notify::focus-on-click", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1842
+ emit(sigName: "notify::focus-on-click", ...args: any[]): void
1843
+ connect(sigName: "notify::halign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1844
+ connect_after(sigName: "notify::halign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1845
+ emit(sigName: "notify::halign", ...args: any[]): void
1846
+ connect(sigName: "notify::has-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1847
+ connect_after(sigName: "notify::has-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1848
+ emit(sigName: "notify::has-default", ...args: any[]): void
1849
+ connect(sigName: "notify::has-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1850
+ connect_after(sigName: "notify::has-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1851
+ emit(sigName: "notify::has-focus", ...args: any[]): void
1852
+ connect(sigName: "notify::has-tooltip", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1853
+ connect_after(sigName: "notify::has-tooltip", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1854
+ emit(sigName: "notify::has-tooltip", ...args: any[]): void
1855
+ connect(sigName: "notify::height-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1856
+ connect_after(sigName: "notify::height-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1857
+ emit(sigName: "notify::height-request", ...args: any[]): void
1858
+ connect(sigName: "notify::hexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1859
+ connect_after(sigName: "notify::hexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1860
+ emit(sigName: "notify::hexpand", ...args: any[]): void
1861
+ connect(sigName: "notify::hexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1862
+ connect_after(sigName: "notify::hexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1863
+ emit(sigName: "notify::hexpand-set", ...args: any[]): void
1864
+ connect(sigName: "notify::is-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1865
+ connect_after(sigName: "notify::is-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1866
+ emit(sigName: "notify::is-focus", ...args: any[]): void
1867
+ connect(sigName: "notify::margin", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1868
+ connect_after(sigName: "notify::margin", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1869
+ emit(sigName: "notify::margin", ...args: any[]): void
1870
+ connect(sigName: "notify::margin-bottom", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1871
+ connect_after(sigName: "notify::margin-bottom", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1872
+ emit(sigName: "notify::margin-bottom", ...args: any[]): void
1873
+ connect(sigName: "notify::margin-end", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1874
+ connect_after(sigName: "notify::margin-end", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1875
+ emit(sigName: "notify::margin-end", ...args: any[]): void
1876
+ connect(sigName: "notify::margin-left", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1877
+ connect_after(sigName: "notify::margin-left", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1878
+ emit(sigName: "notify::margin-left", ...args: any[]): void
1879
+ connect(sigName: "notify::margin-right", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1880
+ connect_after(sigName: "notify::margin-right", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1881
+ emit(sigName: "notify::margin-right", ...args: any[]): void
1882
+ connect(sigName: "notify::margin-start", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1883
+ connect_after(sigName: "notify::margin-start", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1884
+ emit(sigName: "notify::margin-start", ...args: any[]): void
1885
+ connect(sigName: "notify::margin-top", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1886
+ connect_after(sigName: "notify::margin-top", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1887
+ emit(sigName: "notify::margin-top", ...args: any[]): void
1888
+ connect(sigName: "notify::name", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1889
+ connect_after(sigName: "notify::name", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1890
+ emit(sigName: "notify::name", ...args: any[]): void
1891
+ connect(sigName: "notify::no-show-all", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1892
+ connect_after(sigName: "notify::no-show-all", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1893
+ emit(sigName: "notify::no-show-all", ...args: any[]): void
1894
+ connect(sigName: "notify::opacity", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1895
+ connect_after(sigName: "notify::opacity", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1896
+ emit(sigName: "notify::opacity", ...args: any[]): void
1897
+ connect(sigName: "notify::parent", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1898
+ connect_after(sigName: "notify::parent", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1899
+ emit(sigName: "notify::parent", ...args: any[]): void
1900
+ connect(sigName: "notify::receives-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1901
+ connect_after(sigName: "notify::receives-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1902
+ emit(sigName: "notify::receives-default", ...args: any[]): void
1903
+ connect(sigName: "notify::scale-factor", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1904
+ connect_after(sigName: "notify::scale-factor", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1905
+ emit(sigName: "notify::scale-factor", ...args: any[]): void
1906
+ connect(sigName: "notify::sensitive", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1907
+ connect_after(sigName: "notify::sensitive", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1908
+ emit(sigName: "notify::sensitive", ...args: any[]): void
1909
+ connect(sigName: "notify::style", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1910
+ connect_after(sigName: "notify::style", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1911
+ emit(sigName: "notify::style", ...args: any[]): void
1912
+ connect(sigName: "notify::tooltip-markup", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1913
+ connect_after(sigName: "notify::tooltip-markup", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1914
+ emit(sigName: "notify::tooltip-markup", ...args: any[]): void
1915
+ connect(sigName: "notify::tooltip-text", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1916
+ connect_after(sigName: "notify::tooltip-text", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1917
+ emit(sigName: "notify::tooltip-text", ...args: any[]): void
1918
+ connect(sigName: "notify::valign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1919
+ connect_after(sigName: "notify::valign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1920
+ emit(sigName: "notify::valign", ...args: any[]): void
1921
+ connect(sigName: "notify::vexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1922
+ connect_after(sigName: "notify::vexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1923
+ emit(sigName: "notify::vexpand", ...args: any[]): void
1924
+ connect(sigName: "notify::vexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1925
+ connect_after(sigName: "notify::vexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1926
+ emit(sigName: "notify::vexpand-set", ...args: any[]): void
1927
+ connect(sigName: "notify::visible", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1928
+ connect_after(sigName: "notify::visible", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1929
+ emit(sigName: "notify::visible", ...args: any[]): void
1930
+ connect(sigName: "notify::width-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1931
+ connect_after(sigName: "notify::width-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1932
+ emit(sigName: "notify::width-request", ...args: any[]): void
1933
+ connect(sigName: "notify::window", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1934
+ connect_after(sigName: "notify::window", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1935
+ emit(sigName: "notify::window", ...args: any[]): void
1936
+ connect(sigName: "notify::orientation", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1937
+ connect_after(sigName: "notify::orientation", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
1938
+ emit(sigName: "notify::orientation", ...args: any[]): void
1939
+ connect(sigName: string, callback: (...args: any[]) => void): number
1940
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1941
+ emit(sigName: string, ...args: any[]): void
1942
+ disconnect(id: number): void
1943
+ }
1944
+
1945
+ class InfoBar extends Gtk.InfoBar {
1946
+
1947
+ // Own properties of Gtef-2.Gtef.InfoBar
1948
+
1949
+ static name: string
1950
+ static $gtype: GObject.GType<InfoBar>
1951
+
1952
+ // Constructors of Gtef-2.Gtef.InfoBar
1953
+
1954
+ constructor(config?: InfoBar.ConstructorProperties)
1955
+ constructor()
1956
+ static new(): InfoBar
1957
+
1958
+ // Overloads of new
1959
+
1960
+ /**
1961
+ * Creates a new #GtkInfoBar object.
1962
+ * @constructor
1963
+ * @returns a new #GtkInfoBar object
1964
+ */
1965
+ static new(): Gtk.InfoBar
1966
+ /**
1967
+ * Creates a new #GtkBox.
1968
+ * @constructor
1969
+ * @param orientation the box’s orientation.
1970
+ * @param spacing the number of pixels to place by default between children.
1971
+ * @returns a new #GtkBox.
1972
+ */
1973
+ static new(orientation: Gtk.Orientation, spacing: number): Gtk.Box
1974
+ /**
1975
+ * Creates a new #GtefInfoBar with an icon (depending on `msg_type)`, a primary
1976
+ * message and a secondary message.
1977
+ * @constructor
1978
+ * @param msg_type the message type.
1979
+ * @param primary_msg the primary message.
1980
+ * @param secondary_msg the secondary message, or %NULL.
1981
+ * @returns a new #GtefInfoBar.
1982
+ */
1983
+ static new_simple(msg_type: Gtk.MessageType, primary_msg: string | null, secondary_msg: string | null): InfoBar
1984
+ _init(config?: InfoBar.ConstructorProperties): void
1985
+ /**
1986
+ * Utility function to create a #GtkLabel suitable for a #GtkInfoBar. The
1987
+ * wrapping and alignment is configured. The label is also set as selectable,
1988
+ * for example to copy an error message and search an explanation on the web.
1989
+ * @returns a new #GtkLabel suitable for a #GtkInfoBar.
1990
+ */
1991
+ static create_label(): Gtk.Label
1992
+ }
1993
+
1994
+ module MenuShell {
1995
+
1996
+ // Signal callback interfaces
1997
+
1998
+ /**
1999
+ * Signal callback interface for `menu-item-deselected`
2000
+ */
2001
+ interface MenuItemDeselectedSignalCallback {
2002
+ ($obj: MenuShell, menu_item: Gtk.MenuItem): void
2003
+ }
2004
+
2005
+ /**
2006
+ * Signal callback interface for `menu-item-selected`
2007
+ */
2008
+ interface MenuItemSelectedSignalCallback {
2009
+ ($obj: MenuShell, menu_item: Gtk.MenuItem): void
2010
+ }
2011
+
2012
+
2013
+ // Constructor properties interface
2014
+
2015
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2016
+
2017
+ // Own constructor properties of Gtef-2.Gtef.MenuShell
2018
+
2019
+ /**
2020
+ * The #GtkMenuShell.
2021
+ */
2022
+ menu_shell?: Gtk.MenuShell | null
2023
+ }
2024
+
2025
+ }
2026
+
2027
+ interface MenuShell {
2028
+
2029
+ // Own properties of Gtef-2.Gtef.MenuShell
2030
+
2031
+ /**
2032
+ * The #GtkMenuShell.
2033
+ */
2034
+ readonly menu_shell: Gtk.MenuShell
2035
+
2036
+ // Own fields of Gtef-2.Gtef.MenuShell
2037
+
2038
+ parent: GObject.Object
2039
+ priv: MenuShellPrivate
2040
+
2041
+ // Owm methods of Gtef-2.Gtef.MenuShell
2042
+
2043
+ get_menu_shell(): Gtk.MenuShell
2044
+
2045
+ // Own virtual methods of Gtef-2.Gtef.MenuShell
2046
+
2047
+ vfunc_menu_item_deselected(menu_item: Gtk.MenuItem): void
2048
+ vfunc_menu_item_selected(menu_item: Gtk.MenuItem): void
2049
+
2050
+ // Own signals of Gtef-2.Gtef.MenuShell
2051
+
2052
+ connect(sigName: "menu-item-deselected", callback: MenuShell.MenuItemDeselectedSignalCallback): number
2053
+ connect_after(sigName: "menu-item-deselected", callback: MenuShell.MenuItemDeselectedSignalCallback): number
2054
+ emit(sigName: "menu-item-deselected", menu_item: Gtk.MenuItem, ...args: any[]): void
2055
+ connect(sigName: "menu-item-selected", callback: MenuShell.MenuItemSelectedSignalCallback): number
2056
+ connect_after(sigName: "menu-item-selected", callback: MenuShell.MenuItemSelectedSignalCallback): number
2057
+ emit(sigName: "menu-item-selected", menu_item: Gtk.MenuItem, ...args: any[]): void
2058
+
2059
+ // Class property signals of Gtef-2.Gtef.MenuShell
2060
+
2061
+ connect(sigName: "notify::menu-shell", callback: (($obj: MenuShell, pspec: GObject.ParamSpec) => void)): number
2062
+ connect_after(sigName: "notify::menu-shell", callback: (($obj: MenuShell, pspec: GObject.ParamSpec) => void)): number
2063
+ emit(sigName: "notify::menu-shell", ...args: any[]): void
2064
+ connect(sigName: string, callback: (...args: any[]) => void): number
2065
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2066
+ emit(sigName: string, ...args: any[]): void
2067
+ disconnect(id: number): void
2068
+ }
2069
+
2070
+ class MenuShell extends GObject.Object {
2071
+
2072
+ // Own properties of Gtef-2.Gtef.MenuShell
2073
+
2074
+ static name: string
2075
+ static $gtype: GObject.GType<MenuShell>
2076
+
2077
+ // Constructors of Gtef-2.Gtef.MenuShell
2078
+
2079
+ constructor(config?: MenuShell.ConstructorProperties)
2080
+ _init(config?: MenuShell.ConstructorProperties): void
2081
+ /**
2082
+ * Returns the #GtefMenuShell of `gtk_menu_shell`. The returned object is
2083
+ * guaranteed to be the same for the lifetime of `gtk_menu_shell`.
2084
+ * @param gtk_menu_shell a #GtkMenuShell.
2085
+ * @returns the #GtefMenuShell of @gtk_menu_shell.
2086
+ */
2087
+ static get_from_gtk_menu_shell(gtk_menu_shell: Gtk.MenuShell): MenuShell
2088
+ }
2089
+
2090
+ module Tab {
2091
+
2092
+ // Constructor properties interface
2093
+
2094
+ interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Grid.ConstructorProperties {
2095
+ }
2096
+
2097
+ }
2098
+
2099
+ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2100
+
2101
+ // Own fields of Gtef-2.Gtef.Tab
2102
+
2103
+ parent_instance: Gtk.Grid & GObject.InitiallyUnowned
2104
+
2105
+ // Owm methods of Gtef-2.Gtef.Tab
2106
+
2107
+ /**
2108
+ * Attaches `info_bar` to `tab,` above the main widget.
2109
+ *
2110
+ * If several info bars are added, the first one will be at the top, the second
2111
+ * one below the first info bar, etc. With the main widget of `tab` at the
2112
+ * bottom.
2113
+ * @param info_bar a #GtkInfoBar.
2114
+ */
2115
+ add_info_bar(info_bar: Gtk.InfoBar): void
2116
+
2117
+ // Conflicting methods
2118
+
2119
+ /**
2120
+ * Emits a #GtkWidget::child-notify signal for the
2121
+ * [child property][child-properties]
2122
+ * `child_property` on the child.
2123
+ *
2124
+ * This is an analogue of g_object_notify() for child properties.
2125
+ *
2126
+ * Also see gtk_widget_child_notify().
2127
+ * @param child the child widget
2128
+ * @param child_property the name of a child property installed on the class of `container`
2129
+ */
2130
+ child_notify(child: Gtk.Widget, child_property: string | null): void
2131
+
2132
+ // Overloads of child_notify
2133
+
2134
+ /**
2135
+ * Emits a #GtkWidget::child-notify signal for the
2136
+ * [child property][child-properties] `child_property`
2137
+ * on `widget`.
2138
+ *
2139
+ * This is the analogue of g_object_notify() for child properties.
2140
+ *
2141
+ * Also see gtk_container_child_notify().
2142
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
2143
+ */
2144
+ child_notify(child_property: string | null): void
2145
+ /**
2146
+ * Emits a #GtkWidget::child-notify signal for the
2147
+ * [child property][child-properties] `child_property`
2148
+ * on `widget`.
2149
+ *
2150
+ * This is the analogue of g_object_notify() for child properties.
2151
+ *
2152
+ * Also see gtk_container_child_notify().
2153
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
2154
+ */
2155
+ child_notify(child_property: string | null): void
2156
+
2157
+ // Class property signals of Gtef-2.Gtef.Tab
2158
+
2159
+ connect(sigName: "notify::baseline-row", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2160
+ connect_after(sigName: "notify::baseline-row", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2161
+ emit(sigName: "notify::baseline-row", ...args: any[]): void
2162
+ connect(sigName: "notify::column-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2163
+ connect_after(sigName: "notify::column-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2164
+ emit(sigName: "notify::column-homogeneous", ...args: any[]): void
2165
+ connect(sigName: "notify::column-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2166
+ connect_after(sigName: "notify::column-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2167
+ emit(sigName: "notify::column-spacing", ...args: any[]): void
2168
+ connect(sigName: "notify::row-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2169
+ connect_after(sigName: "notify::row-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2170
+ emit(sigName: "notify::row-homogeneous", ...args: any[]): void
2171
+ connect(sigName: "notify::row-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2172
+ connect_after(sigName: "notify::row-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2173
+ emit(sigName: "notify::row-spacing", ...args: any[]): void
2174
+ connect(sigName: "notify::border-width", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2175
+ connect_after(sigName: "notify::border-width", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2176
+ emit(sigName: "notify::border-width", ...args: any[]): void
2177
+ connect(sigName: "notify::child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2178
+ connect_after(sigName: "notify::child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2179
+ emit(sigName: "notify::child", ...args: any[]): void
2180
+ connect(sigName: "notify::resize-mode", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2181
+ connect_after(sigName: "notify::resize-mode", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2182
+ emit(sigName: "notify::resize-mode", ...args: any[]): void
2183
+ connect(sigName: "notify::app-paintable", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2184
+ connect_after(sigName: "notify::app-paintable", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2185
+ emit(sigName: "notify::app-paintable", ...args: any[]): void
2186
+ connect(sigName: "notify::can-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2187
+ connect_after(sigName: "notify::can-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2188
+ emit(sigName: "notify::can-default", ...args: any[]): void
2189
+ connect(sigName: "notify::can-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2190
+ connect_after(sigName: "notify::can-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2191
+ emit(sigName: "notify::can-focus", ...args: any[]): void
2192
+ connect(sigName: "notify::composite-child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2193
+ connect_after(sigName: "notify::composite-child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2194
+ emit(sigName: "notify::composite-child", ...args: any[]): void
2195
+ connect(sigName: "notify::double-buffered", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2196
+ connect_after(sigName: "notify::double-buffered", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2197
+ emit(sigName: "notify::double-buffered", ...args: any[]): void
2198
+ connect(sigName: "notify::events", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2199
+ connect_after(sigName: "notify::events", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2200
+ emit(sigName: "notify::events", ...args: any[]): void
2201
+ connect(sigName: "notify::expand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2202
+ connect_after(sigName: "notify::expand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2203
+ emit(sigName: "notify::expand", ...args: any[]): void
2204
+ connect(sigName: "notify::focus-on-click", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2205
+ connect_after(sigName: "notify::focus-on-click", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2206
+ emit(sigName: "notify::focus-on-click", ...args: any[]): void
2207
+ connect(sigName: "notify::halign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2208
+ connect_after(sigName: "notify::halign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2209
+ emit(sigName: "notify::halign", ...args: any[]): void
2210
+ connect(sigName: "notify::has-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2211
+ connect_after(sigName: "notify::has-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2212
+ emit(sigName: "notify::has-default", ...args: any[]): void
2213
+ connect(sigName: "notify::has-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2214
+ connect_after(sigName: "notify::has-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2215
+ emit(sigName: "notify::has-focus", ...args: any[]): void
2216
+ connect(sigName: "notify::has-tooltip", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2217
+ connect_after(sigName: "notify::has-tooltip", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2218
+ emit(sigName: "notify::has-tooltip", ...args: any[]): void
2219
+ connect(sigName: "notify::height-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2220
+ connect_after(sigName: "notify::height-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2221
+ emit(sigName: "notify::height-request", ...args: any[]): void
2222
+ connect(sigName: "notify::hexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2223
+ connect_after(sigName: "notify::hexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2224
+ emit(sigName: "notify::hexpand", ...args: any[]): void
2225
+ connect(sigName: "notify::hexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2226
+ connect_after(sigName: "notify::hexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2227
+ emit(sigName: "notify::hexpand-set", ...args: any[]): void
2228
+ connect(sigName: "notify::is-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2229
+ connect_after(sigName: "notify::is-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2230
+ emit(sigName: "notify::is-focus", ...args: any[]): void
2231
+ connect(sigName: "notify::margin", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2232
+ connect_after(sigName: "notify::margin", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2233
+ emit(sigName: "notify::margin", ...args: any[]): void
2234
+ connect(sigName: "notify::margin-bottom", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2235
+ connect_after(sigName: "notify::margin-bottom", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2236
+ emit(sigName: "notify::margin-bottom", ...args: any[]): void
2237
+ connect(sigName: "notify::margin-end", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2238
+ connect_after(sigName: "notify::margin-end", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2239
+ emit(sigName: "notify::margin-end", ...args: any[]): void
2240
+ connect(sigName: "notify::margin-left", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2241
+ connect_after(sigName: "notify::margin-left", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2242
+ emit(sigName: "notify::margin-left", ...args: any[]): void
2243
+ connect(sigName: "notify::margin-right", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2244
+ connect_after(sigName: "notify::margin-right", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2245
+ emit(sigName: "notify::margin-right", ...args: any[]): void
2246
+ connect(sigName: "notify::margin-start", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2247
+ connect_after(sigName: "notify::margin-start", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2248
+ emit(sigName: "notify::margin-start", ...args: any[]): void
2249
+ connect(sigName: "notify::margin-top", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2250
+ connect_after(sigName: "notify::margin-top", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2251
+ emit(sigName: "notify::margin-top", ...args: any[]): void
2252
+ connect(sigName: "notify::name", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2253
+ connect_after(sigName: "notify::name", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2254
+ emit(sigName: "notify::name", ...args: any[]): void
2255
+ connect(sigName: "notify::no-show-all", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2256
+ connect_after(sigName: "notify::no-show-all", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2257
+ emit(sigName: "notify::no-show-all", ...args: any[]): void
2258
+ connect(sigName: "notify::opacity", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2259
+ connect_after(sigName: "notify::opacity", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2260
+ emit(sigName: "notify::opacity", ...args: any[]): void
2261
+ connect(sigName: "notify::parent", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2262
+ connect_after(sigName: "notify::parent", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2263
+ emit(sigName: "notify::parent", ...args: any[]): void
2264
+ connect(sigName: "notify::receives-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2265
+ connect_after(sigName: "notify::receives-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2266
+ emit(sigName: "notify::receives-default", ...args: any[]): void
2267
+ connect(sigName: "notify::scale-factor", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2268
+ connect_after(sigName: "notify::scale-factor", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2269
+ emit(sigName: "notify::scale-factor", ...args: any[]): void
2270
+ connect(sigName: "notify::sensitive", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2271
+ connect_after(sigName: "notify::sensitive", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2272
+ emit(sigName: "notify::sensitive", ...args: any[]): void
2273
+ connect(sigName: "notify::style", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2274
+ connect_after(sigName: "notify::style", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2275
+ emit(sigName: "notify::style", ...args: any[]): void
2276
+ connect(sigName: "notify::tooltip-markup", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2277
+ connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2278
+ emit(sigName: "notify::tooltip-markup", ...args: any[]): void
2279
+ connect(sigName: "notify::tooltip-text", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2280
+ connect_after(sigName: "notify::tooltip-text", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2281
+ emit(sigName: "notify::tooltip-text", ...args: any[]): void
2282
+ connect(sigName: "notify::valign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2283
+ connect_after(sigName: "notify::valign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2284
+ emit(sigName: "notify::valign", ...args: any[]): void
2285
+ connect(sigName: "notify::vexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2286
+ connect_after(sigName: "notify::vexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2287
+ emit(sigName: "notify::vexpand", ...args: any[]): void
2288
+ connect(sigName: "notify::vexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2289
+ connect_after(sigName: "notify::vexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2290
+ emit(sigName: "notify::vexpand-set", ...args: any[]): void
2291
+ connect(sigName: "notify::visible", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2292
+ connect_after(sigName: "notify::visible", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2293
+ emit(sigName: "notify::visible", ...args: any[]): void
2294
+ connect(sigName: "notify::width-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2295
+ connect_after(sigName: "notify::width-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2296
+ emit(sigName: "notify::width-request", ...args: any[]): void
2297
+ connect(sigName: "notify::window", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2298
+ connect_after(sigName: "notify::window", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2299
+ emit(sigName: "notify::window", ...args: any[]): void
2300
+ connect(sigName: "notify::orientation", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2301
+ connect_after(sigName: "notify::orientation", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
2302
+ emit(sigName: "notify::orientation", ...args: any[]): void
2303
+ connect(sigName: string, callback: (...args: any[]) => void): number
2304
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2305
+ emit(sigName: string, ...args: any[]): void
2306
+ disconnect(id: number): void
2307
+ }
2308
+
2309
+ class Tab extends Gtk.Grid {
2310
+
2311
+ // Own properties of Gtef-2.Gtef.Tab
2312
+
2313
+ static name: string
2314
+ static $gtype: GObject.GType<Tab>
2315
+
2316
+ // Constructors of Gtef-2.Gtef.Tab
2317
+
2318
+ constructor(config?: Tab.ConstructorProperties)
2319
+ constructor(main_widget: Gtk.Widget)
2320
+ static new(main_widget: Gtk.Widget): Tab
2321
+
2322
+ // Overloads of new
2323
+
2324
+ /**
2325
+ * Creates a new grid widget.
2326
+ * @constructor
2327
+ * @returns the new #GtkGrid
2328
+ */
2329
+ static new(): Gtk.Grid
2330
+ _init(config?: Tab.ConstructorProperties): void
2331
+ }
2332
+
2333
+ module View {
2334
+
2335
+ // Constructor properties interface
2336
+
2337
+ interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Scrollable.ConstructorProperties, GtkSource.View.ConstructorProperties {
2338
+ }
2339
+
2340
+ }
2341
+
2342
+ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
2343
+
2344
+ // Conflicting properties
2345
+
2346
+ parent: Gtk.TextView & Gtk.Container & Gtk.Container
2347
+
2348
+ // Own fields of Gtef-2.Gtef.View
2349
+
2350
+ parent_instance: GtkSource.View & Gtk.Container & GObject.InitiallyUnowned & GObject.InitiallyUnowned
2351
+
2352
+ // Owm methods of Gtef-2.Gtef.View
2353
+
2354
+ /**
2355
+ * Copies the clipboard.
2356
+ */
2357
+ copy_clipboard(): void
2358
+ /**
2359
+ * Cuts the clipboard and then scrolls to the cursor position.
2360
+ */
2361
+ cut_clipboard(): void
2362
+ /**
2363
+ * Deletes the text currently selected in the #GtkTextBuffer associated
2364
+ * to the view and then scrolls to the cursor position.
2365
+ */
2366
+ delete_selection(): void
2367
+ /**
2368
+ * Places the cursor at the position returned by
2369
+ * gtk_text_buffer_get_iter_at_line(), and scrolls to that position.
2370
+ * @param line a line number, counting from 0.
2371
+ * @returns %TRUE if the cursor has been moved exactly to @line, %FALSE if that line didn't exist.
2372
+ */
2373
+ goto_line(line: number): boolean
2374
+ /**
2375
+ * Places the cursor at the position returned by
2376
+ * gtk_text_buffer_get_iter_at_line_offset(), and scrolls to that position.
2377
+ * @param line a line number, counting from 0.
2378
+ * @param line_offset the line offset, in characters (not bytes).
2379
+ * @returns %TRUE if the cursor has been moved exactly to @line and @line_offset, %FALSE if that position didn't exist.
2380
+ */
2381
+ goto_line_offset(line: number, line_offset: number): boolean
2382
+ /**
2383
+ * Pastes the clipboard and then scrolls to the cursor position.
2384
+ */
2385
+ paste_clipboard(): void
2386
+ /**
2387
+ * Scrolls the `view` to the cursor position.
2388
+ */
2389
+ scroll_to_cursor(): void
2390
+ /**
2391
+ * Selects all the text.
2392
+ */
2393
+ select_all(): void
2394
+ /**
2395
+ * Selects the lines between `start_line` and `end_line` included, counting from
2396
+ * zero. And then scrolls to the cursor.
2397
+ *
2398
+ * Possible use-case: line numbers coming from a compilation output, to go to
2399
+ * the place where a warning or error occurred.
2400
+ * @param start_line start of the region to select.
2401
+ * @param end_line end of the region to select.
2402
+ */
2403
+ select_lines(start_line: number, end_line: number): void
2404
+
2405
+ // Conflicting methods
2406
+
2407
+ /**
2408
+ * Retrieves the #GdkWindow corresponding to an area of the text view;
2409
+ * possible windows include the overall widget window, child windows
2410
+ * on the left, right, top, bottom, and the window that displays the
2411
+ * text buffer. Windows are %NULL and nonexistent if their width or
2412
+ * height is 0, and are nonexistent before the widget has been
2413
+ * realized.
2414
+ * @param win window to get
2415
+ * @returns a #GdkWindow, or %NULL
2416
+ */
2417
+ get_window(win: Gtk.TextWindowType): Gdk.Window | null
2418
+
2419
+ // Overloads of get_window
2420
+
2421
+ /**
2422
+ * Returns the widget’s window if it is realized, %NULL otherwise
2423
+ * @returns @widget’s window.
2424
+ */
2425
+ get_window(): Gdk.Window | null
2426
+ /**
2427
+ * Returns the widget’s window if it is realized, %NULL otherwise
2428
+ * @returns @widget’s window.
2429
+ */
2430
+ get_window(): Gdk.Window | null
2431
+ /**
2432
+ * Emits a #GtkWidget::child-notify signal for the
2433
+ * [child property][child-properties]
2434
+ * `child_property` on the child.
2435
+ *
2436
+ * This is an analogue of g_object_notify() for child properties.
2437
+ *
2438
+ * Also see gtk_widget_child_notify().
2439
+ * @param child the child widget
2440
+ * @param child_property the name of a child property installed on the class of `container`
2441
+ */
2442
+ child_notify(child: Gtk.Widget, child_property: string | null): void
2443
+
2444
+ // Overloads of child_notify
2445
+
2446
+ /**
2447
+ * Emits a #GtkWidget::child-notify signal for the
2448
+ * [child property][child-properties] `child_property`
2449
+ * on `widget`.
2450
+ *
2451
+ * This is the analogue of g_object_notify() for child properties.
2452
+ *
2453
+ * Also see gtk_container_child_notify().
2454
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
2455
+ */
2456
+ child_notify(child_property: string | null): void
2457
+ /**
2458
+ * Emits a #GtkWidget::child-notify signal for the
2459
+ * [child property][child-properties] `child_property`
2460
+ * on `widget`.
2461
+ *
2462
+ * This is the analogue of g_object_notify() for child properties.
2463
+ *
2464
+ * Also see gtk_container_child_notify().
2465
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
2466
+ */
2467
+ child_notify(child_property: string | null): void
2468
+
2469
+ // Class property signals of Gtef-2.Gtef.View
2470
+
2471
+ connect(sigName: "notify::auto-indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2472
+ connect_after(sigName: "notify::auto-indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2473
+ emit(sigName: "notify::auto-indent", ...args: any[]): void
2474
+ connect(sigName: "notify::background-pattern", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2475
+ connect_after(sigName: "notify::background-pattern", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2476
+ emit(sigName: "notify::background-pattern", ...args: any[]): void
2477
+ connect(sigName: "notify::completion", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2478
+ connect_after(sigName: "notify::completion", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2479
+ emit(sigName: "notify::completion", ...args: any[]): void
2480
+ connect(sigName: "notify::draw-spaces", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2481
+ connect_after(sigName: "notify::draw-spaces", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2482
+ emit(sigName: "notify::draw-spaces", ...args: any[]): void
2483
+ connect(sigName: "notify::highlight-current-line", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2484
+ connect_after(sigName: "notify::highlight-current-line", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2485
+ emit(sigName: "notify::highlight-current-line", ...args: any[]): void
2486
+ connect(sigName: "notify::indent-on-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2487
+ connect_after(sigName: "notify::indent-on-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2488
+ emit(sigName: "notify::indent-on-tab", ...args: any[]): void
2489
+ connect(sigName: "notify::indent-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2490
+ connect_after(sigName: "notify::indent-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2491
+ emit(sigName: "notify::indent-width", ...args: any[]): void
2492
+ connect(sigName: "notify::insert-spaces-instead-of-tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2493
+ connect_after(sigName: "notify::insert-spaces-instead-of-tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2494
+ emit(sigName: "notify::insert-spaces-instead-of-tabs", ...args: any[]): void
2495
+ connect(sigName: "notify::right-margin-position", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2496
+ connect_after(sigName: "notify::right-margin-position", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2497
+ emit(sigName: "notify::right-margin-position", ...args: any[]): void
2498
+ connect(sigName: "notify::show-line-marks", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2499
+ connect_after(sigName: "notify::show-line-marks", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2500
+ emit(sigName: "notify::show-line-marks", ...args: any[]): void
2501
+ connect(sigName: "notify::show-line-numbers", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2502
+ connect_after(sigName: "notify::show-line-numbers", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2503
+ emit(sigName: "notify::show-line-numbers", ...args: any[]): void
2504
+ connect(sigName: "notify::show-right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2505
+ connect_after(sigName: "notify::show-right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2506
+ emit(sigName: "notify::show-right-margin", ...args: any[]): void
2507
+ connect(sigName: "notify::smart-backspace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2508
+ connect_after(sigName: "notify::smart-backspace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2509
+ emit(sigName: "notify::smart-backspace", ...args: any[]): void
2510
+ connect(sigName: "notify::smart-home-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2511
+ connect_after(sigName: "notify::smart-home-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2512
+ emit(sigName: "notify::smart-home-end", ...args: any[]): void
2513
+ connect(sigName: "notify::space-drawer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2514
+ connect_after(sigName: "notify::space-drawer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2515
+ emit(sigName: "notify::space-drawer", ...args: any[]): void
2516
+ connect(sigName: "notify::tab-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2517
+ connect_after(sigName: "notify::tab-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2518
+ emit(sigName: "notify::tab-width", ...args: any[]): void
2519
+ connect(sigName: "notify::accepts-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2520
+ connect_after(sigName: "notify::accepts-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2521
+ emit(sigName: "notify::accepts-tab", ...args: any[]): void
2522
+ connect(sigName: "notify::bottom-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2523
+ connect_after(sigName: "notify::bottom-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2524
+ emit(sigName: "notify::bottom-margin", ...args: any[]): void
2525
+ connect(sigName: "notify::buffer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2526
+ connect_after(sigName: "notify::buffer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2527
+ emit(sigName: "notify::buffer", ...args: any[]): void
2528
+ connect(sigName: "notify::cursor-visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2529
+ connect_after(sigName: "notify::cursor-visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2530
+ emit(sigName: "notify::cursor-visible", ...args: any[]): void
2531
+ connect(sigName: "notify::editable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2532
+ connect_after(sigName: "notify::editable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2533
+ emit(sigName: "notify::editable", ...args: any[]): void
2534
+ connect(sigName: "notify::im-module", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2535
+ connect_after(sigName: "notify::im-module", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2536
+ emit(sigName: "notify::im-module", ...args: any[]): void
2537
+ connect(sigName: "notify::indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2538
+ connect_after(sigName: "notify::indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2539
+ emit(sigName: "notify::indent", ...args: any[]): void
2540
+ connect(sigName: "notify::input-hints", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2541
+ connect_after(sigName: "notify::input-hints", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2542
+ emit(sigName: "notify::input-hints", ...args: any[]): void
2543
+ connect(sigName: "notify::input-purpose", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2544
+ connect_after(sigName: "notify::input-purpose", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2545
+ emit(sigName: "notify::input-purpose", ...args: any[]): void
2546
+ connect(sigName: "notify::justification", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2547
+ connect_after(sigName: "notify::justification", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2548
+ emit(sigName: "notify::justification", ...args: any[]): void
2549
+ connect(sigName: "notify::left-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2550
+ connect_after(sigName: "notify::left-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2551
+ emit(sigName: "notify::left-margin", ...args: any[]): void
2552
+ connect(sigName: "notify::monospace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2553
+ connect_after(sigName: "notify::monospace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2554
+ emit(sigName: "notify::monospace", ...args: any[]): void
2555
+ connect(sigName: "notify::overwrite", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2556
+ connect_after(sigName: "notify::overwrite", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2557
+ emit(sigName: "notify::overwrite", ...args: any[]): void
2558
+ connect(sigName: "notify::pixels-above-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2559
+ connect_after(sigName: "notify::pixels-above-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2560
+ emit(sigName: "notify::pixels-above-lines", ...args: any[]): void
2561
+ connect(sigName: "notify::pixels-below-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2562
+ connect_after(sigName: "notify::pixels-below-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2563
+ emit(sigName: "notify::pixels-below-lines", ...args: any[]): void
2564
+ connect(sigName: "notify::pixels-inside-wrap", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2565
+ connect_after(sigName: "notify::pixels-inside-wrap", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2566
+ emit(sigName: "notify::pixels-inside-wrap", ...args: any[]): void
2567
+ connect(sigName: "notify::populate-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2568
+ connect_after(sigName: "notify::populate-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2569
+ emit(sigName: "notify::populate-all", ...args: any[]): void
2570
+ connect(sigName: "notify::right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2571
+ connect_after(sigName: "notify::right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2572
+ emit(sigName: "notify::right-margin", ...args: any[]): void
2573
+ connect(sigName: "notify::tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2574
+ connect_after(sigName: "notify::tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2575
+ emit(sigName: "notify::tabs", ...args: any[]): void
2576
+ connect(sigName: "notify::top-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2577
+ connect_after(sigName: "notify::top-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2578
+ emit(sigName: "notify::top-margin", ...args: any[]): void
2579
+ connect(sigName: "notify::wrap-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2580
+ connect_after(sigName: "notify::wrap-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2581
+ emit(sigName: "notify::wrap-mode", ...args: any[]): void
2582
+ connect(sigName: "notify::border-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2583
+ connect_after(sigName: "notify::border-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2584
+ emit(sigName: "notify::border-width", ...args: any[]): void
2585
+ connect(sigName: "notify::child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2586
+ connect_after(sigName: "notify::child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2587
+ emit(sigName: "notify::child", ...args: any[]): void
2588
+ connect(sigName: "notify::resize-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2589
+ connect_after(sigName: "notify::resize-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2590
+ emit(sigName: "notify::resize-mode", ...args: any[]): void
2591
+ connect(sigName: "notify::app-paintable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2592
+ connect_after(sigName: "notify::app-paintable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2593
+ emit(sigName: "notify::app-paintable", ...args: any[]): void
2594
+ connect(sigName: "notify::can-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2595
+ connect_after(sigName: "notify::can-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2596
+ emit(sigName: "notify::can-default", ...args: any[]): void
2597
+ connect(sigName: "notify::can-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2598
+ connect_after(sigName: "notify::can-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2599
+ emit(sigName: "notify::can-focus", ...args: any[]): void
2600
+ connect(sigName: "notify::composite-child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2601
+ connect_after(sigName: "notify::composite-child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2602
+ emit(sigName: "notify::composite-child", ...args: any[]): void
2603
+ connect(sigName: "notify::double-buffered", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2604
+ connect_after(sigName: "notify::double-buffered", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2605
+ emit(sigName: "notify::double-buffered", ...args: any[]): void
2606
+ connect(sigName: "notify::events", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2607
+ connect_after(sigName: "notify::events", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2608
+ emit(sigName: "notify::events", ...args: any[]): void
2609
+ connect(sigName: "notify::expand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2610
+ connect_after(sigName: "notify::expand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2611
+ emit(sigName: "notify::expand", ...args: any[]): void
2612
+ connect(sigName: "notify::focus-on-click", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2613
+ connect_after(sigName: "notify::focus-on-click", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2614
+ emit(sigName: "notify::focus-on-click", ...args: any[]): void
2615
+ connect(sigName: "notify::halign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2616
+ connect_after(sigName: "notify::halign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2617
+ emit(sigName: "notify::halign", ...args: any[]): void
2618
+ connect(sigName: "notify::has-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2619
+ connect_after(sigName: "notify::has-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2620
+ emit(sigName: "notify::has-default", ...args: any[]): void
2621
+ connect(sigName: "notify::has-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2622
+ connect_after(sigName: "notify::has-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2623
+ emit(sigName: "notify::has-focus", ...args: any[]): void
2624
+ connect(sigName: "notify::has-tooltip", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2625
+ connect_after(sigName: "notify::has-tooltip", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2626
+ emit(sigName: "notify::has-tooltip", ...args: any[]): void
2627
+ connect(sigName: "notify::height-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2628
+ connect_after(sigName: "notify::height-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2629
+ emit(sigName: "notify::height-request", ...args: any[]): void
2630
+ connect(sigName: "notify::hexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2631
+ connect_after(sigName: "notify::hexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2632
+ emit(sigName: "notify::hexpand", ...args: any[]): void
2633
+ connect(sigName: "notify::hexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2634
+ connect_after(sigName: "notify::hexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2635
+ emit(sigName: "notify::hexpand-set", ...args: any[]): void
2636
+ connect(sigName: "notify::is-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2637
+ connect_after(sigName: "notify::is-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2638
+ emit(sigName: "notify::is-focus", ...args: any[]): void
2639
+ connect(sigName: "notify::margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2640
+ connect_after(sigName: "notify::margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2641
+ emit(sigName: "notify::margin", ...args: any[]): void
2642
+ connect(sigName: "notify::margin-bottom", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2643
+ connect_after(sigName: "notify::margin-bottom", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2644
+ emit(sigName: "notify::margin-bottom", ...args: any[]): void
2645
+ connect(sigName: "notify::margin-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2646
+ connect_after(sigName: "notify::margin-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2647
+ emit(sigName: "notify::margin-end", ...args: any[]): void
2648
+ connect(sigName: "notify::margin-left", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2649
+ connect_after(sigName: "notify::margin-left", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2650
+ emit(sigName: "notify::margin-left", ...args: any[]): void
2651
+ connect(sigName: "notify::margin-right", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2652
+ connect_after(sigName: "notify::margin-right", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2653
+ emit(sigName: "notify::margin-right", ...args: any[]): void
2654
+ connect(sigName: "notify::margin-start", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2655
+ connect_after(sigName: "notify::margin-start", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2656
+ emit(sigName: "notify::margin-start", ...args: any[]): void
2657
+ connect(sigName: "notify::margin-top", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2658
+ connect_after(sigName: "notify::margin-top", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2659
+ emit(sigName: "notify::margin-top", ...args: any[]): void
2660
+ connect(sigName: "notify::name", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2661
+ connect_after(sigName: "notify::name", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2662
+ emit(sigName: "notify::name", ...args: any[]): void
2663
+ connect(sigName: "notify::no-show-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2664
+ connect_after(sigName: "notify::no-show-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2665
+ emit(sigName: "notify::no-show-all", ...args: any[]): void
2666
+ connect(sigName: "notify::opacity", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2667
+ connect_after(sigName: "notify::opacity", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2668
+ emit(sigName: "notify::opacity", ...args: any[]): void
2669
+ connect(sigName: "notify::parent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2670
+ connect_after(sigName: "notify::parent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2671
+ emit(sigName: "notify::parent", ...args: any[]): void
2672
+ connect(sigName: "notify::receives-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2673
+ connect_after(sigName: "notify::receives-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2674
+ emit(sigName: "notify::receives-default", ...args: any[]): void
2675
+ connect(sigName: "notify::scale-factor", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2676
+ connect_after(sigName: "notify::scale-factor", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2677
+ emit(sigName: "notify::scale-factor", ...args: any[]): void
2678
+ connect(sigName: "notify::sensitive", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2679
+ connect_after(sigName: "notify::sensitive", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2680
+ emit(sigName: "notify::sensitive", ...args: any[]): void
2681
+ connect(sigName: "notify::style", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2682
+ connect_after(sigName: "notify::style", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2683
+ emit(sigName: "notify::style", ...args: any[]): void
2684
+ connect(sigName: "notify::tooltip-markup", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2685
+ connect_after(sigName: "notify::tooltip-markup", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2686
+ emit(sigName: "notify::tooltip-markup", ...args: any[]): void
2687
+ connect(sigName: "notify::tooltip-text", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2688
+ connect_after(sigName: "notify::tooltip-text", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2689
+ emit(sigName: "notify::tooltip-text", ...args: any[]): void
2690
+ connect(sigName: "notify::valign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2691
+ connect_after(sigName: "notify::valign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2692
+ emit(sigName: "notify::valign", ...args: any[]): void
2693
+ connect(sigName: "notify::vexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2694
+ connect_after(sigName: "notify::vexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2695
+ emit(sigName: "notify::vexpand", ...args: any[]): void
2696
+ connect(sigName: "notify::vexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2697
+ connect_after(sigName: "notify::vexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2698
+ emit(sigName: "notify::vexpand-set", ...args: any[]): void
2699
+ connect(sigName: "notify::visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2700
+ connect_after(sigName: "notify::visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2701
+ emit(sigName: "notify::visible", ...args: any[]): void
2702
+ connect(sigName: "notify::width-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2703
+ connect_after(sigName: "notify::width-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2704
+ emit(sigName: "notify::width-request", ...args: any[]): void
2705
+ connect(sigName: "notify::window", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2706
+ connect_after(sigName: "notify::window", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2707
+ emit(sigName: "notify::window", ...args: any[]): void
2708
+ connect(sigName: "notify::hadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2709
+ connect_after(sigName: "notify::hadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2710
+ emit(sigName: "notify::hadjustment", ...args: any[]): void
2711
+ connect(sigName: "notify::hscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2712
+ connect_after(sigName: "notify::hscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2713
+ emit(sigName: "notify::hscroll-policy", ...args: any[]): void
2714
+ connect(sigName: "notify::vadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2715
+ connect_after(sigName: "notify::vadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2716
+ emit(sigName: "notify::vadjustment", ...args: any[]): void
2717
+ connect(sigName: "notify::vscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2718
+ connect_after(sigName: "notify::vscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
2719
+ emit(sigName: "notify::vscroll-policy", ...args: any[]): void
2720
+ connect(sigName: string, callback: (...args: any[]) => void): number
2721
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2722
+ emit(sigName: string, ...args: any[]): void
2723
+ disconnect(id: number): void
2724
+ }
2725
+
2726
+ class View extends GtkSource.View {
2727
+
2728
+ // Own properties of Gtef-2.Gtef.View
2729
+
2730
+ static name: string
2731
+ static $gtype: GObject.GType<View>
2732
+
2733
+ // Constructors of Gtef-2.Gtef.View
2734
+
2735
+ constructor(config?: View.ConstructorProperties)
2736
+ constructor()
2737
+ static new(): View
2738
+ _init(config?: View.ConstructorProperties): void
2739
+
2740
+ // Conflicting static methods
2741
+
2742
+ static new_with_buffer(...args: any[]): any
2743
+ }
2744
+
2745
+ interface ActionInfo {
2746
+
2747
+ // Owm methods of Gtef-2.Gtef.ActionInfo
2748
+
2749
+ copy(): ActionInfo
2750
+ /**
2751
+ * Returns the accelerators. This function never returns %NULL, it always
2752
+ * returns a %NULL-terminated array, to be suitable for
2753
+ * gtk_application_set_accels_for_action().
2754
+ * @returns a %NULL-terminated array of accelerators in the format understood by gtk_accelerator_parse().
2755
+ */
2756
+ get_accels(): string[]
2757
+ get_action_name(): string | null
2758
+ get_icon_name(): string | null
2759
+ get_label(): string | null
2760
+ get_tooltip(): string | null
2761
+ /**
2762
+ * Increments the reference count of `info` by one.
2763
+ * @returns the passed in @info.
2764
+ */
2765
+ ref(): ActionInfo
2766
+ /**
2767
+ * A function similar to gtk_application_set_accels_for_action().
2768
+ *
2769
+ * `accels` must not be %NULL, it must be a %NULL-terminated array, to be
2770
+ * consistent with gtk_application_set_accels_for_action().
2771
+ * @param accels a %NULL-terminated array of accelerators in the format understood by gtk_accelerator_parse().
2772
+ */
2773
+ set_accels(accels: string[]): void
2774
+ /**
2775
+ * Sets the action name, for example `"win.save"`.
2776
+ * @param action_name the action name.
2777
+ */
2778
+ set_action_name(action_name: string | null): void
2779
+ set_icon_name(icon_name: string | null): void
2780
+ set_label(label: string | null): void
2781
+ set_tooltip(tooltip: string | null): void
2782
+ /**
2783
+ * Decrements the reference count of `info` by one. If the reference count drops
2784
+ * to 0, `info` is freed.
2785
+ */
2786
+ unref(): void
2787
+ }
2788
+
2789
+ class ActionInfo {
2790
+
2791
+ // Own properties of Gtef-2.Gtef.ActionInfo
2792
+
2793
+ static name: string
2794
+
2795
+ // Constructors of Gtef-2.Gtef.ActionInfo
2796
+
2797
+ constructor()
2798
+ static new(): ActionInfo
2799
+ /**
2800
+ * Creates a new #GtefActionInfo from a #GtefActionInfoEntry.
2801
+ *
2802
+ * If `translation_domain` is not %NULL, g_dgettext() is used to translate the
2803
+ * `label` and `tooltip` before setting them to the #GtefActionInfo.
2804
+ * @constructor
2805
+ * @param info_entry a #GtefActionInfoEntry.
2806
+ * @param translation_domain a gettext domain, or %NULL.
2807
+ * @returns a new #GtefActionInfo.
2808
+ */
2809
+ static new_from_entry(info_entry: ActionInfoEntry, translation_domain: string | null): ActionInfo
2810
+ }
2811
+
2812
+ interface ActionInfoCentralStoreClass {
2813
+
2814
+ // Own fields of Gtef-2.Gtef.ActionInfoCentralStoreClass
2815
+
2816
+ parent_class: GObject.ObjectClass
2817
+ padding: any[]
2818
+ }
2819
+
2820
+ abstract class ActionInfoCentralStoreClass {
2821
+
2822
+ // Own properties of Gtef-2.Gtef.ActionInfoCentralStoreClass
2823
+
2824
+ static name: string
2825
+ }
2826
+
2827
+ interface ActionInfoCentralStorePrivate {
2828
+ }
2829
+
2830
+ class ActionInfoCentralStorePrivate {
2831
+
2832
+ // Own properties of Gtef-2.Gtef.ActionInfoCentralStorePrivate
2833
+
2834
+ static name: string
2835
+ }
2836
+
2837
+ interface ActionInfoEntry {
2838
+
2839
+ // Own fields of Gtef-2.Gtef.ActionInfoEntry
2840
+
2841
+ /**
2842
+ * the action name.
2843
+ * @field
2844
+ */
2845
+ action_name: string | null
2846
+ /**
2847
+ * the icon name, or %NULL.
2848
+ * @field
2849
+ */
2850
+ icon_name: string | null
2851
+ /**
2852
+ * the label (i.e. a short description), or %NULL.
2853
+ * @field
2854
+ */
2855
+ label: string | null
2856
+ /**
2857
+ * the accelerator, in the format understood by gtk_accelerator_parse().
2858
+ * Or %NULL.
2859
+ * @field
2860
+ */
2861
+ accel: string | null
2862
+ /**
2863
+ * the tooltip (i.e. a long description), or %NULL.
2864
+ * @field
2865
+ */
2866
+ tooltip: string | null
2867
+ }
2868
+
2869
+ /**
2870
+ * This struct defines a set of information for a single action. It is for use
2871
+ * with gtef_action_info_store_add_entries().
2872
+ *
2873
+ * Like #GActionEntry, it is permissible to use an incomplete initialiser in
2874
+ * order to leave some of the later values as %NULL. Additional optional fields
2875
+ * may be added in the future.
2876
+ * @record
2877
+ */
2878
+ class ActionInfoEntry {
2879
+
2880
+ // Own properties of Gtef-2.Gtef.ActionInfoEntry
2881
+
2882
+ static name: string
2883
+ }
2884
+
2885
+ interface ActionInfoStoreClass {
2886
+
2887
+ // Own fields of Gtef-2.Gtef.ActionInfoStoreClass
2888
+
2889
+ parent_class: GObject.ObjectClass
2890
+ padding: any[]
2891
+ }
2892
+
2893
+ abstract class ActionInfoStoreClass {
2894
+
2895
+ // Own properties of Gtef-2.Gtef.ActionInfoStoreClass
2896
+
2897
+ static name: string
2898
+ }
2899
+
2900
+ interface ActionInfoStorePrivate {
2901
+ }
2902
+
2903
+ class ActionInfoStorePrivate {
2904
+
2905
+ // Own properties of Gtef-2.Gtef.ActionInfoStorePrivate
2906
+
2907
+ static name: string
2908
+ }
2909
+
2910
+ interface ApplicationClass {
2911
+
2912
+ // Own fields of Gtef-2.Gtef.ApplicationClass
2913
+
2914
+ parent_class: GObject.ObjectClass
2915
+ padding: any[]
2916
+ }
2917
+
2918
+ abstract class ApplicationClass {
2919
+
2920
+ // Own properties of Gtef-2.Gtef.ApplicationClass
2921
+
2922
+ static name: string
2923
+ }
2924
+
2925
+ interface ApplicationPrivate {
2926
+ }
2927
+
2928
+ class ApplicationPrivate {
2929
+
2930
+ // Own properties of Gtef-2.Gtef.ApplicationPrivate
2931
+
2932
+ static name: string
2933
+ }
2934
+
2935
+ interface ApplicationWindowClass {
2936
+
2937
+ // Own fields of Gtef-2.Gtef.ApplicationWindowClass
2938
+
2939
+ parent_class: GObject.ObjectClass
2940
+ padding: any[]
2941
+ }
2942
+
2943
+ abstract class ApplicationWindowClass {
2944
+
2945
+ // Own properties of Gtef-2.Gtef.ApplicationWindowClass
2946
+
2947
+ static name: string
2948
+ }
2949
+
2950
+ interface ApplicationWindowPrivate {
2951
+ }
2952
+
2953
+ class ApplicationWindowPrivate {
2954
+
2955
+ // Own properties of Gtef-2.Gtef.ApplicationWindowPrivate
2956
+
2957
+ static name: string
2958
+ }
2959
+
2960
+ interface BufferClass {
2961
+
2962
+ // Own fields of Gtef-2.Gtef.BufferClass
2963
+
2964
+ parent_class: GtkSource.BufferClass
2965
+ gtef_cursor_moved: (buffer: Buffer) => void
2966
+ padding: any[]
2967
+ }
2968
+
2969
+ abstract class BufferClass {
2970
+
2971
+ // Own properties of Gtef-2.Gtef.BufferClass
2972
+
2973
+ static name: string
2974
+ }
2975
+
2976
+ interface Encoding {
2977
+
2978
+ // Owm methods of Gtef-2.Gtef.Encoding
2979
+
2980
+ copy(): Encoding
2981
+ equals(enc2: Encoding | null): boolean
2982
+ free(): void
2983
+ /**
2984
+ * Gets the character set of the #GtefEncoding, such as "UTF-8" or "ISO-8859-1".
2985
+ * @returns the character set of the #GtefEncoding.
2986
+ */
2987
+ get_charset(): string | null
2988
+ /**
2989
+ * Gets the name of the #GtefEncoding such as "Unicode" or "Western".
2990
+ * @returns the name of the #GtefEncoding.
2991
+ */
2992
+ get_name(): string | null
2993
+ is_utf8(): boolean
2994
+ /**
2995
+ * Returns the encoding name with the charset in parenthesis, for example
2996
+ * "Unicode (UTF-8)". If the name is unknown, just the charset is returned.
2997
+ * @returns a string representation. Free with g_free() when no longer needed.
2998
+ */
2999
+ to_string(): string | null
3000
+ }
3001
+
3002
+ class Encoding {
3003
+
3004
+ // Own properties of Gtef-2.Gtef.Encoding
3005
+
3006
+ static name: string
3007
+
3008
+ // Constructors of Gtef-2.Gtef.Encoding
3009
+
3010
+ /**
3011
+ * Creates a new #GtefEncoding from a character set such as "UTF-8" or
3012
+ * "ISO-8859-1".
3013
+ * @constructor
3014
+ * @param charset a character set.
3015
+ * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3016
+ */
3017
+ constructor(charset: string | null)
3018
+ /**
3019
+ * Creates a new #GtefEncoding from a character set such as "UTF-8" or
3020
+ * "ISO-8859-1".
3021
+ * @constructor
3022
+ * @param charset a character set.
3023
+ * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3024
+ */
3025
+ static new(charset: string | null): Encoding
3026
+ /**
3027
+ * Creates a new #GtefEncoding from the current locale, as returned by
3028
+ * g_get_charset().
3029
+ * @constructor
3030
+ * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3031
+ */
3032
+ static new_from_locale(): Encoding
3033
+ /**
3034
+ * Creates a new #GtefEncoding with the "UTF-8" character set.
3035
+ * @constructor
3036
+ * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3037
+ */
3038
+ static new_utf8(): Encoding
3039
+ /**
3040
+ * Gets a list of all encodings known by #GtefEncoding.
3041
+ * @returns a list of #GtefEncoding's.
3042
+ */
3043
+ static get_all(): Encoding[]
3044
+ /**
3045
+ * Gets the list of default candidate encodings to try when loading a file. See
3046
+ * gtk_source_file_loader_set_candidate_encodings().
3047
+ *
3048
+ * This function returns a different list depending on the current locale (i.e.
3049
+ * language, country and default encoding). The UTF-8 encoding and the current
3050
+ * locale encoding are guaranteed to be present in the returned list.
3051
+ * @returns the list of default candidate encodings.
3052
+ */
3053
+ static get_default_candidates(): Encoding[]
3054
+ }
3055
+
3056
+ interface FileClass {
3057
+
3058
+ // Own fields of Gtef-2.Gtef.FileClass
3059
+
3060
+ parent_class: GObject.ObjectClass
3061
+ padding: any[]
3062
+ }
3063
+
3064
+ abstract class FileClass {
3065
+
3066
+ // Own properties of Gtef-2.Gtef.FileClass
3067
+
3068
+ static name: string
3069
+ }
3070
+
3071
+ interface FileLoaderClass {
3072
+
3073
+ // Own fields of Gtef-2.Gtef.FileLoaderClass
3074
+
3075
+ parent_class: GObject.ObjectClass
3076
+ padding: any[]
3077
+ }
3078
+
3079
+ abstract class FileLoaderClass {
3080
+
3081
+ // Own properties of Gtef-2.Gtef.FileLoaderClass
3082
+
3083
+ static name: string
3084
+ }
3085
+
3086
+ interface FileMetadataClass {
3087
+
3088
+ // Own fields of Gtef-2.Gtef.FileMetadataClass
3089
+
3090
+ parent_class: GObject.ObjectClass
3091
+ padding: any[]
3092
+ }
3093
+
3094
+ abstract class FileMetadataClass {
3095
+
3096
+ // Own properties of Gtef-2.Gtef.FileMetadataClass
3097
+
3098
+ static name: string
3099
+ }
3100
+
3101
+ interface FileSaverClass {
3102
+
3103
+ // Own fields of Gtef-2.Gtef.FileSaverClass
3104
+
3105
+ parent_class: GObject.ObjectClass
3106
+ padding: any[]
3107
+ }
3108
+
3109
+ abstract class FileSaverClass {
3110
+
3111
+ // Own properties of Gtef-2.Gtef.FileSaverClass
3112
+
3113
+ static name: string
3114
+ }
3115
+
3116
+ interface FileSaverPrivate {
3117
+ }
3118
+
3119
+ class FileSaverPrivate {
3120
+
3121
+ // Own properties of Gtef-2.Gtef.FileSaverPrivate
3122
+
3123
+ static name: string
3124
+ }
3125
+
3126
+ interface FoldRegionClass {
3127
+
3128
+ // Own fields of Gtef-2.Gtef.FoldRegionClass
3129
+
3130
+ parent_class: GObject.ObjectClass
3131
+ padding: any[]
3132
+ }
3133
+
3134
+ abstract class FoldRegionClass {
3135
+
3136
+ // Own properties of Gtef-2.Gtef.FoldRegionClass
3137
+
3138
+ static name: string
3139
+ }
3140
+
3141
+ interface GutterRendererFoldsClass {
3142
+
3143
+ // Own fields of Gtef-2.Gtef.GutterRendererFoldsClass
3144
+
3145
+ parent_class: GtkSource.GutterRendererClass
3146
+ padding: any[]
3147
+ }
3148
+
3149
+ abstract class GutterRendererFoldsClass {
3150
+
3151
+ // Own properties of Gtef-2.Gtef.GutterRendererFoldsClass
3152
+
3153
+ static name: string
3154
+ }
3155
+
3156
+ interface InfoBarClass {
3157
+
3158
+ // Own fields of Gtef-2.Gtef.InfoBarClass
3159
+
3160
+ parent_class: Gtk.InfoBarClass
3161
+ padding: any[]
3162
+ }
3163
+
3164
+ abstract class InfoBarClass {
3165
+
3166
+ // Own properties of Gtef-2.Gtef.InfoBarClass
3167
+
3168
+ static name: string
3169
+ }
3170
+
3171
+ interface MenuShellClass {
3172
+
3173
+ // Own fields of Gtef-2.Gtef.MenuShellClass
3174
+
3175
+ parent_class: GObject.ObjectClass
3176
+ menu_item_selected: (gtef_menu_shell: MenuShell, menu_item: Gtk.MenuItem) => void
3177
+ menu_item_deselected: (gtef_menu_shell: MenuShell, menu_item: Gtk.MenuItem) => void
3178
+ padding: any[]
3179
+ }
3180
+
3181
+ abstract class MenuShellClass {
3182
+
3183
+ // Own properties of Gtef-2.Gtef.MenuShellClass
3184
+
3185
+ static name: string
3186
+ }
3187
+
3188
+ interface MenuShellPrivate {
3189
+ }
3190
+
3191
+ class MenuShellPrivate {
3192
+
3193
+ // Own properties of Gtef-2.Gtef.MenuShellPrivate
3194
+
3195
+ static name: string
3196
+ }
3197
+
3198
+ interface TabClass {
3199
+
3200
+ // Own fields of Gtef-2.Gtef.TabClass
3201
+
3202
+ parent_class: Gtk.GridClass
3203
+ padding: any[]
3204
+ }
3205
+
3206
+ abstract class TabClass {
3207
+
3208
+ // Own properties of Gtef-2.Gtef.TabClass
3209
+
3210
+ static name: string
3211
+ }
3212
+
3213
+ interface ViewClass {
3214
+
3215
+ // Own fields of Gtef-2.Gtef.ViewClass
3216
+
3217
+ parent_class: GtkSource.ViewClass
3218
+ padding: any[]
3219
+ }
3220
+
3221
+ abstract class ViewClass {
3222
+
3223
+ // Own properties of Gtef-2.Gtef.ViewClass
3224
+
3225
+ static name: string
3226
+ }
3227
+
3228
+ /**
3229
+ * Name of the imported GIR library
3230
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
3231
+ */
3232
+ const __name__: string
3233
+ /**
3234
+ * Version of the imported GIR library
3235
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
3236
+ */
3237
+ const __version__: string
3238
+ }
3239
+
3240
+ export default Gtef;
3241
+ // END