@girs/gtksource-5 5.3.0 → 5.4.0
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 +1 -1
- package/gtksource-5-vocabulary.d.ts +13 -0
- package/gtksource-5-vocabulary.js +141 -0
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.4.0.
|
|
8
8
|
|
|
9
9
|
This package contains type declarations only. It ships no runtime code, so it adds
|
|
10
10
|
nothing to your program and works with any bundler or none at all.
|
|
@@ -1040,6 +1040,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
1040
1040
|
*/
|
|
1041
1041
|
export const PROP_ENUMS: Readonly<Record<string, string>>;
|
|
1042
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* `<declaration GType>.<property>` -> the GType of that property's own type.
|
|
1045
|
+
*
|
|
1046
|
+
* `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
|
|
1047
|
+
* has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
|
|
1048
|
+
* type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
|
|
1049
|
+
* reads this one; a host resolving a nick to a number reads that one.
|
|
1050
|
+
*
|
|
1051
|
+
* Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
|
|
1052
|
+
* like any other, so absence is readable as "unknown".
|
|
1053
|
+
*/
|
|
1054
|
+
export const PROP_TYPES: Readonly<Record<string, string>>;
|
|
1055
|
+
|
|
1043
1056
|
/**
|
|
1044
1057
|
* The kinds of value a GTK accessible property, relation or state takes.
|
|
1045
1058
|
*
|
|
@@ -321,6 +321,147 @@ export const PROP_ENUMS = {
|
|
|
321
321
|
'GtkSourceView.smart-home-end': 'GtkSourceSmartHomeEndType',
|
|
322
322
|
};
|
|
323
323
|
|
|
324
|
+
// `<declaration GType>.<property>` -> the GType of that property's own type.
|
|
325
|
+
//
|
|
326
|
+
// `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
|
|
327
|
+
// contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
|
|
328
|
+
// plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
|
|
329
|
+
// the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
|
|
330
|
+
//
|
|
331
|
+
// A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
|
|
332
|
+
// closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
|
|
333
|
+
// child. Absence therefore reads as "unknown" and never as "scalar".
|
|
334
|
+
export const PROP_TYPES = {
|
|
335
|
+
'GtkSourceBuffer.highlight-matching-brackets': 'gboolean',
|
|
336
|
+
'GtkSourceBuffer.highlight-syntax': 'gboolean',
|
|
337
|
+
'GtkSourceBuffer.implicit-trailing-newline': 'gboolean',
|
|
338
|
+
'GtkSourceBuffer.language': 'GtkSourceLanguage',
|
|
339
|
+
'GtkSourceBuffer.style-scheme': 'GtkSourceStyleScheme',
|
|
340
|
+
'GtkSourceCompletion.page-size': 'guint',
|
|
341
|
+
'GtkSourceCompletion.remember-info-visibility': 'gboolean',
|
|
342
|
+
'GtkSourceCompletion.select-on-show': 'gboolean',
|
|
343
|
+
'GtkSourceCompletion.show-icons': 'gboolean',
|
|
344
|
+
'GtkSourceCompletion.view': 'GtkSourceView',
|
|
345
|
+
'GtkSourceCompletionCell.column': 'GtkSourceCompletionColumn',
|
|
346
|
+
'GtkSourceCompletionCell.markup': 'gchararray',
|
|
347
|
+
'GtkSourceCompletionCell.paintable': 'GdkPaintable',
|
|
348
|
+
'GtkSourceCompletionCell.text': 'gchararray',
|
|
349
|
+
'GtkSourceCompletionCell.widget': 'GtkWidget',
|
|
350
|
+
'GtkSourceCompletionContext.completion': 'GtkSourceCompletion',
|
|
351
|
+
'GtkSourceCompletionSnippets.priority': 'gint',
|
|
352
|
+
'GtkSourceCompletionSnippets.title': 'gchararray',
|
|
353
|
+
'GtkSourceCompletionWords.minimum-word-size': 'guint',
|
|
354
|
+
'GtkSourceCompletionWords.priority': 'gint',
|
|
355
|
+
'GtkSourceCompletionWords.proposals-batch-size': 'guint',
|
|
356
|
+
'GtkSourceCompletionWords.scan-batch-size': 'guint',
|
|
357
|
+
'GtkSourceCompletionWords.title': 'gchararray',
|
|
358
|
+
'GtkSourceFile.location': 'GFile',
|
|
359
|
+
'GtkSourceFileLoader.buffer': 'GtkSourceBuffer',
|
|
360
|
+
'GtkSourceFileLoader.file': 'GtkSourceFile',
|
|
361
|
+
'GtkSourceFileLoader.input-stream': 'GInputStream',
|
|
362
|
+
'GtkSourceFileLoader.location': 'GFile',
|
|
363
|
+
'GtkSourceFileLoader.max-size': 'guint64',
|
|
364
|
+
'GtkSourceFileSaver.buffer': 'GtkSourceBuffer',
|
|
365
|
+
'GtkSourceFileSaver.compression-type': 'GtkSourceCompressionType',
|
|
366
|
+
'GtkSourceFileSaver.file': 'GtkSourceFile',
|
|
367
|
+
'GtkSourceFileSaver.flags': 'GtkSourceFileSaverFlags',
|
|
368
|
+
'GtkSourceFileSaver.location': 'GFile',
|
|
369
|
+
'GtkSourceFileSaver.newline-type': 'GtkSourceNewlineType',
|
|
370
|
+
'GtkSourceGutter.view': 'GtkSourceView',
|
|
371
|
+
'GtkSourceGutter.window-type': 'GtkTextWindowType',
|
|
372
|
+
'GtkSourceGutterRenderer.alignment-mode': 'GtkSourceGutterRendererAlignmentMode',
|
|
373
|
+
'GtkSourceGutterRenderer.xalign': 'gfloat',
|
|
374
|
+
'GtkSourceGutterRenderer.xpad': 'gint',
|
|
375
|
+
'GtkSourceGutterRenderer.yalign': 'gfloat',
|
|
376
|
+
'GtkSourceGutterRenderer.ypad': 'gint',
|
|
377
|
+
'GtkSourceGutterRendererPixbuf.gicon': 'GIcon',
|
|
378
|
+
'GtkSourceGutterRendererPixbuf.icon-name': 'gchararray',
|
|
379
|
+
'GtkSourceGutterRendererPixbuf.paintable': 'GdkPaintable',
|
|
380
|
+
'GtkSourceGutterRendererPixbuf.pixbuf': 'GdkPixbuf',
|
|
381
|
+
'GtkSourceGutterRendererText.markup': 'gchararray',
|
|
382
|
+
'GtkSourceGutterRendererText.text': 'gchararray',
|
|
383
|
+
'GtkSourceHover.hover-delay': 'guint',
|
|
384
|
+
'GtkSourceMap.view': 'GtkSourceView',
|
|
385
|
+
'GtkSourceMark.category': 'gchararray',
|
|
386
|
+
'GtkSourceMarkAttributes.gicon': 'GIcon',
|
|
387
|
+
'GtkSourceMarkAttributes.icon-name': 'gchararray',
|
|
388
|
+
'GtkSourceMarkAttributes.pixbuf': 'GdkPixbuf',
|
|
389
|
+
'GtkSourcePrintCompositor.body-font-name': 'gchararray',
|
|
390
|
+
'GtkSourcePrintCompositor.buffer': 'GtkSourceBuffer',
|
|
391
|
+
'GtkSourcePrintCompositor.footer-font-name': 'gchararray',
|
|
392
|
+
'GtkSourcePrintCompositor.header-font-name': 'gchararray',
|
|
393
|
+
'GtkSourcePrintCompositor.highlight-syntax': 'gboolean',
|
|
394
|
+
'GtkSourcePrintCompositor.line-numbers-font-name': 'gchararray',
|
|
395
|
+
'GtkSourcePrintCompositor.print-footer': 'gboolean',
|
|
396
|
+
'GtkSourcePrintCompositor.print-header': 'gboolean',
|
|
397
|
+
'GtkSourcePrintCompositor.print-line-numbers': 'guint',
|
|
398
|
+
'GtkSourcePrintCompositor.tab-width': 'guint',
|
|
399
|
+
'GtkSourcePrintCompositor.wrap-mode': 'GtkWrapMode',
|
|
400
|
+
'GtkSourceRegion.buffer': 'GtkTextBuffer',
|
|
401
|
+
'GtkSourceSearchContext.buffer': 'GtkSourceBuffer',
|
|
402
|
+
'GtkSourceSearchContext.highlight': 'gboolean',
|
|
403
|
+
'GtkSourceSearchContext.match-style': 'GtkSourceStyle',
|
|
404
|
+
'GtkSourceSearchContext.settings': 'GtkSourceSearchSettings',
|
|
405
|
+
'GtkSourceSearchSettings.at-word-boundaries': 'gboolean',
|
|
406
|
+
'GtkSourceSearchSettings.case-sensitive': 'gboolean',
|
|
407
|
+
'GtkSourceSearchSettings.regex-enabled': 'gboolean',
|
|
408
|
+
'GtkSourceSearchSettings.search-text': 'gchararray',
|
|
409
|
+
'GtkSourceSearchSettings.visible-only': 'gboolean',
|
|
410
|
+
'GtkSourceSearchSettings.wrap-around': 'gboolean',
|
|
411
|
+
'GtkSourceSnippet.description': 'gchararray',
|
|
412
|
+
'GtkSourceSnippet.language-id': 'gchararray',
|
|
413
|
+
'GtkSourceSnippet.name': 'gchararray',
|
|
414
|
+
'GtkSourceSnippet.trigger': 'gchararray',
|
|
415
|
+
'GtkSourceSnippetChunk.context': 'GtkSourceSnippetContext',
|
|
416
|
+
'GtkSourceSnippetChunk.focus-position': 'gint',
|
|
417
|
+
'GtkSourceSnippetChunk.spec': 'gchararray',
|
|
418
|
+
'GtkSourceSnippetChunk.text': 'gchararray',
|
|
419
|
+
'GtkSourceSnippetChunk.text-set': 'gboolean',
|
|
420
|
+
'GtkSourceSnippetChunk.tooltip-text': 'gchararray',
|
|
421
|
+
'GtkSourceSpaceDrawer.enable-matrix': 'gboolean',
|
|
422
|
+
'GtkSourceStyle.background': 'gchararray',
|
|
423
|
+
'GtkSourceStyle.background-set': 'gboolean',
|
|
424
|
+
'GtkSourceStyle.bold': 'gboolean',
|
|
425
|
+
'GtkSourceStyle.bold-set': 'gboolean',
|
|
426
|
+
'GtkSourceStyle.foreground': 'gchararray',
|
|
427
|
+
'GtkSourceStyle.foreground-set': 'gboolean',
|
|
428
|
+
'GtkSourceStyle.italic': 'gboolean',
|
|
429
|
+
'GtkSourceStyle.italic-set': 'gboolean',
|
|
430
|
+
'GtkSourceStyle.line-background': 'gchararray',
|
|
431
|
+
'GtkSourceStyle.line-background-set': 'gboolean',
|
|
432
|
+
'GtkSourceStyle.pango-underline': 'PangoUnderline',
|
|
433
|
+
'GtkSourceStyle.scale': 'gchararray',
|
|
434
|
+
'GtkSourceStyle.scale-set': 'gboolean',
|
|
435
|
+
'GtkSourceStyle.strikethrough': 'gboolean',
|
|
436
|
+
'GtkSourceStyle.strikethrough-set': 'gboolean',
|
|
437
|
+
'GtkSourceStyle.underline-color': 'gchararray',
|
|
438
|
+
'GtkSourceStyle.underline-color-set': 'gboolean',
|
|
439
|
+
'GtkSourceStyle.underline-set': 'gboolean',
|
|
440
|
+
'GtkSourceStyle.weight': 'PangoWeight',
|
|
441
|
+
'GtkSourceStyle.weight-set': 'gboolean',
|
|
442
|
+
'GtkSourceStyleScheme.id': 'gchararray',
|
|
443
|
+
'GtkSourceStyleSchemeChooser.style-scheme': 'GtkSourceStyleScheme',
|
|
444
|
+
'GtkSourceStyleSchemePreview.scheme': 'GtkSourceStyleScheme',
|
|
445
|
+
'GtkSourceStyleSchemePreview.selected': 'gboolean',
|
|
446
|
+
'GtkSourceTag.draw-spaces': 'gboolean',
|
|
447
|
+
'GtkSourceTag.draw-spaces-set': 'gboolean',
|
|
448
|
+
'GtkSourceView.auto-indent': 'gboolean',
|
|
449
|
+
'GtkSourceView.background-pattern': 'GtkSourceBackgroundPatternType',
|
|
450
|
+
'GtkSourceView.enable-snippets': 'gboolean',
|
|
451
|
+
'GtkSourceView.highlight-current-line': 'gboolean',
|
|
452
|
+
'GtkSourceView.indent-on-tab': 'gboolean',
|
|
453
|
+
'GtkSourceView.indent-width': 'gint',
|
|
454
|
+
'GtkSourceView.indenter': 'GtkSourceIndenter',
|
|
455
|
+
'GtkSourceView.insert-spaces-instead-of-tabs': 'gboolean',
|
|
456
|
+
'GtkSourceView.right-margin-position': 'guint',
|
|
457
|
+
'GtkSourceView.show-line-marks': 'gboolean',
|
|
458
|
+
'GtkSourceView.show-line-numbers': 'gboolean',
|
|
459
|
+
'GtkSourceView.show-right-margin': 'gboolean',
|
|
460
|
+
'GtkSourceView.smart-backspace': 'gboolean',
|
|
461
|
+
'GtkSourceView.smart-home-end': 'GtkSourceSmartHomeEndType',
|
|
462
|
+
'GtkSourceView.tab-width': 'guint',
|
|
463
|
+
};
|
|
464
|
+
|
|
324
465
|
// `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
|
|
325
466
|
//
|
|
326
467
|
// The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtksource-5",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"libraryVersion": "5.21.0",
|
|
5
5
|
"description": "GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0",
|
|
6
6
|
"type": "module",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"test": "tsc --project tsconfig.json"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@girs/gjs": "^5.
|
|
41
|
-
"@girs/gtk-4.0": "^5.
|
|
42
|
-
"@girs/gsk-4.0": "^5.
|
|
43
|
-
"@girs/graphene-1.0": "^5.
|
|
44
|
-
"@girs/gobject-2.0": "^5.
|
|
45
|
-
"@girs/glib-2.0": "^5.
|
|
46
|
-
"@girs/gdk-4.0": "^5.
|
|
47
|
-
"@girs/cairo-1.0": "^5.
|
|
48
|
-
"@girs/pangocairo-1.0": "^5.
|
|
49
|
-
"@girs/pango-1.0": "^5.
|
|
50
|
-
"@girs/harfbuzz-0.0": "^5.
|
|
51
|
-
"@girs/freetype2-2.0": "^5.
|
|
52
|
-
"@girs/gio-2.0": "^5.
|
|
53
|
-
"@girs/gmodule-2.0": "^5.
|
|
54
|
-
"@girs/gdkpixbuf-2.0": "^5.
|
|
40
|
+
"@girs/gjs": "^5.4.0",
|
|
41
|
+
"@girs/gtk-4.0": "^5.4.0",
|
|
42
|
+
"@girs/gsk-4.0": "^5.4.0",
|
|
43
|
+
"@girs/graphene-1.0": "^5.4.0",
|
|
44
|
+
"@girs/gobject-2.0": "^5.4.0",
|
|
45
|
+
"@girs/glib-2.0": "^5.4.0",
|
|
46
|
+
"@girs/gdk-4.0": "^5.4.0",
|
|
47
|
+
"@girs/cairo-1.0": "^5.4.0",
|
|
48
|
+
"@girs/pangocairo-1.0": "^5.4.0",
|
|
49
|
+
"@girs/pango-1.0": "^5.4.0",
|
|
50
|
+
"@girs/harfbuzz-0.0": "^5.4.0",
|
|
51
|
+
"@girs/freetype2-2.0": "^5.4.0",
|
|
52
|
+
"@girs/gio-2.0": "^5.4.0",
|
|
53
|
+
"@girs/gmodule-2.0": "^5.4.0",
|
|
54
|
+
"@girs/gdkpixbuf-2.0": "^5.4.0" },
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"typescript": "*"
|
|
57
57
|
},
|