@girs/harfbuzz-0.0 8.2.1-3.2.7 → 8.2.1-3.3.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/harfbuzz-0.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.2.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
8
+ GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.2.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.3.0.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
@@ -3784,14 +3784,14 @@ export function buffer_append(buffer: buffer_t, source: buffer_t, start: number,
3784
3784
  export function buffer_clear_contents(buffer: buffer_t): void
3785
3785
  /**
3786
3786
  * Creates a new #hb_buffer_t with all properties to defaults.
3787
- * @returns A newly allocated #hb_buffer_t with a reference count of 1. The initial reference count should be released with hb_buffer_destroy() when you are done using the #hb_buffer_t. This function never returns `NULL`. If memory cannot be allocated, a special #hb_buffer_t object will be returned on which hb_buffer_allocation_successful() returns `false`.
3787
+ * @returns A newly allocated #hb_buffer_t with a reference count of 1. The initial reference count should be released with hb_buffer_destroy() when you are done using the #hb_buffer_t. This function never returns `NULL`. If memory cannot be allocated, a special #hb_buffer_t object will be returned on which hb_buffer_allocation_successful() returns `false`.
3788
3788
  */
3789
3789
  export function buffer_create(): buffer_t
3790
3790
  /**
3791
3791
  * Creates a new #hb_buffer_t, similar to hb_buffer_create(). The only
3792
3792
  * difference is that the buffer is configured similarly to `src`.
3793
3793
  * @param src An #hb_buffer_t
3794
- * @returns A newly allocated #hb_buffer_t, similar to hb_buffer_create().
3794
+ * @returns A newly allocated #hb_buffer_t, similar to hb_buffer_create().
3795
3795
  */
3796
3796
  export function buffer_create_similar(src: buffer_t): buffer_t
3797
3797
  /**
@@ -3859,7 +3859,7 @@ export function buffer_get_flags(buffer: buffer_t): buffer_flags_t
3859
3859
  * Returns `buffer` glyph information array. Returned pointer
3860
3860
  * is valid as long as `buffer` contents are not modified.
3861
3861
  * @param buffer An #hb_buffer_t
3862
- * @returns The @buffer glyph information array. The value valid as long as buffer has not been modified.
3862
+ * @returns The @buffer glyph information array. The value valid as long as buffer has not been modified.
3863
3863
  */
3864
3864
  export function buffer_get_glyph_infos(buffer: buffer_t): glyph_info_t[]
3865
3865
  /**
@@ -3871,7 +3871,7 @@ export function buffer_get_glyph_infos(buffer: buffer_t): glyph_info_t[]
3871
3871
  * within a buffer message callback (see hb_buffer_set_message_func()),
3872
3872
  * in which case `NULL` is returned.
3873
3873
  * @param buffer An #hb_buffer_t
3874
- * @returns The @buffer glyph position array. The value valid as long as buffer has not been modified.
3874
+ * @returns The @buffer glyph position array. The value valid as long as buffer has not been modified.
3875
3875
  */
3876
3876
  export function buffer_get_glyph_positions(buffer: buffer_t): glyph_position_t[]
3877
3877
  /**
@@ -3883,7 +3883,7 @@ export function buffer_get_invisible_glyph(buffer: buffer_t): codepoint_t
3883
3883
  /**
3884
3884
  * See hb_buffer_set_language().
3885
3885
  * @param buffer An #hb_buffer_t
3886
- * @returns The #hb_language_t of the buffer. Must not be freed by the caller.
3886
+ * @returns The #hb_language_t of the buffer. Must not be freed by the caller.
3887
3887
  */
3888
3888
  export function buffer_get_language(buffer: buffer_t): language_t
3889
3889
  /**
@@ -4022,7 +4022,7 @@ export function buffer_serialize_format_from_string(str: Uint8Array): buffer_ser
4022
4022
  * Converts `format` to the string corresponding it, or `NULL` if it is not a valid
4023
4023
  * #hb_buffer_serialize_format_t.
4024
4024
  * @param format an #hb_buffer_serialize_format_t to convert.
4025
- * @returns A `NULL` terminated string corresponding to @format. Should not be freed.
4025
+ * @returns A `NULL` terminated string corresponding to @format. Should not be freed.
4026
4026
  */
4027
4027
  export function buffer_serialize_format_to_string(format: buffer_serialize_format_t): string
4028
4028
  /**
@@ -4079,7 +4079,7 @@ export function buffer_serialize_format_to_string(format: buffer_serialize_forma
4079
4079
  export function buffer_serialize_glyphs(buffer: buffer_t, start: number, end: number, font: font_t | null, format: buffer_serialize_format_t, flags: buffer_serialize_flags_t): [ /* returnType */ number, /* buf */ Uint8Array, /* buf_consumed */ number ]
4080
4080
  /**
4081
4081
  * Returns a list of supported buffer serialization formats.
4082
- * @returns A string array of buffer serialization formats. Should not be freed.
4082
+ * @returns A string array of buffer serialization formats. Should not be freed.
4083
4083
  */
4084
4084
  export function buffer_serialize_list_formats(): string[]
4085
4085
  /**
@@ -4347,7 +4347,7 @@ export function draw_close_path(dfuncs: draw_funcs_t, draw_data: any | null, st:
4347
4347
  export function draw_cubic_to(dfuncs: draw_funcs_t, draw_data: any | null, st: draw_state_t, control1_x: number, control1_y: number, control2_x: number, control2_y: number, to_x: number, to_y: number): void
4348
4348
  /**
4349
4349
  * Creates a new draw callbacks object.
4350
- * @returns A newly allocated #hb_draw_funcs_t with a reference count of 1. The initial reference count should be released with hb_draw_funcs_destroy when you are done using the #hb_draw_funcs_t. This function never returns `NULL`. If memory cannot be allocated, a special singleton #hb_draw_funcs_t object will be returned.
4350
+ * @returns A newly allocated #hb_draw_funcs_t with a reference count of 1. The initial reference count should be released with hb_draw_funcs_destroy when you are done using the #hb_draw_funcs_t. This function never returns `NULL`. If memory cannot be allocated, a special singleton #hb_draw_funcs_t object will be returned.
4351
4351
  */
4352
4352
  export function draw_funcs_create(): draw_funcs_t
4353
4353
  /**
@@ -5631,7 +5631,7 @@ export function glyph_info_get_glyph_flags(info: glyph_info_t): glyph_flags_t
5631
5631
  * Converts `str` representing a BCP 47 language tag to the corresponding
5632
5632
  * #hb_language_t.
5633
5633
  * @param str a string representing a BCP 47 language tag
5634
- * @returns The #hb_language_t corresponding to the BCP 47 language tag.
5634
+ * @returns The #hb_language_t corresponding to the BCP 47 language tag.
5635
5635
  */
5636
5636
  export function language_from_string(str: Uint8Array): language_t
5637
5637
  /**
@@ -5658,7 +5658,7 @@ export function language_matches(language: language_t, specific: language_t): bo
5658
5658
  /**
5659
5659
  * Converts an #hb_language_t to a string.
5660
5660
  * @param language The #hb_language_t to convert
5661
- * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
5661
+ * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
5662
5662
  */
5663
5663
  export function language_to_string(language: language_t): string
5664
5664
  /**
@@ -6610,7 +6610,7 @@ export function ot_tag_from_language(language: language_t): tag_t
6610
6610
  /**
6611
6611
  * Converts a language tag to an #hb_language_t.
6612
6612
  * @param tag an language tag
6613
- * @returns The #hb_language_t corresponding to @tag.
6613
+ * @returns The #hb_language_t corresponding to @tag.
6614
6614
  */
6615
6615
  export function ot_tag_to_language(tag: tag_t): language_t | null
6616
6616
  /**
@@ -8748,7 +8748,7 @@ export interface language_t {
8748
8748
 
8749
8749
  /**
8750
8750
  * Converts an #hb_language_t to a string.
8751
- * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
8751
+ * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
8752
8752
  */
8753
8753
  _string(): string
8754
8754
  }
package/harfbuzz-0.0.d.ts CHANGED
@@ -3786,14 +3786,14 @@ function buffer_append(buffer: buffer_t, source: buffer_t, start: number, end: n
3786
3786
  function buffer_clear_contents(buffer: buffer_t): void
3787
3787
  /**
3788
3788
  * Creates a new #hb_buffer_t with all properties to defaults.
3789
- * @returns A newly allocated #hb_buffer_t with a reference count of 1. The initial reference count should be released with hb_buffer_destroy() when you are done using the #hb_buffer_t. This function never returns `NULL`. If memory cannot be allocated, a special #hb_buffer_t object will be returned on which hb_buffer_allocation_successful() returns `false`.
3789
+ * @returns A newly allocated #hb_buffer_t with a reference count of 1. The initial reference count should be released with hb_buffer_destroy() when you are done using the #hb_buffer_t. This function never returns `NULL`. If memory cannot be allocated, a special #hb_buffer_t object will be returned on which hb_buffer_allocation_successful() returns `false`.
3790
3790
  */
3791
3791
  function buffer_create(): buffer_t
3792
3792
  /**
3793
3793
  * Creates a new #hb_buffer_t, similar to hb_buffer_create(). The only
3794
3794
  * difference is that the buffer is configured similarly to `src`.
3795
3795
  * @param src An #hb_buffer_t
3796
- * @returns A newly allocated #hb_buffer_t, similar to hb_buffer_create().
3796
+ * @returns A newly allocated #hb_buffer_t, similar to hb_buffer_create().
3797
3797
  */
3798
3798
  function buffer_create_similar(src: buffer_t): buffer_t
3799
3799
  /**
@@ -3861,7 +3861,7 @@ function buffer_get_flags(buffer: buffer_t): buffer_flags_t
3861
3861
  * Returns `buffer` glyph information array. Returned pointer
3862
3862
  * is valid as long as `buffer` contents are not modified.
3863
3863
  * @param buffer An #hb_buffer_t
3864
- * @returns The @buffer glyph information array. The value valid as long as buffer has not been modified.
3864
+ * @returns The @buffer glyph information array. The value valid as long as buffer has not been modified.
3865
3865
  */
3866
3866
  function buffer_get_glyph_infos(buffer: buffer_t): glyph_info_t[]
3867
3867
  /**
@@ -3873,7 +3873,7 @@ function buffer_get_glyph_infos(buffer: buffer_t): glyph_info_t[]
3873
3873
  * within a buffer message callback (see hb_buffer_set_message_func()),
3874
3874
  * in which case `NULL` is returned.
3875
3875
  * @param buffer An #hb_buffer_t
3876
- * @returns The @buffer glyph position array. The value valid as long as buffer has not been modified.
3876
+ * @returns The @buffer glyph position array. The value valid as long as buffer has not been modified.
3877
3877
  */
3878
3878
  function buffer_get_glyph_positions(buffer: buffer_t): glyph_position_t[]
3879
3879
  /**
@@ -3885,7 +3885,7 @@ function buffer_get_invisible_glyph(buffer: buffer_t): codepoint_t
3885
3885
  /**
3886
3886
  * See hb_buffer_set_language().
3887
3887
  * @param buffer An #hb_buffer_t
3888
- * @returns The #hb_language_t of the buffer. Must not be freed by the caller.
3888
+ * @returns The #hb_language_t of the buffer. Must not be freed by the caller.
3889
3889
  */
3890
3890
  function buffer_get_language(buffer: buffer_t): language_t
3891
3891
  /**
@@ -4024,7 +4024,7 @@ function buffer_serialize_format_from_string(str: Uint8Array): buffer_serialize_
4024
4024
  * Converts `format` to the string corresponding it, or `NULL` if it is not a valid
4025
4025
  * #hb_buffer_serialize_format_t.
4026
4026
  * @param format an #hb_buffer_serialize_format_t to convert.
4027
- * @returns A `NULL` terminated string corresponding to @format. Should not be freed.
4027
+ * @returns A `NULL` terminated string corresponding to @format. Should not be freed.
4028
4028
  */
4029
4029
  function buffer_serialize_format_to_string(format: buffer_serialize_format_t): string
4030
4030
  /**
@@ -4081,7 +4081,7 @@ function buffer_serialize_format_to_string(format: buffer_serialize_format_t): s
4081
4081
  function buffer_serialize_glyphs(buffer: buffer_t, start: number, end: number, font: font_t | null, format: buffer_serialize_format_t, flags: buffer_serialize_flags_t): [ /* returnType */ number, /* buf */ Uint8Array, /* buf_consumed */ number ]
4082
4082
  /**
4083
4083
  * Returns a list of supported buffer serialization formats.
4084
- * @returns A string array of buffer serialization formats. Should not be freed.
4084
+ * @returns A string array of buffer serialization formats. Should not be freed.
4085
4085
  */
4086
4086
  function buffer_serialize_list_formats(): string[]
4087
4087
  /**
@@ -4349,7 +4349,7 @@ function draw_close_path(dfuncs: draw_funcs_t, draw_data: any | null, st: draw_s
4349
4349
  function draw_cubic_to(dfuncs: draw_funcs_t, draw_data: any | null, st: draw_state_t, control1_x: number, control1_y: number, control2_x: number, control2_y: number, to_x: number, to_y: number): void
4350
4350
  /**
4351
4351
  * Creates a new draw callbacks object.
4352
- * @returns A newly allocated #hb_draw_funcs_t with a reference count of 1. The initial reference count should be released with hb_draw_funcs_destroy when you are done using the #hb_draw_funcs_t. This function never returns `NULL`. If memory cannot be allocated, a special singleton #hb_draw_funcs_t object will be returned.
4352
+ * @returns A newly allocated #hb_draw_funcs_t with a reference count of 1. The initial reference count should be released with hb_draw_funcs_destroy when you are done using the #hb_draw_funcs_t. This function never returns `NULL`. If memory cannot be allocated, a special singleton #hb_draw_funcs_t object will be returned.
4353
4353
  */
4354
4354
  function draw_funcs_create(): draw_funcs_t
4355
4355
  /**
@@ -5633,7 +5633,7 @@ function glyph_info_get_glyph_flags(info: glyph_info_t): glyph_flags_t
5633
5633
  * Converts `str` representing a BCP 47 language tag to the corresponding
5634
5634
  * #hb_language_t.
5635
5635
  * @param str a string representing a BCP 47 language tag
5636
- * @returns The #hb_language_t corresponding to the BCP 47 language tag.
5636
+ * @returns The #hb_language_t corresponding to the BCP 47 language tag.
5637
5637
  */
5638
5638
  function language_from_string(str: Uint8Array): language_t
5639
5639
  /**
@@ -5660,7 +5660,7 @@ function language_matches(language: language_t, specific: language_t): bool_t
5660
5660
  /**
5661
5661
  * Converts an #hb_language_t to a string.
5662
5662
  * @param language The #hb_language_t to convert
5663
- * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
5663
+ * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
5664
5664
  */
5665
5665
  function language_to_string(language: language_t): string
5666
5666
  /**
@@ -6612,7 +6612,7 @@ function ot_tag_from_language(language: language_t): tag_t
6612
6612
  /**
6613
6613
  * Converts a language tag to an #hb_language_t.
6614
6614
  * @param tag an language tag
6615
- * @returns The #hb_language_t corresponding to @tag.
6615
+ * @returns The #hb_language_t corresponding to @tag.
6616
6616
  */
6617
6617
  function ot_tag_to_language(tag: tag_t): language_t | null
6618
6618
  /**
@@ -8750,7 +8750,7 @@ interface language_t {
8750
8750
 
8751
8751
  /**
8752
8752
  * Converts an #hb_language_t to a string.
8753
- * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
8753
+ * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
8754
8754
  */
8755
8755
  _string(): string
8756
8756
  }
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/harfbuzz-0.0",
3
- "version": "8.2.1-3.2.7",
3
+ "version": "8.2.1-3.3.0",
4
4
  "description": "GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.2.1",
5
5
  "type": "module",
6
6
  "module": "harfbuzz-0.0.js",
7
7
  "main": "harfbuzz-0.0.js",
8
8
  "exports": {
9
- "./ambient": "./harfbuzz-0.0-ambient.d.ts",
10
- "./import": "./harfbuzz-0.0-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./harfbuzz-0.0-ambient.d.ts",
11
+ "default": "./harfbuzz-0.0-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./harfbuzz-0.0-import.d.ts",
15
+ "default": "./harfbuzz-0.0-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./harfbuzz-0.0.d.ts",
@@ -25,10 +31,10 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit harfbuzz-0.0.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/freetype2-2.0": "^2.0.0-3.2.7",
29
- "@girs/gjs": "^3.2.7",
30
- "@girs/glib-2.0": "^2.78.0-3.2.7",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.7"
34
+ "@girs/freetype2-2.0": "^2.0.0-3.3.0",
35
+ "@girs/gjs": "^3.3.0",
36
+ "@girs/glib-2.0": "^2.78.0-3.3.0",
37
+ "@girs/gobject-2.0": "^2.78.0-3.3.0"
32
38
  },
33
39
  "devDependencies": {
34
40
  "typescript": "*"
@@ -45,7 +51,7 @@
45
51
  "license": "MIT",
46
52
  "repository": {
47
53
  "type": "git",
48
- "url": "git+https://github.com/gjsify/types.git"
54
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
49
55
  },
50
56
  "bugs": {
51
57
  "url": "https://github.com/gjsify/ts-for-gir/issues"