@girs/tepl-4 4.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/README.md +31 -0
- package/package.json +66 -0
- package/tepl-4.cjs +9 -0
- package/tepl-4.d.cts +4210 -0
- package/tepl-4.d.ts +4215 -0
- package/tepl-4.js +8 -0
- package/tsconfig.doc.json +19 -0
package/tepl-4.d.ts
ADDED
|
@@ -0,0 +1,4215 @@
|
|
|
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
|
+
* Tepl-4
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GtkSource from '@girs/gtksource-4';
|
|
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
|
+
import type Amtk from '@girs/amtk-5';
|
|
27
|
+
|
|
28
|
+
export namespace Tepl {
|
|
29
|
+
|
|
30
|
+
enum CompressionType {
|
|
31
|
+
/**
|
|
32
|
+
* plain text.
|
|
33
|
+
*/
|
|
34
|
+
NONE,
|
|
35
|
+
/**
|
|
36
|
+
* gzip compression.
|
|
37
|
+
*/
|
|
38
|
+
GZIP,
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* An error code used with the %TEPL_FILE_LOADER_ERROR domain.
|
|
42
|
+
*/
|
|
43
|
+
enum FileLoaderError {
|
|
44
|
+
/**
|
|
45
|
+
* The file is too big.
|
|
46
|
+
*/
|
|
47
|
+
TOO_BIG,
|
|
48
|
+
/**
|
|
49
|
+
* It is not possible to
|
|
50
|
+
* detect the encoding automatically.
|
|
51
|
+
*/
|
|
52
|
+
ENCODING_AUTO_DETECTION_FAILED,
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* An error code used with the %TEPL_FILE_SAVER_ERROR domain.
|
|
56
|
+
*/
|
|
57
|
+
enum FileSaverError {
|
|
58
|
+
/**
|
|
59
|
+
* The buffer contains invalid
|
|
60
|
+
* characters.
|
|
61
|
+
*/
|
|
62
|
+
INVALID_CHARS,
|
|
63
|
+
/**
|
|
64
|
+
* The file is externally
|
|
65
|
+
* modified.
|
|
66
|
+
*/
|
|
67
|
+
EXTERNALLY_MODIFIED,
|
|
68
|
+
}
|
|
69
|
+
enum NewlineType {
|
|
70
|
+
/**
|
|
71
|
+
* line feed, used on UNIX.
|
|
72
|
+
*/
|
|
73
|
+
LF,
|
|
74
|
+
/**
|
|
75
|
+
* carriage return, used on Mac.
|
|
76
|
+
*/
|
|
77
|
+
CR,
|
|
78
|
+
/**
|
|
79
|
+
* carriage return followed by a line feed, used
|
|
80
|
+
* on Windows.
|
|
81
|
+
*/
|
|
82
|
+
CR_LF,
|
|
83
|
+
}
|
|
84
|
+
enum SelectionType {
|
|
85
|
+
/**
|
|
86
|
+
* No selection.
|
|
87
|
+
*/
|
|
88
|
+
NO_SELECTION,
|
|
89
|
+
/**
|
|
90
|
+
* The start and end selection bounds are on
|
|
91
|
+
* the same line.
|
|
92
|
+
*/
|
|
93
|
+
ON_SAME_LINE,
|
|
94
|
+
/**
|
|
95
|
+
* The selection spans multiple lines.
|
|
96
|
+
*/
|
|
97
|
+
MULTIPLE_LINES,
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Flags to define the behavior of a #TeplFileSaver.
|
|
101
|
+
* @bitfield
|
|
102
|
+
*/
|
|
103
|
+
enum FileSaverFlags {
|
|
104
|
+
/**
|
|
105
|
+
* No flags.
|
|
106
|
+
*/
|
|
107
|
+
NONE,
|
|
108
|
+
/**
|
|
109
|
+
* Ignore invalid characters.
|
|
110
|
+
*/
|
|
111
|
+
IGNORE_INVALID_CHARS,
|
|
112
|
+
/**
|
|
113
|
+
* Save file despite external modifications.
|
|
114
|
+
*/
|
|
115
|
+
IGNORE_MODIFICATION_TIME,
|
|
116
|
+
/**
|
|
117
|
+
* Create a backup before saving the file.
|
|
118
|
+
*/
|
|
119
|
+
CREATE_BACKUP,
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The folding state at a certain line in the #GtkTextBuffer.
|
|
123
|
+
*
|
|
124
|
+
* Since #TeplGutterRendererFolds has a flat view of the folding tree, some
|
|
125
|
+
* states can be combined; for example, %TEPL_GUTTER_RENDERER_FOLDS_STATE_END
|
|
126
|
+
* and %TEPL_GUTTER_RENDERER_FOLDS_STATE_CONTINUE.
|
|
127
|
+
* @bitfield
|
|
128
|
+
*/
|
|
129
|
+
enum GutterRendererFoldsState {
|
|
130
|
+
/**
|
|
131
|
+
* No code folding here.
|
|
132
|
+
*/
|
|
133
|
+
NONE,
|
|
134
|
+
/**
|
|
135
|
+
* Start of currently folded
|
|
136
|
+
* fold region.
|
|
137
|
+
*/
|
|
138
|
+
START_FOLDED,
|
|
139
|
+
/**
|
|
140
|
+
* Start of currently opened
|
|
141
|
+
* fold region.
|
|
142
|
+
*/
|
|
143
|
+
START_OPENED,
|
|
144
|
+
/**
|
|
145
|
+
* Fold region continues.
|
|
146
|
+
*/
|
|
147
|
+
CONTINUE,
|
|
148
|
+
/**
|
|
149
|
+
* End of fold region.
|
|
150
|
+
*/
|
|
151
|
+
END,
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Gets a list of all encodings known by #TeplEncoding.
|
|
155
|
+
* @returns a list of #TeplEncoding's.
|
|
156
|
+
*/
|
|
157
|
+
function encoding_get_all(): Encoding[]
|
|
158
|
+
/**
|
|
159
|
+
* Gets the list of default candidate encodings to try when loading a file. See
|
|
160
|
+
* gtk_source_file_loader_set_candidate_encodings().
|
|
161
|
+
*
|
|
162
|
+
* This function returns a different list depending on the current locale (i.e.
|
|
163
|
+
* language, country and default encoding). The UTF-8 encoding and the current
|
|
164
|
+
* locale encoding are guaranteed to be present in the returned list.
|
|
165
|
+
*
|
|
166
|
+
* Note that the returned list doesn't contain all encodings known by
|
|
167
|
+
* #TeplEncoding, it is a limited list that contains only the encodings that
|
|
168
|
+
* have the most likelihood to fit for the current locale.
|
|
169
|
+
* @returns the list of default candidate encodings.
|
|
170
|
+
*/
|
|
171
|
+
function encoding_get_default_candidates(): Encoding[]
|
|
172
|
+
function file_loader_error_quark(): GLib.Quark
|
|
173
|
+
function file_saver_error_quark(): GLib.Quark
|
|
174
|
+
/**
|
|
175
|
+
* Free the resources allocated by Tepl. For example it unrefs the singleton
|
|
176
|
+
* objects. It also properly shutdowns the metadata manager by calling
|
|
177
|
+
* tepl_metadata_manager_shutdown().
|
|
178
|
+
*
|
|
179
|
+
* This function also calls amtk_finalize() and gtk_source_finalize().
|
|
180
|
+
*
|
|
181
|
+
* It is not mandatory to call this function, it's just to be friendlier to
|
|
182
|
+
* memory debugging tools (but if you don't call this function and you use the
|
|
183
|
+
* metadata manager, you should call tepl_metadata_manager_shutdown()). This
|
|
184
|
+
* function is meant to be called at the end of main(). It can be called several
|
|
185
|
+
* times.
|
|
186
|
+
*/
|
|
187
|
+
function finalize(): void
|
|
188
|
+
/**
|
|
189
|
+
* Initializes the Tepl library (e.g. for the internationalization).
|
|
190
|
+
*
|
|
191
|
+
* This function can be called several times, but is meant to be called at the
|
|
192
|
+
* beginning of main(), before any other Tepl function call.
|
|
193
|
+
*
|
|
194
|
+
* This function also calls amtk_init() and gtk_source_init().
|
|
195
|
+
*/
|
|
196
|
+
function init(): void
|
|
197
|
+
/**
|
|
198
|
+
* When a %G_IO_ERROR_CANT_CREATE_BACKUP error occurs while saving `location,`
|
|
199
|
+
* offer two possible actions:
|
|
200
|
+
* - Save anyway: %GTK_RESPONSE_YES.
|
|
201
|
+
* - Don't save: %GTK_RESPONSE_CANCEL.
|
|
202
|
+
* @param location the #GFile for which the backup failed to be created.
|
|
203
|
+
* @param error must be a %G_IO_ERROR_CANT_CREATE_BACKUP.
|
|
204
|
+
* @returns the newly created #TeplInfoBar.
|
|
205
|
+
*/
|
|
206
|
+
function io_error_info_bar_cant_create_backup(location: Gio.File, error: GLib.Error): InfoBar
|
|
207
|
+
/**
|
|
208
|
+
* Creates a warning about `location` having changed on disk. The possible
|
|
209
|
+
* actions:
|
|
210
|
+
* - Depending on `document_modified,` "Reload" or "Drop changes and reload":
|
|
211
|
+
* %GTK_RESPONSE_OK.
|
|
212
|
+
* - A close button as added with gtk_info_bar_set_show_close_button().
|
|
213
|
+
* @param location the #GFile for which there has been an external modification.
|
|
214
|
+
* @param document_modified whether the document (e.g. the #GtkTextBuffer) has unsaved modifications.
|
|
215
|
+
* @returns the newly created #TeplInfoBar.
|
|
216
|
+
*/
|
|
217
|
+
function io_error_info_bar_externally_modified(location: Gio.File, document_modified: boolean): InfoBar
|
|
218
|
+
/**
|
|
219
|
+
* Creates a warning about `location` being already open in another window,
|
|
220
|
+
* offering two possible actions:
|
|
221
|
+
* - Edit anyway: %GTK_RESPONSE_YES.
|
|
222
|
+
* - Don't edit: %GTK_RESPONSE_CANCEL.
|
|
223
|
+
* @param location the #GFile already open in another window.
|
|
224
|
+
* @returns the newly created #TeplInfoBar.
|
|
225
|
+
*/
|
|
226
|
+
function io_error_info_bar_file_already_open(location: Gio.File): InfoBar
|
|
227
|
+
/**
|
|
228
|
+
* For file saving, creates a warning about invalid characters that can corrupt
|
|
229
|
+
* the file. Possible actions:
|
|
230
|
+
* - Save anyway: %GTK_RESPONSE_YES.
|
|
231
|
+
* - Don't save: %GTK_RESPONSE_CANCEL.
|
|
232
|
+
* @param location where to save the document.
|
|
233
|
+
* @returns the newly created #TeplInfoBar.
|
|
234
|
+
*/
|
|
235
|
+
function io_error_info_bar_invalid_characters(location: Gio.File): InfoBar
|
|
236
|
+
/**
|
|
237
|
+
* Gets the indentation, as a string, of the line at `iter`. `iter` can be
|
|
238
|
+
* anywhere in the line.
|
|
239
|
+
*
|
|
240
|
+
* Possible use-case: to implement an action that inserts some text in a
|
|
241
|
+
* #GtkTextBuffer. If the text to insert spans multiple lines, it is usually
|
|
242
|
+
* desired to keep the same indentation level.
|
|
243
|
+
* @param iter a #GtkTextIter.
|
|
244
|
+
* @returns the line indentation at @iter. Free with g_free().
|
|
245
|
+
*/
|
|
246
|
+
function iter_get_line_indentation(iter: Gtk.TextIter): string | null
|
|
247
|
+
/**
|
|
248
|
+
* Appends #GtkMenuItem's to `menu_shell` for the following #GAction's:
|
|
249
|
+
* - `"win.tepl-cut"`
|
|
250
|
+
* - `"win.tepl-copy"`
|
|
251
|
+
* - `"win.tepl-paste"`
|
|
252
|
+
* - `"win.tepl-delete"`
|
|
253
|
+
* - `"win.tepl-select-all"`
|
|
254
|
+
*
|
|
255
|
+
* See the [list of GActions implemented in
|
|
256
|
+
* TeplApplicationWindow][tepl-application-window-gactions]. This function
|
|
257
|
+
* correctly uses the %AMTK_FACTORY_IGNORE_ACCELS_FOR_APP flag to create the
|
|
258
|
+
* #GtkMenuItem's.
|
|
259
|
+
* @param menu_shell a #GtkMenuShell.
|
|
260
|
+
*/
|
|
261
|
+
function menu_shell_append_edit_actions(menu_shell: Gtk.MenuShell): void
|
|
262
|
+
/**
|
|
263
|
+
* This function initializes the metadata manager.
|
|
264
|
+
*
|
|
265
|
+
* The `metadata_path` must be different for each process. It is advised for your
|
|
266
|
+
* application to rely on #GApplication process uniqueness.
|
|
267
|
+
*
|
|
268
|
+
* A good place to store the metadata is in a sub-directory of the user data
|
|
269
|
+
* directory. See g_get_user_data_dir().
|
|
270
|
+
* @param metadata_path the filename where the metadata is stored.
|
|
271
|
+
*/
|
|
272
|
+
function metadata_manager_init(metadata_path: string | null): void
|
|
273
|
+
/**
|
|
274
|
+
* This function saves synchronously metadata if they need to be saved, and
|
|
275
|
+
* frees the internal data of the metadata manager.
|
|
276
|
+
*
|
|
277
|
+
* See also tepl_finalize(), which calls this function.
|
|
278
|
+
*/
|
|
279
|
+
function metadata_manager_shutdown(): void
|
|
280
|
+
/**
|
|
281
|
+
* Synchronously creates parent directories of `file,` so that `file` can be
|
|
282
|
+
* saved.
|
|
283
|
+
* @param file a file
|
|
284
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
285
|
+
* @returns whether the directories are correctly created. %FALSE is returned on error.
|
|
286
|
+
*/
|
|
287
|
+
function utils_create_parent_directories(file: Gio.File, cancellable: Gio.Cancellable | null): boolean
|
|
288
|
+
/**
|
|
289
|
+
* Parse and break an uri apart in its individual components like the uri
|
|
290
|
+
* scheme, user info, host, port and path. The return value pointer can be
|
|
291
|
+
* %NULL to ignore certain parts of the uri. If the function returns %TRUE, then
|
|
292
|
+
* all return value pointers should be freed using g_free().
|
|
293
|
+
* @param uri the uri to decode
|
|
294
|
+
* @returns %TRUE if the uri could be properly decoded, %FALSE otherwise.
|
|
295
|
+
*/
|
|
296
|
+
function utils_decode_uri(uri: string | null): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* host */ string | null, /* port */ string | null, /* path */ string | null ]
|
|
297
|
+
/**
|
|
298
|
+
* Examples:
|
|
299
|
+
* - "file.pdf" returns ".pdf".
|
|
300
|
+
* - "file.PDF" returns ".pdf".
|
|
301
|
+
* - "file.tar.gz" returns ".gz".
|
|
302
|
+
* - "path/to/file.pdf" returns ".pdf".
|
|
303
|
+
* - "file" (without an extension) returns "" (the empty string).
|
|
304
|
+
* @param filename a filename.
|
|
305
|
+
* @returns the @filename's extension with the dot, in lowercase. Free with g_free().
|
|
306
|
+
*/
|
|
307
|
+
function utils_get_file_extension(filename: string | null): string | null
|
|
308
|
+
/**
|
|
309
|
+
* Returns `filename` without its extension. With the “extension” having the same
|
|
310
|
+
* definition as in tepl_utils_get_file_extension(); in other words it returns
|
|
311
|
+
* the other part of `filename`.
|
|
312
|
+
* @param filename a filename.
|
|
313
|
+
* @returns the @filename without its extension. Free with g_free().
|
|
314
|
+
*/
|
|
315
|
+
function utils_get_file_shortname(filename: string | null): string | null
|
|
316
|
+
/**
|
|
317
|
+
* Replaces the home directory with a tilde, if the home directory is present in
|
|
318
|
+
* the `filename`.
|
|
319
|
+
* @param filename the filename.
|
|
320
|
+
* @returns the new filename. Free with g_free().
|
|
321
|
+
*/
|
|
322
|
+
function utils_replace_home_dir_with_tilde(filename: string | null): string | null
|
|
323
|
+
/**
|
|
324
|
+
* Like tepl_utils_str_middle_truncate() but the “…” character is at the end.
|
|
325
|
+
* @param str a UTF-8 string.
|
|
326
|
+
* @param truncate_length truncate the string at that length, in UTF-8 characters (not bytes).
|
|
327
|
+
* @returns the truncated string. Free with g_free().
|
|
328
|
+
*/
|
|
329
|
+
function utils_str_end_truncate(str: string | null, truncate_length: number): string | null
|
|
330
|
+
/**
|
|
331
|
+
* If `str` is longer than `truncate_length,` then this function returns `str`
|
|
332
|
+
* truncated in the middle with a “…” character. Otherwise it just returns a
|
|
333
|
+
* copy of `str`.
|
|
334
|
+
* @param str a UTF-8 string.
|
|
335
|
+
* @param truncate_length truncate the string at that length, in UTF-8 characters (not bytes).
|
|
336
|
+
* @returns the truncated string. Free with g_free().
|
|
337
|
+
*/
|
|
338
|
+
function utils_str_middle_truncate(str: string | null, truncate_length: number): string | null
|
|
339
|
+
/**
|
|
340
|
+
* Replaces all occurences of `search` by `replacement`.
|
|
341
|
+
*
|
|
342
|
+
* The function does only one pass, for example:
|
|
343
|
+
*
|
|
344
|
+
* ```
|
|
345
|
+
* tepl_utils_str_replace ("aaaa", "aa", "a");
|
|
346
|
+
* ```
|
|
347
|
+
*
|
|
348
|
+
* returns "aa", not "a".
|
|
349
|
+
* @param string a string
|
|
350
|
+
* @param search the search string
|
|
351
|
+
* @param replacement the replacement string
|
|
352
|
+
* @returns A newly allocated string with the replacements. Free with g_free().
|
|
353
|
+
*/
|
|
354
|
+
function utils_str_replace(string: string | null, search: string | null, replacement: string | null): string | null
|
|
355
|
+
module TabGroup {
|
|
356
|
+
|
|
357
|
+
// Constructor properties interface
|
|
358
|
+
|
|
359
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
360
|
+
|
|
361
|
+
// Own constructor properties of Tepl-4.Tepl.TabGroup
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* The #TeplTab currently shown.
|
|
365
|
+
*/
|
|
366
|
+
active_tab?: Tab | null
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
interface TabGroup {
|
|
372
|
+
|
|
373
|
+
// Own properties of Tepl-4.Tepl.TabGroup
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The #TeplBuffer of the active tab.
|
|
377
|
+
*/
|
|
378
|
+
readonly active_buffer: Buffer
|
|
379
|
+
/**
|
|
380
|
+
* The #TeplTab currently shown.
|
|
381
|
+
*/
|
|
382
|
+
active_tab: Tab
|
|
383
|
+
/**
|
|
384
|
+
* The #TeplView of the active tab.
|
|
385
|
+
*/
|
|
386
|
+
readonly active_view: View
|
|
387
|
+
|
|
388
|
+
// Owm methods of Tepl-4.Tepl.TabGroup
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Appends `tab` to `tab_group`.
|
|
392
|
+
* @param tab a #TeplTab.
|
|
393
|
+
* @param jump_to whether to set `tab` as the active tab after appending it.
|
|
394
|
+
*/
|
|
395
|
+
append_tab(tab: Tab, jump_to: boolean): void
|
|
396
|
+
/**
|
|
397
|
+
* Convenience function.
|
|
398
|
+
* @returns the #TeplBuffer of the active tab.
|
|
399
|
+
*/
|
|
400
|
+
get_active_buffer(): Buffer | null
|
|
401
|
+
get_active_tab(): Tab | null
|
|
402
|
+
/**
|
|
403
|
+
* Convenience function.
|
|
404
|
+
* @returns the #TeplView of the active tab.
|
|
405
|
+
*/
|
|
406
|
+
get_active_view(): View | null
|
|
407
|
+
/**
|
|
408
|
+
* Convenience function.
|
|
409
|
+
* @returns like tepl_tab_group_get_tabs(), but returns #TeplBuffer's.
|
|
410
|
+
*/
|
|
411
|
+
get_buffers(): Buffer[]
|
|
412
|
+
/**
|
|
413
|
+
* Gets the list of #TeplTab's contained in `tab_group`.
|
|
414
|
+
*
|
|
415
|
+
* If `tab_group` contains non-#TeplTab children, those will not be present in the
|
|
416
|
+
* returned list. In other words, it is <emphasis>not</emphasis> guaranteed that
|
|
417
|
+
* the index of a #TeplTab in the returned #GList has the same child index in
|
|
418
|
+
* the `tab_group` container.
|
|
419
|
+
* @returns the list of all the #TeplTab's contained in @tab_group.
|
|
420
|
+
*/
|
|
421
|
+
get_tabs(): Tab[]
|
|
422
|
+
/**
|
|
423
|
+
* Convenience function.
|
|
424
|
+
* @returns like tepl_tab_group_get_tabs(), but returns #TeplView's.
|
|
425
|
+
*/
|
|
426
|
+
get_views(): View[]
|
|
427
|
+
/**
|
|
428
|
+
* Sets the #TeplTabGroup:active-tab. `tab` must be part of `tab_group`.
|
|
429
|
+
* @param tab a #TeplTab part of `tab_group`.
|
|
430
|
+
*/
|
|
431
|
+
set_active_tab(tab: Tab): void
|
|
432
|
+
|
|
433
|
+
// Own virtual methods of Tepl-4.Tepl.TabGroup
|
|
434
|
+
|
|
435
|
+
vfunc_append_tab_vfunc(tab: Tab): void
|
|
436
|
+
vfunc_get_active_tab(): Tab | null
|
|
437
|
+
/**
|
|
438
|
+
* Gets the list of #TeplTab's contained in `tab_group`.
|
|
439
|
+
*
|
|
440
|
+
* If `tab_group` contains non-#TeplTab children, those will not be present in the
|
|
441
|
+
* returned list. In other words, it is <emphasis>not</emphasis> guaranteed that
|
|
442
|
+
* the index of a #TeplTab in the returned #GList has the same child index in
|
|
443
|
+
* the `tab_group` container.
|
|
444
|
+
* @virtual
|
|
445
|
+
* @returns the list of all the #TeplTab's contained in @tab_group.
|
|
446
|
+
*/
|
|
447
|
+
vfunc_get_tabs(): Tab[]
|
|
448
|
+
/**
|
|
449
|
+
* Sets the #TeplTabGroup:active-tab. `tab` must be part of `tab_group`.
|
|
450
|
+
* @virtual
|
|
451
|
+
* @param tab a #TeplTab part of `tab_group`.
|
|
452
|
+
*/
|
|
453
|
+
vfunc_set_active_tab(tab: Tab): void
|
|
454
|
+
|
|
455
|
+
// Class property signals of Tepl-4.Tepl.TabGroup
|
|
456
|
+
|
|
457
|
+
connect(sigName: "notify::active-buffer", callback: (($obj: TabGroup, pspec: GObject.ParamSpec) => void)): number
|
|
458
|
+
connect_after(sigName: "notify::active-buffer", callback: (($obj: TabGroup, pspec: GObject.ParamSpec) => void)): number
|
|
459
|
+
emit(sigName: "notify::active-buffer", ...args: any[]): void
|
|
460
|
+
connect(sigName: "notify::active-tab", callback: (($obj: TabGroup, pspec: GObject.ParamSpec) => void)): number
|
|
461
|
+
connect_after(sigName: "notify::active-tab", callback: (($obj: TabGroup, pspec: GObject.ParamSpec) => void)): number
|
|
462
|
+
emit(sigName: "notify::active-tab", ...args: any[]): void
|
|
463
|
+
connect(sigName: "notify::active-view", callback: (($obj: TabGroup, pspec: GObject.ParamSpec) => void)): number
|
|
464
|
+
connect_after(sigName: "notify::active-view", callback: (($obj: TabGroup, pspec: GObject.ParamSpec) => void)): number
|
|
465
|
+
emit(sigName: "notify::active-view", ...args: any[]): void
|
|
466
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
467
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
468
|
+
emit(sigName: string, ...args: any[]): void
|
|
469
|
+
disconnect(id: number): void
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
class TabGroup extends GObject.Object {
|
|
473
|
+
|
|
474
|
+
// Own properties of Tepl-4.Tepl.TabGroup
|
|
475
|
+
|
|
476
|
+
static name: string
|
|
477
|
+
static $gtype: GObject.GType<TabGroup>
|
|
478
|
+
|
|
479
|
+
// Constructors of Tepl-4.Tepl.TabGroup
|
|
480
|
+
|
|
481
|
+
constructor(config?: TabGroup.ConstructorProperties)
|
|
482
|
+
_init(config?: TabGroup.ConstructorProperties): void
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
module AbstractFactory {
|
|
486
|
+
|
|
487
|
+
// Constructor properties interface
|
|
488
|
+
|
|
489
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
interface AbstractFactory {
|
|
495
|
+
|
|
496
|
+
// Own fields of Tepl-4.Tepl.AbstractFactory
|
|
497
|
+
|
|
498
|
+
parent: GObject.Object
|
|
499
|
+
|
|
500
|
+
// Owm methods of Tepl-4.Tepl.AbstractFactory
|
|
501
|
+
|
|
502
|
+
create_file(): File
|
|
503
|
+
/**
|
|
504
|
+
* Creates a main #GtkApplicationWindow in the sense of
|
|
505
|
+
* tepl_application_window_is_main_window().
|
|
506
|
+
* @param app a #GtkApplication.
|
|
507
|
+
* @returns a new main application window, or %NULL if the vfunc is not implemented.
|
|
508
|
+
*/
|
|
509
|
+
create_main_window(app: Gtk.Application): Gtk.ApplicationWindow | null
|
|
510
|
+
create_tab(): Tab
|
|
511
|
+
/**
|
|
512
|
+
* Creates a new tab label for `tab,` suitable for gtk_notebook_set_tab_label().
|
|
513
|
+
* @param tab a #TeplTab.
|
|
514
|
+
* @returns a new #GtkWidget, or %NULL for the default tab label (“page N” with #GtkNotebook).
|
|
515
|
+
*/
|
|
516
|
+
create_tab_label(tab: Tab): Gtk.Widget | null
|
|
517
|
+
/**
|
|
518
|
+
* Sets the #TeplAbstractFactory singleton. This should be called early in
|
|
519
|
+
* main(), for example just after calling tepl_init().
|
|
520
|
+
*
|
|
521
|
+
* This function must be called only once, before the first call to
|
|
522
|
+
* tepl_abstract_factory_get_singleton().
|
|
523
|
+
*
|
|
524
|
+
* Tepl takes ownership of the `factory` reference.
|
|
525
|
+
*/
|
|
526
|
+
set_singleton(): void
|
|
527
|
+
|
|
528
|
+
// Own virtual methods of Tepl-4.Tepl.AbstractFactory
|
|
529
|
+
|
|
530
|
+
vfunc_create_file(): File
|
|
531
|
+
/**
|
|
532
|
+
* Creates a main #GtkApplicationWindow in the sense of
|
|
533
|
+
* tepl_application_window_is_main_window().
|
|
534
|
+
* @virtual
|
|
535
|
+
* @param app a #GtkApplication.
|
|
536
|
+
* @returns a new main application window, or %NULL if the vfunc is not implemented.
|
|
537
|
+
*/
|
|
538
|
+
vfunc_create_main_window(app: Gtk.Application): Gtk.ApplicationWindow | null
|
|
539
|
+
vfunc_create_tab(): Tab
|
|
540
|
+
/**
|
|
541
|
+
* Creates a new tab label for `tab,` suitable for gtk_notebook_set_tab_label().
|
|
542
|
+
* @virtual
|
|
543
|
+
* @param tab a #TeplTab.
|
|
544
|
+
* @returns a new #GtkWidget, or %NULL for the default tab label (“page N” with #GtkNotebook).
|
|
545
|
+
*/
|
|
546
|
+
vfunc_create_tab_label(tab: Tab): Gtk.Widget | null
|
|
547
|
+
|
|
548
|
+
// Class property signals of Tepl-4.Tepl.AbstractFactory
|
|
549
|
+
|
|
550
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
551
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
552
|
+
emit(sigName: string, ...args: any[]): void
|
|
553
|
+
disconnect(id: number): void
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
class AbstractFactory extends GObject.Object {
|
|
557
|
+
|
|
558
|
+
// Own properties of Tepl-4.Tepl.AbstractFactory
|
|
559
|
+
|
|
560
|
+
static name: string
|
|
561
|
+
static $gtype: GObject.GType<AbstractFactory>
|
|
562
|
+
|
|
563
|
+
// Constructors of Tepl-4.Tepl.AbstractFactory
|
|
564
|
+
|
|
565
|
+
constructor(config?: AbstractFactory.ConstructorProperties)
|
|
566
|
+
_init(config?: AbstractFactory.ConstructorProperties): void
|
|
567
|
+
/**
|
|
568
|
+
* Gets the #TeplAbstractFactory singleton instance.
|
|
569
|
+
*
|
|
570
|
+
* If tepl_abstract_factory_set_singleton() has not been called, the singleton
|
|
571
|
+
* is created with a #TeplAbstractFactory instance.
|
|
572
|
+
* @returns the #TeplAbstractFactory singleton instance.
|
|
573
|
+
*/
|
|
574
|
+
static get_singleton(): AbstractFactory
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
module AbstractFactoryVala {
|
|
578
|
+
|
|
579
|
+
// Constructor properties interface
|
|
580
|
+
|
|
581
|
+
interface ConstructorProperties extends AbstractFactory.ConstructorProperties {
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
interface AbstractFactoryVala {
|
|
587
|
+
|
|
588
|
+
// Own fields of Tepl-4.Tepl.AbstractFactoryVala
|
|
589
|
+
|
|
590
|
+
parent: AbstractFactory & GObject.Object
|
|
591
|
+
|
|
592
|
+
// Owm methods of Tepl-4.Tepl.AbstractFactoryVala
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Like tepl_abstract_factory_create_main_window(), but with a (transfer full)
|
|
596
|
+
* return value.
|
|
597
|
+
* @param app a #GtkApplication.
|
|
598
|
+
* @returns a new main application window, or %NULL if the vfunc is not implemented.
|
|
599
|
+
*/
|
|
600
|
+
create_main_window_vala(app: Gtk.Application): Gtk.ApplicationWindow | null
|
|
601
|
+
/**
|
|
602
|
+
* Like tepl_abstract_factory_set_singleton(), but with (transfer none) for the
|
|
603
|
+
* `factory_vala` parameter.
|
|
604
|
+
*
|
|
605
|
+
* Apparently Vala doesn't support (transfer full) for the self parameter,
|
|
606
|
+
* resulting to a double unref if tepl_abstract_factory_set_singleton() is
|
|
607
|
+
* called in Vala...
|
|
608
|
+
*/
|
|
609
|
+
set_singleton_vala(): void
|
|
610
|
+
|
|
611
|
+
// Own virtual methods of Tepl-4.Tepl.AbstractFactoryVala
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Like tepl_abstract_factory_create_main_window(), but with a (transfer full)
|
|
615
|
+
* return value.
|
|
616
|
+
* @virtual
|
|
617
|
+
* @param app a #GtkApplication.
|
|
618
|
+
* @returns a new main application window, or %NULL if the vfunc is not implemented.
|
|
619
|
+
*/
|
|
620
|
+
vfunc_create_main_window_vala(app: Gtk.Application): Gtk.ApplicationWindow | null
|
|
621
|
+
|
|
622
|
+
// Class property signals of Tepl-4.Tepl.AbstractFactoryVala
|
|
623
|
+
|
|
624
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
625
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
626
|
+
emit(sigName: string, ...args: any[]): void
|
|
627
|
+
disconnect(id: number): void
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
class AbstractFactoryVala extends AbstractFactory {
|
|
631
|
+
|
|
632
|
+
// Own properties of Tepl-4.Tepl.AbstractFactoryVala
|
|
633
|
+
|
|
634
|
+
static name: string
|
|
635
|
+
static $gtype: GObject.GType<AbstractFactoryVala>
|
|
636
|
+
|
|
637
|
+
// Constructors of Tepl-4.Tepl.AbstractFactoryVala
|
|
638
|
+
|
|
639
|
+
constructor(config?: AbstractFactoryVala.ConstructorProperties)
|
|
640
|
+
_init(config?: AbstractFactoryVala.ConstructorProperties): void
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
module Application {
|
|
644
|
+
|
|
645
|
+
// Constructor properties interface
|
|
646
|
+
|
|
647
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
648
|
+
|
|
649
|
+
// Own constructor properties of Tepl-4.Tepl.Application
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* The #GtkApplication.
|
|
653
|
+
*/
|
|
654
|
+
application?: Gtk.Application | null
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
interface Application {
|
|
660
|
+
|
|
661
|
+
// Own properties of Tepl-4.Tepl.Application
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* The #GtkApplication.
|
|
665
|
+
*/
|
|
666
|
+
readonly application: Gtk.Application
|
|
667
|
+
|
|
668
|
+
// Own fields of Tepl-4.Tepl.Application
|
|
669
|
+
|
|
670
|
+
parent: GObject.Object
|
|
671
|
+
priv: ApplicationPrivate
|
|
672
|
+
|
|
673
|
+
// Owm methods of Tepl-4.Tepl.Application
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Like gtk_application_get_active_window(), but returns the main window in the
|
|
677
|
+
* sense of tepl_application_window_is_main_window().
|
|
678
|
+
* @returns the active main #GtkApplicationWindow, or %NULL.
|
|
679
|
+
*/
|
|
680
|
+
get_active_main_window(): Gtk.ApplicationWindow | null
|
|
681
|
+
/**
|
|
682
|
+
* Returns an initially empty #AmtkActionInfoStore reserved for the
|
|
683
|
+
* application-specific actions. Libraries should not add #AmtkActionInfo's to
|
|
684
|
+
* this store. Libraries should provide their own store if they want to share
|
|
685
|
+
* #AmtkActionInfo's.
|
|
686
|
+
* @returns the #AmtkActionInfoStore reserved for the application.
|
|
687
|
+
*/
|
|
688
|
+
get_app_action_info_store(): Amtk.ActionInfoStore
|
|
689
|
+
get_application(): Gtk.Application
|
|
690
|
+
/**
|
|
691
|
+
* The returned #AmtkActionInfoStore contains #AmtkActionInfo's for all the
|
|
692
|
+
* #GAction's listed in the [class description of
|
|
693
|
+
* TeplApplicationWindow][tepl-application-window-gactions] and the [class
|
|
694
|
+
* description of TeplApplication][tepl-application-gactions].
|
|
695
|
+
* @returns the #AmtkActionInfoStore of the Tepl library.
|
|
696
|
+
*/
|
|
697
|
+
get_tepl_action_info_store(): Amtk.ActionInfoStore
|
|
698
|
+
/**
|
|
699
|
+
* Connects a generic function handler for the #GApplication::activate signal.
|
|
700
|
+
*
|
|
701
|
+
* If no main windows exist, it creates one with
|
|
702
|
+
* tepl_abstract_factory_create_main_window(). If a main window already exists,
|
|
703
|
+
* it calls gtk_window_present() on the most recently focused window of the
|
|
704
|
+
* application.
|
|
705
|
+
*/
|
|
706
|
+
handle_activate(): void
|
|
707
|
+
/**
|
|
708
|
+
* Connects a generic function handler for the #GApplication::open signal.
|
|
709
|
+
*
|
|
710
|
+
* It calls tepl_application_window_open_file() for each #GFile to open, on the
|
|
711
|
+
* active main window as returned by tepl_application_get_active_main_window().
|
|
712
|
+
* If the active main window is %NULL, it creates one with
|
|
713
|
+
* tepl_abstract_factory_create_main_window().
|
|
714
|
+
*/
|
|
715
|
+
handle_open(): void
|
|
716
|
+
/**
|
|
717
|
+
* Calls g_application_open() with a single file and an empty hint.
|
|
718
|
+
* @param file a #GFile.
|
|
719
|
+
*/
|
|
720
|
+
open_simple(file: Gio.File): void
|
|
721
|
+
|
|
722
|
+
// Class property signals of Tepl-4.Tepl.Application
|
|
723
|
+
|
|
724
|
+
connect(sigName: "notify::application", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
|
|
725
|
+
connect_after(sigName: "notify::application", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
|
|
726
|
+
emit(sigName: "notify::application", ...args: any[]): void
|
|
727
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
728
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
729
|
+
emit(sigName: string, ...args: any[]): void
|
|
730
|
+
disconnect(id: number): void
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
class Application extends GObject.Object {
|
|
734
|
+
|
|
735
|
+
// Own properties of Tepl-4.Tepl.Application
|
|
736
|
+
|
|
737
|
+
static name: string
|
|
738
|
+
static $gtype: GObject.GType<Application>
|
|
739
|
+
|
|
740
|
+
// Constructors of Tepl-4.Tepl.Application
|
|
741
|
+
|
|
742
|
+
constructor(config?: Application.ConstructorProperties)
|
|
743
|
+
_init(config?: Application.ConstructorProperties): void
|
|
744
|
+
/**
|
|
745
|
+
* Convenience function that calls g_application_get_default() followed by
|
|
746
|
+
* tepl_application_get_from_gtk_application(). The object returned by
|
|
747
|
+
* g_application_get_default() must be a #GtkApplication.
|
|
748
|
+
* @returns the default #TeplApplication.
|
|
749
|
+
*/
|
|
750
|
+
static get_default(): Application
|
|
751
|
+
/**
|
|
752
|
+
* Returns the #TeplApplication of `gtk_app`. The returned object is guaranteed
|
|
753
|
+
* to be the same for the lifetime of `gtk_app`.
|
|
754
|
+
* @param gtk_app a #GtkApplication.
|
|
755
|
+
* @returns the #TeplApplication of @gtk_app.
|
|
756
|
+
*/
|
|
757
|
+
static get_from_gtk_application(gtk_app: Gtk.Application): Application
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
module ApplicationWindow {
|
|
761
|
+
|
|
762
|
+
// Constructor properties interface
|
|
763
|
+
|
|
764
|
+
interface ConstructorProperties extends TabGroup.ConstructorProperties, GObject.Object.ConstructorProperties {
|
|
765
|
+
|
|
766
|
+
// Own constructor properties of Tepl-4.Tepl.ApplicationWindow
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* The #GtkApplicationWindow.
|
|
770
|
+
*/
|
|
771
|
+
application_window?: Gtk.ApplicationWindow | null
|
|
772
|
+
/**
|
|
773
|
+
* Whether to handle the #GtkWindow:title. The title is probably not
|
|
774
|
+
* appropriate if a #GtkHeaderBar is used, the title is meant to be used
|
|
775
|
+
* only for applications with a traditional UI.
|
|
776
|
+
*
|
|
777
|
+
* If %TRUE, the title will contain:
|
|
778
|
+
* - the #TeplBuffer:tepl-full-title of the active buffer.
|
|
779
|
+
* - if the active view is not #GtkTextView:editable, the
|
|
780
|
+
* `"[Read-Only]"` string.
|
|
781
|
+
* - the application name as returned by g_get_application_name().
|
|
782
|
+
*
|
|
783
|
+
* If the active view is %NULL, the title contains only the application
|
|
784
|
+
* name.
|
|
785
|
+
*/
|
|
786
|
+
handle_title?: boolean | null
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
interface ApplicationWindow extends TabGroup {
|
|
792
|
+
|
|
793
|
+
// Own properties of Tepl-4.Tepl.ApplicationWindow
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* The #GtkApplicationWindow.
|
|
797
|
+
*/
|
|
798
|
+
readonly application_window: Gtk.ApplicationWindow
|
|
799
|
+
/**
|
|
800
|
+
* Whether to handle the #GtkWindow:title. The title is probably not
|
|
801
|
+
* appropriate if a #GtkHeaderBar is used, the title is meant to be used
|
|
802
|
+
* only for applications with a traditional UI.
|
|
803
|
+
*
|
|
804
|
+
* If %TRUE, the title will contain:
|
|
805
|
+
* - the #TeplBuffer:tepl-full-title of the active buffer.
|
|
806
|
+
* - if the active view is not #GtkTextView:editable, the
|
|
807
|
+
* `"[Read-Only]"` string.
|
|
808
|
+
* - the application name as returned by g_get_application_name().
|
|
809
|
+
*
|
|
810
|
+
* If the active view is %NULL, the title contains only the application
|
|
811
|
+
* name.
|
|
812
|
+
*/
|
|
813
|
+
handle_title: boolean
|
|
814
|
+
|
|
815
|
+
// Own fields of Tepl-4.Tepl.ApplicationWindow
|
|
816
|
+
|
|
817
|
+
parent: GObject.Object
|
|
818
|
+
priv: ApplicationWindowPrivate
|
|
819
|
+
|
|
820
|
+
// Owm methods of Tepl-4.Tepl.ApplicationWindow
|
|
821
|
+
|
|
822
|
+
get_application_window(): Gtk.ApplicationWindow
|
|
823
|
+
get_handle_title(): boolean
|
|
824
|
+
/**
|
|
825
|
+
* Gets the #GtkWindowGroup in which `tepl_window` resides.
|
|
826
|
+
*
|
|
827
|
+
* You should call this function only on main windows, to add secondary windows
|
|
828
|
+
* to the #GtkWindowGroup.
|
|
829
|
+
* @returns the #GtkWindowGroup.
|
|
830
|
+
*/
|
|
831
|
+
get_window_group(): Gtk.WindowGroup
|
|
832
|
+
/**
|
|
833
|
+
* Opens a file in `tepl_window`. If the active tab is untouched (see
|
|
834
|
+
* tepl_buffer_is_untouched()), then the file is loaded in that tab. Otherwise a
|
|
835
|
+
* new tab is created.
|
|
836
|
+
*
|
|
837
|
+
* This function is asynchronous, the file loading is done with the
|
|
838
|
+
* tepl_tab_load_file() function. There is no way to know when the file loading
|
|
839
|
+
* is finished.
|
|
840
|
+
* @param location a #GFile.
|
|
841
|
+
* @param jump_to whether to set the tab where the file is loaded as the active tab.
|
|
842
|
+
*/
|
|
843
|
+
open_file(location: Gio.File, jump_to: boolean): void
|
|
844
|
+
/**
|
|
845
|
+
* Sets the #TeplApplicationWindow:handle-title property.
|
|
846
|
+
* @param handle_title the new value.
|
|
847
|
+
*/
|
|
848
|
+
set_handle_title(handle_title: boolean): void
|
|
849
|
+
/**
|
|
850
|
+
* Sets the #TeplTabGroup of `tepl_window`. This function can be called only
|
|
851
|
+
* once, it is not possible to change the #TeplTabGroup afterwards (this
|
|
852
|
+
* restriction may be lifted in the future if there is a compelling use-case).
|
|
853
|
+
*
|
|
854
|
+
* #TeplApplicationWindow implements the #TeplTabGroup interface by delegating
|
|
855
|
+
* the requests to `tab_group`.
|
|
856
|
+
* @param tab_group a #TeplTabGroup.
|
|
857
|
+
*/
|
|
858
|
+
set_tab_group(tab_group: TabGroup): void
|
|
859
|
+
|
|
860
|
+
// Class property signals of Tepl-4.Tepl.ApplicationWindow
|
|
861
|
+
|
|
862
|
+
connect(sigName: "notify::application-window", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
863
|
+
connect_after(sigName: "notify::application-window", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
864
|
+
emit(sigName: "notify::application-window", ...args: any[]): void
|
|
865
|
+
connect(sigName: "notify::handle-title", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
866
|
+
connect_after(sigName: "notify::handle-title", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
867
|
+
emit(sigName: "notify::handle-title", ...args: any[]): void
|
|
868
|
+
connect(sigName: "notify::active-buffer", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
869
|
+
connect_after(sigName: "notify::active-buffer", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
870
|
+
emit(sigName: "notify::active-buffer", ...args: any[]): void
|
|
871
|
+
connect(sigName: "notify::active-tab", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
872
|
+
connect_after(sigName: "notify::active-tab", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
873
|
+
emit(sigName: "notify::active-tab", ...args: any[]): void
|
|
874
|
+
connect(sigName: "notify::active-view", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
875
|
+
connect_after(sigName: "notify::active-view", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
|
|
876
|
+
emit(sigName: "notify::active-view", ...args: any[]): void
|
|
877
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
878
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
879
|
+
emit(sigName: string, ...args: any[]): void
|
|
880
|
+
disconnect(id: number): void
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
class ApplicationWindow extends GObject.Object {
|
|
884
|
+
|
|
885
|
+
// Own properties of Tepl-4.Tepl.ApplicationWindow
|
|
886
|
+
|
|
887
|
+
static name: string
|
|
888
|
+
static $gtype: GObject.GType<ApplicationWindow>
|
|
889
|
+
|
|
890
|
+
// Constructors of Tepl-4.Tepl.ApplicationWindow
|
|
891
|
+
|
|
892
|
+
constructor(config?: ApplicationWindow.ConstructorProperties)
|
|
893
|
+
_init(config?: ApplicationWindow.ConstructorProperties): void
|
|
894
|
+
/**
|
|
895
|
+
* Returns the #TeplApplicationWindow of `gtk_window`. The returned object is
|
|
896
|
+
* guaranteed to be the same for the lifetime of `gtk_window`.
|
|
897
|
+
* @param gtk_window a #GtkApplicationWindow.
|
|
898
|
+
* @returns the #TeplApplicationWindow of @gtk_window.
|
|
899
|
+
*/
|
|
900
|
+
static get_from_gtk_application_window(gtk_window: Gtk.ApplicationWindow): ApplicationWindow
|
|
901
|
+
/**
|
|
902
|
+
* Returns %TRUE iff `gtk_window` has an associated #TeplTabGroup (i.e. if
|
|
903
|
+
* tepl_application_window_set_tab_group() has been called).
|
|
904
|
+
*
|
|
905
|
+
* This function takes a #GtkApplicationWindow parameter to avoid creating the
|
|
906
|
+
* #TeplApplicationWindow object if it hasn't been created.
|
|
907
|
+
* @param gtk_window a #GtkApplicationWindow.
|
|
908
|
+
* @returns whether @gtk_window is considered a main application window.
|
|
909
|
+
*/
|
|
910
|
+
static is_main_window(gtk_window: Gtk.ApplicationWindow): boolean
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
module Buffer {
|
|
914
|
+
|
|
915
|
+
// Signal callback interfaces
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Signal callback interface for `tepl-cursor-moved`
|
|
919
|
+
*/
|
|
920
|
+
interface TeplCursorMovedSignalCallback {
|
|
921
|
+
($obj: Buffer): void
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
// Constructor properties interface
|
|
926
|
+
|
|
927
|
+
interface ConstructorProperties extends GtkSource.Buffer.ConstructorProperties {
|
|
928
|
+
|
|
929
|
+
// Own constructor properties of Tepl-4.Tepl.Buffer
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* The #GtkSourceBuffer:style-scheme ID, as a string. This property is
|
|
933
|
+
* useful for binding it to a #GSettings key.
|
|
934
|
+
*
|
|
935
|
+
* When the #GtkSourceBuffer:style-scheme is %NULL,
|
|
936
|
+
* #TeplBuffer:tepl-style-scheme-id contains the empty string.
|
|
937
|
+
*/
|
|
938
|
+
tepl_style_scheme_id?: string | null
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
interface Buffer {
|
|
944
|
+
|
|
945
|
+
// Own properties of Tepl-4.Tepl.Buffer
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* The full title. See tepl_buffer_get_full_title().
|
|
949
|
+
*/
|
|
950
|
+
readonly tepl_full_title: string | null
|
|
951
|
+
/**
|
|
952
|
+
* The short title. See tepl_buffer_get_short_title().
|
|
953
|
+
*/
|
|
954
|
+
readonly tepl_short_title: string | null
|
|
955
|
+
/**
|
|
956
|
+
* The #GtkSourceBuffer:style-scheme ID, as a string. This property is
|
|
957
|
+
* useful for binding it to a #GSettings key.
|
|
958
|
+
*
|
|
959
|
+
* When the #GtkSourceBuffer:style-scheme is %NULL,
|
|
960
|
+
* #TeplBuffer:tepl-style-scheme-id contains the empty string.
|
|
961
|
+
*/
|
|
962
|
+
tepl_style_scheme_id: string | null
|
|
963
|
+
|
|
964
|
+
// Conflicting properties
|
|
965
|
+
|
|
966
|
+
priv: any & Gtk.TextBufferPrivate
|
|
967
|
+
|
|
968
|
+
// Own fields of Tepl-4.Tepl.Buffer
|
|
969
|
+
|
|
970
|
+
parent_instance: GtkSource.Buffer & Gtk.TextBuffer & GObject.Object & GObject.Object
|
|
971
|
+
|
|
972
|
+
// Owm methods of Tepl-4.Tepl.Buffer
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Returns the #TeplFile of `buffer`. The returned object is guaranteed to be the
|
|
976
|
+
* same for the lifetime of `buffer`.
|
|
977
|
+
*
|
|
978
|
+
* #TeplBuffer creates the #TeplFile with tepl_abstract_factory_create_file().
|
|
979
|
+
* @returns the associated #TeplFile.
|
|
980
|
+
*/
|
|
981
|
+
get_file(): File
|
|
982
|
+
/**
|
|
983
|
+
* Returns a title suitable for a #GtkWindow title. It contains (in that order):
|
|
984
|
+
* - the #TeplBuffer:tepl-short-title;
|
|
985
|
+
* - the directory path in parenthesis if the #TeplFile:location isn't
|
|
986
|
+
* %NULL.
|
|
987
|
+
* @returns the @buffer full title. Free the return value with g_free() when no longer needed.
|
|
988
|
+
*/
|
|
989
|
+
get_full_title(): string | null
|
|
990
|
+
get_selection_type(): SelectionType
|
|
991
|
+
/**
|
|
992
|
+
* Returns a title suitable for a tab label. It contains (in that order):
|
|
993
|
+
* - '*' if the buffer is modified;
|
|
994
|
+
* - the #TeplFile:short-name;
|
|
995
|
+
* @returns the @buffer short title. Free the return value with g_free() when no longer needed.
|
|
996
|
+
*/
|
|
997
|
+
get_short_title(): string | null
|
|
998
|
+
get_style_scheme_id(): string | null
|
|
999
|
+
/**
|
|
1000
|
+
* Returns whether `buffer` is untouched.
|
|
1001
|
+
*
|
|
1002
|
+
* This function is for example useful to know if we can re-use this buffer to
|
|
1003
|
+
* load a file, instead of opening a new tab or window.
|
|
1004
|
+
*
|
|
1005
|
+
* For this function to return %TRUE, the `buffer` must be empty, non-modified,
|
|
1006
|
+
* the undo/redo #GtkSourceBuffer history must be empty, and the
|
|
1007
|
+
* #TeplFile:location must be %NULL.
|
|
1008
|
+
* @returns %TRUE if @buffer has not been touched, %FALSE otherwise.
|
|
1009
|
+
*/
|
|
1010
|
+
is_untouched(): boolean
|
|
1011
|
+
/**
|
|
1012
|
+
* Sets the #TeplBuffer:tepl-style-scheme-id property.
|
|
1013
|
+
*
|
|
1014
|
+
* The #GtkSourceStyleScheme is taken from the default
|
|
1015
|
+
* #GtkSourceStyleSchemeManager as returned by
|
|
1016
|
+
* gtk_source_style_scheme_manager_get_default().
|
|
1017
|
+
* @param style_scheme_id the new value.
|
|
1018
|
+
*/
|
|
1019
|
+
set_style_scheme_id(style_scheme_id: string | null): void
|
|
1020
|
+
|
|
1021
|
+
// Own virtual methods of Tepl-4.Tepl.Buffer
|
|
1022
|
+
|
|
1023
|
+
vfunc_tepl_cursor_moved(): void
|
|
1024
|
+
|
|
1025
|
+
// Own signals of Tepl-4.Tepl.Buffer
|
|
1026
|
+
|
|
1027
|
+
connect(sigName: "tepl-cursor-moved", callback: Buffer.TeplCursorMovedSignalCallback): number
|
|
1028
|
+
connect_after(sigName: "tepl-cursor-moved", callback: Buffer.TeplCursorMovedSignalCallback): number
|
|
1029
|
+
emit(sigName: "tepl-cursor-moved", ...args: any[]): void
|
|
1030
|
+
|
|
1031
|
+
// Class property signals of Tepl-4.Tepl.Buffer
|
|
1032
|
+
|
|
1033
|
+
connect(sigName: "notify::tepl-full-title", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1034
|
+
connect_after(sigName: "notify::tepl-full-title", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1035
|
+
emit(sigName: "notify::tepl-full-title", ...args: any[]): void
|
|
1036
|
+
connect(sigName: "notify::tepl-short-title", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1037
|
+
connect_after(sigName: "notify::tepl-short-title", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1038
|
+
emit(sigName: "notify::tepl-short-title", ...args: any[]): void
|
|
1039
|
+
connect(sigName: "notify::tepl-style-scheme-id", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1040
|
+
connect_after(sigName: "notify::tepl-style-scheme-id", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1041
|
+
emit(sigName: "notify::tepl-style-scheme-id", ...args: any[]): void
|
|
1042
|
+
connect(sigName: "notify::can-redo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1043
|
+
connect_after(sigName: "notify::can-redo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1044
|
+
emit(sigName: "notify::can-redo", ...args: any[]): void
|
|
1045
|
+
connect(sigName: "notify::can-undo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1046
|
+
connect_after(sigName: "notify::can-undo", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1047
|
+
emit(sigName: "notify::can-undo", ...args: any[]): void
|
|
1048
|
+
connect(sigName: "notify::highlight-matching-brackets", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1049
|
+
connect_after(sigName: "notify::highlight-matching-brackets", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1050
|
+
emit(sigName: "notify::highlight-matching-brackets", ...args: any[]): void
|
|
1051
|
+
connect(sigName: "notify::highlight-syntax", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1052
|
+
connect_after(sigName: "notify::highlight-syntax", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1053
|
+
emit(sigName: "notify::highlight-syntax", ...args: any[]): void
|
|
1054
|
+
connect(sigName: "notify::implicit-trailing-newline", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1055
|
+
connect_after(sigName: "notify::implicit-trailing-newline", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1056
|
+
emit(sigName: "notify::implicit-trailing-newline", ...args: any[]): void
|
|
1057
|
+
connect(sigName: "notify::language", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1058
|
+
connect_after(sigName: "notify::language", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1059
|
+
emit(sigName: "notify::language", ...args: any[]): void
|
|
1060
|
+
connect(sigName: "notify::max-undo-levels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1061
|
+
connect_after(sigName: "notify::max-undo-levels", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1062
|
+
emit(sigName: "notify::max-undo-levels", ...args: any[]): void
|
|
1063
|
+
connect(sigName: "notify::style-scheme", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1064
|
+
connect_after(sigName: "notify::style-scheme", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1065
|
+
emit(sigName: "notify::style-scheme", ...args: any[]): void
|
|
1066
|
+
connect(sigName: "notify::undo-manager", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1067
|
+
connect_after(sigName: "notify::undo-manager", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1068
|
+
emit(sigName: "notify::undo-manager", ...args: any[]): void
|
|
1069
|
+
connect(sigName: "notify::copy-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1070
|
+
connect_after(sigName: "notify::copy-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1071
|
+
emit(sigName: "notify::copy-target-list", ...args: any[]): void
|
|
1072
|
+
connect(sigName: "notify::cursor-position", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1073
|
+
connect_after(sigName: "notify::cursor-position", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1074
|
+
emit(sigName: "notify::cursor-position", ...args: any[]): void
|
|
1075
|
+
connect(sigName: "notify::has-selection", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1076
|
+
connect_after(sigName: "notify::has-selection", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1077
|
+
emit(sigName: "notify::has-selection", ...args: any[]): void
|
|
1078
|
+
connect(sigName: "notify::paste-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1079
|
+
connect_after(sigName: "notify::paste-target-list", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1080
|
+
emit(sigName: "notify::paste-target-list", ...args: any[]): void
|
|
1081
|
+
connect(sigName: "notify::tag-table", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1082
|
+
connect_after(sigName: "notify::tag-table", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1083
|
+
emit(sigName: "notify::tag-table", ...args: any[]): void
|
|
1084
|
+
connect(sigName: "notify::text", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1085
|
+
connect_after(sigName: "notify::text", callback: (($obj: Buffer, pspec: GObject.ParamSpec) => void)): number
|
|
1086
|
+
emit(sigName: "notify::text", ...args: any[]): void
|
|
1087
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1088
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1089
|
+
emit(sigName: string, ...args: any[]): void
|
|
1090
|
+
disconnect(id: number): void
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
class Buffer extends GtkSource.Buffer {
|
|
1094
|
+
|
|
1095
|
+
// Own properties of Tepl-4.Tepl.Buffer
|
|
1096
|
+
|
|
1097
|
+
static name: string
|
|
1098
|
+
static $gtype: GObject.GType<Buffer>
|
|
1099
|
+
|
|
1100
|
+
// Constructors of Tepl-4.Tepl.Buffer
|
|
1101
|
+
|
|
1102
|
+
constructor(config?: Buffer.ConstructorProperties)
|
|
1103
|
+
constructor()
|
|
1104
|
+
static new(): Buffer
|
|
1105
|
+
|
|
1106
|
+
// Overloads of new
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Creates a new source buffer.
|
|
1110
|
+
* @constructor
|
|
1111
|
+
* @param table a #GtkTextTagTable, or %NULL to create a new one.
|
|
1112
|
+
* @returns a new source buffer.
|
|
1113
|
+
*/
|
|
1114
|
+
static new(table: Gtk.TextTagTable | null): GtkSource.Buffer
|
|
1115
|
+
/**
|
|
1116
|
+
* Creates a new text buffer.
|
|
1117
|
+
* @constructor
|
|
1118
|
+
* @param table a tag table, or %NULL to create a new one
|
|
1119
|
+
* @returns a new text buffer
|
|
1120
|
+
*/
|
|
1121
|
+
static new(table: Gtk.TextTagTable | null): Gtk.TextBuffer
|
|
1122
|
+
_init(config?: Buffer.ConstructorProperties): void
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
module File {
|
|
1126
|
+
|
|
1127
|
+
// Constructor properties interface
|
|
1128
|
+
|
|
1129
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1130
|
+
|
|
1131
|
+
// Own constructor properties of Tepl-4.Tepl.File
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* The location.
|
|
1135
|
+
*/
|
|
1136
|
+
location?: Gio.File | null
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
interface File {
|
|
1142
|
+
|
|
1143
|
+
// Own properties of Tepl-4.Tepl.File
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* The compression type.
|
|
1147
|
+
*/
|
|
1148
|
+
readonly compression_type: CompressionType
|
|
1149
|
+
/**
|
|
1150
|
+
* The character encoding, initially %NULL. After a successful file
|
|
1151
|
+
* loading or saving operation, the encoding is non-%NULL.
|
|
1152
|
+
*/
|
|
1153
|
+
readonly encoding: Encoding
|
|
1154
|
+
/**
|
|
1155
|
+
* The location.
|
|
1156
|
+
*/
|
|
1157
|
+
location: Gio.File
|
|
1158
|
+
/**
|
|
1159
|
+
* The line ending type.
|
|
1160
|
+
*/
|
|
1161
|
+
readonly newline_type: NewlineType
|
|
1162
|
+
/**
|
|
1163
|
+
* Whether the file is read-only or not. The value of this property is
|
|
1164
|
+
* not updated automatically (there is no file monitors).
|
|
1165
|
+
*/
|
|
1166
|
+
readonly read_only: boolean
|
|
1167
|
+
/**
|
|
1168
|
+
* The file short name. See tepl_file_get_short_name().
|
|
1169
|
+
*/
|
|
1170
|
+
readonly short_name: string | null
|
|
1171
|
+
|
|
1172
|
+
// Own fields of Tepl-4.Tepl.File
|
|
1173
|
+
|
|
1174
|
+
parent_instance: GObject.Object
|
|
1175
|
+
|
|
1176
|
+
// Owm methods of Tepl-4.Tepl.File
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* If the #TeplFile:location isn't %NULL, adds its URI to the default
|
|
1180
|
+
* #GtkRecentManager with gtk_recent_manager_add_item().
|
|
1181
|
+
*/
|
|
1182
|
+
add_uri_to_recent_manager(): void
|
|
1183
|
+
/**
|
|
1184
|
+
* Checks synchronously the file on disk, to know whether the file is externally
|
|
1185
|
+
* modified, or has been deleted, and whether the file is read-only.
|
|
1186
|
+
*
|
|
1187
|
+
* #TeplFile doesn't create a #GFileMonitor to track those properties, so
|
|
1188
|
+
* this function needs to be called instead. Creating lots of #GFileMonitor's
|
|
1189
|
+
* would take lots of resources.
|
|
1190
|
+
*
|
|
1191
|
+
* Since this function is synchronous, it is advised to call it only on local
|
|
1192
|
+
* files. See tepl_file_is_local().
|
|
1193
|
+
*/
|
|
1194
|
+
check_file_on_disk(): void
|
|
1195
|
+
get_compression_type(): CompressionType
|
|
1196
|
+
/**
|
|
1197
|
+
* The encoding is initially %NULL. After a successful file loading or saving
|
|
1198
|
+
* operation, the encoding is non-%NULL.
|
|
1199
|
+
* @returns the character encoding.
|
|
1200
|
+
*/
|
|
1201
|
+
get_encoding(): Encoding
|
|
1202
|
+
get_file_metadata(): FileMetadata
|
|
1203
|
+
get_location(): Gio.File
|
|
1204
|
+
get_newline_type(): NewlineType
|
|
1205
|
+
/**
|
|
1206
|
+
* Gets the `file` short name. If the #TeplFile:location isn't %NULL,
|
|
1207
|
+
* returns its display-name (see #G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME).
|
|
1208
|
+
* Otherwise returns "Untitled File N", with N the Nth untitled file of the
|
|
1209
|
+
* application, starting at 1. When an untitled file is closed, its number is
|
|
1210
|
+
* released and can be used by a later untitled file.
|
|
1211
|
+
* @returns the @file short name.
|
|
1212
|
+
*/
|
|
1213
|
+
get_short_name(): string | null
|
|
1214
|
+
/**
|
|
1215
|
+
* Returns whether the file has been deleted. If the
|
|
1216
|
+
* #TeplFile:location is %NULL, returns %FALSE.
|
|
1217
|
+
*
|
|
1218
|
+
* To have an up-to-date value, you must first call
|
|
1219
|
+
* tepl_file_check_file_on_disk().
|
|
1220
|
+
* @returns whether the file has been deleted.
|
|
1221
|
+
*/
|
|
1222
|
+
is_deleted(): boolean
|
|
1223
|
+
/**
|
|
1224
|
+
* Returns whether the file is externally modified. If the
|
|
1225
|
+
* #TeplFile:location is %NULL, returns %FALSE.
|
|
1226
|
+
*
|
|
1227
|
+
* To have an up-to-date value, you must first call
|
|
1228
|
+
* tepl_file_check_file_on_disk().
|
|
1229
|
+
* @returns whether the file is externally modified.
|
|
1230
|
+
*/
|
|
1231
|
+
is_externally_modified(): boolean
|
|
1232
|
+
/**
|
|
1233
|
+
* Returns whether the file is local. If the #TeplFile:location is %NULL,
|
|
1234
|
+
* returns %FALSE.
|
|
1235
|
+
* @returns whether the file is local.
|
|
1236
|
+
*/
|
|
1237
|
+
is_local(): boolean
|
|
1238
|
+
/**
|
|
1239
|
+
* Returns whether the file is read-only. If the
|
|
1240
|
+
* #TeplFile:location is %NULL, returns %FALSE.
|
|
1241
|
+
*
|
|
1242
|
+
* To have an up-to-date value, you must first call
|
|
1243
|
+
* tepl_file_check_file_on_disk().
|
|
1244
|
+
* @returns whether the file is read-only.
|
|
1245
|
+
*/
|
|
1246
|
+
is_readonly(): boolean
|
|
1247
|
+
/**
|
|
1248
|
+
* Sets the location.
|
|
1249
|
+
* @param location the new #GFile, or %NULL.
|
|
1250
|
+
*/
|
|
1251
|
+
set_location(location: Gio.File | null): void
|
|
1252
|
+
|
|
1253
|
+
// Class property signals of Tepl-4.Tepl.File
|
|
1254
|
+
|
|
1255
|
+
connect(sigName: "notify::compression-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1256
|
+
connect_after(sigName: "notify::compression-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1257
|
+
emit(sigName: "notify::compression-type", ...args: any[]): void
|
|
1258
|
+
connect(sigName: "notify::encoding", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1259
|
+
connect_after(sigName: "notify::encoding", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1260
|
+
emit(sigName: "notify::encoding", ...args: any[]): void
|
|
1261
|
+
connect(sigName: "notify::location", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1262
|
+
connect_after(sigName: "notify::location", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1263
|
+
emit(sigName: "notify::location", ...args: any[]): void
|
|
1264
|
+
connect(sigName: "notify::newline-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1265
|
+
connect_after(sigName: "notify::newline-type", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1266
|
+
emit(sigName: "notify::newline-type", ...args: any[]): void
|
|
1267
|
+
connect(sigName: "notify::read-only", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1268
|
+
connect_after(sigName: "notify::read-only", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1269
|
+
emit(sigName: "notify::read-only", ...args: any[]): void
|
|
1270
|
+
connect(sigName: "notify::short-name", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1271
|
+
connect_after(sigName: "notify::short-name", callback: (($obj: File, pspec: GObject.ParamSpec) => void)): number
|
|
1272
|
+
emit(sigName: "notify::short-name", ...args: any[]): void
|
|
1273
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1274
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1275
|
+
emit(sigName: string, ...args: any[]): void
|
|
1276
|
+
disconnect(id: number): void
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
class File extends GObject.Object {
|
|
1280
|
+
|
|
1281
|
+
// Own properties of Tepl-4.Tepl.File
|
|
1282
|
+
|
|
1283
|
+
static name: string
|
|
1284
|
+
static $gtype: GObject.GType<File>
|
|
1285
|
+
|
|
1286
|
+
// Constructors of Tepl-4.Tepl.File
|
|
1287
|
+
|
|
1288
|
+
constructor(config?: File.ConstructorProperties)
|
|
1289
|
+
constructor()
|
|
1290
|
+
static new(): File
|
|
1291
|
+
_init(config?: File.ConstructorProperties): void
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
module FileLoader {
|
|
1295
|
+
|
|
1296
|
+
// Constructor properties interface
|
|
1297
|
+
|
|
1298
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1299
|
+
|
|
1300
|
+
// Own constructor properties of Tepl-4.Tepl.FileLoader
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* The #TeplBuffer to load the content into. The #TeplFileLoader object
|
|
1304
|
+
* has a weak reference to the buffer.
|
|
1305
|
+
*/
|
|
1306
|
+
buffer?: Buffer | null
|
|
1307
|
+
/**
|
|
1308
|
+
* The chunk size, in bytes. The content is loaded chunk by chunk. It
|
|
1309
|
+
* permits to avoid allocating a too big contiguous memory area, as well
|
|
1310
|
+
* as reporting progress information after each chunk read.
|
|
1311
|
+
*
|
|
1312
|
+
* A small chunk size is better when loading a remote file with a slow
|
|
1313
|
+
* connection. For local files, the chunk size can be larger.
|
|
1314
|
+
*/
|
|
1315
|
+
chunk_size?: number | null
|
|
1316
|
+
/**
|
|
1317
|
+
* The #TeplFile. The #TeplFileLoader object has a weak
|
|
1318
|
+
* reference to the file.
|
|
1319
|
+
*/
|
|
1320
|
+
file?: File | null
|
|
1321
|
+
/**
|
|
1322
|
+
* The #GFile to load. By default the location is taken from the
|
|
1323
|
+
* #TeplFile at construction time.
|
|
1324
|
+
*/
|
|
1325
|
+
location?: Gio.File | null
|
|
1326
|
+
/**
|
|
1327
|
+
* The maximum content size, in bytes. Keep in mind that all the
|
|
1328
|
+
* content is loaded in memory, and when loaded into a #GtkTextBuffer
|
|
1329
|
+
* it takes more memory than just the content size.
|
|
1330
|
+
*
|
|
1331
|
+
* Set to -1 for unlimited size.
|
|
1332
|
+
*/
|
|
1333
|
+
max_size?: number | null
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
interface FileLoader {
|
|
1339
|
+
|
|
1340
|
+
// Own properties of Tepl-4.Tepl.FileLoader
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* The #TeplBuffer to load the content into. The #TeplFileLoader object
|
|
1344
|
+
* has a weak reference to the buffer.
|
|
1345
|
+
*/
|
|
1346
|
+
readonly buffer: Buffer
|
|
1347
|
+
/**
|
|
1348
|
+
* The chunk size, in bytes. The content is loaded chunk by chunk. It
|
|
1349
|
+
* permits to avoid allocating a too big contiguous memory area, as well
|
|
1350
|
+
* as reporting progress information after each chunk read.
|
|
1351
|
+
*
|
|
1352
|
+
* A small chunk size is better when loading a remote file with a slow
|
|
1353
|
+
* connection. For local files, the chunk size can be larger.
|
|
1354
|
+
*/
|
|
1355
|
+
chunk_size: number
|
|
1356
|
+
/**
|
|
1357
|
+
* The #TeplFile. The #TeplFileLoader object has a weak
|
|
1358
|
+
* reference to the file.
|
|
1359
|
+
*/
|
|
1360
|
+
readonly file: File
|
|
1361
|
+
/**
|
|
1362
|
+
* The #GFile to load. By default the location is taken from the
|
|
1363
|
+
* #TeplFile at construction time.
|
|
1364
|
+
*/
|
|
1365
|
+
readonly location: Gio.File
|
|
1366
|
+
/**
|
|
1367
|
+
* The maximum content size, in bytes. Keep in mind that all the
|
|
1368
|
+
* content is loaded in memory, and when loaded into a #GtkTextBuffer
|
|
1369
|
+
* it takes more memory than just the content size.
|
|
1370
|
+
*
|
|
1371
|
+
* Set to -1 for unlimited size.
|
|
1372
|
+
*/
|
|
1373
|
+
max_size: number
|
|
1374
|
+
|
|
1375
|
+
// Own fields of Tepl-4.Tepl.FileLoader
|
|
1376
|
+
|
|
1377
|
+
parent_instance: GObject.Object
|
|
1378
|
+
|
|
1379
|
+
// Owm methods of Tepl-4.Tepl.FileLoader
|
|
1380
|
+
|
|
1381
|
+
get_buffer(): Buffer | null
|
|
1382
|
+
get_chunk_size(): number
|
|
1383
|
+
get_encoding(): Encoding | null
|
|
1384
|
+
get_file(): File | null
|
|
1385
|
+
get_location(): Gio.File | null
|
|
1386
|
+
get_max_size(): number
|
|
1387
|
+
get_newline_type(): NewlineType
|
|
1388
|
+
/**
|
|
1389
|
+
* Loads asynchronously the file content into the #TeplBuffer.
|
|
1390
|
+
*
|
|
1391
|
+
* See the #GAsyncResult documentation to know how to use this function.
|
|
1392
|
+
* @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
|
|
1393
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
1394
|
+
* @param progress_callback function to call back with progress information, or %NULL if progress information is not needed.
|
|
1395
|
+
* @param callback a #GAsyncReadyCallback to call when the request is satisfied.
|
|
1396
|
+
*/
|
|
1397
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1398
|
+
/**
|
|
1399
|
+
* Finishes a file loading started with tepl_file_loader_load_async().
|
|
1400
|
+
* @param result a #GAsyncResult.
|
|
1401
|
+
* @returns whether the content has been loaded successfully.
|
|
1402
|
+
*/
|
|
1403
|
+
load_finish(result: Gio.AsyncResult): boolean
|
|
1404
|
+
set_chunk_size(chunk_size: number): void
|
|
1405
|
+
set_max_size(max_size: number): void
|
|
1406
|
+
|
|
1407
|
+
// Class property signals of Tepl-4.Tepl.FileLoader
|
|
1408
|
+
|
|
1409
|
+
connect(sigName: "notify::buffer", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1410
|
+
connect_after(sigName: "notify::buffer", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1411
|
+
emit(sigName: "notify::buffer", ...args: any[]): void
|
|
1412
|
+
connect(sigName: "notify::chunk-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1413
|
+
connect_after(sigName: "notify::chunk-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1414
|
+
emit(sigName: "notify::chunk-size", ...args: any[]): void
|
|
1415
|
+
connect(sigName: "notify::file", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1416
|
+
connect_after(sigName: "notify::file", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1417
|
+
emit(sigName: "notify::file", ...args: any[]): void
|
|
1418
|
+
connect(sigName: "notify::location", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1419
|
+
connect_after(sigName: "notify::location", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1420
|
+
emit(sigName: "notify::location", ...args: any[]): void
|
|
1421
|
+
connect(sigName: "notify::max-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1422
|
+
connect_after(sigName: "notify::max-size", callback: (($obj: FileLoader, pspec: GObject.ParamSpec) => void)): number
|
|
1423
|
+
emit(sigName: "notify::max-size", ...args: any[]): void
|
|
1424
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1425
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1426
|
+
emit(sigName: string, ...args: any[]): void
|
|
1427
|
+
disconnect(id: number): void
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
class FileLoader extends GObject.Object {
|
|
1431
|
+
|
|
1432
|
+
// Own properties of Tepl-4.Tepl.FileLoader
|
|
1433
|
+
|
|
1434
|
+
static name: string
|
|
1435
|
+
static $gtype: GObject.GType<FileLoader>
|
|
1436
|
+
|
|
1437
|
+
// Constructors of Tepl-4.Tepl.FileLoader
|
|
1438
|
+
|
|
1439
|
+
constructor(config?: FileLoader.ConstructorProperties)
|
|
1440
|
+
/**
|
|
1441
|
+
* Creates a new #TeplFileLoader object. The content is read from the #TeplFile
|
|
1442
|
+
* location.
|
|
1443
|
+
*
|
|
1444
|
+
* If not already done, call tepl_file_set_location() before calling this
|
|
1445
|
+
* constructor. The previous location is anyway not needed, because as soon as
|
|
1446
|
+
* the file loading begins, the `buffer` is emptied. Setting the #TeplFile
|
|
1447
|
+
* location directly permits to update the UI, to display the good location when
|
|
1448
|
+
* the file is loading.
|
|
1449
|
+
* @constructor
|
|
1450
|
+
* @param buffer the #TeplBuffer to load the content into.
|
|
1451
|
+
* @param file the #TeplFile.
|
|
1452
|
+
* @returns a new #TeplFileLoader object.
|
|
1453
|
+
*/
|
|
1454
|
+
constructor(buffer: Buffer, file: File)
|
|
1455
|
+
/**
|
|
1456
|
+
* Creates a new #TeplFileLoader object. The content is read from the #TeplFile
|
|
1457
|
+
* location.
|
|
1458
|
+
*
|
|
1459
|
+
* If not already done, call tepl_file_set_location() before calling this
|
|
1460
|
+
* constructor. The previous location is anyway not needed, because as soon as
|
|
1461
|
+
* the file loading begins, the `buffer` is emptied. Setting the #TeplFile
|
|
1462
|
+
* location directly permits to update the UI, to display the good location when
|
|
1463
|
+
* the file is loading.
|
|
1464
|
+
* @constructor
|
|
1465
|
+
* @param buffer the #TeplBuffer to load the content into.
|
|
1466
|
+
* @param file the #TeplFile.
|
|
1467
|
+
* @returns a new #TeplFileLoader object.
|
|
1468
|
+
*/
|
|
1469
|
+
static new(buffer: Buffer, file: File): FileLoader
|
|
1470
|
+
_init(config?: FileLoader.ConstructorProperties): void
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
module FileMetadata {
|
|
1474
|
+
|
|
1475
|
+
// Constructor properties interface
|
|
1476
|
+
|
|
1477
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1478
|
+
|
|
1479
|
+
// Own constructor properties of Tepl-4.Tepl.FileMetadata
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* The #TeplFile that the metadata belong to.
|
|
1483
|
+
*/
|
|
1484
|
+
file?: File | null
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
interface FileMetadata {
|
|
1490
|
+
|
|
1491
|
+
// Own properties of Tepl-4.Tepl.FileMetadata
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* The #TeplFile that the metadata belong to.
|
|
1495
|
+
*/
|
|
1496
|
+
readonly file: File
|
|
1497
|
+
|
|
1498
|
+
// Own fields of Tepl-4.Tepl.FileMetadata
|
|
1499
|
+
|
|
1500
|
+
parent_instance: GObject.Object
|
|
1501
|
+
|
|
1502
|
+
// Owm methods of Tepl-4.Tepl.FileMetadata
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* Gets the value of a metadata stored in the `metadata` object memory.
|
|
1506
|
+
* @param key the name of the metadata.
|
|
1507
|
+
* @returns the value of the metadata, or %NULL if the metadata doesn't exist. Free with g_free().
|
|
1508
|
+
*/
|
|
1509
|
+
get(key: string | null): string | null
|
|
1510
|
+
get_file(): File
|
|
1511
|
+
/**
|
|
1512
|
+
* Loads synchronously the metadata from #TeplFile:location. The loaded
|
|
1513
|
+
* metadata values can then be accessed with tepl_file_metadata_get().
|
|
1514
|
+
*
|
|
1515
|
+
* If the metadata are loaded successfully, this function deletes all previous
|
|
1516
|
+
* metadata stored in the `metadata` object memory.
|
|
1517
|
+
*
|
|
1518
|
+
* The file at #TeplFile:location, if non-%NULL, must exist on the
|
|
1519
|
+
* filesystem, otherwise an error is returned.
|
|
1520
|
+
*
|
|
1521
|
+
* If #TeplFile:location is %NULL, %FALSE is simply returned.
|
|
1522
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
1523
|
+
* @returns whether the metadata was loaded successfully.
|
|
1524
|
+
*/
|
|
1525
|
+
load(cancellable: Gio.Cancellable | null): boolean
|
|
1526
|
+
/**
|
|
1527
|
+
* The asynchronous version of tepl_file_metadata_load().
|
|
1528
|
+
*
|
|
1529
|
+
* If the metadata is loaded from the metadata manager (i.e. not with GVfs),
|
|
1530
|
+
* this function loads the metadata synchronously. A future version might fix
|
|
1531
|
+
* this.
|
|
1532
|
+
*
|
|
1533
|
+
* See the #GAsyncResult documentation to know how to use this function.
|
|
1534
|
+
* @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
|
|
1535
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
1536
|
+
* @param callback a #GAsyncReadyCallback to call when the request is satisfied.
|
|
1537
|
+
*/
|
|
1538
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1539
|
+
/**
|
|
1540
|
+
* Finishes the metadata loading started with tepl_file_metadata_load_async().
|
|
1541
|
+
* @param result a #GAsyncResult.
|
|
1542
|
+
* @returns whether the metadata was loaded successfully.
|
|
1543
|
+
*/
|
|
1544
|
+
load_finish(result: Gio.AsyncResult): boolean
|
|
1545
|
+
/**
|
|
1546
|
+
* Saves synchronously the metadata for #TeplFile:location.
|
|
1547
|
+
*
|
|
1548
|
+
* The file at #TeplFile:location, if non-%NULL, must exist on the
|
|
1549
|
+
* filesystem, otherwise an error is returned.
|
|
1550
|
+
*
|
|
1551
|
+
* If #TeplFile:location is %NULL, %FALSE is simply returned.
|
|
1552
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
1553
|
+
* @returns whether the metadata was saved successfully.
|
|
1554
|
+
*/
|
|
1555
|
+
save(cancellable: Gio.Cancellable | null): boolean
|
|
1556
|
+
/**
|
|
1557
|
+
* The asynchronous version of tepl_file_metadata_save().
|
|
1558
|
+
*
|
|
1559
|
+
* If the metadata is saved with the metadata manager (i.e. not with GVfs), this
|
|
1560
|
+
* function saves the metadata synchronously. A future version might fix this.
|
|
1561
|
+
*
|
|
1562
|
+
* See the #GAsyncResult documentation to know how to use this function.
|
|
1563
|
+
* @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
|
|
1564
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
1565
|
+
* @param callback a #GAsyncReadyCallback to call when the request is satisfied.
|
|
1566
|
+
*/
|
|
1567
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1568
|
+
/**
|
|
1569
|
+
* Finishes the metadata saving started with tepl_file_metadata_save_async().
|
|
1570
|
+
* @param result a #GAsyncResult.
|
|
1571
|
+
* @returns whether the metadata was saved successfully.
|
|
1572
|
+
*/
|
|
1573
|
+
save_finish(result: Gio.AsyncResult): boolean
|
|
1574
|
+
/**
|
|
1575
|
+
* Sets the value of a metadata. It's preferable that `key` starts with a
|
|
1576
|
+
* namespace, to not get metadata conflicts between applications.
|
|
1577
|
+
*
|
|
1578
|
+
* This function just stores the new metadata value in the `metadata` object
|
|
1579
|
+
* memory.
|
|
1580
|
+
* @param key the name of the metadata.
|
|
1581
|
+
* @param value the value of the metadata, or %NULL to unset.
|
|
1582
|
+
*/
|
|
1583
|
+
set(key: string | null, value: string | null): void
|
|
1584
|
+
|
|
1585
|
+
// Class property signals of Tepl-4.Tepl.FileMetadata
|
|
1586
|
+
|
|
1587
|
+
connect(sigName: "notify::file", callback: (($obj: FileMetadata, pspec: GObject.ParamSpec) => void)): number
|
|
1588
|
+
connect_after(sigName: "notify::file", callback: (($obj: FileMetadata, pspec: GObject.ParamSpec) => void)): number
|
|
1589
|
+
emit(sigName: "notify::file", ...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 FileMetadata extends GObject.Object {
|
|
1597
|
+
|
|
1598
|
+
// Own properties of Tepl-4.Tepl.FileMetadata
|
|
1599
|
+
|
|
1600
|
+
static name: string
|
|
1601
|
+
static $gtype: GObject.GType<FileMetadata>
|
|
1602
|
+
|
|
1603
|
+
// Constructors of Tepl-4.Tepl.FileMetadata
|
|
1604
|
+
|
|
1605
|
+
constructor(config?: FileMetadata.ConstructorProperties)
|
|
1606
|
+
constructor(file: File)
|
|
1607
|
+
static new(file: File): FileMetadata
|
|
1608
|
+
_init(config?: FileMetadata.ConstructorProperties): void
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
module FileSaver {
|
|
1612
|
+
|
|
1613
|
+
// Constructor properties interface
|
|
1614
|
+
|
|
1615
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1616
|
+
|
|
1617
|
+
// Own constructor properties of Tepl-4.Tepl.FileSaver
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* The #TeplBuffer to save. The #TeplFileSaver object has a weak
|
|
1621
|
+
* reference to the buffer.
|
|
1622
|
+
*/
|
|
1623
|
+
buffer?: GtkSource.Buffer | null
|
|
1624
|
+
/**
|
|
1625
|
+
* The compression type.
|
|
1626
|
+
*/
|
|
1627
|
+
compression_type?: GtkSource.CompressionType | null
|
|
1628
|
+
/**
|
|
1629
|
+
* The file's encoding.
|
|
1630
|
+
*/
|
|
1631
|
+
encoding?: Encoding | null
|
|
1632
|
+
/**
|
|
1633
|
+
* The #TeplFile. The #TeplFileSaver object has a weak
|
|
1634
|
+
* reference to the file.
|
|
1635
|
+
*/
|
|
1636
|
+
file?: File | null
|
|
1637
|
+
/**
|
|
1638
|
+
* File saving flags.
|
|
1639
|
+
*/
|
|
1640
|
+
flags?: FileSaverFlags | null
|
|
1641
|
+
/**
|
|
1642
|
+
* The #GFile where to save the buffer. By default the location is taken
|
|
1643
|
+
* from the #TeplFile at construction time.
|
|
1644
|
+
*/
|
|
1645
|
+
location?: Gio.File | null
|
|
1646
|
+
/**
|
|
1647
|
+
* The newline type.
|
|
1648
|
+
*/
|
|
1649
|
+
newline_type?: GtkSource.NewlineType | null
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
interface FileSaver {
|
|
1655
|
+
|
|
1656
|
+
// Own properties of Tepl-4.Tepl.FileSaver
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* The #TeplBuffer to save. The #TeplFileSaver object has a weak
|
|
1660
|
+
* reference to the buffer.
|
|
1661
|
+
*/
|
|
1662
|
+
readonly buffer: GtkSource.Buffer
|
|
1663
|
+
/**
|
|
1664
|
+
* The compression type.
|
|
1665
|
+
*/
|
|
1666
|
+
compression_type: GtkSource.CompressionType
|
|
1667
|
+
/**
|
|
1668
|
+
* The file's encoding.
|
|
1669
|
+
*/
|
|
1670
|
+
encoding: Encoding
|
|
1671
|
+
/**
|
|
1672
|
+
* The #TeplFile. The #TeplFileSaver object has a weak
|
|
1673
|
+
* reference to the file.
|
|
1674
|
+
*/
|
|
1675
|
+
readonly file: File
|
|
1676
|
+
/**
|
|
1677
|
+
* File saving flags.
|
|
1678
|
+
*/
|
|
1679
|
+
flags: FileSaverFlags
|
|
1680
|
+
/**
|
|
1681
|
+
* The #GFile where to save the buffer. By default the location is taken
|
|
1682
|
+
* from the #TeplFile at construction time.
|
|
1683
|
+
*/
|
|
1684
|
+
readonly location: Gio.File
|
|
1685
|
+
/**
|
|
1686
|
+
* The newline type.
|
|
1687
|
+
*/
|
|
1688
|
+
newline_type: GtkSource.NewlineType
|
|
1689
|
+
|
|
1690
|
+
// Own fields of Tepl-4.Tepl.FileSaver
|
|
1691
|
+
|
|
1692
|
+
object: GObject.Object
|
|
1693
|
+
priv: FileSaverPrivate
|
|
1694
|
+
|
|
1695
|
+
// Owm methods of Tepl-4.Tepl.FileSaver
|
|
1696
|
+
|
|
1697
|
+
get_buffer(): Buffer
|
|
1698
|
+
get_compression_type(): CompressionType
|
|
1699
|
+
get_encoding(): Encoding
|
|
1700
|
+
get_file(): File
|
|
1701
|
+
get_flags(): FileSaverFlags
|
|
1702
|
+
get_location(): Gio.File
|
|
1703
|
+
get_newline_type(): NewlineType
|
|
1704
|
+
/**
|
|
1705
|
+
* Saves asynchronously the buffer into the file. See the #GAsyncResult
|
|
1706
|
+
* documentation to know how to use this function.
|
|
1707
|
+
* @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
|
|
1708
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
1709
|
+
* @param progress_callback function to call back with progress information, or %NULL if progress information is not needed.
|
|
1710
|
+
* @param callback a #GAsyncReadyCallback to call when the request is satisfied.
|
|
1711
|
+
*/
|
|
1712
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1713
|
+
/**
|
|
1714
|
+
* Finishes a file saving started with tepl_file_saver_save_async().
|
|
1715
|
+
*
|
|
1716
|
+
* If the file has been saved successfully, the following #TeplFile
|
|
1717
|
+
* properties will be updated: the location, the encoding, the newline type and
|
|
1718
|
+
* the compression type.
|
|
1719
|
+
*
|
|
1720
|
+
* gtk_text_buffer_set_modified() is called with %FALSE if the file has been
|
|
1721
|
+
* saved successfully.
|
|
1722
|
+
* @param result a #GAsyncResult.
|
|
1723
|
+
* @returns whether the file was saved successfully.
|
|
1724
|
+
*/
|
|
1725
|
+
save_finish(result: Gio.AsyncResult): boolean
|
|
1726
|
+
/**
|
|
1727
|
+
* Sets the compression type. By default the compression type is taken from the
|
|
1728
|
+
* #TeplFile.
|
|
1729
|
+
* @param compression_type the new compression type.
|
|
1730
|
+
*/
|
|
1731
|
+
set_compression_type(compression_type: CompressionType): void
|
|
1732
|
+
/**
|
|
1733
|
+
* Sets the encoding. If `encoding` is %NULL, the UTF-8 encoding will be set.
|
|
1734
|
+
* By default the encoding is taken from the #TeplFile.
|
|
1735
|
+
* @param encoding the new encoding, or %NULL for UTF-8.
|
|
1736
|
+
*/
|
|
1737
|
+
set_encoding(encoding: Encoding | null): void
|
|
1738
|
+
set_flags(flags: FileSaverFlags): void
|
|
1739
|
+
/**
|
|
1740
|
+
* Sets the newline type. By default the newline type is taken from the
|
|
1741
|
+
* #TeplFile.
|
|
1742
|
+
* @param newline_type the new newline type.
|
|
1743
|
+
*/
|
|
1744
|
+
set_newline_type(newline_type: NewlineType): void
|
|
1745
|
+
|
|
1746
|
+
// Class property signals of Tepl-4.Tepl.FileSaver
|
|
1747
|
+
|
|
1748
|
+
connect(sigName: "notify::buffer", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1749
|
+
connect_after(sigName: "notify::buffer", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1750
|
+
emit(sigName: "notify::buffer", ...args: any[]): void
|
|
1751
|
+
connect(sigName: "notify::compression-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1752
|
+
connect_after(sigName: "notify::compression-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1753
|
+
emit(sigName: "notify::compression-type", ...args: any[]): void
|
|
1754
|
+
connect(sigName: "notify::encoding", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1755
|
+
connect_after(sigName: "notify::encoding", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1756
|
+
emit(sigName: "notify::encoding", ...args: any[]): void
|
|
1757
|
+
connect(sigName: "notify::file", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1758
|
+
connect_after(sigName: "notify::file", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1759
|
+
emit(sigName: "notify::file", ...args: any[]): void
|
|
1760
|
+
connect(sigName: "notify::flags", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1761
|
+
connect_after(sigName: "notify::flags", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1762
|
+
emit(sigName: "notify::flags", ...args: any[]): void
|
|
1763
|
+
connect(sigName: "notify::location", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1764
|
+
connect_after(sigName: "notify::location", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1765
|
+
emit(sigName: "notify::location", ...args: any[]): void
|
|
1766
|
+
connect(sigName: "notify::newline-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1767
|
+
connect_after(sigName: "notify::newline-type", callback: (($obj: FileSaver, pspec: GObject.ParamSpec) => void)): number
|
|
1768
|
+
emit(sigName: "notify::newline-type", ...args: any[]): void
|
|
1769
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1770
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1771
|
+
emit(sigName: string, ...args: any[]): void
|
|
1772
|
+
disconnect(id: number): void
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
class FileSaver extends GObject.Object {
|
|
1776
|
+
|
|
1777
|
+
// Own properties of Tepl-4.Tepl.FileSaver
|
|
1778
|
+
|
|
1779
|
+
static name: string
|
|
1780
|
+
static $gtype: GObject.GType<FileSaver>
|
|
1781
|
+
|
|
1782
|
+
// Constructors of Tepl-4.Tepl.FileSaver
|
|
1783
|
+
|
|
1784
|
+
constructor(config?: FileSaver.ConstructorProperties)
|
|
1785
|
+
/**
|
|
1786
|
+
* Creates a new #TeplFileSaver object. The `buffer` will be saved to the
|
|
1787
|
+
* #TeplFile's location.
|
|
1788
|
+
*
|
|
1789
|
+
* This constructor is suitable for a simple "save" operation, when the `file`
|
|
1790
|
+
* already contains a non-%NULL #TeplFile:location.
|
|
1791
|
+
* @constructor
|
|
1792
|
+
* @param buffer the #TeplBuffer to save.
|
|
1793
|
+
* @param file the #TeplFile.
|
|
1794
|
+
* @returns a new #TeplFileSaver object.
|
|
1795
|
+
*/
|
|
1796
|
+
constructor(buffer: Buffer, file: File)
|
|
1797
|
+
/**
|
|
1798
|
+
* Creates a new #TeplFileSaver object. The `buffer` will be saved to the
|
|
1799
|
+
* #TeplFile's location.
|
|
1800
|
+
*
|
|
1801
|
+
* This constructor is suitable for a simple "save" operation, when the `file`
|
|
1802
|
+
* already contains a non-%NULL #TeplFile:location.
|
|
1803
|
+
* @constructor
|
|
1804
|
+
* @param buffer the #TeplBuffer to save.
|
|
1805
|
+
* @param file the #TeplFile.
|
|
1806
|
+
* @returns a new #TeplFileSaver object.
|
|
1807
|
+
*/
|
|
1808
|
+
static new(buffer: Buffer, file: File): FileSaver
|
|
1809
|
+
/**
|
|
1810
|
+
* Creates a new #TeplFileSaver object with a target location. When the
|
|
1811
|
+
* file saving is finished successfully, `target_location` is set to the `file'`s
|
|
1812
|
+
* #TeplFile:location property. If an error occurs, the previous valid
|
|
1813
|
+
* location is still available in #TeplFile.
|
|
1814
|
+
*
|
|
1815
|
+
* This constructor adds %TEPL_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME to the
|
|
1816
|
+
* #TeplFileSaver:flags property.
|
|
1817
|
+
*
|
|
1818
|
+
* This constructor is suitable for a "save as" operation, or for saving a new
|
|
1819
|
+
* buffer for the first time.
|
|
1820
|
+
* @constructor
|
|
1821
|
+
* @param buffer the #TeplBuffer to save.
|
|
1822
|
+
* @param file the #TeplFile.
|
|
1823
|
+
* @param target_location the #GFile where to save the buffer to.
|
|
1824
|
+
* @returns a new #TeplFileSaver object.
|
|
1825
|
+
*/
|
|
1826
|
+
static new_with_target(buffer: Buffer, file: File, target_location: Gio.File): FileSaver
|
|
1827
|
+
_init(config?: FileSaver.ConstructorProperties): void
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
module FoldRegion {
|
|
1831
|
+
|
|
1832
|
+
// Constructor properties interface
|
|
1833
|
+
|
|
1834
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1835
|
+
|
|
1836
|
+
// Own constructor properties of Tepl-4.Tepl.FoldRegion
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* The #GtkTextBuffer where the fold region is applied. The
|
|
1840
|
+
* #TeplFoldRegion object has a weak reference to the buffer.
|
|
1841
|
+
*/
|
|
1842
|
+
buffer?: Gtk.TextBuffer | null
|
|
1843
|
+
/**
|
|
1844
|
+
* Whether the #TeplFoldRegion is folded or not.
|
|
1845
|
+
*/
|
|
1846
|
+
folded?: boolean | null
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
interface FoldRegion {
|
|
1852
|
+
|
|
1853
|
+
// Own properties of Tepl-4.Tepl.FoldRegion
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* The #GtkTextBuffer where the fold region is applied. The
|
|
1857
|
+
* #TeplFoldRegion object has a weak reference to the buffer.
|
|
1858
|
+
*/
|
|
1859
|
+
readonly buffer: Gtk.TextBuffer
|
|
1860
|
+
/**
|
|
1861
|
+
* Whether the #TeplFoldRegion is folded or not.
|
|
1862
|
+
*/
|
|
1863
|
+
folded: boolean
|
|
1864
|
+
|
|
1865
|
+
// Own fields of Tepl-4.Tepl.FoldRegion
|
|
1866
|
+
|
|
1867
|
+
parent_instance: GObject.Object
|
|
1868
|
+
|
|
1869
|
+
// Owm methods of Tepl-4.Tepl.FoldRegion
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* Obtains iterators pointing to the start and end of the #TeplFoldRegion.
|
|
1873
|
+
* @returns %TRUE on success, %FALSE otherwise.
|
|
1874
|
+
*/
|
|
1875
|
+
get_bounds(): [ /* returnType */ boolean, /* start */ Gtk.TextIter, /* end */ Gtk.TextIter ]
|
|
1876
|
+
get_buffer(): Gtk.TextBuffer | null
|
|
1877
|
+
get_folded(): boolean
|
|
1878
|
+
/**
|
|
1879
|
+
* Sets the start and end of the #TeplFoldRegion.
|
|
1880
|
+
* @param start a #GtkTextIter.
|
|
1881
|
+
* @param end a #GtkTextIter.
|
|
1882
|
+
*/
|
|
1883
|
+
set_bounds(start: Gtk.TextIter, end: Gtk.TextIter): void
|
|
1884
|
+
/**
|
|
1885
|
+
* Folds or unfolds the region.
|
|
1886
|
+
* @param folded the new value.
|
|
1887
|
+
*/
|
|
1888
|
+
set_folded(folded: boolean): void
|
|
1889
|
+
|
|
1890
|
+
// Class property signals of Tepl-4.Tepl.FoldRegion
|
|
1891
|
+
|
|
1892
|
+
connect(sigName: "notify::buffer", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
|
|
1893
|
+
connect_after(sigName: "notify::buffer", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
|
|
1894
|
+
emit(sigName: "notify::buffer", ...args: any[]): void
|
|
1895
|
+
connect(sigName: "notify::folded", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
|
|
1896
|
+
connect_after(sigName: "notify::folded", callback: (($obj: FoldRegion, pspec: GObject.ParamSpec) => void)): number
|
|
1897
|
+
emit(sigName: "notify::folded", ...args: any[]): void
|
|
1898
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1899
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1900
|
+
emit(sigName: string, ...args: any[]): void
|
|
1901
|
+
disconnect(id: number): void
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
class FoldRegion extends GObject.Object {
|
|
1905
|
+
|
|
1906
|
+
// Own properties of Tepl-4.Tepl.FoldRegion
|
|
1907
|
+
|
|
1908
|
+
static name: string
|
|
1909
|
+
static $gtype: GObject.GType<FoldRegion>
|
|
1910
|
+
|
|
1911
|
+
// Constructors of Tepl-4.Tepl.FoldRegion
|
|
1912
|
+
|
|
1913
|
+
constructor(config?: FoldRegion.ConstructorProperties)
|
|
1914
|
+
constructor(buffer: Gtk.TextBuffer, start: Gtk.TextIter, end: Gtk.TextIter)
|
|
1915
|
+
static new(buffer: Gtk.TextBuffer, start: Gtk.TextIter, end: Gtk.TextIter): FoldRegion
|
|
1916
|
+
_init(config?: FoldRegion.ConstructorProperties): void
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
module GutterRendererFolds {
|
|
1920
|
+
|
|
1921
|
+
// Constructor properties interface
|
|
1922
|
+
|
|
1923
|
+
interface ConstructorProperties extends GtkSource.GutterRenderer.ConstructorProperties {
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
interface GutterRendererFolds {
|
|
1929
|
+
|
|
1930
|
+
// Own fields of Tepl-4.Tepl.GutterRendererFolds
|
|
1931
|
+
|
|
1932
|
+
parent_instance: GtkSource.GutterRenderer
|
|
1933
|
+
|
|
1934
|
+
// Owm methods of Tepl-4.Tepl.GutterRendererFolds
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Sets the folding state of the next cell to be drawn.
|
|
1938
|
+
*
|
|
1939
|
+
* This function is intended to be called from a subclass' draw method before
|
|
1940
|
+
* chaining-up to its parent's draw method.
|
|
1941
|
+
* @param state a #TeplGutterRendererFoldsState.
|
|
1942
|
+
*/
|
|
1943
|
+
set_state(state: GutterRendererFoldsState): void
|
|
1944
|
+
|
|
1945
|
+
// Class property signals of Tepl-4.Tepl.GutterRendererFolds
|
|
1946
|
+
|
|
1947
|
+
connect(sigName: "notify::alignment-mode", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1948
|
+
connect_after(sigName: "notify::alignment-mode", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1949
|
+
emit(sigName: "notify::alignment-mode", ...args: any[]): void
|
|
1950
|
+
connect(sigName: "notify::background-rgba", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1951
|
+
connect_after(sigName: "notify::background-rgba", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1952
|
+
emit(sigName: "notify::background-rgba", ...args: any[]): void
|
|
1953
|
+
connect(sigName: "notify::background-set", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1954
|
+
connect_after(sigName: "notify::background-set", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1955
|
+
emit(sigName: "notify::background-set", ...args: any[]): void
|
|
1956
|
+
connect(sigName: "notify::size", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1957
|
+
connect_after(sigName: "notify::size", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1958
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
1959
|
+
connect(sigName: "notify::view", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1960
|
+
connect_after(sigName: "notify::view", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1961
|
+
emit(sigName: "notify::view", ...args: any[]): void
|
|
1962
|
+
connect(sigName: "notify::visible", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1963
|
+
connect_after(sigName: "notify::visible", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1964
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
1965
|
+
connect(sigName: "notify::window-type", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1966
|
+
connect_after(sigName: "notify::window-type", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1967
|
+
emit(sigName: "notify::window-type", ...args: any[]): void
|
|
1968
|
+
connect(sigName: "notify::xalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1969
|
+
connect_after(sigName: "notify::xalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1970
|
+
emit(sigName: "notify::xalign", ...args: any[]): void
|
|
1971
|
+
connect(sigName: "notify::xpad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1972
|
+
connect_after(sigName: "notify::xpad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1973
|
+
emit(sigName: "notify::xpad", ...args: any[]): void
|
|
1974
|
+
connect(sigName: "notify::yalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1975
|
+
connect_after(sigName: "notify::yalign", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1976
|
+
emit(sigName: "notify::yalign", ...args: any[]): void
|
|
1977
|
+
connect(sigName: "notify::ypad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1978
|
+
connect_after(sigName: "notify::ypad", callback: (($obj: GutterRendererFolds, pspec: GObject.ParamSpec) => void)): number
|
|
1979
|
+
emit(sigName: "notify::ypad", ...args: any[]): void
|
|
1980
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1981
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1982
|
+
emit(sigName: string, ...args: any[]): void
|
|
1983
|
+
disconnect(id: number): void
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
class GutterRendererFolds extends GtkSource.GutterRenderer {
|
|
1987
|
+
|
|
1988
|
+
// Own properties of Tepl-4.Tepl.GutterRendererFolds
|
|
1989
|
+
|
|
1990
|
+
static name: string
|
|
1991
|
+
static $gtype: GObject.GType<GutterRendererFolds>
|
|
1992
|
+
|
|
1993
|
+
// Constructors of Tepl-4.Tepl.GutterRendererFolds
|
|
1994
|
+
|
|
1995
|
+
constructor(config?: GutterRendererFolds.ConstructorProperties)
|
|
1996
|
+
constructor()
|
|
1997
|
+
static new(): GutterRendererFolds
|
|
1998
|
+
_init(config?: GutterRendererFolds.ConstructorProperties): void
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
module InfoBar {
|
|
2002
|
+
|
|
2003
|
+
// Constructor properties interface
|
|
2004
|
+
|
|
2005
|
+
interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.InfoBar.ConstructorProperties {
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
2011
|
+
|
|
2012
|
+
// Conflicting properties
|
|
2013
|
+
|
|
2014
|
+
parent: Gtk.Box & Gtk.Container & Gtk.Container
|
|
2015
|
+
|
|
2016
|
+
// Own fields of Tepl-4.Tepl.InfoBar
|
|
2017
|
+
|
|
2018
|
+
parent_instance: Gtk.InfoBar & GObject.InitiallyUnowned
|
|
2019
|
+
|
|
2020
|
+
// Owm methods of Tepl-4.Tepl.InfoBar
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* Calls gtk_info_bar_set_show_close_button(), and additionnally closes the
|
|
2024
|
+
* `info_bar` when the #GtkInfoBar::response signal is received with the
|
|
2025
|
+
* `response_id` %GTK_RESPONSE_CLOSE.
|
|
2026
|
+
*/
|
|
2027
|
+
add_close_button(): void
|
|
2028
|
+
/**
|
|
2029
|
+
* Adds `content` to `info_bar`.
|
|
2030
|
+
*
|
|
2031
|
+
* #TeplInfoBar has an internal container, to be able to add the icon and add
|
|
2032
|
+
* primary or secondary messages. The internal container is added to the content
|
|
2033
|
+
* area, as returned by gtk_info_bar_get_content_area(). So if you use a
|
|
2034
|
+
* #TeplInfoBar and you need to add a custom #GtkWidget, it is better to use
|
|
2035
|
+
* this function instead of adding the #GtkWidget directly to the content area.
|
|
2036
|
+
* @param content a #GtkWidget.
|
|
2037
|
+
*/
|
|
2038
|
+
add_content_widget(content: Gtk.Widget): void
|
|
2039
|
+
/**
|
|
2040
|
+
* Adds an icon on the left, determined by the message type. So before calling
|
|
2041
|
+
* this function, gtk_info_bar_set_message_type() must have been called.
|
|
2042
|
+
*
|
|
2043
|
+
* The icon is not updated when the message type changes. Another #TeplInfoBar
|
|
2044
|
+
* must be created in that case.
|
|
2045
|
+
*/
|
|
2046
|
+
add_icon(): void
|
|
2047
|
+
/**
|
|
2048
|
+
* Adds a primary message.
|
|
2049
|
+
* @param primary_msg a primary message.
|
|
2050
|
+
*/
|
|
2051
|
+
add_primary_message(primary_msg: string | null): void
|
|
2052
|
+
/**
|
|
2053
|
+
* Adds a secondary message.
|
|
2054
|
+
* @param secondary_msg a secondary message.
|
|
2055
|
+
*/
|
|
2056
|
+
add_secondary_message(secondary_msg: string | null): void
|
|
2057
|
+
/**
|
|
2058
|
+
* Sets the desired orientation (horizontal or vertical) for the action area as
|
|
2059
|
+
* returned by gtk_info_bar_get_action_area(). The action area is where the
|
|
2060
|
+
* buttons are placed.
|
|
2061
|
+
*
|
|
2062
|
+
* The default value for a #TeplInfoBar is %GTK_ORIENTATION_VERTICAL. The reason
|
|
2063
|
+
* is because with a small #GtkWindow, if 3 or more buttons are shown
|
|
2064
|
+
* horizontally, there is not enough space for the text. And it can be worse
|
|
2065
|
+
* when the button labels are translated to another language. When the buttons
|
|
2066
|
+
* are packed vertically, there is usually no problem. A vertical action area
|
|
2067
|
+
* also follows the original design of #GtkInfoBar.
|
|
2068
|
+
* @param buttons_orientation the desired orientation.
|
|
2069
|
+
*/
|
|
2070
|
+
set_buttons_orientation(buttons_orientation: Gtk.Orientation): void
|
|
2071
|
+
|
|
2072
|
+
// Conflicting methods
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2076
|
+
* [child property][child-properties]
|
|
2077
|
+
* `child_property` on the child.
|
|
2078
|
+
*
|
|
2079
|
+
* This is an analogue of g_object_notify() for child properties.
|
|
2080
|
+
*
|
|
2081
|
+
* Also see gtk_widget_child_notify().
|
|
2082
|
+
* @param child the child widget
|
|
2083
|
+
* @param child_property the name of a child property installed on the class of `container`
|
|
2084
|
+
*/
|
|
2085
|
+
child_notify(child: Gtk.Widget, child_property: string | null): void
|
|
2086
|
+
|
|
2087
|
+
// Overloads of child_notify
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2091
|
+
* [child property][child-properties] `child_property`
|
|
2092
|
+
* on `widget`.
|
|
2093
|
+
*
|
|
2094
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
2095
|
+
*
|
|
2096
|
+
* Also see gtk_container_child_notify().
|
|
2097
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2098
|
+
*/
|
|
2099
|
+
child_notify(child_property: string | null): void
|
|
2100
|
+
/**
|
|
2101
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2102
|
+
* [child property][child-properties] `child_property`
|
|
2103
|
+
* on `widget`.
|
|
2104
|
+
*
|
|
2105
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
2106
|
+
*
|
|
2107
|
+
* Also see gtk_container_child_notify().
|
|
2108
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2109
|
+
*/
|
|
2110
|
+
child_notify(child_property: string | null): void
|
|
2111
|
+
|
|
2112
|
+
// Class property signals of Tepl-4.Tepl.InfoBar
|
|
2113
|
+
|
|
2114
|
+
connect(sigName: "notify::message-type", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2115
|
+
connect_after(sigName: "notify::message-type", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2116
|
+
emit(sigName: "notify::message-type", ...args: any[]): void
|
|
2117
|
+
connect(sigName: "notify::revealed", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2118
|
+
connect_after(sigName: "notify::revealed", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2119
|
+
emit(sigName: "notify::revealed", ...args: any[]): void
|
|
2120
|
+
connect(sigName: "notify::show-close-button", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2121
|
+
connect_after(sigName: "notify::show-close-button", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2122
|
+
emit(sigName: "notify::show-close-button", ...args: any[]): void
|
|
2123
|
+
connect(sigName: "notify::baseline-position", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2124
|
+
connect_after(sigName: "notify::baseline-position", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2125
|
+
emit(sigName: "notify::baseline-position", ...args: any[]): void
|
|
2126
|
+
connect(sigName: "notify::homogeneous", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2127
|
+
connect_after(sigName: "notify::homogeneous", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2128
|
+
emit(sigName: "notify::homogeneous", ...args: any[]): void
|
|
2129
|
+
connect(sigName: "notify::spacing", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2130
|
+
connect_after(sigName: "notify::spacing", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2131
|
+
emit(sigName: "notify::spacing", ...args: any[]): void
|
|
2132
|
+
connect(sigName: "notify::border-width", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2133
|
+
connect_after(sigName: "notify::border-width", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2134
|
+
emit(sigName: "notify::border-width", ...args: any[]): void
|
|
2135
|
+
connect(sigName: "notify::child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2136
|
+
connect_after(sigName: "notify::child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2137
|
+
emit(sigName: "notify::child", ...args: any[]): void
|
|
2138
|
+
connect(sigName: "notify::resize-mode", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2139
|
+
connect_after(sigName: "notify::resize-mode", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2140
|
+
emit(sigName: "notify::resize-mode", ...args: any[]): void
|
|
2141
|
+
connect(sigName: "notify::app-paintable", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2142
|
+
connect_after(sigName: "notify::app-paintable", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2143
|
+
emit(sigName: "notify::app-paintable", ...args: any[]): void
|
|
2144
|
+
connect(sigName: "notify::can-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2145
|
+
connect_after(sigName: "notify::can-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2146
|
+
emit(sigName: "notify::can-default", ...args: any[]): void
|
|
2147
|
+
connect(sigName: "notify::can-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2148
|
+
connect_after(sigName: "notify::can-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2149
|
+
emit(sigName: "notify::can-focus", ...args: any[]): void
|
|
2150
|
+
connect(sigName: "notify::composite-child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2151
|
+
connect_after(sigName: "notify::composite-child", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2152
|
+
emit(sigName: "notify::composite-child", ...args: any[]): void
|
|
2153
|
+
connect(sigName: "notify::double-buffered", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2154
|
+
connect_after(sigName: "notify::double-buffered", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2155
|
+
emit(sigName: "notify::double-buffered", ...args: any[]): void
|
|
2156
|
+
connect(sigName: "notify::events", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2157
|
+
connect_after(sigName: "notify::events", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2158
|
+
emit(sigName: "notify::events", ...args: any[]): void
|
|
2159
|
+
connect(sigName: "notify::expand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2160
|
+
connect_after(sigName: "notify::expand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2161
|
+
emit(sigName: "notify::expand", ...args: any[]): void
|
|
2162
|
+
connect(sigName: "notify::focus-on-click", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2163
|
+
connect_after(sigName: "notify::focus-on-click", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2164
|
+
emit(sigName: "notify::focus-on-click", ...args: any[]): void
|
|
2165
|
+
connect(sigName: "notify::halign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2166
|
+
connect_after(sigName: "notify::halign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2167
|
+
emit(sigName: "notify::halign", ...args: any[]): void
|
|
2168
|
+
connect(sigName: "notify::has-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2169
|
+
connect_after(sigName: "notify::has-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2170
|
+
emit(sigName: "notify::has-default", ...args: any[]): void
|
|
2171
|
+
connect(sigName: "notify::has-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2172
|
+
connect_after(sigName: "notify::has-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2173
|
+
emit(sigName: "notify::has-focus", ...args: any[]): void
|
|
2174
|
+
connect(sigName: "notify::has-tooltip", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2175
|
+
connect_after(sigName: "notify::has-tooltip", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2176
|
+
emit(sigName: "notify::has-tooltip", ...args: any[]): void
|
|
2177
|
+
connect(sigName: "notify::height-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2178
|
+
connect_after(sigName: "notify::height-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2179
|
+
emit(sigName: "notify::height-request", ...args: any[]): void
|
|
2180
|
+
connect(sigName: "notify::hexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2181
|
+
connect_after(sigName: "notify::hexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2182
|
+
emit(sigName: "notify::hexpand", ...args: any[]): void
|
|
2183
|
+
connect(sigName: "notify::hexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2184
|
+
connect_after(sigName: "notify::hexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2185
|
+
emit(sigName: "notify::hexpand-set", ...args: any[]): void
|
|
2186
|
+
connect(sigName: "notify::is-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2187
|
+
connect_after(sigName: "notify::is-focus", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2188
|
+
emit(sigName: "notify::is-focus", ...args: any[]): void
|
|
2189
|
+
connect(sigName: "notify::margin", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2190
|
+
connect_after(sigName: "notify::margin", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2191
|
+
emit(sigName: "notify::margin", ...args: any[]): void
|
|
2192
|
+
connect(sigName: "notify::margin-bottom", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2193
|
+
connect_after(sigName: "notify::margin-bottom", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2194
|
+
emit(sigName: "notify::margin-bottom", ...args: any[]): void
|
|
2195
|
+
connect(sigName: "notify::margin-end", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2196
|
+
connect_after(sigName: "notify::margin-end", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2197
|
+
emit(sigName: "notify::margin-end", ...args: any[]): void
|
|
2198
|
+
connect(sigName: "notify::margin-left", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2199
|
+
connect_after(sigName: "notify::margin-left", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2200
|
+
emit(sigName: "notify::margin-left", ...args: any[]): void
|
|
2201
|
+
connect(sigName: "notify::margin-right", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2202
|
+
connect_after(sigName: "notify::margin-right", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2203
|
+
emit(sigName: "notify::margin-right", ...args: any[]): void
|
|
2204
|
+
connect(sigName: "notify::margin-start", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2205
|
+
connect_after(sigName: "notify::margin-start", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2206
|
+
emit(sigName: "notify::margin-start", ...args: any[]): void
|
|
2207
|
+
connect(sigName: "notify::margin-top", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2208
|
+
connect_after(sigName: "notify::margin-top", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2209
|
+
emit(sigName: "notify::margin-top", ...args: any[]): void
|
|
2210
|
+
connect(sigName: "notify::name", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2211
|
+
connect_after(sigName: "notify::name", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2212
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
2213
|
+
connect(sigName: "notify::no-show-all", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2214
|
+
connect_after(sigName: "notify::no-show-all", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2215
|
+
emit(sigName: "notify::no-show-all", ...args: any[]): void
|
|
2216
|
+
connect(sigName: "notify::opacity", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2217
|
+
connect_after(sigName: "notify::opacity", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2218
|
+
emit(sigName: "notify::opacity", ...args: any[]): void
|
|
2219
|
+
connect(sigName: "notify::parent", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2220
|
+
connect_after(sigName: "notify::parent", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2221
|
+
emit(sigName: "notify::parent", ...args: any[]): void
|
|
2222
|
+
connect(sigName: "notify::receives-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2223
|
+
connect_after(sigName: "notify::receives-default", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2224
|
+
emit(sigName: "notify::receives-default", ...args: any[]): void
|
|
2225
|
+
connect(sigName: "notify::scale-factor", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2226
|
+
connect_after(sigName: "notify::scale-factor", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2227
|
+
emit(sigName: "notify::scale-factor", ...args: any[]): void
|
|
2228
|
+
connect(sigName: "notify::sensitive", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2229
|
+
connect_after(sigName: "notify::sensitive", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2230
|
+
emit(sigName: "notify::sensitive", ...args: any[]): void
|
|
2231
|
+
connect(sigName: "notify::style", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2232
|
+
connect_after(sigName: "notify::style", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2233
|
+
emit(sigName: "notify::style", ...args: any[]): void
|
|
2234
|
+
connect(sigName: "notify::tooltip-markup", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2235
|
+
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2236
|
+
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
|
|
2237
|
+
connect(sigName: "notify::tooltip-text", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2238
|
+
connect_after(sigName: "notify::tooltip-text", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2239
|
+
emit(sigName: "notify::tooltip-text", ...args: any[]): void
|
|
2240
|
+
connect(sigName: "notify::valign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2241
|
+
connect_after(sigName: "notify::valign", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2242
|
+
emit(sigName: "notify::valign", ...args: any[]): void
|
|
2243
|
+
connect(sigName: "notify::vexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2244
|
+
connect_after(sigName: "notify::vexpand", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2245
|
+
emit(sigName: "notify::vexpand", ...args: any[]): void
|
|
2246
|
+
connect(sigName: "notify::vexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2247
|
+
connect_after(sigName: "notify::vexpand-set", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2248
|
+
emit(sigName: "notify::vexpand-set", ...args: any[]): void
|
|
2249
|
+
connect(sigName: "notify::visible", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2250
|
+
connect_after(sigName: "notify::visible", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2251
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
2252
|
+
connect(sigName: "notify::width-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2253
|
+
connect_after(sigName: "notify::width-request", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2254
|
+
emit(sigName: "notify::width-request", ...args: any[]): void
|
|
2255
|
+
connect(sigName: "notify::window", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2256
|
+
connect_after(sigName: "notify::window", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2257
|
+
emit(sigName: "notify::window", ...args: any[]): void
|
|
2258
|
+
connect(sigName: "notify::orientation", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2259
|
+
connect_after(sigName: "notify::orientation", callback: (($obj: InfoBar, pspec: GObject.ParamSpec) => void)): number
|
|
2260
|
+
emit(sigName: "notify::orientation", ...args: any[]): void
|
|
2261
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2262
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2263
|
+
emit(sigName: string, ...args: any[]): void
|
|
2264
|
+
disconnect(id: number): void
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
class InfoBar extends Gtk.InfoBar {
|
|
2268
|
+
|
|
2269
|
+
// Own properties of Tepl-4.Tepl.InfoBar
|
|
2270
|
+
|
|
2271
|
+
static name: string
|
|
2272
|
+
static $gtype: GObject.GType<InfoBar>
|
|
2273
|
+
|
|
2274
|
+
// Constructors of Tepl-4.Tepl.InfoBar
|
|
2275
|
+
|
|
2276
|
+
constructor(config?: InfoBar.ConstructorProperties)
|
|
2277
|
+
constructor()
|
|
2278
|
+
static new(): InfoBar
|
|
2279
|
+
|
|
2280
|
+
// Overloads of new
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Creates a new #GtkInfoBar object.
|
|
2284
|
+
* @constructor
|
|
2285
|
+
* @returns a new #GtkInfoBar object
|
|
2286
|
+
*/
|
|
2287
|
+
static new(): Gtk.InfoBar
|
|
2288
|
+
/**
|
|
2289
|
+
* Creates a new #GtkBox.
|
|
2290
|
+
* @constructor
|
|
2291
|
+
* @param orientation the box’s orientation.
|
|
2292
|
+
* @param spacing the number of pixels to place by default between children.
|
|
2293
|
+
* @returns a new #GtkBox.
|
|
2294
|
+
*/
|
|
2295
|
+
static new(orientation: Gtk.Orientation, spacing: number): Gtk.Box
|
|
2296
|
+
/**
|
|
2297
|
+
* Creates a new #TeplInfoBar with an icon (depending on `msg_type)`, a primary
|
|
2298
|
+
* message and a secondary message.
|
|
2299
|
+
* @constructor
|
|
2300
|
+
* @param msg_type the message type.
|
|
2301
|
+
* @param primary_msg the primary message.
|
|
2302
|
+
* @param secondary_msg the secondary message, or %NULL.
|
|
2303
|
+
* @returns a new #TeplInfoBar.
|
|
2304
|
+
*/
|
|
2305
|
+
static new_simple(msg_type: Gtk.MessageType, primary_msg: string | null, secondary_msg: string | null): InfoBar
|
|
2306
|
+
_init(config?: InfoBar.ConstructorProperties): void
|
|
2307
|
+
/**
|
|
2308
|
+
* Utility function to create a #GtkLabel suitable for a #GtkInfoBar. The
|
|
2309
|
+
* wrapping and alignment is configured. The label is also set as selectable,
|
|
2310
|
+
* for example to copy an error message and search an explanation on the web.
|
|
2311
|
+
* @returns a new #GtkLabel suitable for a #GtkInfoBar.
|
|
2312
|
+
*/
|
|
2313
|
+
static create_label(): Gtk.Label
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
module MetadataStore {
|
|
2317
|
+
|
|
2318
|
+
// Constructor properties interface
|
|
2319
|
+
|
|
2320
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
interface MetadataStore {
|
|
2326
|
+
|
|
2327
|
+
// Own properties of Tepl-4.Tepl.MetadataStore
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* %TRUE when the metadata has been loaded, or when there has been at
|
|
2331
|
+
* least an attempt to load it (i.e. when
|
|
2332
|
+
* tepl_metadata_store_load_finish() has been called).
|
|
2333
|
+
*
|
|
2334
|
+
* %FALSE otherwise.
|
|
2335
|
+
*/
|
|
2336
|
+
readonly loaded: boolean
|
|
2337
|
+
|
|
2338
|
+
// Own fields of Tepl-4.Tepl.MetadataStore
|
|
2339
|
+
|
|
2340
|
+
parent: GObject.Object
|
|
2341
|
+
priv: MetadataStorePrivate
|
|
2342
|
+
|
|
2343
|
+
// Owm methods of Tepl-4.Tepl.MetadataStore
|
|
2344
|
+
|
|
2345
|
+
get_metadata_for_location(location: Gio.File): Gio.FileInfo | null
|
|
2346
|
+
is_loaded(): boolean
|
|
2347
|
+
/**
|
|
2348
|
+
* Loads asynchronously the content of the store file. You need to call
|
|
2349
|
+
* tepl_metadata_store_set_store_file() before.
|
|
2350
|
+
*
|
|
2351
|
+
* You can call this function only once. Once the #TeplMetadataStore is loaded
|
|
2352
|
+
* it cannot be loaded a second time. A good moment to call this function is on
|
|
2353
|
+
* application startup. TODO "application startup": refer to #GApplication API,
|
|
2354
|
+
* the exact startup phase.
|
|
2355
|
+
*
|
|
2356
|
+
* See the #GAsyncResult documentation to know how to use this function.
|
|
2357
|
+
* @param io_priority the I/O priority of the request. E.g. %G_PRIORITY_LOW, %G_PRIORITY_DEFAULT or %G_PRIORITY_HIGH.
|
|
2358
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
2359
|
+
* @param callback a #GAsyncReadyCallback to call when the request is satisfied.
|
|
2360
|
+
*/
|
|
2361
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2362
|
+
/**
|
|
2363
|
+
* Finishes the metadata loading started with tepl_metadata_store_load_async().
|
|
2364
|
+
*
|
|
2365
|
+
* Regardless of whether the operation was successful or not, calling this
|
|
2366
|
+
* function sets the #TeplMetadataStore:loaded property to %TRUE.
|
|
2367
|
+
* @param result a #GAsyncResult.
|
|
2368
|
+
* @returns whether the metadata was loaded successfully.
|
|
2369
|
+
*/
|
|
2370
|
+
load_finish(result: Gio.AsyncResult): boolean
|
|
2371
|
+
/**
|
|
2372
|
+
* Saves synchronously the metadata to the store file. You need to call
|
|
2373
|
+
* tepl_metadata_store_set_store_file() before.
|
|
2374
|
+
*
|
|
2375
|
+
* An asynchronous version doesn't exist because this function is meant to be
|
|
2376
|
+
* called on application shutdown. TODO: refer to #GApplication API, the exact
|
|
2377
|
+
* shutdown phase.
|
|
2378
|
+
*
|
|
2379
|
+
* This function respects the configuration as set with
|
|
2380
|
+
* tepl_metadata_store_set_max_number_of_locations().
|
|
2381
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
2382
|
+
* @returns whether the metadata was saved successfully.
|
|
2383
|
+
*/
|
|
2384
|
+
save(cancellable: Gio.Cancellable | null): boolean
|
|
2385
|
+
/**
|
|
2386
|
+
* If you don't call this function, a default internal value is used that should
|
|
2387
|
+
* fit most applications' needs.
|
|
2388
|
+
*
|
|
2389
|
+
* The purpose of having a maximum size is to avoid the store file (as set with
|
|
2390
|
+
* tepl_metadata_store_set_store_file()) to grow indefinitely.
|
|
2391
|
+
*
|
|
2392
|
+
* `max_number_of_locations` is the maximum number of #GFile locations for which
|
|
2393
|
+
* metadata are written to the store file. See
|
|
2394
|
+
* tepl_metadata_store_set_metadata_for_location() (this sets the metadata for
|
|
2395
|
+
* _one_ location).
|
|
2396
|
+
*
|
|
2397
|
+
* Upon saving, the #TeplMetadataStore discards the least recently accessed
|
|
2398
|
+
* metadata if needed.
|
|
2399
|
+
* @param max_number_of_locations the maximum size.
|
|
2400
|
+
*/
|
|
2401
|
+
set_max_number_of_locations(max_number_of_locations: number): void
|
|
2402
|
+
set_metadata_for_location(location: Gio.File, metadata: Gio.FileInfo | null): void
|
|
2403
|
+
/**
|
|
2404
|
+
* The `store_file` must be different for each process. It is advised for your
|
|
2405
|
+
* application to rely on #GApplication process uniqueness.
|
|
2406
|
+
*
|
|
2407
|
+
* A good place to store the metadata is in a sub-directory of the user data
|
|
2408
|
+
* directory. See g_get_user_data_dir().
|
|
2409
|
+
*
|
|
2410
|
+
* Note that this function does no I/O. To load the metadata from the
|
|
2411
|
+
* `store_file,` call tepl_metadata_store_load_async(). To save the metadata,
|
|
2412
|
+
* call tepl_metadata_store_save().
|
|
2413
|
+
* @param store_file the #GFile where the metadata is or will be stored.
|
|
2414
|
+
*/
|
|
2415
|
+
set_store_file(store_file: Gio.File): void
|
|
2416
|
+
|
|
2417
|
+
// Class property signals of Tepl-4.Tepl.MetadataStore
|
|
2418
|
+
|
|
2419
|
+
connect(sigName: "notify::loaded", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
|
|
2420
|
+
connect_after(sigName: "notify::loaded", callback: (($obj: MetadataStore, pspec: GObject.ParamSpec) => void)): number
|
|
2421
|
+
emit(sigName: "notify::loaded", ...args: any[]): void
|
|
2422
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2423
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2424
|
+
emit(sigName: string, ...args: any[]): void
|
|
2425
|
+
disconnect(id: number): void
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
class MetadataStore extends GObject.Object {
|
|
2429
|
+
|
|
2430
|
+
// Own properties of Tepl-4.Tepl.MetadataStore
|
|
2431
|
+
|
|
2432
|
+
static name: string
|
|
2433
|
+
static $gtype: GObject.GType<MetadataStore>
|
|
2434
|
+
|
|
2435
|
+
// Constructors of Tepl-4.Tepl.MetadataStore
|
|
2436
|
+
|
|
2437
|
+
constructor(config?: MetadataStore.ConstructorProperties)
|
|
2438
|
+
_init(config?: MetadataStore.ConstructorProperties): void
|
|
2439
|
+
static get_singleton(): MetadataStore
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
module Notebook {
|
|
2443
|
+
|
|
2444
|
+
// Constructor properties interface
|
|
2445
|
+
|
|
2446
|
+
interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, TabGroup.ConstructorProperties, Gtk.Notebook.ConstructorProperties {
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
interface Notebook extends Atk.ImplementorIface, Gtk.Buildable, TabGroup {
|
|
2452
|
+
|
|
2453
|
+
// Own fields of Tepl-4.Tepl.Notebook
|
|
2454
|
+
|
|
2455
|
+
parent: Gtk.Notebook & Gtk.Container
|
|
2456
|
+
priv: NotebookPrivate
|
|
2457
|
+
|
|
2458
|
+
// Conflicting methods
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2462
|
+
* [child property][child-properties]
|
|
2463
|
+
* `child_property` on the child.
|
|
2464
|
+
*
|
|
2465
|
+
* This is an analogue of g_object_notify() for child properties.
|
|
2466
|
+
*
|
|
2467
|
+
* Also see gtk_widget_child_notify().
|
|
2468
|
+
* @param child the child widget
|
|
2469
|
+
* @param child_property the name of a child property installed on the class of `container`
|
|
2470
|
+
*/
|
|
2471
|
+
child_notify(child: Gtk.Widget, child_property: string | null): void
|
|
2472
|
+
|
|
2473
|
+
// Overloads of child_notify
|
|
2474
|
+
|
|
2475
|
+
/**
|
|
2476
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2477
|
+
* [child property][child-properties] `child_property`
|
|
2478
|
+
* on `widget`.
|
|
2479
|
+
*
|
|
2480
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
2481
|
+
*
|
|
2482
|
+
* Also see gtk_container_child_notify().
|
|
2483
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2484
|
+
*/
|
|
2485
|
+
child_notify(child_property: string | null): void
|
|
2486
|
+
/**
|
|
2487
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2488
|
+
* [child property][child-properties] `child_property`
|
|
2489
|
+
* on `widget`.
|
|
2490
|
+
*
|
|
2491
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
2492
|
+
*
|
|
2493
|
+
* Also see gtk_container_child_notify().
|
|
2494
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2495
|
+
*/
|
|
2496
|
+
child_notify(child_property: string | null): void
|
|
2497
|
+
|
|
2498
|
+
// Class property signals of Tepl-4.Tepl.Notebook
|
|
2499
|
+
|
|
2500
|
+
connect(sigName: "notify::enable-popup", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2501
|
+
connect_after(sigName: "notify::enable-popup", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2502
|
+
emit(sigName: "notify::enable-popup", ...args: any[]): void
|
|
2503
|
+
connect(sigName: "notify::group-name", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2504
|
+
connect_after(sigName: "notify::group-name", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2505
|
+
emit(sigName: "notify::group-name", ...args: any[]): void
|
|
2506
|
+
connect(sigName: "notify::page", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2507
|
+
connect_after(sigName: "notify::page", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2508
|
+
emit(sigName: "notify::page", ...args: any[]): void
|
|
2509
|
+
connect(sigName: "notify::scrollable", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2510
|
+
connect_after(sigName: "notify::scrollable", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2511
|
+
emit(sigName: "notify::scrollable", ...args: any[]): void
|
|
2512
|
+
connect(sigName: "notify::show-border", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2513
|
+
connect_after(sigName: "notify::show-border", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2514
|
+
emit(sigName: "notify::show-border", ...args: any[]): void
|
|
2515
|
+
connect(sigName: "notify::show-tabs", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2516
|
+
connect_after(sigName: "notify::show-tabs", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2517
|
+
emit(sigName: "notify::show-tabs", ...args: any[]): void
|
|
2518
|
+
connect(sigName: "notify::tab-pos", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2519
|
+
connect_after(sigName: "notify::tab-pos", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2520
|
+
emit(sigName: "notify::tab-pos", ...args: any[]): void
|
|
2521
|
+
connect(sigName: "notify::border-width", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2522
|
+
connect_after(sigName: "notify::border-width", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2523
|
+
emit(sigName: "notify::border-width", ...args: any[]): void
|
|
2524
|
+
connect(sigName: "notify::child", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2525
|
+
connect_after(sigName: "notify::child", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2526
|
+
emit(sigName: "notify::child", ...args: any[]): void
|
|
2527
|
+
connect(sigName: "notify::resize-mode", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2528
|
+
connect_after(sigName: "notify::resize-mode", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2529
|
+
emit(sigName: "notify::resize-mode", ...args: any[]): void
|
|
2530
|
+
connect(sigName: "notify::app-paintable", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2531
|
+
connect_after(sigName: "notify::app-paintable", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2532
|
+
emit(sigName: "notify::app-paintable", ...args: any[]): void
|
|
2533
|
+
connect(sigName: "notify::can-default", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2534
|
+
connect_after(sigName: "notify::can-default", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2535
|
+
emit(sigName: "notify::can-default", ...args: any[]): void
|
|
2536
|
+
connect(sigName: "notify::can-focus", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2537
|
+
connect_after(sigName: "notify::can-focus", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2538
|
+
emit(sigName: "notify::can-focus", ...args: any[]): void
|
|
2539
|
+
connect(sigName: "notify::composite-child", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2540
|
+
connect_after(sigName: "notify::composite-child", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2541
|
+
emit(sigName: "notify::composite-child", ...args: any[]): void
|
|
2542
|
+
connect(sigName: "notify::double-buffered", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2543
|
+
connect_after(sigName: "notify::double-buffered", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2544
|
+
emit(sigName: "notify::double-buffered", ...args: any[]): void
|
|
2545
|
+
connect(sigName: "notify::events", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2546
|
+
connect_after(sigName: "notify::events", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2547
|
+
emit(sigName: "notify::events", ...args: any[]): void
|
|
2548
|
+
connect(sigName: "notify::expand", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2549
|
+
connect_after(sigName: "notify::expand", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2550
|
+
emit(sigName: "notify::expand", ...args: any[]): void
|
|
2551
|
+
connect(sigName: "notify::focus-on-click", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2552
|
+
connect_after(sigName: "notify::focus-on-click", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2553
|
+
emit(sigName: "notify::focus-on-click", ...args: any[]): void
|
|
2554
|
+
connect(sigName: "notify::halign", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2555
|
+
connect_after(sigName: "notify::halign", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2556
|
+
emit(sigName: "notify::halign", ...args: any[]): void
|
|
2557
|
+
connect(sigName: "notify::has-default", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2558
|
+
connect_after(sigName: "notify::has-default", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2559
|
+
emit(sigName: "notify::has-default", ...args: any[]): void
|
|
2560
|
+
connect(sigName: "notify::has-focus", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2561
|
+
connect_after(sigName: "notify::has-focus", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2562
|
+
emit(sigName: "notify::has-focus", ...args: any[]): void
|
|
2563
|
+
connect(sigName: "notify::has-tooltip", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2564
|
+
connect_after(sigName: "notify::has-tooltip", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2565
|
+
emit(sigName: "notify::has-tooltip", ...args: any[]): void
|
|
2566
|
+
connect(sigName: "notify::height-request", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2567
|
+
connect_after(sigName: "notify::height-request", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2568
|
+
emit(sigName: "notify::height-request", ...args: any[]): void
|
|
2569
|
+
connect(sigName: "notify::hexpand", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2570
|
+
connect_after(sigName: "notify::hexpand", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2571
|
+
emit(sigName: "notify::hexpand", ...args: any[]): void
|
|
2572
|
+
connect(sigName: "notify::hexpand-set", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2573
|
+
connect_after(sigName: "notify::hexpand-set", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2574
|
+
emit(sigName: "notify::hexpand-set", ...args: any[]): void
|
|
2575
|
+
connect(sigName: "notify::is-focus", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2576
|
+
connect_after(sigName: "notify::is-focus", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2577
|
+
emit(sigName: "notify::is-focus", ...args: any[]): void
|
|
2578
|
+
connect(sigName: "notify::margin", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2579
|
+
connect_after(sigName: "notify::margin", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2580
|
+
emit(sigName: "notify::margin", ...args: any[]): void
|
|
2581
|
+
connect(sigName: "notify::margin-bottom", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2582
|
+
connect_after(sigName: "notify::margin-bottom", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2583
|
+
emit(sigName: "notify::margin-bottom", ...args: any[]): void
|
|
2584
|
+
connect(sigName: "notify::margin-end", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2585
|
+
connect_after(sigName: "notify::margin-end", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2586
|
+
emit(sigName: "notify::margin-end", ...args: any[]): void
|
|
2587
|
+
connect(sigName: "notify::margin-left", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2588
|
+
connect_after(sigName: "notify::margin-left", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2589
|
+
emit(sigName: "notify::margin-left", ...args: any[]): void
|
|
2590
|
+
connect(sigName: "notify::margin-right", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2591
|
+
connect_after(sigName: "notify::margin-right", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2592
|
+
emit(sigName: "notify::margin-right", ...args: any[]): void
|
|
2593
|
+
connect(sigName: "notify::margin-start", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2594
|
+
connect_after(sigName: "notify::margin-start", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2595
|
+
emit(sigName: "notify::margin-start", ...args: any[]): void
|
|
2596
|
+
connect(sigName: "notify::margin-top", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2597
|
+
connect_after(sigName: "notify::margin-top", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2598
|
+
emit(sigName: "notify::margin-top", ...args: any[]): void
|
|
2599
|
+
connect(sigName: "notify::name", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2600
|
+
connect_after(sigName: "notify::name", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2601
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
2602
|
+
connect(sigName: "notify::no-show-all", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2603
|
+
connect_after(sigName: "notify::no-show-all", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2604
|
+
emit(sigName: "notify::no-show-all", ...args: any[]): void
|
|
2605
|
+
connect(sigName: "notify::opacity", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2606
|
+
connect_after(sigName: "notify::opacity", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2607
|
+
emit(sigName: "notify::opacity", ...args: any[]): void
|
|
2608
|
+
connect(sigName: "notify::parent", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2609
|
+
connect_after(sigName: "notify::parent", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2610
|
+
emit(sigName: "notify::parent", ...args: any[]): void
|
|
2611
|
+
connect(sigName: "notify::receives-default", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2612
|
+
connect_after(sigName: "notify::receives-default", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2613
|
+
emit(sigName: "notify::receives-default", ...args: any[]): void
|
|
2614
|
+
connect(sigName: "notify::scale-factor", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2615
|
+
connect_after(sigName: "notify::scale-factor", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2616
|
+
emit(sigName: "notify::scale-factor", ...args: any[]): void
|
|
2617
|
+
connect(sigName: "notify::sensitive", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2618
|
+
connect_after(sigName: "notify::sensitive", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2619
|
+
emit(sigName: "notify::sensitive", ...args: any[]): void
|
|
2620
|
+
connect(sigName: "notify::style", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2621
|
+
connect_after(sigName: "notify::style", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2622
|
+
emit(sigName: "notify::style", ...args: any[]): void
|
|
2623
|
+
connect(sigName: "notify::tooltip-markup", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2624
|
+
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2625
|
+
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
|
|
2626
|
+
connect(sigName: "notify::tooltip-text", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2627
|
+
connect_after(sigName: "notify::tooltip-text", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2628
|
+
emit(sigName: "notify::tooltip-text", ...args: any[]): void
|
|
2629
|
+
connect(sigName: "notify::valign", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2630
|
+
connect_after(sigName: "notify::valign", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2631
|
+
emit(sigName: "notify::valign", ...args: any[]): void
|
|
2632
|
+
connect(sigName: "notify::vexpand", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2633
|
+
connect_after(sigName: "notify::vexpand", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2634
|
+
emit(sigName: "notify::vexpand", ...args: any[]): void
|
|
2635
|
+
connect(sigName: "notify::vexpand-set", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2636
|
+
connect_after(sigName: "notify::vexpand-set", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2637
|
+
emit(sigName: "notify::vexpand-set", ...args: any[]): void
|
|
2638
|
+
connect(sigName: "notify::visible", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2639
|
+
connect_after(sigName: "notify::visible", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2640
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
2641
|
+
connect(sigName: "notify::width-request", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2642
|
+
connect_after(sigName: "notify::width-request", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2643
|
+
emit(sigName: "notify::width-request", ...args: any[]): void
|
|
2644
|
+
connect(sigName: "notify::window", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2645
|
+
connect_after(sigName: "notify::window", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2646
|
+
emit(sigName: "notify::window", ...args: any[]): void
|
|
2647
|
+
connect(sigName: "notify::active-buffer", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2648
|
+
connect_after(sigName: "notify::active-buffer", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2649
|
+
emit(sigName: "notify::active-buffer", ...args: any[]): void
|
|
2650
|
+
connect(sigName: "notify::active-tab", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2651
|
+
connect_after(sigName: "notify::active-tab", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2652
|
+
emit(sigName: "notify::active-tab", ...args: any[]): void
|
|
2653
|
+
connect(sigName: "notify::active-view", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2654
|
+
connect_after(sigName: "notify::active-view", callback: (($obj: Notebook, pspec: GObject.ParamSpec) => void)): number
|
|
2655
|
+
emit(sigName: "notify::active-view", ...args: any[]): void
|
|
2656
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2657
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2658
|
+
emit(sigName: string, ...args: any[]): void
|
|
2659
|
+
disconnect(id: number): void
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
class Notebook extends Gtk.Notebook {
|
|
2663
|
+
|
|
2664
|
+
// Own properties of Tepl-4.Tepl.Notebook
|
|
2665
|
+
|
|
2666
|
+
static name: string
|
|
2667
|
+
static $gtype: GObject.GType<Notebook>
|
|
2668
|
+
|
|
2669
|
+
// Constructors of Tepl-4.Tepl.Notebook
|
|
2670
|
+
|
|
2671
|
+
constructor(config?: Notebook.ConstructorProperties)
|
|
2672
|
+
constructor()
|
|
2673
|
+
static new(): Notebook
|
|
2674
|
+
_init(config?: Notebook.ConstructorProperties): void
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
module Tab {
|
|
2678
|
+
|
|
2679
|
+
// Signal callback interfaces
|
|
2680
|
+
|
|
2681
|
+
/**
|
|
2682
|
+
* Signal callback interface for `close-request`
|
|
2683
|
+
*/
|
|
2684
|
+
interface CloseRequestSignalCallback {
|
|
2685
|
+
($obj: Tab): void
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
// Constructor properties interface
|
|
2690
|
+
|
|
2691
|
+
interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Orientable.ConstructorProperties, TabGroup.ConstructorProperties, Gtk.Grid.ConstructorProperties {
|
|
2692
|
+
|
|
2693
|
+
// Own constructor properties of Tepl-4.Tepl.Tab
|
|
2694
|
+
|
|
2695
|
+
/**
|
|
2696
|
+
* The #TeplView contained in the tab. When this property is set, the
|
|
2697
|
+
* ::pack_view virtual function is called.
|
|
2698
|
+
*/
|
|
2699
|
+
view?: View | null
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable, TabGroup {
|
|
2705
|
+
|
|
2706
|
+
// Own properties of Tepl-4.Tepl.Tab
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* The #TeplView contained in the tab. When this property is set, the
|
|
2710
|
+
* ::pack_view virtual function is called.
|
|
2711
|
+
*/
|
|
2712
|
+
readonly view: View
|
|
2713
|
+
|
|
2714
|
+
// Own fields of Tepl-4.Tepl.Tab
|
|
2715
|
+
|
|
2716
|
+
parent: Gtk.Grid & Gtk.Container
|
|
2717
|
+
priv: TabPrivate
|
|
2718
|
+
|
|
2719
|
+
// Owm methods of Tepl-4.Tepl.Tab
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* Attaches `info_bar` to `tab`.
|
|
2723
|
+
*
|
|
2724
|
+
* This function calls the ::pack_info_bar virtual function.
|
|
2725
|
+
* @param info_bar a #GtkInfoBar.
|
|
2726
|
+
*/
|
|
2727
|
+
add_info_bar(info_bar: Gtk.InfoBar): void
|
|
2728
|
+
/**
|
|
2729
|
+
* A convenience function that calls gtk_text_view_get_buffer() on the
|
|
2730
|
+
* #TeplTab:view associated with the `tab`.
|
|
2731
|
+
* @returns the #TeplBuffer of the #TeplTab:view.
|
|
2732
|
+
*/
|
|
2733
|
+
get_buffer(): Buffer
|
|
2734
|
+
get_view(): View
|
|
2735
|
+
/**
|
|
2736
|
+
* Unconditionally loads a file in `tab,` regardless if there are unsaved changes
|
|
2737
|
+
* in the #GtkTextBuffer. The previous buffer content is lost.
|
|
2738
|
+
*
|
|
2739
|
+
* This function is asynchronous, there is no way to know when the file loading
|
|
2740
|
+
* is finished.
|
|
2741
|
+
* @param location a #GFile.
|
|
2742
|
+
*/
|
|
2743
|
+
load_file(location: Gio.File): void
|
|
2744
|
+
/**
|
|
2745
|
+
* Shows a #GtkFileChooser to save the `tab` to a different location, creates an
|
|
2746
|
+
* appropriate #TeplFileSaver and asynchronously runs it.
|
|
2747
|
+
*
|
|
2748
|
+
* See the #GAsyncResult documentation to know how to use this function.
|
|
2749
|
+
* @param callback a #GAsyncReadyCallback to call when the request is satisfied.
|
|
2750
|
+
*/
|
|
2751
|
+
save_as_async(callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2752
|
+
/**
|
|
2753
|
+
* The same as tepl_tab_save_as_async(), but without callback.
|
|
2754
|
+
*
|
|
2755
|
+
* This function is useful when you don't need to know:
|
|
2756
|
+
* - when the operation is finished;
|
|
2757
|
+
* - and whether the operation ran successfully.
|
|
2758
|
+
*/
|
|
2759
|
+
save_as_async_simple(): void
|
|
2760
|
+
/**
|
|
2761
|
+
* Finishes a tab saving started with tepl_tab_save_as_async().
|
|
2762
|
+
* @param result a #GAsyncResult.
|
|
2763
|
+
* @returns whether the tab was saved successfully.
|
|
2764
|
+
*/
|
|
2765
|
+
save_as_finish(result: Gio.AsyncResult): boolean
|
|
2766
|
+
/**
|
|
2767
|
+
* Saves asynchronously the content of the `tab`. The #TeplFile:location must not
|
|
2768
|
+
* be %NULL.
|
|
2769
|
+
*
|
|
2770
|
+
* See the #GAsyncResult documentation to know how to use this function.
|
|
2771
|
+
* @param callback a #GAsyncReadyCallback to call when the request is satisfied.
|
|
2772
|
+
*/
|
|
2773
|
+
save_async(callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2774
|
+
/**
|
|
2775
|
+
* The same as tepl_tab_save_async(), but without callback.
|
|
2776
|
+
*
|
|
2777
|
+
* This function is useful when you don't need to know:
|
|
2778
|
+
* - when the operation is finished;
|
|
2779
|
+
* - and whether the operation ran successfully.
|
|
2780
|
+
*/
|
|
2781
|
+
save_async_simple(): void
|
|
2782
|
+
/**
|
|
2783
|
+
* Finishes a tab saving started with tepl_tab_save_async().
|
|
2784
|
+
* @param result a #GAsyncResult.
|
|
2785
|
+
* @returns whether the tab was saved successfully.
|
|
2786
|
+
*/
|
|
2787
|
+
save_finish(result: Gio.AsyncResult): boolean
|
|
2788
|
+
|
|
2789
|
+
// Conflicting methods
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2793
|
+
* [child property][child-properties]
|
|
2794
|
+
* `child_property` on the child.
|
|
2795
|
+
*
|
|
2796
|
+
* This is an analogue of g_object_notify() for child properties.
|
|
2797
|
+
*
|
|
2798
|
+
* Also see gtk_widget_child_notify().
|
|
2799
|
+
* @param child the child widget
|
|
2800
|
+
* @param child_property the name of a child property installed on the class of `container`
|
|
2801
|
+
*/
|
|
2802
|
+
child_notify(child: Gtk.Widget, child_property: string | null): void
|
|
2803
|
+
|
|
2804
|
+
// Overloads of child_notify
|
|
2805
|
+
|
|
2806
|
+
/**
|
|
2807
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2808
|
+
* [child property][child-properties] `child_property`
|
|
2809
|
+
* on `widget`.
|
|
2810
|
+
*
|
|
2811
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
2812
|
+
*
|
|
2813
|
+
* Also see gtk_container_child_notify().
|
|
2814
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2815
|
+
*/
|
|
2816
|
+
child_notify(child_property: string | null): void
|
|
2817
|
+
/**
|
|
2818
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
2819
|
+
* [child property][child-properties] `child_property`
|
|
2820
|
+
* on `widget`.
|
|
2821
|
+
*
|
|
2822
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
2823
|
+
*
|
|
2824
|
+
* Also see gtk_container_child_notify().
|
|
2825
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2826
|
+
*/
|
|
2827
|
+
child_notify(child_property: string | null): void
|
|
2828
|
+
|
|
2829
|
+
// Own virtual methods of Tepl-4.Tepl.Tab
|
|
2830
|
+
|
|
2831
|
+
vfunc_close_request(): void
|
|
2832
|
+
vfunc_pack_info_bar(info_bar: Gtk.InfoBar): void
|
|
2833
|
+
vfunc_pack_view(view: View): void
|
|
2834
|
+
|
|
2835
|
+
// Own signals of Tepl-4.Tepl.Tab
|
|
2836
|
+
|
|
2837
|
+
connect(sigName: "close-request", callback: Tab.CloseRequestSignalCallback): number
|
|
2838
|
+
connect_after(sigName: "close-request", callback: Tab.CloseRequestSignalCallback): number
|
|
2839
|
+
emit(sigName: "close-request", ...args: any[]): void
|
|
2840
|
+
|
|
2841
|
+
// Class property signals of Tepl-4.Tepl.Tab
|
|
2842
|
+
|
|
2843
|
+
connect(sigName: "notify::view", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2844
|
+
connect_after(sigName: "notify::view", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2845
|
+
emit(sigName: "notify::view", ...args: any[]): void
|
|
2846
|
+
connect(sigName: "notify::baseline-row", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2847
|
+
connect_after(sigName: "notify::baseline-row", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2848
|
+
emit(sigName: "notify::baseline-row", ...args: any[]): void
|
|
2849
|
+
connect(sigName: "notify::column-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2850
|
+
connect_after(sigName: "notify::column-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2851
|
+
emit(sigName: "notify::column-homogeneous", ...args: any[]): void
|
|
2852
|
+
connect(sigName: "notify::column-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2853
|
+
connect_after(sigName: "notify::column-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2854
|
+
emit(sigName: "notify::column-spacing", ...args: any[]): void
|
|
2855
|
+
connect(sigName: "notify::row-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2856
|
+
connect_after(sigName: "notify::row-homogeneous", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2857
|
+
emit(sigName: "notify::row-homogeneous", ...args: any[]): void
|
|
2858
|
+
connect(sigName: "notify::row-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2859
|
+
connect_after(sigName: "notify::row-spacing", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2860
|
+
emit(sigName: "notify::row-spacing", ...args: any[]): void
|
|
2861
|
+
connect(sigName: "notify::border-width", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2862
|
+
connect_after(sigName: "notify::border-width", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2863
|
+
emit(sigName: "notify::border-width", ...args: any[]): void
|
|
2864
|
+
connect(sigName: "notify::child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2865
|
+
connect_after(sigName: "notify::child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2866
|
+
emit(sigName: "notify::child", ...args: any[]): void
|
|
2867
|
+
connect(sigName: "notify::resize-mode", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2868
|
+
connect_after(sigName: "notify::resize-mode", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2869
|
+
emit(sigName: "notify::resize-mode", ...args: any[]): void
|
|
2870
|
+
connect(sigName: "notify::app-paintable", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2871
|
+
connect_after(sigName: "notify::app-paintable", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2872
|
+
emit(sigName: "notify::app-paintable", ...args: any[]): void
|
|
2873
|
+
connect(sigName: "notify::can-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2874
|
+
connect_after(sigName: "notify::can-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2875
|
+
emit(sigName: "notify::can-default", ...args: any[]): void
|
|
2876
|
+
connect(sigName: "notify::can-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2877
|
+
connect_after(sigName: "notify::can-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2878
|
+
emit(sigName: "notify::can-focus", ...args: any[]): void
|
|
2879
|
+
connect(sigName: "notify::composite-child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2880
|
+
connect_after(sigName: "notify::composite-child", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2881
|
+
emit(sigName: "notify::composite-child", ...args: any[]): void
|
|
2882
|
+
connect(sigName: "notify::double-buffered", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2883
|
+
connect_after(sigName: "notify::double-buffered", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2884
|
+
emit(sigName: "notify::double-buffered", ...args: any[]): void
|
|
2885
|
+
connect(sigName: "notify::events", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2886
|
+
connect_after(sigName: "notify::events", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2887
|
+
emit(sigName: "notify::events", ...args: any[]): void
|
|
2888
|
+
connect(sigName: "notify::expand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2889
|
+
connect_after(sigName: "notify::expand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2890
|
+
emit(sigName: "notify::expand", ...args: any[]): void
|
|
2891
|
+
connect(sigName: "notify::focus-on-click", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2892
|
+
connect_after(sigName: "notify::focus-on-click", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2893
|
+
emit(sigName: "notify::focus-on-click", ...args: any[]): void
|
|
2894
|
+
connect(sigName: "notify::halign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2895
|
+
connect_after(sigName: "notify::halign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2896
|
+
emit(sigName: "notify::halign", ...args: any[]): void
|
|
2897
|
+
connect(sigName: "notify::has-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2898
|
+
connect_after(sigName: "notify::has-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2899
|
+
emit(sigName: "notify::has-default", ...args: any[]): void
|
|
2900
|
+
connect(sigName: "notify::has-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2901
|
+
connect_after(sigName: "notify::has-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2902
|
+
emit(sigName: "notify::has-focus", ...args: any[]): void
|
|
2903
|
+
connect(sigName: "notify::has-tooltip", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2904
|
+
connect_after(sigName: "notify::has-tooltip", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2905
|
+
emit(sigName: "notify::has-tooltip", ...args: any[]): void
|
|
2906
|
+
connect(sigName: "notify::height-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2907
|
+
connect_after(sigName: "notify::height-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2908
|
+
emit(sigName: "notify::height-request", ...args: any[]): void
|
|
2909
|
+
connect(sigName: "notify::hexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2910
|
+
connect_after(sigName: "notify::hexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2911
|
+
emit(sigName: "notify::hexpand", ...args: any[]): void
|
|
2912
|
+
connect(sigName: "notify::hexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2913
|
+
connect_after(sigName: "notify::hexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2914
|
+
emit(sigName: "notify::hexpand-set", ...args: any[]): void
|
|
2915
|
+
connect(sigName: "notify::is-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2916
|
+
connect_after(sigName: "notify::is-focus", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2917
|
+
emit(sigName: "notify::is-focus", ...args: any[]): void
|
|
2918
|
+
connect(sigName: "notify::margin", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2919
|
+
connect_after(sigName: "notify::margin", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2920
|
+
emit(sigName: "notify::margin", ...args: any[]): void
|
|
2921
|
+
connect(sigName: "notify::margin-bottom", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2922
|
+
connect_after(sigName: "notify::margin-bottom", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2923
|
+
emit(sigName: "notify::margin-bottom", ...args: any[]): void
|
|
2924
|
+
connect(sigName: "notify::margin-end", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2925
|
+
connect_after(sigName: "notify::margin-end", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2926
|
+
emit(sigName: "notify::margin-end", ...args: any[]): void
|
|
2927
|
+
connect(sigName: "notify::margin-left", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2928
|
+
connect_after(sigName: "notify::margin-left", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2929
|
+
emit(sigName: "notify::margin-left", ...args: any[]): void
|
|
2930
|
+
connect(sigName: "notify::margin-right", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2931
|
+
connect_after(sigName: "notify::margin-right", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2932
|
+
emit(sigName: "notify::margin-right", ...args: any[]): void
|
|
2933
|
+
connect(sigName: "notify::margin-start", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2934
|
+
connect_after(sigName: "notify::margin-start", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2935
|
+
emit(sigName: "notify::margin-start", ...args: any[]): void
|
|
2936
|
+
connect(sigName: "notify::margin-top", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2937
|
+
connect_after(sigName: "notify::margin-top", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2938
|
+
emit(sigName: "notify::margin-top", ...args: any[]): void
|
|
2939
|
+
connect(sigName: "notify::name", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2940
|
+
connect_after(sigName: "notify::name", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2941
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
2942
|
+
connect(sigName: "notify::no-show-all", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2943
|
+
connect_after(sigName: "notify::no-show-all", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2944
|
+
emit(sigName: "notify::no-show-all", ...args: any[]): void
|
|
2945
|
+
connect(sigName: "notify::opacity", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2946
|
+
connect_after(sigName: "notify::opacity", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2947
|
+
emit(sigName: "notify::opacity", ...args: any[]): void
|
|
2948
|
+
connect(sigName: "notify::parent", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2949
|
+
connect_after(sigName: "notify::parent", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2950
|
+
emit(sigName: "notify::parent", ...args: any[]): void
|
|
2951
|
+
connect(sigName: "notify::receives-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2952
|
+
connect_after(sigName: "notify::receives-default", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2953
|
+
emit(sigName: "notify::receives-default", ...args: any[]): void
|
|
2954
|
+
connect(sigName: "notify::scale-factor", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2955
|
+
connect_after(sigName: "notify::scale-factor", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2956
|
+
emit(sigName: "notify::scale-factor", ...args: any[]): void
|
|
2957
|
+
connect(sigName: "notify::sensitive", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2958
|
+
connect_after(sigName: "notify::sensitive", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2959
|
+
emit(sigName: "notify::sensitive", ...args: any[]): void
|
|
2960
|
+
connect(sigName: "notify::style", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2961
|
+
connect_after(sigName: "notify::style", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2962
|
+
emit(sigName: "notify::style", ...args: any[]): void
|
|
2963
|
+
connect(sigName: "notify::tooltip-markup", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2964
|
+
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2965
|
+
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
|
|
2966
|
+
connect(sigName: "notify::tooltip-text", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2967
|
+
connect_after(sigName: "notify::tooltip-text", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2968
|
+
emit(sigName: "notify::tooltip-text", ...args: any[]): void
|
|
2969
|
+
connect(sigName: "notify::valign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2970
|
+
connect_after(sigName: "notify::valign", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2971
|
+
emit(sigName: "notify::valign", ...args: any[]): void
|
|
2972
|
+
connect(sigName: "notify::vexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2973
|
+
connect_after(sigName: "notify::vexpand", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2974
|
+
emit(sigName: "notify::vexpand", ...args: any[]): void
|
|
2975
|
+
connect(sigName: "notify::vexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2976
|
+
connect_after(sigName: "notify::vexpand-set", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2977
|
+
emit(sigName: "notify::vexpand-set", ...args: any[]): void
|
|
2978
|
+
connect(sigName: "notify::visible", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2979
|
+
connect_after(sigName: "notify::visible", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2980
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
2981
|
+
connect(sigName: "notify::width-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2982
|
+
connect_after(sigName: "notify::width-request", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2983
|
+
emit(sigName: "notify::width-request", ...args: any[]): void
|
|
2984
|
+
connect(sigName: "notify::window", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2985
|
+
connect_after(sigName: "notify::window", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2986
|
+
emit(sigName: "notify::window", ...args: any[]): void
|
|
2987
|
+
connect(sigName: "notify::orientation", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2988
|
+
connect_after(sigName: "notify::orientation", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2989
|
+
emit(sigName: "notify::orientation", ...args: any[]): void
|
|
2990
|
+
connect(sigName: "notify::active-buffer", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2991
|
+
connect_after(sigName: "notify::active-buffer", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2992
|
+
emit(sigName: "notify::active-buffer", ...args: any[]): void
|
|
2993
|
+
connect(sigName: "notify::active-tab", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2994
|
+
connect_after(sigName: "notify::active-tab", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2995
|
+
emit(sigName: "notify::active-tab", ...args: any[]): void
|
|
2996
|
+
connect(sigName: "notify::active-view", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2997
|
+
connect_after(sigName: "notify::active-view", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
|
|
2998
|
+
emit(sigName: "notify::active-view", ...args: any[]): void
|
|
2999
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3000
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3001
|
+
emit(sigName: string, ...args: any[]): void
|
|
3002
|
+
disconnect(id: number): void
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
class Tab extends Gtk.Grid {
|
|
3006
|
+
|
|
3007
|
+
// Own properties of Tepl-4.Tepl.Tab
|
|
3008
|
+
|
|
3009
|
+
static name: string
|
|
3010
|
+
static $gtype: GObject.GType<Tab>
|
|
3011
|
+
|
|
3012
|
+
// Constructors of Tepl-4.Tepl.Tab
|
|
3013
|
+
|
|
3014
|
+
constructor(config?: Tab.ConstructorProperties)
|
|
3015
|
+
/**
|
|
3016
|
+
* Creates a new #TeplTab with a new #TeplView. The new #TeplView can be
|
|
3017
|
+
* retrieved afterwards with tepl_tab_get_view().
|
|
3018
|
+
* @constructor
|
|
3019
|
+
* @returns a new #TeplTab.
|
|
3020
|
+
*/
|
|
3021
|
+
constructor()
|
|
3022
|
+
/**
|
|
3023
|
+
* Creates a new #TeplTab with a new #TeplView. The new #TeplView can be
|
|
3024
|
+
* retrieved afterwards with tepl_tab_get_view().
|
|
3025
|
+
* @constructor
|
|
3026
|
+
* @returns a new #TeplTab.
|
|
3027
|
+
*/
|
|
3028
|
+
static new(): Tab
|
|
3029
|
+
|
|
3030
|
+
// Overloads of new
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Creates a new grid widget.
|
|
3034
|
+
* @constructor
|
|
3035
|
+
* @returns the new #GtkGrid
|
|
3036
|
+
*/
|
|
3037
|
+
static new(): Gtk.Grid
|
|
3038
|
+
static new_with_view(view: View): Tab
|
|
3039
|
+
_init(config?: Tab.ConstructorProperties): void
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
module TabLabel {
|
|
3043
|
+
|
|
3044
|
+
// Constructor properties interface
|
|
3045
|
+
|
|
3046
|
+
interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Grid.ConstructorProperties {
|
|
3047
|
+
|
|
3048
|
+
// Own constructor properties of Tepl-4.Tepl.TabLabel
|
|
3049
|
+
|
|
3050
|
+
/**
|
|
3051
|
+
* The associated #TeplTab. #TeplTabLabel has a weak reference to the
|
|
3052
|
+
* #TeplTab.
|
|
3053
|
+
*/
|
|
3054
|
+
tab?: Tab | null
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
interface TabLabel extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
3060
|
+
|
|
3061
|
+
// Own properties of Tepl-4.Tepl.TabLabel
|
|
3062
|
+
|
|
3063
|
+
/**
|
|
3064
|
+
* The associated #TeplTab. #TeplTabLabel has a weak reference to the
|
|
3065
|
+
* #TeplTab.
|
|
3066
|
+
*/
|
|
3067
|
+
readonly tab: Tab
|
|
3068
|
+
|
|
3069
|
+
// Own fields of Tepl-4.Tepl.TabLabel
|
|
3070
|
+
|
|
3071
|
+
parent: Gtk.Grid & Gtk.Container
|
|
3072
|
+
priv: TabLabelPrivate
|
|
3073
|
+
|
|
3074
|
+
// Owm methods of Tepl-4.Tepl.TabLabel
|
|
3075
|
+
|
|
3076
|
+
get_tab(): Tab | null
|
|
3077
|
+
/**
|
|
3078
|
+
* Asks #TeplTabLabel to update its tooltip. The ::get_tooltip_markup virtual
|
|
3079
|
+
* function is called and the result is set with
|
|
3080
|
+
* gtk_widget_set_tooltip_markup().
|
|
3081
|
+
*/
|
|
3082
|
+
update_tooltip(): void
|
|
3083
|
+
|
|
3084
|
+
// Conflicting methods
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
3088
|
+
* [child property][child-properties]
|
|
3089
|
+
* `child_property` on the child.
|
|
3090
|
+
*
|
|
3091
|
+
* This is an analogue of g_object_notify() for child properties.
|
|
3092
|
+
*
|
|
3093
|
+
* Also see gtk_widget_child_notify().
|
|
3094
|
+
* @param child the child widget
|
|
3095
|
+
* @param child_property the name of a child property installed on the class of `container`
|
|
3096
|
+
*/
|
|
3097
|
+
child_notify(child: Gtk.Widget, child_property: string | null): void
|
|
3098
|
+
|
|
3099
|
+
// Overloads of child_notify
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
3103
|
+
* [child property][child-properties] `child_property`
|
|
3104
|
+
* on `widget`.
|
|
3105
|
+
*
|
|
3106
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
3107
|
+
*
|
|
3108
|
+
* Also see gtk_container_child_notify().
|
|
3109
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
3110
|
+
*/
|
|
3111
|
+
child_notify(child_property: string | null): void
|
|
3112
|
+
/**
|
|
3113
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
3114
|
+
* [child property][child-properties] `child_property`
|
|
3115
|
+
* on `widget`.
|
|
3116
|
+
*
|
|
3117
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
3118
|
+
*
|
|
3119
|
+
* Also see gtk_container_child_notify().
|
|
3120
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
3121
|
+
*/
|
|
3122
|
+
child_notify(child_property: string | null): void
|
|
3123
|
+
|
|
3124
|
+
// Own virtual methods of Tepl-4.Tepl.TabLabel
|
|
3125
|
+
|
|
3126
|
+
vfunc_get_tooltip_markup(): string | null
|
|
3127
|
+
|
|
3128
|
+
// Class property signals of Tepl-4.Tepl.TabLabel
|
|
3129
|
+
|
|
3130
|
+
connect(sigName: "notify::tab", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3131
|
+
connect_after(sigName: "notify::tab", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3132
|
+
emit(sigName: "notify::tab", ...args: any[]): void
|
|
3133
|
+
connect(sigName: "notify::baseline-row", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3134
|
+
connect_after(sigName: "notify::baseline-row", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3135
|
+
emit(sigName: "notify::baseline-row", ...args: any[]): void
|
|
3136
|
+
connect(sigName: "notify::column-homogeneous", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3137
|
+
connect_after(sigName: "notify::column-homogeneous", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3138
|
+
emit(sigName: "notify::column-homogeneous", ...args: any[]): void
|
|
3139
|
+
connect(sigName: "notify::column-spacing", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3140
|
+
connect_after(sigName: "notify::column-spacing", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3141
|
+
emit(sigName: "notify::column-spacing", ...args: any[]): void
|
|
3142
|
+
connect(sigName: "notify::row-homogeneous", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3143
|
+
connect_after(sigName: "notify::row-homogeneous", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3144
|
+
emit(sigName: "notify::row-homogeneous", ...args: any[]): void
|
|
3145
|
+
connect(sigName: "notify::row-spacing", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3146
|
+
connect_after(sigName: "notify::row-spacing", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3147
|
+
emit(sigName: "notify::row-spacing", ...args: any[]): void
|
|
3148
|
+
connect(sigName: "notify::border-width", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3149
|
+
connect_after(sigName: "notify::border-width", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3150
|
+
emit(sigName: "notify::border-width", ...args: any[]): void
|
|
3151
|
+
connect(sigName: "notify::child", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3152
|
+
connect_after(sigName: "notify::child", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3153
|
+
emit(sigName: "notify::child", ...args: any[]): void
|
|
3154
|
+
connect(sigName: "notify::resize-mode", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3155
|
+
connect_after(sigName: "notify::resize-mode", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3156
|
+
emit(sigName: "notify::resize-mode", ...args: any[]): void
|
|
3157
|
+
connect(sigName: "notify::app-paintable", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3158
|
+
connect_after(sigName: "notify::app-paintable", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3159
|
+
emit(sigName: "notify::app-paintable", ...args: any[]): void
|
|
3160
|
+
connect(sigName: "notify::can-default", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3161
|
+
connect_after(sigName: "notify::can-default", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3162
|
+
emit(sigName: "notify::can-default", ...args: any[]): void
|
|
3163
|
+
connect(sigName: "notify::can-focus", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3164
|
+
connect_after(sigName: "notify::can-focus", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3165
|
+
emit(sigName: "notify::can-focus", ...args: any[]): void
|
|
3166
|
+
connect(sigName: "notify::composite-child", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3167
|
+
connect_after(sigName: "notify::composite-child", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3168
|
+
emit(sigName: "notify::composite-child", ...args: any[]): void
|
|
3169
|
+
connect(sigName: "notify::double-buffered", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3170
|
+
connect_after(sigName: "notify::double-buffered", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3171
|
+
emit(sigName: "notify::double-buffered", ...args: any[]): void
|
|
3172
|
+
connect(sigName: "notify::events", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3173
|
+
connect_after(sigName: "notify::events", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3174
|
+
emit(sigName: "notify::events", ...args: any[]): void
|
|
3175
|
+
connect(sigName: "notify::expand", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3176
|
+
connect_after(sigName: "notify::expand", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3177
|
+
emit(sigName: "notify::expand", ...args: any[]): void
|
|
3178
|
+
connect(sigName: "notify::focus-on-click", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3179
|
+
connect_after(sigName: "notify::focus-on-click", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3180
|
+
emit(sigName: "notify::focus-on-click", ...args: any[]): void
|
|
3181
|
+
connect(sigName: "notify::halign", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3182
|
+
connect_after(sigName: "notify::halign", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3183
|
+
emit(sigName: "notify::halign", ...args: any[]): void
|
|
3184
|
+
connect(sigName: "notify::has-default", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3185
|
+
connect_after(sigName: "notify::has-default", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3186
|
+
emit(sigName: "notify::has-default", ...args: any[]): void
|
|
3187
|
+
connect(sigName: "notify::has-focus", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3188
|
+
connect_after(sigName: "notify::has-focus", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3189
|
+
emit(sigName: "notify::has-focus", ...args: any[]): void
|
|
3190
|
+
connect(sigName: "notify::has-tooltip", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3191
|
+
connect_after(sigName: "notify::has-tooltip", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3192
|
+
emit(sigName: "notify::has-tooltip", ...args: any[]): void
|
|
3193
|
+
connect(sigName: "notify::height-request", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3194
|
+
connect_after(sigName: "notify::height-request", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3195
|
+
emit(sigName: "notify::height-request", ...args: any[]): void
|
|
3196
|
+
connect(sigName: "notify::hexpand", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3197
|
+
connect_after(sigName: "notify::hexpand", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3198
|
+
emit(sigName: "notify::hexpand", ...args: any[]): void
|
|
3199
|
+
connect(sigName: "notify::hexpand-set", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3200
|
+
connect_after(sigName: "notify::hexpand-set", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3201
|
+
emit(sigName: "notify::hexpand-set", ...args: any[]): void
|
|
3202
|
+
connect(sigName: "notify::is-focus", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3203
|
+
connect_after(sigName: "notify::is-focus", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3204
|
+
emit(sigName: "notify::is-focus", ...args: any[]): void
|
|
3205
|
+
connect(sigName: "notify::margin", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3206
|
+
connect_after(sigName: "notify::margin", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3207
|
+
emit(sigName: "notify::margin", ...args: any[]): void
|
|
3208
|
+
connect(sigName: "notify::margin-bottom", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3209
|
+
connect_after(sigName: "notify::margin-bottom", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3210
|
+
emit(sigName: "notify::margin-bottom", ...args: any[]): void
|
|
3211
|
+
connect(sigName: "notify::margin-end", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3212
|
+
connect_after(sigName: "notify::margin-end", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3213
|
+
emit(sigName: "notify::margin-end", ...args: any[]): void
|
|
3214
|
+
connect(sigName: "notify::margin-left", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3215
|
+
connect_after(sigName: "notify::margin-left", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3216
|
+
emit(sigName: "notify::margin-left", ...args: any[]): void
|
|
3217
|
+
connect(sigName: "notify::margin-right", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3218
|
+
connect_after(sigName: "notify::margin-right", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3219
|
+
emit(sigName: "notify::margin-right", ...args: any[]): void
|
|
3220
|
+
connect(sigName: "notify::margin-start", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3221
|
+
connect_after(sigName: "notify::margin-start", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3222
|
+
emit(sigName: "notify::margin-start", ...args: any[]): void
|
|
3223
|
+
connect(sigName: "notify::margin-top", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3224
|
+
connect_after(sigName: "notify::margin-top", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3225
|
+
emit(sigName: "notify::margin-top", ...args: any[]): void
|
|
3226
|
+
connect(sigName: "notify::name", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3227
|
+
connect_after(sigName: "notify::name", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3228
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
3229
|
+
connect(sigName: "notify::no-show-all", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3230
|
+
connect_after(sigName: "notify::no-show-all", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3231
|
+
emit(sigName: "notify::no-show-all", ...args: any[]): void
|
|
3232
|
+
connect(sigName: "notify::opacity", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3233
|
+
connect_after(sigName: "notify::opacity", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3234
|
+
emit(sigName: "notify::opacity", ...args: any[]): void
|
|
3235
|
+
connect(sigName: "notify::parent", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3236
|
+
connect_after(sigName: "notify::parent", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3237
|
+
emit(sigName: "notify::parent", ...args: any[]): void
|
|
3238
|
+
connect(sigName: "notify::receives-default", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3239
|
+
connect_after(sigName: "notify::receives-default", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3240
|
+
emit(sigName: "notify::receives-default", ...args: any[]): void
|
|
3241
|
+
connect(sigName: "notify::scale-factor", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3242
|
+
connect_after(sigName: "notify::scale-factor", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3243
|
+
emit(sigName: "notify::scale-factor", ...args: any[]): void
|
|
3244
|
+
connect(sigName: "notify::sensitive", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3245
|
+
connect_after(sigName: "notify::sensitive", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3246
|
+
emit(sigName: "notify::sensitive", ...args: any[]): void
|
|
3247
|
+
connect(sigName: "notify::style", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3248
|
+
connect_after(sigName: "notify::style", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3249
|
+
emit(sigName: "notify::style", ...args: any[]): void
|
|
3250
|
+
connect(sigName: "notify::tooltip-markup", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3251
|
+
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3252
|
+
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
|
|
3253
|
+
connect(sigName: "notify::tooltip-text", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3254
|
+
connect_after(sigName: "notify::tooltip-text", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3255
|
+
emit(sigName: "notify::tooltip-text", ...args: any[]): void
|
|
3256
|
+
connect(sigName: "notify::valign", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3257
|
+
connect_after(sigName: "notify::valign", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3258
|
+
emit(sigName: "notify::valign", ...args: any[]): void
|
|
3259
|
+
connect(sigName: "notify::vexpand", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3260
|
+
connect_after(sigName: "notify::vexpand", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3261
|
+
emit(sigName: "notify::vexpand", ...args: any[]): void
|
|
3262
|
+
connect(sigName: "notify::vexpand-set", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3263
|
+
connect_after(sigName: "notify::vexpand-set", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3264
|
+
emit(sigName: "notify::vexpand-set", ...args: any[]): void
|
|
3265
|
+
connect(sigName: "notify::visible", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3266
|
+
connect_after(sigName: "notify::visible", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3267
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
3268
|
+
connect(sigName: "notify::width-request", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3269
|
+
connect_after(sigName: "notify::width-request", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3270
|
+
emit(sigName: "notify::width-request", ...args: any[]): void
|
|
3271
|
+
connect(sigName: "notify::window", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3272
|
+
connect_after(sigName: "notify::window", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3273
|
+
emit(sigName: "notify::window", ...args: any[]): void
|
|
3274
|
+
connect(sigName: "notify::orientation", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3275
|
+
connect_after(sigName: "notify::orientation", callback: (($obj: TabLabel, pspec: GObject.ParamSpec) => void)): number
|
|
3276
|
+
emit(sigName: "notify::orientation", ...args: any[]): void
|
|
3277
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3278
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3279
|
+
emit(sigName: string, ...args: any[]): void
|
|
3280
|
+
disconnect(id: number): void
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
class TabLabel extends Gtk.Grid {
|
|
3284
|
+
|
|
3285
|
+
// Own properties of Tepl-4.Tepl.TabLabel
|
|
3286
|
+
|
|
3287
|
+
static name: string
|
|
3288
|
+
static $gtype: GObject.GType<TabLabel>
|
|
3289
|
+
|
|
3290
|
+
// Constructors of Tepl-4.Tepl.TabLabel
|
|
3291
|
+
|
|
3292
|
+
constructor(config?: TabLabel.ConstructorProperties)
|
|
3293
|
+
constructor(tab: Tab)
|
|
3294
|
+
static new(tab: Tab): TabLabel
|
|
3295
|
+
|
|
3296
|
+
// Overloads of new
|
|
3297
|
+
|
|
3298
|
+
/**
|
|
3299
|
+
* Creates a new grid widget.
|
|
3300
|
+
* @constructor
|
|
3301
|
+
* @returns the new #GtkGrid
|
|
3302
|
+
*/
|
|
3303
|
+
static new(): Gtk.Grid
|
|
3304
|
+
_init(config?: TabLabel.ConstructorProperties): void
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
module View {
|
|
3308
|
+
|
|
3309
|
+
// Constructor properties interface
|
|
3310
|
+
|
|
3311
|
+
interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Scrollable.ConstructorProperties, GtkSource.View.ConstructorProperties {
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
3317
|
+
|
|
3318
|
+
// Conflicting properties
|
|
3319
|
+
|
|
3320
|
+
parent: Gtk.TextView & Gtk.Container & Gtk.Container
|
|
3321
|
+
|
|
3322
|
+
// Own fields of Tepl-4.Tepl.View
|
|
3323
|
+
|
|
3324
|
+
parent_instance: GtkSource.View & Gtk.Container & GObject.InitiallyUnowned & GObject.InitiallyUnowned
|
|
3325
|
+
|
|
3326
|
+
// Owm methods of Tepl-4.Tepl.View
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* Copies the clipboard.
|
|
3330
|
+
*/
|
|
3331
|
+
copy_clipboard(): void
|
|
3332
|
+
/**
|
|
3333
|
+
* Cuts the clipboard and then scrolls to the cursor position.
|
|
3334
|
+
*/
|
|
3335
|
+
cut_clipboard(): void
|
|
3336
|
+
/**
|
|
3337
|
+
* Deletes the text currently selected in the #GtkTextBuffer associated
|
|
3338
|
+
* to the view and then scrolls to the cursor position.
|
|
3339
|
+
*/
|
|
3340
|
+
delete_selection(): void
|
|
3341
|
+
/**
|
|
3342
|
+
* Places the cursor at the position returned by
|
|
3343
|
+
* gtk_text_buffer_get_iter_at_line(), and scrolls to that position.
|
|
3344
|
+
* @param line a line number, counting from 0.
|
|
3345
|
+
* @returns %TRUE if the cursor has been moved exactly to @line, %FALSE if that line didn't exist.
|
|
3346
|
+
*/
|
|
3347
|
+
goto_line(line: number): boolean
|
|
3348
|
+
/**
|
|
3349
|
+
* Places the cursor at the position returned by
|
|
3350
|
+
* gtk_text_buffer_get_iter_at_line_offset(), and scrolls to that position.
|
|
3351
|
+
* @param line a line number, counting from 0.
|
|
3352
|
+
* @param line_offset the line offset, in characters (not bytes).
|
|
3353
|
+
* @returns %TRUE if the cursor has been moved exactly to @line and @line_offset, %FALSE if that position didn't exist.
|
|
3354
|
+
*/
|
|
3355
|
+
goto_line_offset(line: number, line_offset: number): boolean
|
|
3356
|
+
/**
|
|
3357
|
+
* Pastes the clipboard and then scrolls to the cursor position.
|
|
3358
|
+
*/
|
|
3359
|
+
paste_clipboard(): void
|
|
3360
|
+
/**
|
|
3361
|
+
* Scrolls the `view` to the cursor position.
|
|
3362
|
+
*/
|
|
3363
|
+
scroll_to_cursor(): void
|
|
3364
|
+
/**
|
|
3365
|
+
* Selects all the text.
|
|
3366
|
+
*/
|
|
3367
|
+
select_all(): void
|
|
3368
|
+
/**
|
|
3369
|
+
* Selects the lines between `start_line` and `end_line` included, counting from
|
|
3370
|
+
* zero. And then scrolls to the cursor.
|
|
3371
|
+
*
|
|
3372
|
+
* Possible use-case: line numbers coming from a compilation output, to go to
|
|
3373
|
+
* the place where a warning or error occurred.
|
|
3374
|
+
* @param start_line start of the region to select.
|
|
3375
|
+
* @param end_line end of the region to select.
|
|
3376
|
+
*/
|
|
3377
|
+
select_lines(start_line: number, end_line: number): void
|
|
3378
|
+
|
|
3379
|
+
// Conflicting methods
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Retrieves the #GdkWindow corresponding to an area of the text view;
|
|
3383
|
+
* possible windows include the overall widget window, child windows
|
|
3384
|
+
* on the left, right, top, bottom, and the window that displays the
|
|
3385
|
+
* text buffer. Windows are %NULL and nonexistent if their width or
|
|
3386
|
+
* height is 0, and are nonexistent before the widget has been
|
|
3387
|
+
* realized.
|
|
3388
|
+
* @param win window to get
|
|
3389
|
+
* @returns a #GdkWindow, or %NULL
|
|
3390
|
+
*/
|
|
3391
|
+
get_window(win: Gtk.TextWindowType): Gdk.Window | null
|
|
3392
|
+
|
|
3393
|
+
// Overloads of get_window
|
|
3394
|
+
|
|
3395
|
+
/**
|
|
3396
|
+
* Returns the widget’s window if it is realized, %NULL otherwise
|
|
3397
|
+
* @returns @widget’s window.
|
|
3398
|
+
*/
|
|
3399
|
+
get_window(): Gdk.Window | null
|
|
3400
|
+
/**
|
|
3401
|
+
* Returns the widget’s window if it is realized, %NULL otherwise
|
|
3402
|
+
* @returns @widget’s window.
|
|
3403
|
+
*/
|
|
3404
|
+
get_window(): Gdk.Window | null
|
|
3405
|
+
/**
|
|
3406
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
3407
|
+
* [child property][child-properties]
|
|
3408
|
+
* `child_property` on the child.
|
|
3409
|
+
*
|
|
3410
|
+
* This is an analogue of g_object_notify() for child properties.
|
|
3411
|
+
*
|
|
3412
|
+
* Also see gtk_widget_child_notify().
|
|
3413
|
+
* @param child the child widget
|
|
3414
|
+
* @param child_property the name of a child property installed on the class of `container`
|
|
3415
|
+
*/
|
|
3416
|
+
child_notify(child: Gtk.Widget, child_property: string | null): void
|
|
3417
|
+
|
|
3418
|
+
// Overloads of child_notify
|
|
3419
|
+
|
|
3420
|
+
/**
|
|
3421
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
3422
|
+
* [child property][child-properties] `child_property`
|
|
3423
|
+
* on `widget`.
|
|
3424
|
+
*
|
|
3425
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
3426
|
+
*
|
|
3427
|
+
* Also see gtk_container_child_notify().
|
|
3428
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
3429
|
+
*/
|
|
3430
|
+
child_notify(child_property: string | null): void
|
|
3431
|
+
/**
|
|
3432
|
+
* Emits a #GtkWidget::child-notify signal for the
|
|
3433
|
+
* [child property][child-properties] `child_property`
|
|
3434
|
+
* on `widget`.
|
|
3435
|
+
*
|
|
3436
|
+
* This is the analogue of g_object_notify() for child properties.
|
|
3437
|
+
*
|
|
3438
|
+
* Also see gtk_container_child_notify().
|
|
3439
|
+
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
3440
|
+
*/
|
|
3441
|
+
child_notify(child_property: string | null): void
|
|
3442
|
+
|
|
3443
|
+
// Class property signals of Tepl-4.Tepl.View
|
|
3444
|
+
|
|
3445
|
+
connect(sigName: "notify::auto-indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3446
|
+
connect_after(sigName: "notify::auto-indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3447
|
+
emit(sigName: "notify::auto-indent", ...args: any[]): void
|
|
3448
|
+
connect(sigName: "notify::background-pattern", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3449
|
+
connect_after(sigName: "notify::background-pattern", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3450
|
+
emit(sigName: "notify::background-pattern", ...args: any[]): void
|
|
3451
|
+
connect(sigName: "notify::completion", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3452
|
+
connect_after(sigName: "notify::completion", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3453
|
+
emit(sigName: "notify::completion", ...args: any[]): void
|
|
3454
|
+
connect(sigName: "notify::highlight-current-line", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3455
|
+
connect_after(sigName: "notify::highlight-current-line", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3456
|
+
emit(sigName: "notify::highlight-current-line", ...args: any[]): void
|
|
3457
|
+
connect(sigName: "notify::indent-on-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3458
|
+
connect_after(sigName: "notify::indent-on-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3459
|
+
emit(sigName: "notify::indent-on-tab", ...args: any[]): void
|
|
3460
|
+
connect(sigName: "notify::indent-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3461
|
+
connect_after(sigName: "notify::indent-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3462
|
+
emit(sigName: "notify::indent-width", ...args: any[]): void
|
|
3463
|
+
connect(sigName: "notify::insert-spaces-instead-of-tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3464
|
+
connect_after(sigName: "notify::insert-spaces-instead-of-tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3465
|
+
emit(sigName: "notify::insert-spaces-instead-of-tabs", ...args: any[]): void
|
|
3466
|
+
connect(sigName: "notify::right-margin-position", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3467
|
+
connect_after(sigName: "notify::right-margin-position", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3468
|
+
emit(sigName: "notify::right-margin-position", ...args: any[]): void
|
|
3469
|
+
connect(sigName: "notify::show-line-marks", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3470
|
+
connect_after(sigName: "notify::show-line-marks", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3471
|
+
emit(sigName: "notify::show-line-marks", ...args: any[]): void
|
|
3472
|
+
connect(sigName: "notify::show-line-numbers", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3473
|
+
connect_after(sigName: "notify::show-line-numbers", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3474
|
+
emit(sigName: "notify::show-line-numbers", ...args: any[]): void
|
|
3475
|
+
connect(sigName: "notify::show-right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3476
|
+
connect_after(sigName: "notify::show-right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3477
|
+
emit(sigName: "notify::show-right-margin", ...args: any[]): void
|
|
3478
|
+
connect(sigName: "notify::smart-backspace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3479
|
+
connect_after(sigName: "notify::smart-backspace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3480
|
+
emit(sigName: "notify::smart-backspace", ...args: any[]): void
|
|
3481
|
+
connect(sigName: "notify::smart-home-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3482
|
+
connect_after(sigName: "notify::smart-home-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3483
|
+
emit(sigName: "notify::smart-home-end", ...args: any[]): void
|
|
3484
|
+
connect(sigName: "notify::space-drawer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3485
|
+
connect_after(sigName: "notify::space-drawer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3486
|
+
emit(sigName: "notify::space-drawer", ...args: any[]): void
|
|
3487
|
+
connect(sigName: "notify::tab-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3488
|
+
connect_after(sigName: "notify::tab-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3489
|
+
emit(sigName: "notify::tab-width", ...args: any[]): void
|
|
3490
|
+
connect(sigName: "notify::accepts-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3491
|
+
connect_after(sigName: "notify::accepts-tab", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3492
|
+
emit(sigName: "notify::accepts-tab", ...args: any[]): void
|
|
3493
|
+
connect(sigName: "notify::bottom-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3494
|
+
connect_after(sigName: "notify::bottom-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3495
|
+
emit(sigName: "notify::bottom-margin", ...args: any[]): void
|
|
3496
|
+
connect(sigName: "notify::buffer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3497
|
+
connect_after(sigName: "notify::buffer", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3498
|
+
emit(sigName: "notify::buffer", ...args: any[]): void
|
|
3499
|
+
connect(sigName: "notify::cursor-visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3500
|
+
connect_after(sigName: "notify::cursor-visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3501
|
+
emit(sigName: "notify::cursor-visible", ...args: any[]): void
|
|
3502
|
+
connect(sigName: "notify::editable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3503
|
+
connect_after(sigName: "notify::editable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3504
|
+
emit(sigName: "notify::editable", ...args: any[]): void
|
|
3505
|
+
connect(sigName: "notify::im-module", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3506
|
+
connect_after(sigName: "notify::im-module", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3507
|
+
emit(sigName: "notify::im-module", ...args: any[]): void
|
|
3508
|
+
connect(sigName: "notify::indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3509
|
+
connect_after(sigName: "notify::indent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3510
|
+
emit(sigName: "notify::indent", ...args: any[]): void
|
|
3511
|
+
connect(sigName: "notify::input-hints", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3512
|
+
connect_after(sigName: "notify::input-hints", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3513
|
+
emit(sigName: "notify::input-hints", ...args: any[]): void
|
|
3514
|
+
connect(sigName: "notify::input-purpose", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3515
|
+
connect_after(sigName: "notify::input-purpose", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3516
|
+
emit(sigName: "notify::input-purpose", ...args: any[]): void
|
|
3517
|
+
connect(sigName: "notify::justification", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3518
|
+
connect_after(sigName: "notify::justification", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3519
|
+
emit(sigName: "notify::justification", ...args: any[]): void
|
|
3520
|
+
connect(sigName: "notify::left-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3521
|
+
connect_after(sigName: "notify::left-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3522
|
+
emit(sigName: "notify::left-margin", ...args: any[]): void
|
|
3523
|
+
connect(sigName: "notify::monospace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3524
|
+
connect_after(sigName: "notify::monospace", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3525
|
+
emit(sigName: "notify::monospace", ...args: any[]): void
|
|
3526
|
+
connect(sigName: "notify::overwrite", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3527
|
+
connect_after(sigName: "notify::overwrite", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3528
|
+
emit(sigName: "notify::overwrite", ...args: any[]): void
|
|
3529
|
+
connect(sigName: "notify::pixels-above-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3530
|
+
connect_after(sigName: "notify::pixels-above-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3531
|
+
emit(sigName: "notify::pixels-above-lines", ...args: any[]): void
|
|
3532
|
+
connect(sigName: "notify::pixels-below-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3533
|
+
connect_after(sigName: "notify::pixels-below-lines", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3534
|
+
emit(sigName: "notify::pixels-below-lines", ...args: any[]): void
|
|
3535
|
+
connect(sigName: "notify::pixels-inside-wrap", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3536
|
+
connect_after(sigName: "notify::pixels-inside-wrap", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3537
|
+
emit(sigName: "notify::pixels-inside-wrap", ...args: any[]): void
|
|
3538
|
+
connect(sigName: "notify::populate-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3539
|
+
connect_after(sigName: "notify::populate-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3540
|
+
emit(sigName: "notify::populate-all", ...args: any[]): void
|
|
3541
|
+
connect(sigName: "notify::right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3542
|
+
connect_after(sigName: "notify::right-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3543
|
+
emit(sigName: "notify::right-margin", ...args: any[]): void
|
|
3544
|
+
connect(sigName: "notify::tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3545
|
+
connect_after(sigName: "notify::tabs", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3546
|
+
emit(sigName: "notify::tabs", ...args: any[]): void
|
|
3547
|
+
connect(sigName: "notify::top-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3548
|
+
connect_after(sigName: "notify::top-margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3549
|
+
emit(sigName: "notify::top-margin", ...args: any[]): void
|
|
3550
|
+
connect(sigName: "notify::wrap-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3551
|
+
connect_after(sigName: "notify::wrap-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3552
|
+
emit(sigName: "notify::wrap-mode", ...args: any[]): void
|
|
3553
|
+
connect(sigName: "notify::border-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3554
|
+
connect_after(sigName: "notify::border-width", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3555
|
+
emit(sigName: "notify::border-width", ...args: any[]): void
|
|
3556
|
+
connect(sigName: "notify::child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3557
|
+
connect_after(sigName: "notify::child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3558
|
+
emit(sigName: "notify::child", ...args: any[]): void
|
|
3559
|
+
connect(sigName: "notify::resize-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3560
|
+
connect_after(sigName: "notify::resize-mode", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3561
|
+
emit(sigName: "notify::resize-mode", ...args: any[]): void
|
|
3562
|
+
connect(sigName: "notify::app-paintable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3563
|
+
connect_after(sigName: "notify::app-paintable", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3564
|
+
emit(sigName: "notify::app-paintable", ...args: any[]): void
|
|
3565
|
+
connect(sigName: "notify::can-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3566
|
+
connect_after(sigName: "notify::can-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3567
|
+
emit(sigName: "notify::can-default", ...args: any[]): void
|
|
3568
|
+
connect(sigName: "notify::can-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3569
|
+
connect_after(sigName: "notify::can-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3570
|
+
emit(sigName: "notify::can-focus", ...args: any[]): void
|
|
3571
|
+
connect(sigName: "notify::composite-child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3572
|
+
connect_after(sigName: "notify::composite-child", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3573
|
+
emit(sigName: "notify::composite-child", ...args: any[]): void
|
|
3574
|
+
connect(sigName: "notify::double-buffered", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3575
|
+
connect_after(sigName: "notify::double-buffered", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3576
|
+
emit(sigName: "notify::double-buffered", ...args: any[]): void
|
|
3577
|
+
connect(sigName: "notify::events", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3578
|
+
connect_after(sigName: "notify::events", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3579
|
+
emit(sigName: "notify::events", ...args: any[]): void
|
|
3580
|
+
connect(sigName: "notify::expand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3581
|
+
connect_after(sigName: "notify::expand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3582
|
+
emit(sigName: "notify::expand", ...args: any[]): void
|
|
3583
|
+
connect(sigName: "notify::focus-on-click", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3584
|
+
connect_after(sigName: "notify::focus-on-click", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3585
|
+
emit(sigName: "notify::focus-on-click", ...args: any[]): void
|
|
3586
|
+
connect(sigName: "notify::halign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3587
|
+
connect_after(sigName: "notify::halign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3588
|
+
emit(sigName: "notify::halign", ...args: any[]): void
|
|
3589
|
+
connect(sigName: "notify::has-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3590
|
+
connect_after(sigName: "notify::has-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3591
|
+
emit(sigName: "notify::has-default", ...args: any[]): void
|
|
3592
|
+
connect(sigName: "notify::has-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3593
|
+
connect_after(sigName: "notify::has-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3594
|
+
emit(sigName: "notify::has-focus", ...args: any[]): void
|
|
3595
|
+
connect(sigName: "notify::has-tooltip", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3596
|
+
connect_after(sigName: "notify::has-tooltip", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3597
|
+
emit(sigName: "notify::has-tooltip", ...args: any[]): void
|
|
3598
|
+
connect(sigName: "notify::height-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3599
|
+
connect_after(sigName: "notify::height-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3600
|
+
emit(sigName: "notify::height-request", ...args: any[]): void
|
|
3601
|
+
connect(sigName: "notify::hexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3602
|
+
connect_after(sigName: "notify::hexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3603
|
+
emit(sigName: "notify::hexpand", ...args: any[]): void
|
|
3604
|
+
connect(sigName: "notify::hexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3605
|
+
connect_after(sigName: "notify::hexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3606
|
+
emit(sigName: "notify::hexpand-set", ...args: any[]): void
|
|
3607
|
+
connect(sigName: "notify::is-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3608
|
+
connect_after(sigName: "notify::is-focus", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3609
|
+
emit(sigName: "notify::is-focus", ...args: any[]): void
|
|
3610
|
+
connect(sigName: "notify::margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3611
|
+
connect_after(sigName: "notify::margin", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3612
|
+
emit(sigName: "notify::margin", ...args: any[]): void
|
|
3613
|
+
connect(sigName: "notify::margin-bottom", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3614
|
+
connect_after(sigName: "notify::margin-bottom", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3615
|
+
emit(sigName: "notify::margin-bottom", ...args: any[]): void
|
|
3616
|
+
connect(sigName: "notify::margin-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3617
|
+
connect_after(sigName: "notify::margin-end", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3618
|
+
emit(sigName: "notify::margin-end", ...args: any[]): void
|
|
3619
|
+
connect(sigName: "notify::margin-left", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3620
|
+
connect_after(sigName: "notify::margin-left", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3621
|
+
emit(sigName: "notify::margin-left", ...args: any[]): void
|
|
3622
|
+
connect(sigName: "notify::margin-right", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3623
|
+
connect_after(sigName: "notify::margin-right", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3624
|
+
emit(sigName: "notify::margin-right", ...args: any[]): void
|
|
3625
|
+
connect(sigName: "notify::margin-start", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3626
|
+
connect_after(sigName: "notify::margin-start", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3627
|
+
emit(sigName: "notify::margin-start", ...args: any[]): void
|
|
3628
|
+
connect(sigName: "notify::margin-top", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3629
|
+
connect_after(sigName: "notify::margin-top", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3630
|
+
emit(sigName: "notify::margin-top", ...args: any[]): void
|
|
3631
|
+
connect(sigName: "notify::name", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3632
|
+
connect_after(sigName: "notify::name", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3633
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
3634
|
+
connect(sigName: "notify::no-show-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3635
|
+
connect_after(sigName: "notify::no-show-all", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3636
|
+
emit(sigName: "notify::no-show-all", ...args: any[]): void
|
|
3637
|
+
connect(sigName: "notify::opacity", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3638
|
+
connect_after(sigName: "notify::opacity", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3639
|
+
emit(sigName: "notify::opacity", ...args: any[]): void
|
|
3640
|
+
connect(sigName: "notify::parent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3641
|
+
connect_after(sigName: "notify::parent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3642
|
+
emit(sigName: "notify::parent", ...args: any[]): void
|
|
3643
|
+
connect(sigName: "notify::receives-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3644
|
+
connect_after(sigName: "notify::receives-default", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3645
|
+
emit(sigName: "notify::receives-default", ...args: any[]): void
|
|
3646
|
+
connect(sigName: "notify::scale-factor", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3647
|
+
connect_after(sigName: "notify::scale-factor", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3648
|
+
emit(sigName: "notify::scale-factor", ...args: any[]): void
|
|
3649
|
+
connect(sigName: "notify::sensitive", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3650
|
+
connect_after(sigName: "notify::sensitive", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3651
|
+
emit(sigName: "notify::sensitive", ...args: any[]): void
|
|
3652
|
+
connect(sigName: "notify::style", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3653
|
+
connect_after(sigName: "notify::style", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3654
|
+
emit(sigName: "notify::style", ...args: any[]): void
|
|
3655
|
+
connect(sigName: "notify::tooltip-markup", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3656
|
+
connect_after(sigName: "notify::tooltip-markup", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3657
|
+
emit(sigName: "notify::tooltip-markup", ...args: any[]): void
|
|
3658
|
+
connect(sigName: "notify::tooltip-text", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3659
|
+
connect_after(sigName: "notify::tooltip-text", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3660
|
+
emit(sigName: "notify::tooltip-text", ...args: any[]): void
|
|
3661
|
+
connect(sigName: "notify::valign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3662
|
+
connect_after(sigName: "notify::valign", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3663
|
+
emit(sigName: "notify::valign", ...args: any[]): void
|
|
3664
|
+
connect(sigName: "notify::vexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3665
|
+
connect_after(sigName: "notify::vexpand", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3666
|
+
emit(sigName: "notify::vexpand", ...args: any[]): void
|
|
3667
|
+
connect(sigName: "notify::vexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3668
|
+
connect_after(sigName: "notify::vexpand-set", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3669
|
+
emit(sigName: "notify::vexpand-set", ...args: any[]): void
|
|
3670
|
+
connect(sigName: "notify::visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3671
|
+
connect_after(sigName: "notify::visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3672
|
+
emit(sigName: "notify::visible", ...args: any[]): void
|
|
3673
|
+
connect(sigName: "notify::width-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3674
|
+
connect_after(sigName: "notify::width-request", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3675
|
+
emit(sigName: "notify::width-request", ...args: any[]): void
|
|
3676
|
+
connect(sigName: "notify::window", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3677
|
+
connect_after(sigName: "notify::window", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3678
|
+
emit(sigName: "notify::window", ...args: any[]): void
|
|
3679
|
+
connect(sigName: "notify::hadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3680
|
+
connect_after(sigName: "notify::hadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3681
|
+
emit(sigName: "notify::hadjustment", ...args: any[]): void
|
|
3682
|
+
connect(sigName: "notify::hscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3683
|
+
connect_after(sigName: "notify::hscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3684
|
+
emit(sigName: "notify::hscroll-policy", ...args: any[]): void
|
|
3685
|
+
connect(sigName: "notify::vadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3686
|
+
connect_after(sigName: "notify::vadjustment", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3687
|
+
emit(sigName: "notify::vadjustment", ...args: any[]): void
|
|
3688
|
+
connect(sigName: "notify::vscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3689
|
+
connect_after(sigName: "notify::vscroll-policy", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
|
|
3690
|
+
emit(sigName: "notify::vscroll-policy", ...args: any[]): void
|
|
3691
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3692
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3693
|
+
emit(sigName: string, ...args: any[]): void
|
|
3694
|
+
disconnect(id: number): void
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
class View extends GtkSource.View {
|
|
3698
|
+
|
|
3699
|
+
// Own properties of Tepl-4.Tepl.View
|
|
3700
|
+
|
|
3701
|
+
static name: string
|
|
3702
|
+
static $gtype: GObject.GType<View>
|
|
3703
|
+
|
|
3704
|
+
// Constructors of Tepl-4.Tepl.View
|
|
3705
|
+
|
|
3706
|
+
constructor(config?: View.ConstructorProperties)
|
|
3707
|
+
constructor()
|
|
3708
|
+
static new(): View
|
|
3709
|
+
_init(config?: View.ConstructorProperties): void
|
|
3710
|
+
|
|
3711
|
+
// Conflicting static methods
|
|
3712
|
+
|
|
3713
|
+
static new_with_buffer(...args: any[]): any
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
interface AbstractFactoryClass {
|
|
3717
|
+
|
|
3718
|
+
// Own fields of Tepl-4.Tepl.AbstractFactoryClass
|
|
3719
|
+
|
|
3720
|
+
/**
|
|
3721
|
+
* The parent class.
|
|
3722
|
+
* @field
|
|
3723
|
+
*/
|
|
3724
|
+
parent_class: GObject.ObjectClass
|
|
3725
|
+
create_main_window: (factory: AbstractFactory, app: Gtk.Application) => Gtk.ApplicationWindow | null
|
|
3726
|
+
create_tab: (factory: AbstractFactory) => Tab
|
|
3727
|
+
create_tab_label: (factory: AbstractFactory, tab: Tab) => Gtk.Widget | null
|
|
3728
|
+
create_file: (factory: AbstractFactory) => File
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
abstract class AbstractFactoryClass {
|
|
3732
|
+
|
|
3733
|
+
// Own properties of Tepl-4.Tepl.AbstractFactoryClass
|
|
3734
|
+
|
|
3735
|
+
static name: string
|
|
3736
|
+
}
|
|
3737
|
+
|
|
3738
|
+
interface AbstractFactoryValaClass {
|
|
3739
|
+
|
|
3740
|
+
// Own fields of Tepl-4.Tepl.AbstractFactoryValaClass
|
|
3741
|
+
|
|
3742
|
+
/**
|
|
3743
|
+
* The parent class.
|
|
3744
|
+
* @field
|
|
3745
|
+
*/
|
|
3746
|
+
parent_class: AbstractFactoryClass
|
|
3747
|
+
create_main_window_vala: (factory_vala: AbstractFactoryVala, app: Gtk.Application) => Gtk.ApplicationWindow | null
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
abstract class AbstractFactoryValaClass {
|
|
3751
|
+
|
|
3752
|
+
// Own properties of Tepl-4.Tepl.AbstractFactoryValaClass
|
|
3753
|
+
|
|
3754
|
+
static name: string
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
interface ApplicationClass {
|
|
3758
|
+
|
|
3759
|
+
// Own fields of Tepl-4.Tepl.ApplicationClass
|
|
3760
|
+
|
|
3761
|
+
parent_class: GObject.ObjectClass
|
|
3762
|
+
padding: any[]
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
abstract class ApplicationClass {
|
|
3766
|
+
|
|
3767
|
+
// Own properties of Tepl-4.Tepl.ApplicationClass
|
|
3768
|
+
|
|
3769
|
+
static name: string
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
interface ApplicationPrivate {
|
|
3773
|
+
}
|
|
3774
|
+
|
|
3775
|
+
class ApplicationPrivate {
|
|
3776
|
+
|
|
3777
|
+
// Own properties of Tepl-4.Tepl.ApplicationPrivate
|
|
3778
|
+
|
|
3779
|
+
static name: string
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
interface ApplicationWindowClass {
|
|
3783
|
+
|
|
3784
|
+
// Own fields of Tepl-4.Tepl.ApplicationWindowClass
|
|
3785
|
+
|
|
3786
|
+
parent_class: GObject.ObjectClass
|
|
3787
|
+
padding: any[]
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3790
|
+
abstract class ApplicationWindowClass {
|
|
3791
|
+
|
|
3792
|
+
// Own properties of Tepl-4.Tepl.ApplicationWindowClass
|
|
3793
|
+
|
|
3794
|
+
static name: string
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
interface ApplicationWindowPrivate {
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
class ApplicationWindowPrivate {
|
|
3801
|
+
|
|
3802
|
+
// Own properties of Tepl-4.Tepl.ApplicationWindowPrivate
|
|
3803
|
+
|
|
3804
|
+
static name: string
|
|
3805
|
+
}
|
|
3806
|
+
|
|
3807
|
+
interface BufferClass {
|
|
3808
|
+
|
|
3809
|
+
// Own fields of Tepl-4.Tepl.BufferClass
|
|
3810
|
+
|
|
3811
|
+
parent_class: GtkSource.BufferClass
|
|
3812
|
+
tepl_cursor_moved: (buffer: Buffer) => void
|
|
3813
|
+
padding: any[]
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
abstract class BufferClass {
|
|
3817
|
+
|
|
3818
|
+
// Own properties of Tepl-4.Tepl.BufferClass
|
|
3819
|
+
|
|
3820
|
+
static name: string
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
interface Encoding {
|
|
3824
|
+
|
|
3825
|
+
// Owm methods of Tepl-4.Tepl.Encoding
|
|
3826
|
+
|
|
3827
|
+
copy(): Encoding
|
|
3828
|
+
/**
|
|
3829
|
+
* Returns whether `enc1` and `enc2` are equal. It returns %TRUE iff:
|
|
3830
|
+
* - Both `enc1` and `enc2` are %NULL;
|
|
3831
|
+
* - Or both `enc1` and `enc2` have a UTF-8 charset (see
|
|
3832
|
+
* tepl_encoding_is_utf8());
|
|
3833
|
+
* - Or the charsets are equal according to g_ascii_strcasecmp() (because
|
|
3834
|
+
* iconv-compatible charsets are case insensitive).
|
|
3835
|
+
* @param enc2 a #TeplEncoding, or %NULL.
|
|
3836
|
+
* @returns whether @enc1 and @enc2 are equal.
|
|
3837
|
+
*/
|
|
3838
|
+
equals(enc2: Encoding | null): boolean
|
|
3839
|
+
free(): void
|
|
3840
|
+
/**
|
|
3841
|
+
* Gets the character set of the #TeplEncoding, such as "UTF-8" or "ISO-8859-1".
|
|
3842
|
+
* @returns the character set of the #TeplEncoding.
|
|
3843
|
+
*/
|
|
3844
|
+
get_charset(): string | null
|
|
3845
|
+
/**
|
|
3846
|
+
* Gets the name of the #TeplEncoding such as "Unicode" or "Western". If the
|
|
3847
|
+
* charset is unknown by #TeplEncoding, "Unknown" is returned. The return value
|
|
3848
|
+
* is already translated by gettext.
|
|
3849
|
+
* @returns the name of the #TeplEncoding.
|
|
3850
|
+
*/
|
|
3851
|
+
get_name(): string | null
|
|
3852
|
+
/**
|
|
3853
|
+
* Returns whether `enc` is a UTF-8 encoding.
|
|
3854
|
+
*
|
|
3855
|
+
* If `enc` was created with tepl_encoding_new_utf8(), the charset is "UTF-8".
|
|
3856
|
+
* But iconv supports other variants: "UTF8", "utf-8" and "utf8". This function
|
|
3857
|
+
* returns %TRUE for all UTF-8 variants supported by iconv.
|
|
3858
|
+
* @returns whether @enc is a UTF-8 encoding.
|
|
3859
|
+
*/
|
|
3860
|
+
is_utf8(): boolean
|
|
3861
|
+
/**
|
|
3862
|
+
* Returns the encoding name with the charset in parenthesis, for example
|
|
3863
|
+
* "Unicode (UTF-8)". If the name is unknown, just the charset is returned. The
|
|
3864
|
+
* name is translated by gettext.
|
|
3865
|
+
* @returns a string representation. Free with g_free() when no longer needed.
|
|
3866
|
+
*/
|
|
3867
|
+
to_string(): string | null
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
class Encoding {
|
|
3871
|
+
|
|
3872
|
+
// Own properties of Tepl-4.Tepl.Encoding
|
|
3873
|
+
|
|
3874
|
+
static name: string
|
|
3875
|
+
|
|
3876
|
+
// Constructors of Tepl-4.Tepl.Encoding
|
|
3877
|
+
|
|
3878
|
+
/**
|
|
3879
|
+
* Creates a new #TeplEncoding from a character set such as "UTF-8" or
|
|
3880
|
+
* "ISO-8859-1".
|
|
3881
|
+
*
|
|
3882
|
+
* The tepl_encoding_get_charset() function will return exactly the same string
|
|
3883
|
+
* as the `charset` passed in to this constructor.
|
|
3884
|
+
* @constructor
|
|
3885
|
+
* @param charset a character set.
|
|
3886
|
+
* @returns the new #TeplEncoding. Free with tepl_encoding_free().
|
|
3887
|
+
*/
|
|
3888
|
+
constructor(charset: string | null)
|
|
3889
|
+
/**
|
|
3890
|
+
* Creates a new #TeplEncoding from a character set such as "UTF-8" or
|
|
3891
|
+
* "ISO-8859-1".
|
|
3892
|
+
*
|
|
3893
|
+
* The tepl_encoding_get_charset() function will return exactly the same string
|
|
3894
|
+
* as the `charset` passed in to this constructor.
|
|
3895
|
+
* @constructor
|
|
3896
|
+
* @param charset a character set.
|
|
3897
|
+
* @returns the new #TeplEncoding. Free with tepl_encoding_free().
|
|
3898
|
+
*/
|
|
3899
|
+
static new(charset: string | null): Encoding
|
|
3900
|
+
/**
|
|
3901
|
+
* Creates a new #TeplEncoding from the current locale, as returned by
|
|
3902
|
+
* g_get_charset().
|
|
3903
|
+
* @constructor
|
|
3904
|
+
* @returns the new #TeplEncoding. Free with tepl_encoding_free().
|
|
3905
|
+
*/
|
|
3906
|
+
static new_from_locale(): Encoding
|
|
3907
|
+
/**
|
|
3908
|
+
* Creates a new #TeplEncoding with the "UTF-8" character set.
|
|
3909
|
+
* @constructor
|
|
3910
|
+
* @returns the new #TeplEncoding. Free with tepl_encoding_free().
|
|
3911
|
+
*/
|
|
3912
|
+
static new_utf8(): Encoding
|
|
3913
|
+
/**
|
|
3914
|
+
* Gets a list of all encodings known by #TeplEncoding.
|
|
3915
|
+
* @returns a list of #TeplEncoding's.
|
|
3916
|
+
*/
|
|
3917
|
+
static get_all(): Encoding[]
|
|
3918
|
+
/**
|
|
3919
|
+
* Gets the list of default candidate encodings to try when loading a file. See
|
|
3920
|
+
* gtk_source_file_loader_set_candidate_encodings().
|
|
3921
|
+
*
|
|
3922
|
+
* This function returns a different list depending on the current locale (i.e.
|
|
3923
|
+
* language, country and default encoding). The UTF-8 encoding and the current
|
|
3924
|
+
* locale encoding are guaranteed to be present in the returned list.
|
|
3925
|
+
*
|
|
3926
|
+
* Note that the returned list doesn't contain all encodings known by
|
|
3927
|
+
* #TeplEncoding, it is a limited list that contains only the encodings that
|
|
3928
|
+
* have the most likelihood to fit for the current locale.
|
|
3929
|
+
* @returns the list of default candidate encodings.
|
|
3930
|
+
*/
|
|
3931
|
+
static get_default_candidates(): Encoding[]
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
interface FileClass {
|
|
3935
|
+
|
|
3936
|
+
// Own fields of Tepl-4.Tepl.FileClass
|
|
3937
|
+
|
|
3938
|
+
parent_class: GObject.ObjectClass
|
|
3939
|
+
padding: any[]
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
abstract class FileClass {
|
|
3943
|
+
|
|
3944
|
+
// Own properties of Tepl-4.Tepl.FileClass
|
|
3945
|
+
|
|
3946
|
+
static name: string
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
interface FileLoaderClass {
|
|
3950
|
+
|
|
3951
|
+
// Own fields of Tepl-4.Tepl.FileLoaderClass
|
|
3952
|
+
|
|
3953
|
+
parent_class: GObject.ObjectClass
|
|
3954
|
+
padding: any[]
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
abstract class FileLoaderClass {
|
|
3958
|
+
|
|
3959
|
+
// Own properties of Tepl-4.Tepl.FileLoaderClass
|
|
3960
|
+
|
|
3961
|
+
static name: string
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
interface FileMetadataClass {
|
|
3965
|
+
|
|
3966
|
+
// Own fields of Tepl-4.Tepl.FileMetadataClass
|
|
3967
|
+
|
|
3968
|
+
parent_class: GObject.ObjectClass
|
|
3969
|
+
padding: any[]
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
abstract class FileMetadataClass {
|
|
3973
|
+
|
|
3974
|
+
// Own properties of Tepl-4.Tepl.FileMetadataClass
|
|
3975
|
+
|
|
3976
|
+
static name: string
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
interface FileSaverClass {
|
|
3980
|
+
|
|
3981
|
+
// Own fields of Tepl-4.Tepl.FileSaverClass
|
|
3982
|
+
|
|
3983
|
+
parent_class: GObject.ObjectClass
|
|
3984
|
+
padding: any[]
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
abstract class FileSaverClass {
|
|
3988
|
+
|
|
3989
|
+
// Own properties of Tepl-4.Tepl.FileSaverClass
|
|
3990
|
+
|
|
3991
|
+
static name: string
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
interface FileSaverPrivate {
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
class FileSaverPrivate {
|
|
3998
|
+
|
|
3999
|
+
// Own properties of Tepl-4.Tepl.FileSaverPrivate
|
|
4000
|
+
|
|
4001
|
+
static name: string
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
interface FoldRegionClass {
|
|
4005
|
+
|
|
4006
|
+
// Own fields of Tepl-4.Tepl.FoldRegionClass
|
|
4007
|
+
|
|
4008
|
+
parent_class: GObject.ObjectClass
|
|
4009
|
+
padding: any[]
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
abstract class FoldRegionClass {
|
|
4013
|
+
|
|
4014
|
+
// Own properties of Tepl-4.Tepl.FoldRegionClass
|
|
4015
|
+
|
|
4016
|
+
static name: string
|
|
4017
|
+
}
|
|
4018
|
+
|
|
4019
|
+
interface GutterRendererFoldsClass {
|
|
4020
|
+
|
|
4021
|
+
// Own fields of Tepl-4.Tepl.GutterRendererFoldsClass
|
|
4022
|
+
|
|
4023
|
+
parent_class: GtkSource.GutterRendererClass
|
|
4024
|
+
padding: any[]
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
abstract class GutterRendererFoldsClass {
|
|
4028
|
+
|
|
4029
|
+
// Own properties of Tepl-4.Tepl.GutterRendererFoldsClass
|
|
4030
|
+
|
|
4031
|
+
static name: string
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
interface InfoBarClass {
|
|
4035
|
+
|
|
4036
|
+
// Own fields of Tepl-4.Tepl.InfoBarClass
|
|
4037
|
+
|
|
4038
|
+
parent_class: Gtk.InfoBarClass
|
|
4039
|
+
padding: any[]
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
abstract class InfoBarClass {
|
|
4043
|
+
|
|
4044
|
+
// Own properties of Tepl-4.Tepl.InfoBarClass
|
|
4045
|
+
|
|
4046
|
+
static name: string
|
|
4047
|
+
}
|
|
4048
|
+
|
|
4049
|
+
interface MetadataStoreClass {
|
|
4050
|
+
|
|
4051
|
+
// Own fields of Tepl-4.Tepl.MetadataStoreClass
|
|
4052
|
+
|
|
4053
|
+
parent_class: GObject.ObjectClass
|
|
4054
|
+
padding: any[]
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
abstract class MetadataStoreClass {
|
|
4058
|
+
|
|
4059
|
+
// Own properties of Tepl-4.Tepl.MetadataStoreClass
|
|
4060
|
+
|
|
4061
|
+
static name: string
|
|
4062
|
+
}
|
|
4063
|
+
|
|
4064
|
+
interface MetadataStorePrivate {
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
class MetadataStorePrivate {
|
|
4068
|
+
|
|
4069
|
+
// Own properties of Tepl-4.Tepl.MetadataStorePrivate
|
|
4070
|
+
|
|
4071
|
+
static name: string
|
|
4072
|
+
}
|
|
4073
|
+
|
|
4074
|
+
interface NotebookClass {
|
|
4075
|
+
|
|
4076
|
+
// Own fields of Tepl-4.Tepl.NotebookClass
|
|
4077
|
+
|
|
4078
|
+
parent_class: Gtk.NotebookClass
|
|
4079
|
+
padding: any[]
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
abstract class NotebookClass {
|
|
4083
|
+
|
|
4084
|
+
// Own properties of Tepl-4.Tepl.NotebookClass
|
|
4085
|
+
|
|
4086
|
+
static name: string
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
interface NotebookPrivate {
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
class NotebookPrivate {
|
|
4093
|
+
|
|
4094
|
+
// Own properties of Tepl-4.Tepl.NotebookPrivate
|
|
4095
|
+
|
|
4096
|
+
static name: string
|
|
4097
|
+
}
|
|
4098
|
+
|
|
4099
|
+
interface TabClass {
|
|
4100
|
+
|
|
4101
|
+
// Own fields of Tepl-4.Tepl.TabClass
|
|
4102
|
+
|
|
4103
|
+
/**
|
|
4104
|
+
* The parent class.
|
|
4105
|
+
* @field
|
|
4106
|
+
*/
|
|
4107
|
+
parent_class: Gtk.GridClass
|
|
4108
|
+
pack_view: (tab: Tab, view: View) => void
|
|
4109
|
+
pack_info_bar: (tab: Tab, info_bar: Gtk.InfoBar) => void
|
|
4110
|
+
close_request: (tab: Tab) => void
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
abstract class TabClass {
|
|
4114
|
+
|
|
4115
|
+
// Own properties of Tepl-4.Tepl.TabClass
|
|
4116
|
+
|
|
4117
|
+
static name: string
|
|
4118
|
+
}
|
|
4119
|
+
|
|
4120
|
+
interface TabGroupInterface {
|
|
4121
|
+
|
|
4122
|
+
// Own fields of Tepl-4.Tepl.TabGroupInterface
|
|
4123
|
+
|
|
4124
|
+
/**
|
|
4125
|
+
* The parent interface.
|
|
4126
|
+
* @field
|
|
4127
|
+
*/
|
|
4128
|
+
parent_interface: GObject.TypeInterface
|
|
4129
|
+
get_tabs: (tab_group: TabGroup) => Tab[]
|
|
4130
|
+
get_active_tab: (tab_group: TabGroup) => Tab | null
|
|
4131
|
+
set_active_tab: (tab_group: TabGroup, tab: Tab) => void
|
|
4132
|
+
append_tab_vfunc: (tab_group: TabGroup, tab: Tab) => void
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
/**
|
|
4136
|
+
* The virtual function table for #TeplTabGroup. When implementing one of the
|
|
4137
|
+
* vfunc, you can assume that the pre-conditions are already checked (the
|
|
4138
|
+
* parameters are valid).
|
|
4139
|
+
* @record
|
|
4140
|
+
*/
|
|
4141
|
+
abstract class TabGroupInterface {
|
|
4142
|
+
|
|
4143
|
+
// Own properties of Tepl-4.Tepl.TabGroupInterface
|
|
4144
|
+
|
|
4145
|
+
static name: string
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
interface TabLabelClass {
|
|
4149
|
+
|
|
4150
|
+
// Own fields of Tepl-4.Tepl.TabLabelClass
|
|
4151
|
+
|
|
4152
|
+
/**
|
|
4153
|
+
* The parent class.
|
|
4154
|
+
* @field
|
|
4155
|
+
*/
|
|
4156
|
+
parent_class: Gtk.GridClass
|
|
4157
|
+
get_tooltip_markup: (tab_label: TabLabel) => string | null
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
abstract class TabLabelClass {
|
|
4161
|
+
|
|
4162
|
+
// Own properties of Tepl-4.Tepl.TabLabelClass
|
|
4163
|
+
|
|
4164
|
+
static name: string
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
interface TabLabelPrivate {
|
|
4168
|
+
}
|
|
4169
|
+
|
|
4170
|
+
class TabLabelPrivate {
|
|
4171
|
+
|
|
4172
|
+
// Own properties of Tepl-4.Tepl.TabLabelPrivate
|
|
4173
|
+
|
|
4174
|
+
static name: string
|
|
4175
|
+
}
|
|
4176
|
+
|
|
4177
|
+
interface TabPrivate {
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
class TabPrivate {
|
|
4181
|
+
|
|
4182
|
+
// Own properties of Tepl-4.Tepl.TabPrivate
|
|
4183
|
+
|
|
4184
|
+
static name: string
|
|
4185
|
+
}
|
|
4186
|
+
|
|
4187
|
+
interface ViewClass {
|
|
4188
|
+
|
|
4189
|
+
// Own fields of Tepl-4.Tepl.ViewClass
|
|
4190
|
+
|
|
4191
|
+
parent_class: GtkSource.ViewClass
|
|
4192
|
+
padding: any[]
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
abstract class ViewClass {
|
|
4196
|
+
|
|
4197
|
+
// Own properties of Tepl-4.Tepl.ViewClass
|
|
4198
|
+
|
|
4199
|
+
static name: string
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
/**
|
|
4203
|
+
* Name of the imported GIR library
|
|
4204
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
4205
|
+
*/
|
|
4206
|
+
const __name__: string
|
|
4207
|
+
/**
|
|
4208
|
+
* Version of the imported GIR library
|
|
4209
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
4210
|
+
*/
|
|
4211
|
+
const __version__: string
|
|
4212
|
+
}
|
|
4213
|
+
|
|
4214
|
+
export default Tepl;
|
|
4215
|
+
// END
|