@gtkx/ffi 0.1.48 → 0.1.49
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/dist/codegen/ffi-generator.js +13 -11
- package/dist/generated/gdk/color-state.js +30 -5
- package/dist/generated/gdk/content-formats-builder.js +36 -6
- package/dist/generated/gdk/content-formats.js +102 -17
- package/dist/generated/gdk/content-provider.d.ts +1 -1
- package/dist/generated/gdk/dmabuf-formats.js +36 -6
- package/dist/generated/gdk/file-list.js +6 -1
- package/dist/generated/gdk/frame-timings.js +48 -8
- package/dist/generated/gdk/functions.d.ts +1 -1
- package/dist/generated/gdk/monitor.d.ts +1 -2
- package/dist/generated/gdk/popup-layout.js +96 -16
- package/dist/generated/gdk/rectangle.d.ts +2 -2
- package/dist/generated/gdk/rectangle.js +24 -4
- package/dist/generated/gdk/rgba.js +48 -8
- package/dist/generated/gdk/texture-downloader.js +66 -11
- package/dist/generated/gdk/toplevel-layout.js +66 -11
- package/dist/generated/gdkpixbuf/pixbuf-format.js +72 -12
- package/dist/generated/gio/action-group.d.ts +1 -1
- package/dist/generated/gio/application.d.ts +1 -1
- package/dist/generated/gio/dbus-action-group.d.ts +1 -1
- package/dist/generated/gio/dbus-annotation-info.js +12 -2
- package/dist/generated/gio/dbus-arg-info.js +12 -2
- package/dist/generated/gio/dbus-connection.d.ts +2 -2
- package/dist/generated/gio/dbus-interface-info.js +48 -8
- package/dist/generated/gio/dbus-method-info.js +12 -2
- package/dist/generated/gio/dbus-node-info.js +24 -4
- package/dist/generated/gio/dbus-property-info.js +12 -2
- package/dist/generated/gio/dbus-proxy.d.ts +2 -2
- package/dist/generated/gio/dbus-signal-info.js +12 -2
- package/dist/generated/gio/dtls-connection.d.ts +1 -2
- package/dist/generated/gio/file-attribute-info-list.js +30 -5
- package/dist/generated/gio/file-attribute-matcher.js +48 -8
- package/dist/generated/gio/file-enumerator.d.ts +1 -1
- package/dist/generated/gio/file.d.ts +1 -1
- package/dist/generated/gio/functions.d.ts +4 -5
- package/dist/generated/gio/menu-attribute-iter.d.ts +1 -1
- package/dist/generated/gio/menu-link-iter.d.ts +1 -1
- package/dist/generated/gio/resource.js +54 -9
- package/dist/generated/gio/settings-schema-key.js +54 -9
- package/dist/generated/gio/settings-schema-source.js +24 -4
- package/dist/generated/gio/settings-schema.js +48 -8
- package/dist/generated/gio/simple-action-group.d.ts +1 -1
- package/dist/generated/gio/socket-listener.d.ts +5 -5
- package/dist/generated/gio/socket.d.ts +3 -3
- package/dist/generated/gio/srv-target.js +36 -6
- package/dist/generated/gio/subprocess.d.ts +2 -2
- package/dist/generated/gio/task.d.ts +1 -1
- package/dist/generated/gio/tls-connection.d.ts +1 -2
- package/dist/generated/glib/bookmark-file.d.ts +1 -1
- package/dist/generated/glib/bookmark-file.js +282 -47
- package/dist/generated/glib/bytes.js +66 -11
- package/dist/generated/glib/checksum.js +30 -5
- package/dist/generated/glib/date-time.js +240 -40
- package/dist/generated/glib/date.js +216 -36
- package/dist/generated/glib/dir.js +30 -5
- package/dist/generated/glib/error.js +18 -3
- package/dist/generated/glib/functions.d.ts +3 -3
- package/dist/generated/glib/hmac.js +36 -6
- package/dist/generated/glib/iochannel.js +186 -31
- package/dist/generated/glib/key-file.js +270 -45
- package/dist/generated/glib/main-context.js +132 -22
- package/dist/generated/glib/main-loop.js +36 -6
- package/dist/generated/glib/mapped-file.js +36 -6
- package/dist/generated/glib/markup-parse-context.js +66 -11
- package/dist/generated/glib/match-info.js +90 -15
- package/dist/generated/glib/option-group.js +36 -6
- package/dist/generated/glib/pattern-spec.js +30 -5
- package/dist/generated/glib/rand.js +48 -8
- package/dist/generated/glib/regex.d.ts +4 -5
- package/dist/generated/glib/regex.js +114 -19
- package/dist/generated/glib/source.js +180 -30
- package/dist/generated/glib/string.js +180 -30
- package/dist/generated/glib/strv-builder.js +42 -7
- package/dist/generated/glib/thread.js +24 -4
- package/dist/generated/glib/time-zone.js +48 -8
- package/dist/generated/glib/tree.js +144 -24
- package/dist/generated/glib/uri.js +84 -14
- package/dist/generated/glib/variant-builder.js +36 -6
- package/dist/generated/glib/variant-dict.js +48 -8
- package/dist/generated/glib/variant-type.js +126 -21
- package/dist/generated/glib/variant.js +282 -47
- package/dist/generated/gobject/closure.d.ts +1 -1
- package/dist/generated/gobject/closure.js +30 -5
- package/dist/generated/gobject/functions.d.ts +1 -1
- package/dist/generated/gobject/value-array.js +48 -8
- package/dist/generated/gobject/value.js +379 -64
- package/dist/generated/graphene/box.d.ts +10 -11
- package/dist/generated/graphene/box.js +138 -23
- package/dist/generated/graphene/euler.d.ts +4 -4
- package/dist/generated/graphene/euler.js +120 -20
- package/dist/generated/graphene/frustum.js +54 -9
- package/dist/generated/graphene/matrix.d.ts +23 -24
- package/dist/generated/graphene/matrix.js +396 -66
- package/dist/generated/graphene/plane.d.ts +4 -4
- package/dist/generated/graphene/plane.js +78 -13
- package/dist/generated/graphene/point.d.ts +2 -2
- package/dist/generated/graphene/point.js +54 -9
- package/dist/generated/graphene/point3d.d.ts +7 -7
- package/dist/generated/graphene/point3d.js +90 -15
- package/dist/generated/graphene/quad.d.ts +1 -1
- package/dist/generated/graphene/quad.js +42 -7
- package/dist/generated/graphene/quaternion.d.ts +9 -9
- package/dist/generated/graphene/quaternion.js +138 -23
- package/dist/generated/graphene/ray.d.ts +4 -4
- package/dist/generated/graphene/ray.js +102 -17
- package/dist/generated/graphene/rect.d.ts +15 -15
- package/dist/generated/graphene/rect.js +186 -31
- package/dist/generated/graphene/size.d.ts +2 -2
- package/dist/generated/graphene/size.js +36 -6
- package/dist/generated/graphene/sphere.d.ts +3 -4
- package/dist/generated/graphene/sphere.js +72 -12
- package/dist/generated/graphene/triangle.d.ts +8 -10
- package/dist/generated/graphene/triangle.js +90 -15
- package/dist/generated/graphene/vec2.d.ts +10 -10
- package/dist/generated/graphene/vec2.js +126 -21
- package/dist/generated/graphene/vec3.d.ts +16 -18
- package/dist/generated/graphene/vec3.js +168 -28
- package/dist/generated/graphene/vec4.d.ts +12 -12
- package/dist/generated/graphene/vec4.js +162 -27
- package/dist/generated/gsk/component-transfer.js +12 -2
- package/dist/generated/gsk/functions.d.ts +1 -2
- package/dist/generated/gsk/path-builder.js +174 -29
- package/dist/generated/gsk/path-measure.d.ts +1 -2
- package/dist/generated/gsk/path-measure.js +36 -6
- package/dist/generated/gsk/path-point.d.ts +3 -4
- package/dist/generated/gsk/path-point.js +54 -9
- package/dist/generated/gsk/path.d.ts +5 -6
- package/dist/generated/gsk/path.js +90 -15
- package/dist/generated/gsk/render-node.d.ts +2 -3
- package/dist/generated/gsk/shader-args-builder.js +60 -10
- package/dist/generated/gsk/stroke.js +90 -15
- package/dist/generated/gsk/transform.d.ts +4 -4
- package/dist/generated/gsk/transform.js +150 -25
- package/dist/generated/gtk/accessible-list.js +6 -1
- package/dist/generated/gtk/bitset-iter.d.ts +3 -3
- package/dist/generated/gtk/bitset-iter.js +25 -5
- package/dist/generated/gtk/bitset.js +162 -27
- package/dist/generated/gtk/border.js +12 -2
- package/dist/generated/gtk/builder.d.ts +2 -2
- package/dist/generated/gtk/cell-area.d.ts +3 -3
- package/dist/generated/gtk/cell-renderer.d.ts +2 -3
- package/dist/generated/gtk/color-button.d.ts +1 -1
- package/dist/generated/gtk/color-chooser-dialog.d.ts +1 -1
- package/dist/generated/gtk/color-chooser-widget.d.ts +1 -1
- package/dist/generated/gtk/color-chooser.d.ts +1 -1
- package/dist/generated/gtk/column-view.d.ts +1 -2
- package/dist/generated/gtk/combo-box.d.ts +1 -1
- package/dist/generated/gtk/css-section.js +54 -9
- package/dist/generated/gtk/entry.d.ts +1 -1
- package/dist/generated/gtk/expression-watch.js +24 -4
- package/dist/generated/gtk/font-dialog.d.ts +2 -2
- package/dist/generated/gtk/functions.d.ts +4 -5
- package/dist/generated/gtk/gesture.d.ts +1 -1
- package/dist/generated/gtk/icon-view.d.ts +7 -9
- package/dist/generated/gtk/imcontext.d.ts +1 -2
- package/dist/generated/gtk/list-base.d.ts +1 -2
- package/dist/generated/gtk/list-store.d.ts +13 -13
- package/dist/generated/gtk/paper-size.js +102 -17
- package/dist/generated/gtk/popover.d.ts +1 -1
- package/dist/generated/gtk/print-setup.js +24 -4
- package/dist/generated/gtk/range.d.ts +1 -2
- package/dist/generated/gtk/recent-info.d.ts +1 -1
- package/dist/generated/gtk/recent-info.js +144 -24
- package/dist/generated/gtk/requisition.js +12 -2
- package/dist/generated/gtk/scroll-info.js +36 -6
- package/dist/generated/gtk/scrollable.d.ts +1 -2
- package/dist/generated/gtk/style-context.d.ts +5 -6
- package/dist/generated/gtk/text-buffer.d.ts +10 -10
- package/dist/generated/gtk/text-iter.d.ts +2 -2
- package/dist/generated/gtk/text-iter.js +545 -95
- package/dist/generated/gtk/text-view.d.ts +7 -8
- package/dist/generated/gtk/text.d.ts +1 -2
- package/dist/generated/gtk/tree-iter.js +12 -2
- package/dist/generated/gtk/tree-model-filter.d.ts +9 -9
- package/dist/generated/gtk/tree-model-sort.d.ts +9 -9
- package/dist/generated/gtk/tree-model.d.ts +7 -8
- package/dist/generated/gtk/tree-path.js +84 -14
- package/dist/generated/gtk/tree-row-reference.js +30 -5
- package/dist/generated/gtk/tree-selection.d.ts +2 -3
- package/dist/generated/gtk/tree-store.d.ts +13 -13
- package/dist/generated/gtk/tree-view.d.ts +10 -11
- package/dist/generated/gtk/viewport.d.ts +1 -2
- package/dist/generated/gtk/widget.d.ts +5 -6
- package/dist/generated/gtksource/buffer.d.ts +4 -4
- package/dist/generated/gtksource/completion-context.d.ts +1 -2
- package/dist/generated/gtksource/encoding.js +30 -5
- package/dist/generated/gtksource/gutter-lines.d.ts +1 -1
- package/dist/generated/gtksource/hover-context.d.ts +2 -3
- package/dist/generated/gtksource/indenter.d.ts +1 -1
- package/dist/generated/gtksource/mark-attributes.d.ts +1 -1
- package/dist/generated/gtksource/region.d.ts +1 -1
- package/dist/generated/gtksource/search-context.d.ts +4 -4
- package/dist/generated/harfbuzz/draw-state-t.js +1 -1
- package/dist/generated/harfbuzz/feature-t.js +6 -1
- package/dist/generated/harfbuzz/functions.d.ts +16 -16
- package/dist/generated/harfbuzz/glyph-info-t.js +1 -1
- package/dist/generated/harfbuzz/glyph-position-t.js +1 -1
- package/dist/generated/harfbuzz/segment-properties-t.js +1 -1
- package/dist/generated/harfbuzz/user-data-key-t.js +1 -1
- package/dist/generated/pango/attr-iterator.d.ts +1 -2
- package/dist/generated/pango/attr-iterator.js +42 -7
- package/dist/generated/pango/attr-list.js +78 -13
- package/dist/generated/pango/attribute.js +78 -13
- package/dist/generated/pango/color.js +30 -5
- package/dist/generated/pango/font-description.js +222 -37
- package/dist/generated/pango/font-metrics.js +67 -12
- package/dist/generated/pango/functions.d.ts +6 -7
- package/dist/generated/pango/glyph-item-iter.js +36 -6
- package/dist/generated/pango/glyph-item.js +36 -6
- package/dist/generated/pango/glyph-string.js +60 -10
- package/dist/generated/pango/item.js +30 -5
- package/dist/generated/pango/language.js +30 -5
- package/dist/generated/pango/layout-iter.js +126 -21
- package/dist/generated/pango/layout-line.js +72 -12
- package/dist/generated/pango/matrix.js +78 -13
- package/dist/generated/pango/script-iter.js +18 -3
- package/dist/generated/pango/tab-array.js +78 -13
- package/package.json +3 -3
|
@@ -384,7 +384,7 @@ export declare const bufferGetScript: (buffer: BufferT) => ScriptT;
|
|
|
384
384
|
* @param buffer - An #hb_buffer_t
|
|
385
385
|
* @param props - The output #hb_segment_properties_t
|
|
386
386
|
*/
|
|
387
|
-
export declare const bufferGetSegmentProperties: (buffer: BufferT, props: Ref<
|
|
387
|
+
export declare const bufferGetSegmentProperties: (buffer: BufferT, props: Ref<unknown>) => void;
|
|
388
388
|
/**
|
|
389
389
|
* Fetches the Unicode-functions structure of a buffer.
|
|
390
390
|
* @param buffer - An #hb_buffer_t
|
|
@@ -961,21 +961,21 @@ export declare const faceBuilderSortTables: (face: FaceT, tags: number[]) => voi
|
|
|
961
961
|
* @param mapping - The map to add Unicode-to-glyph mapping to
|
|
962
962
|
* @param unicodes - The set to add Unicode characters to, or `NULL`
|
|
963
963
|
*/
|
|
964
|
-
export declare const faceCollectNominalGlyphMapping: (face: FaceT, mapping: Ref<
|
|
964
|
+
export declare const faceCollectNominalGlyphMapping: (face: FaceT, mapping: Ref<unknown>, unicodes?: Ref<unknown> | null) => void;
|
|
965
965
|
/**
|
|
966
966
|
* Collects all of the Unicode characters covered by `face` and adds
|
|
967
967
|
* them to the #hb_set_t set @out.
|
|
968
968
|
* @param face - A face object
|
|
969
969
|
* @param out - The set to add Unicode characters to
|
|
970
970
|
*/
|
|
971
|
-
export declare const faceCollectUnicodes: (face: FaceT, out: Ref<
|
|
971
|
+
export declare const faceCollectUnicodes: (face: FaceT, out: Ref<unknown>) => void;
|
|
972
972
|
/**
|
|
973
973
|
* Collects all Unicode "Variation Selector" characters covered by `face` and adds
|
|
974
974
|
* them to the #hb_set_t set @out.
|
|
975
975
|
* @param face - A face object
|
|
976
976
|
* @param out - The set to add Variation Selector characters to
|
|
977
977
|
*/
|
|
978
|
-
export declare const faceCollectVariationSelectors: (face: FaceT, out: Ref<
|
|
978
|
+
export declare const faceCollectVariationSelectors: (face: FaceT, out: Ref<unknown>) => void;
|
|
979
979
|
/**
|
|
980
980
|
* Collects all Unicode characters for `variation_selector` covered by `face` and adds
|
|
981
981
|
* them to the #hb_set_t set @out.
|
|
@@ -983,7 +983,7 @@ export declare const faceCollectVariationSelectors: (face: FaceT, out: Ref<SetT>
|
|
|
983
983
|
* @param variationSelector - The Variation Selector to query
|
|
984
984
|
* @param out - The set to add Unicode characters to
|
|
985
985
|
*/
|
|
986
|
-
export declare const faceCollectVariationUnicodes: (face: FaceT, variationSelector: number, out: Ref<
|
|
986
|
+
export declare const faceCollectVariationUnicodes: (face: FaceT, variationSelector: number, out: Ref<unknown>) => void;
|
|
987
987
|
/**
|
|
988
988
|
* Fetches the number of faces in a blob.
|
|
989
989
|
* @param blob - a blob.
|
|
@@ -1200,7 +1200,7 @@ export declare const faceSetUpem: (face: FaceT, upem: number) => void;
|
|
|
1200
1200
|
* @param len - length of @str, or -1 if string is `NULL` terminated
|
|
1201
1201
|
* @param feature - the #hb_feature_t to initialize with the parsed values
|
|
1202
1202
|
*/
|
|
1203
|
-
export declare const featureFromString: (str: number[], len: number, feature: Ref<
|
|
1203
|
+
export declare const featureFromString: (str: number[], len: number, feature: Ref<unknown>) => number;
|
|
1204
1204
|
/**
|
|
1205
1205
|
* Converts a #hb_feature_t into a `NULL`-terminated string in the format
|
|
1206
1206
|
* understood by hb_feature_from_string(). The client in responsible for
|
|
@@ -2604,7 +2604,7 @@ export declare const otFontSetFuncs: (font: FontT) => void;
|
|
|
2604
2604
|
* @param features - The array of features to collect,
|
|
2605
2605
|
* @param featureIndexes - The set of feature indexes found for the query
|
|
2606
2606
|
*/
|
|
2607
|
-
export declare const otLayoutCollectFeatures: (face: FaceT, tableTag: number, featureIndexes: Ref<
|
|
2607
|
+
export declare const otLayoutCollectFeatures: (face: FaceT, tableTag: number, featureIndexes: Ref<unknown>, scripts?: number[] | null, languages?: number[] | null, features?: number[] | null) => void;
|
|
2608
2608
|
/**
|
|
2609
2609
|
* Fetches the mapping from feature tags to feature indexes for
|
|
2610
2610
|
* the specified script and language.
|
|
@@ -2614,7 +2614,7 @@ export declare const otLayoutCollectFeatures: (face: FaceT, tableTag: number, fe
|
|
|
2614
2614
|
* @param languageIndex - The index of the requested language tag
|
|
2615
2615
|
* @param featureMap - The map of feature tag to feature index.
|
|
2616
2616
|
*/
|
|
2617
|
-
export declare const otLayoutCollectFeaturesMap: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, featureMap: Ref<
|
|
2617
|
+
export declare const otLayoutCollectFeaturesMap: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, featureMap: Ref<unknown>) => void;
|
|
2618
2618
|
/**
|
|
2619
2619
|
* Fetches a list of all feature-lookup indexes in the specified face's GSUB
|
|
2620
2620
|
* table or GPOS table, underneath the specified scripts, languages, and
|
|
@@ -2628,7 +2628,7 @@ export declare const otLayoutCollectFeaturesMap: (face: FaceT, tableTag: number,
|
|
|
2628
2628
|
* @param features - The array of features to collect lookups for,
|
|
2629
2629
|
* @param lookupIndexes - The array of lookup indexes found for the query
|
|
2630
2630
|
*/
|
|
2631
|
-
export declare const otLayoutCollectLookups: (face: FaceT, tableTag: number, lookupIndexes: Ref<
|
|
2631
|
+
export declare const otLayoutCollectLookups: (face: FaceT, tableTag: number, lookupIndexes: Ref<unknown>, scripts?: number[] | null, languages?: number[] | null, features?: number[] | null) => void;
|
|
2632
2632
|
/**
|
|
2633
2633
|
* Fetches a list of the characters defined as having a variant under the specified
|
|
2634
2634
|
* "Character Variant" ("cvXX") feature tag.
|
|
@@ -2786,7 +2786,7 @@ export declare const otLayoutGetGlyphClass: (face: FaceT, glyph: number) => OtLa
|
|
|
2786
2786
|
* @param klass - The #hb_ot_layout_glyph_class_t GDEF class to retrieve
|
|
2787
2787
|
* @param glyphs - The #hb_set_t set of all glyphs belonging to the requested
|
|
2788
2788
|
*/
|
|
2789
|
-
export declare const otLayoutGetGlyphsInClass: (face: FaceT, klass: OtLayoutGlyphClassT, glyphs: Ref<
|
|
2789
|
+
export declare const otLayoutGetGlyphsInClass: (face: FaceT, klass: OtLayoutGlyphClassT, glyphs: Ref<unknown>) => void;
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Fetches the dominant horizontal baseline tag used by @script.
|
|
2792
2792
|
* @param script - a script tag.
|
|
@@ -2911,7 +2911,7 @@ export declare const otLayoutLanguageGetRequiredFeatureIndex: (face: FaceT, tabl
|
|
|
2911
2911
|
* @param glyphsAfter - Array of glyphs following the substitution range
|
|
2912
2912
|
* @param glyphsOutput - Array of glyphs that would be the substituted output of the lookup
|
|
2913
2913
|
*/
|
|
2914
|
-
export declare const otLayoutLookupCollectGlyphs: (face: FaceT, tableTag: number, lookupIndex: number, glyphsBefore?: Ref<
|
|
2914
|
+
export declare const otLayoutLookupCollectGlyphs: (face: FaceT, tableTag: number, lookupIndex: number, glyphsBefore?: Ref<unknown> | null, glyphsInput?: Ref<unknown> | null, glyphsAfter?: Ref<unknown> | null, glyphsOutput?: Ref<unknown> | null) => void;
|
|
2915
2915
|
/**
|
|
2916
2916
|
* Fetches alternates of a glyph from a given GSUB lookup index. Note that for one-to-one GSUB
|
|
2917
2917
|
* glyph substitutions, this function fetches the substituted glyph.
|
|
@@ -2939,7 +2939,7 @@ export declare const otLayoutLookupGetOpticalBound: (font: FontT, lookupIndex: n
|
|
|
2939
2939
|
* @param lookupIndex - index of the feature lookup to query
|
|
2940
2940
|
* @param glyphs - Array of glyphs comprising the transitive closure of the lookup
|
|
2941
2941
|
*/
|
|
2942
|
-
export declare const otLayoutLookupSubstituteClosure: (face: FaceT, lookupIndex: number, glyphs: Ref<
|
|
2942
|
+
export declare const otLayoutLookupSubstituteClosure: (face: FaceT, lookupIndex: number, glyphs: Ref<unknown>) => void;
|
|
2943
2943
|
/**
|
|
2944
2944
|
* Tests whether a specified lookup in the specified face would
|
|
2945
2945
|
* trigger a substitution on the given glyph sequence.
|
|
@@ -2957,7 +2957,7 @@ export declare const otLayoutLookupWouldSubstitute: (face: FaceT, lookupIndex: n
|
|
|
2957
2957
|
* @param lookups - The set of lookups to query
|
|
2958
2958
|
* @param glyphs - Array of glyphs comprising the transitive closure of the lookups
|
|
2959
2959
|
*/
|
|
2960
|
-
export declare const otLayoutLookupsSubstituteClosure: (face: FaceT, lookups: SetT, glyphs: Ref<
|
|
2960
|
+
export declare const otLayoutLookupsSubstituteClosure: (face: FaceT, lookups: SetT, glyphs: Ref<unknown>) => void;
|
|
2961
2961
|
/**
|
|
2962
2962
|
* Fetches the index of a given language tag in the specified face's GSUB table
|
|
2963
2963
|
* or GPOS table, underneath the specified script tag.
|
|
@@ -3314,7 +3314,7 @@ export declare const otNameListNames: (face: FaceT, numEntries?: Ref<number> | n
|
|
|
3314
3314
|
* @param numFeatures - The number of features enabled on the buffer
|
|
3315
3315
|
* @param glyphs - The #hb_set_t set of glyphs comprising the transitive closure of the query
|
|
3316
3316
|
*/
|
|
3317
|
-
export declare const otShapeGlyphsClosure: (font: FontT, buffer: BufferT, features: FeatureT[], numFeatures: number, glyphs: Ref<
|
|
3317
|
+
export declare const otShapeGlyphsClosure: (font: FontT, buffer: BufferT, features: FeatureT[], numFeatures: number, glyphs: Ref<unknown>) => void;
|
|
3318
3318
|
/**
|
|
3319
3319
|
* Computes the complete set of GSUB or GPOS lookups that are applicable
|
|
3320
3320
|
* under a given @shape_plan.
|
|
@@ -3322,7 +3322,7 @@ export declare const otShapeGlyphsClosure: (font: FontT, buffer: BufferT, featur
|
|
|
3322
3322
|
* @param tableTag - GSUB or GPOS
|
|
3323
3323
|
* @param lookupIndexes - The #hb_set_t set of lookups returned
|
|
3324
3324
|
*/
|
|
3325
|
-
export declare const otShapePlanCollectLookups: (shapePlan: ShapePlanT, tableTag: number, lookupIndexes: Ref<
|
|
3325
|
+
export declare const otShapePlanCollectLookups: (shapePlan: ShapePlanT, tableTag: number, lookupIndexes: Ref<unknown>) => void;
|
|
3326
3326
|
/**
|
|
3327
3327
|
* Fetches the list of OpenType feature tags enabled for a shaping plan, if possible.
|
|
3328
3328
|
* @param shapePlan - A shaping plan
|
|
@@ -3388,7 +3388,7 @@ export declare const otVarFindAxis: (face: FaceT, axisTag: number, axisIndex: nu
|
|
|
3388
3388
|
* @param axisTag - The #hb_tag_t of the variation axis to query
|
|
3389
3389
|
* @param axisInfo - The #hb_ot_var_axis_info_t of the axis tag queried
|
|
3390
3390
|
*/
|
|
3391
|
-
export declare const otVarFindAxisInfo: (face: FaceT, axisTag: number, axisInfo: Ref<
|
|
3391
|
+
export declare const otVarFindAxisInfo: (face: FaceT, axisTag: number, axisInfo: Ref<unknown>) => number;
|
|
3392
3392
|
/**
|
|
3393
3393
|
* Fetches a list of all variation axes in the specified face. The list returned will begin
|
|
3394
3394
|
* at the offset provided.
|
|
@@ -9,7 +9,7 @@ export class GlyphInfoT {
|
|
|
9
9
|
this.ptr = this.createPtr(init);
|
|
10
10
|
}
|
|
11
11
|
createPtr(init) {
|
|
12
|
-
const ptr = alloc(
|
|
12
|
+
const ptr = alloc(40, "hb_glyph_info_t", "libharfbuzz-gobject.so.0,libharfbuzz.so.0");
|
|
13
13
|
if (init.cluster !== undefined)
|
|
14
14
|
write(ptr, { type: "int", size: 32, unsigned: true }, 8, init.cluster);
|
|
15
15
|
return ptr;
|
|
@@ -10,7 +10,7 @@ export class GlyphPositionT {
|
|
|
10
10
|
this.ptr = this.createPtr({});
|
|
11
11
|
}
|
|
12
12
|
createPtr(_init) {
|
|
13
|
-
return alloc(
|
|
13
|
+
return alloc(40, "hb_glyph_position_t", "libharfbuzz-gobject.so.0,libharfbuzz.so.0");
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* how much the line advances after drawing this glyph when setting
|
|
@@ -10,7 +10,7 @@ export class SegmentPropertiesT {
|
|
|
10
10
|
this.ptr = this.createPtr({});
|
|
11
11
|
}
|
|
12
12
|
createPtr(_init) {
|
|
13
|
-
return alloc(
|
|
13
|
+
return alloc(40, "hb_segment_properties_t", "libharfbuzz-gobject.so.0,libharfbuzz.so.0");
|
|
14
14
|
}
|
|
15
15
|
/** the #hb_direction_t of the buffer, see hb_buffer_set_direction(). */
|
|
16
16
|
get direction() {
|
|
@@ -2,7 +2,6 @@ import { Ref } from "@gtkx/native";
|
|
|
2
2
|
import { AttrType } from "./enums.js";
|
|
3
3
|
import { Attribute } from "./attribute.js";
|
|
4
4
|
import { FontDescription } from "./font-description.js";
|
|
5
|
-
import { Language } from "./language.js";
|
|
6
5
|
/**
|
|
7
6
|
* A `PangoAttrIterator` is used to iterate through a `PangoAttrList`.
|
|
8
7
|
*
|
|
@@ -46,7 +45,7 @@ export declare class AttrIterator {
|
|
|
46
45
|
* @param language - location to store language tag
|
|
47
46
|
* @param extraAttrs - location in which to store a list of non-font attributes
|
|
48
47
|
*/
|
|
49
|
-
getFont(desc: FontDescription, language?: Ref<
|
|
48
|
+
getFont(desc: FontDescription, language?: Ref<unknown> | null, extraAttrs?: Ref<Attribute[]> | null): void;
|
|
50
49
|
/**
|
|
51
50
|
* Advance the iterator until the next change of style.
|
|
52
51
|
*/
|
|
@@ -24,7 +24,12 @@ export class AttrIterator {
|
|
|
24
24
|
copy() {
|
|
25
25
|
const ptr = call("libpango-1.0.so.0", "pango_attr_iterator_copy", [
|
|
26
26
|
{
|
|
27
|
-
type: {
|
|
27
|
+
type: {
|
|
28
|
+
type: "boxed",
|
|
29
|
+
borrowed: true,
|
|
30
|
+
innerType: "PangoAttrIterator",
|
|
31
|
+
lib: "libpango-1.0.so.0",
|
|
32
|
+
},
|
|
28
33
|
value: this.ptr,
|
|
29
34
|
},
|
|
30
35
|
], {
|
|
@@ -41,7 +46,12 @@ export class AttrIterator {
|
|
|
41
46
|
destroy() {
|
|
42
47
|
call("libpango-1.0.so.0", "pango_attr_iterator_destroy", [
|
|
43
48
|
{
|
|
44
|
-
type: {
|
|
49
|
+
type: {
|
|
50
|
+
type: "boxed",
|
|
51
|
+
borrowed: true,
|
|
52
|
+
innerType: "PangoAttrIterator",
|
|
53
|
+
lib: "libpango-1.0.so.0",
|
|
54
|
+
},
|
|
45
55
|
value: this.ptr,
|
|
46
56
|
},
|
|
47
57
|
], { type: "undefined" });
|
|
@@ -58,7 +68,12 @@ export class AttrIterator {
|
|
|
58
68
|
get(type) {
|
|
59
69
|
const ptr = call("libpango-1.0.so.0", "pango_attr_iterator_get", [
|
|
60
70
|
{
|
|
61
|
-
type: {
|
|
71
|
+
type: {
|
|
72
|
+
type: "boxed",
|
|
73
|
+
borrowed: true,
|
|
74
|
+
innerType: "PangoAttrIterator",
|
|
75
|
+
lib: "libpango-1.0.so.0",
|
|
76
|
+
},
|
|
62
77
|
value: this.ptr,
|
|
63
78
|
},
|
|
64
79
|
{
|
|
@@ -82,7 +97,12 @@ export class AttrIterator {
|
|
|
82
97
|
getAttrs() {
|
|
83
98
|
return call("libpango-1.0.so.0", "pango_attr_iterator_get_attrs", [
|
|
84
99
|
{
|
|
85
|
-
type: {
|
|
100
|
+
type: {
|
|
101
|
+
type: "boxed",
|
|
102
|
+
borrowed: true,
|
|
103
|
+
innerType: "PangoAttrIterator",
|
|
104
|
+
lib: "libpango-1.0.so.0",
|
|
105
|
+
},
|
|
86
106
|
value: this.ptr,
|
|
87
107
|
},
|
|
88
108
|
], {
|
|
@@ -106,7 +126,12 @@ export class AttrIterator {
|
|
|
106
126
|
getFont(desc, language, extraAttrs) {
|
|
107
127
|
call("libpango-1.0.so.0", "pango_attr_iterator_get_font", [
|
|
108
128
|
{
|
|
109
|
-
type: {
|
|
129
|
+
type: {
|
|
130
|
+
type: "boxed",
|
|
131
|
+
borrowed: true,
|
|
132
|
+
innerType: "PangoAttrIterator",
|
|
133
|
+
lib: "libpango-1.0.so.0",
|
|
134
|
+
},
|
|
110
135
|
value: this.ptr,
|
|
111
136
|
},
|
|
112
137
|
{
|
|
@@ -154,7 +179,12 @@ export class AttrIterator {
|
|
|
154
179
|
next() {
|
|
155
180
|
return call("libpango-1.0.so.0", "pango_attr_iterator_next", [
|
|
156
181
|
{
|
|
157
|
-
type: {
|
|
182
|
+
type: {
|
|
183
|
+
type: "boxed",
|
|
184
|
+
borrowed: true,
|
|
185
|
+
innerType: "PangoAttrIterator",
|
|
186
|
+
lib: "libpango-1.0.so.0",
|
|
187
|
+
},
|
|
158
188
|
value: this.ptr,
|
|
159
189
|
},
|
|
160
190
|
], { type: "boolean" });
|
|
@@ -172,7 +202,12 @@ export class AttrIterator {
|
|
|
172
202
|
range(start, end) {
|
|
173
203
|
call("libpango-1.0.so.0", "pango_attr_iterator_range", [
|
|
174
204
|
{
|
|
175
|
-
type: {
|
|
205
|
+
type: {
|
|
206
|
+
type: "boxed",
|
|
207
|
+
borrowed: true,
|
|
208
|
+
innerType: "PangoAttrIterator",
|
|
209
|
+
lib: "libpango-1.0.so.0",
|
|
210
|
+
},
|
|
176
211
|
value: this.ptr,
|
|
177
212
|
},
|
|
178
213
|
{
|
|
@@ -69,7 +69,12 @@ export class AttrList {
|
|
|
69
69
|
change(attr) {
|
|
70
70
|
call("libpango-1.0.so.0", "pango_attr_list_change", [
|
|
71
71
|
{
|
|
72
|
-
type: {
|
|
72
|
+
type: {
|
|
73
|
+
type: "boxed",
|
|
74
|
+
borrowed: true,
|
|
75
|
+
innerType: "PangoAttrList",
|
|
76
|
+
lib: "libpango-1.0.so.0",
|
|
77
|
+
},
|
|
73
78
|
value: this.ptr,
|
|
74
79
|
},
|
|
75
80
|
{
|
|
@@ -88,7 +93,12 @@ export class AttrList {
|
|
|
88
93
|
copy() {
|
|
89
94
|
const ptr = call("libpango-1.0.so.0", "pango_attr_list_copy", [
|
|
90
95
|
{
|
|
91
|
-
type: {
|
|
96
|
+
type: {
|
|
97
|
+
type: "boxed",
|
|
98
|
+
borrowed: true,
|
|
99
|
+
innerType: "PangoAttrList",
|
|
100
|
+
lib: "libpango-1.0.so.0",
|
|
101
|
+
},
|
|
92
102
|
value: this.ptr,
|
|
93
103
|
},
|
|
94
104
|
], {
|
|
@@ -113,7 +123,12 @@ export class AttrList {
|
|
|
113
123
|
equal(otherList) {
|
|
114
124
|
return call("libpango-1.0.so.0", "pango_attr_list_equal", [
|
|
115
125
|
{
|
|
116
|
-
type: {
|
|
126
|
+
type: {
|
|
127
|
+
type: "boxed",
|
|
128
|
+
borrowed: true,
|
|
129
|
+
innerType: "PangoAttrList",
|
|
130
|
+
lib: "libpango-1.0.so.0",
|
|
131
|
+
},
|
|
117
132
|
value: this.ptr,
|
|
118
133
|
},
|
|
119
134
|
{
|
|
@@ -137,7 +152,12 @@ export class AttrList {
|
|
|
137
152
|
filter(func, data) {
|
|
138
153
|
const ptr = call("libpango-1.0.so.0", "pango_attr_list_filter", [
|
|
139
154
|
{
|
|
140
|
-
type: {
|
|
155
|
+
type: {
|
|
156
|
+
type: "boxed",
|
|
157
|
+
borrowed: true,
|
|
158
|
+
innerType: "PangoAttrList",
|
|
159
|
+
lib: "libpango-1.0.so.0",
|
|
160
|
+
},
|
|
141
161
|
value: this.ptr,
|
|
142
162
|
},
|
|
143
163
|
{
|
|
@@ -165,7 +185,12 @@ export class AttrList {
|
|
|
165
185
|
getAttributes() {
|
|
166
186
|
return call("libpango-1.0.so.0", "pango_attr_list_get_attributes", [
|
|
167
187
|
{
|
|
168
|
-
type: {
|
|
188
|
+
type: {
|
|
189
|
+
type: "boxed",
|
|
190
|
+
borrowed: true,
|
|
191
|
+
innerType: "PangoAttrList",
|
|
192
|
+
lib: "libpango-1.0.so.0",
|
|
193
|
+
},
|
|
169
194
|
value: this.ptr,
|
|
170
195
|
},
|
|
171
196
|
], {
|
|
@@ -187,7 +212,12 @@ export class AttrList {
|
|
|
187
212
|
getIterator() {
|
|
188
213
|
const ptr = call("libpango-1.0.so.0", "pango_attr_list_get_iterator", [
|
|
189
214
|
{
|
|
190
|
-
type: {
|
|
215
|
+
type: {
|
|
216
|
+
type: "boxed",
|
|
217
|
+
borrowed: true,
|
|
218
|
+
innerType: "PangoAttrList",
|
|
219
|
+
lib: "libpango-1.0.so.0",
|
|
220
|
+
},
|
|
191
221
|
value: this.ptr,
|
|
192
222
|
},
|
|
193
223
|
], {
|
|
@@ -208,7 +238,12 @@ export class AttrList {
|
|
|
208
238
|
insert(attr) {
|
|
209
239
|
call("libpango-1.0.so.0", "pango_attr_list_insert", [
|
|
210
240
|
{
|
|
211
|
-
type: {
|
|
241
|
+
type: {
|
|
242
|
+
type: "boxed",
|
|
243
|
+
borrowed: true,
|
|
244
|
+
innerType: "PangoAttrList",
|
|
245
|
+
lib: "libpango-1.0.so.0",
|
|
246
|
+
},
|
|
212
247
|
value: this.ptr,
|
|
213
248
|
},
|
|
214
249
|
{
|
|
@@ -231,7 +266,12 @@ export class AttrList {
|
|
|
231
266
|
insertBefore(attr) {
|
|
232
267
|
call("libpango-1.0.so.0", "pango_attr_list_insert_before", [
|
|
233
268
|
{
|
|
234
|
-
type: {
|
|
269
|
+
type: {
|
|
270
|
+
type: "boxed",
|
|
271
|
+
borrowed: true,
|
|
272
|
+
innerType: "PangoAttrList",
|
|
273
|
+
lib: "libpango-1.0.so.0",
|
|
274
|
+
},
|
|
235
275
|
value: this.ptr,
|
|
236
276
|
},
|
|
237
277
|
{
|
|
@@ -251,7 +291,12 @@ export class AttrList {
|
|
|
251
291
|
ref() {
|
|
252
292
|
const ptr = call("libpango-1.0.so.0", "pango_attr_list_ref", [
|
|
253
293
|
{
|
|
254
|
-
type: {
|
|
294
|
+
type: {
|
|
295
|
+
type: "boxed",
|
|
296
|
+
borrowed: true,
|
|
297
|
+
innerType: "PangoAttrList",
|
|
298
|
+
lib: "libpango-1.0.so.0",
|
|
299
|
+
},
|
|
255
300
|
value: this.ptr,
|
|
256
301
|
},
|
|
257
302
|
], {
|
|
@@ -288,7 +333,12 @@ export class AttrList {
|
|
|
288
333
|
splice(other, pos, len) {
|
|
289
334
|
call("libpango-1.0.so.0", "pango_attr_list_splice", [
|
|
290
335
|
{
|
|
291
|
-
type: {
|
|
336
|
+
type: {
|
|
337
|
+
type: "boxed",
|
|
338
|
+
borrowed: true,
|
|
339
|
+
innerType: "PangoAttrList",
|
|
340
|
+
lib: "libpango-1.0.so.0",
|
|
341
|
+
},
|
|
292
342
|
value: this.ptr,
|
|
293
343
|
},
|
|
294
344
|
{
|
|
@@ -349,7 +399,12 @@ export class AttrList {
|
|
|
349
399
|
toString() {
|
|
350
400
|
return call("libpango-1.0.so.0", "pango_attr_list_to_string", [
|
|
351
401
|
{
|
|
352
|
-
type: {
|
|
402
|
+
type: {
|
|
403
|
+
type: "boxed",
|
|
404
|
+
borrowed: true,
|
|
405
|
+
innerType: "PangoAttrList",
|
|
406
|
+
lib: "libpango-1.0.so.0",
|
|
407
|
+
},
|
|
353
408
|
value: this.ptr,
|
|
354
409
|
},
|
|
355
410
|
], { type: "string" });
|
|
@@ -364,7 +419,12 @@ export class AttrList {
|
|
|
364
419
|
unref() {
|
|
365
420
|
call("libpango-1.0.so.0", "pango_attr_list_unref", [
|
|
366
421
|
{
|
|
367
|
-
type: {
|
|
422
|
+
type: {
|
|
423
|
+
type: "boxed",
|
|
424
|
+
borrowed: true,
|
|
425
|
+
innerType: "PangoAttrList",
|
|
426
|
+
lib: "libpango-1.0.so.0",
|
|
427
|
+
},
|
|
368
428
|
value: this.ptr,
|
|
369
429
|
},
|
|
370
430
|
], { type: "undefined" });
|
|
@@ -390,7 +450,12 @@ export class AttrList {
|
|
|
390
450
|
update(pos, remove, add) {
|
|
391
451
|
call("libpango-1.0.so.0", "pango_attr_list_update", [
|
|
392
452
|
{
|
|
393
|
-
type: {
|
|
453
|
+
type: {
|
|
454
|
+
type: "boxed",
|
|
455
|
+
borrowed: true,
|
|
456
|
+
innerType: "PangoAttrList",
|
|
457
|
+
lib: "libpango-1.0.so.0",
|
|
458
|
+
},
|
|
394
459
|
value: this.ptr,
|
|
395
460
|
},
|
|
396
461
|
{
|
|
@@ -31,7 +31,12 @@ export class Attribute {
|
|
|
31
31
|
asColor() {
|
|
32
32
|
return call("libpango-1.0.so.0", "pango_attribute_as_color", [
|
|
33
33
|
{
|
|
34
|
-
type: {
|
|
34
|
+
type: {
|
|
35
|
+
type: "boxed",
|
|
36
|
+
borrowed: true,
|
|
37
|
+
innerType: "PangoAttribute",
|
|
38
|
+
lib: "libpango-1.0.so.0",
|
|
39
|
+
},
|
|
35
40
|
value: this.ptr,
|
|
36
41
|
},
|
|
37
42
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -44,7 +49,12 @@ export class Attribute {
|
|
|
44
49
|
asFloat() {
|
|
45
50
|
return call("libpango-1.0.so.0", "pango_attribute_as_float", [
|
|
46
51
|
{
|
|
47
|
-
type: {
|
|
52
|
+
type: {
|
|
53
|
+
type: "boxed",
|
|
54
|
+
borrowed: true,
|
|
55
|
+
innerType: "PangoAttribute",
|
|
56
|
+
lib: "libpango-1.0.so.0",
|
|
57
|
+
},
|
|
48
58
|
value: this.ptr,
|
|
49
59
|
},
|
|
50
60
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -57,7 +67,12 @@ export class Attribute {
|
|
|
57
67
|
asFontDesc() {
|
|
58
68
|
return call("libpango-1.0.so.0", "pango_attribute_as_font_desc", [
|
|
59
69
|
{
|
|
60
|
-
type: {
|
|
70
|
+
type: {
|
|
71
|
+
type: "boxed",
|
|
72
|
+
borrowed: true,
|
|
73
|
+
innerType: "PangoAttribute",
|
|
74
|
+
lib: "libpango-1.0.so.0",
|
|
75
|
+
},
|
|
61
76
|
value: this.ptr,
|
|
62
77
|
},
|
|
63
78
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -70,7 +85,12 @@ export class Attribute {
|
|
|
70
85
|
asFontFeatures() {
|
|
71
86
|
return call("libpango-1.0.so.0", "pango_attribute_as_font_features", [
|
|
72
87
|
{
|
|
73
|
-
type: {
|
|
88
|
+
type: {
|
|
89
|
+
type: "boxed",
|
|
90
|
+
borrowed: true,
|
|
91
|
+
innerType: "PangoAttribute",
|
|
92
|
+
lib: "libpango-1.0.so.0",
|
|
93
|
+
},
|
|
74
94
|
value: this.ptr,
|
|
75
95
|
},
|
|
76
96
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -83,7 +103,12 @@ export class Attribute {
|
|
|
83
103
|
asInt() {
|
|
84
104
|
return call("libpango-1.0.so.0", "pango_attribute_as_int", [
|
|
85
105
|
{
|
|
86
|
-
type: {
|
|
106
|
+
type: {
|
|
107
|
+
type: "boxed",
|
|
108
|
+
borrowed: true,
|
|
109
|
+
innerType: "PangoAttribute",
|
|
110
|
+
lib: "libpango-1.0.so.0",
|
|
111
|
+
},
|
|
87
112
|
value: this.ptr,
|
|
88
113
|
},
|
|
89
114
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -96,7 +121,12 @@ export class Attribute {
|
|
|
96
121
|
asLanguage() {
|
|
97
122
|
return call("libpango-1.0.so.0", "pango_attribute_as_language", [
|
|
98
123
|
{
|
|
99
|
-
type: {
|
|
124
|
+
type: {
|
|
125
|
+
type: "boxed",
|
|
126
|
+
borrowed: true,
|
|
127
|
+
innerType: "PangoAttribute",
|
|
128
|
+
lib: "libpango-1.0.so.0",
|
|
129
|
+
},
|
|
100
130
|
value: this.ptr,
|
|
101
131
|
},
|
|
102
132
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -109,7 +139,12 @@ export class Attribute {
|
|
|
109
139
|
asShape() {
|
|
110
140
|
return call("libpango-1.0.so.0", "pango_attribute_as_shape", [
|
|
111
141
|
{
|
|
112
|
-
type: {
|
|
142
|
+
type: {
|
|
143
|
+
type: "boxed",
|
|
144
|
+
borrowed: true,
|
|
145
|
+
innerType: "PangoAttribute",
|
|
146
|
+
lib: "libpango-1.0.so.0",
|
|
147
|
+
},
|
|
113
148
|
value: this.ptr,
|
|
114
149
|
},
|
|
115
150
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -122,7 +157,12 @@ export class Attribute {
|
|
|
122
157
|
asSize() {
|
|
123
158
|
return call("libpango-1.0.so.0", "pango_attribute_as_size", [
|
|
124
159
|
{
|
|
125
|
-
type: {
|
|
160
|
+
type: {
|
|
161
|
+
type: "boxed",
|
|
162
|
+
borrowed: true,
|
|
163
|
+
innerType: "PangoAttribute",
|
|
164
|
+
lib: "libpango-1.0.so.0",
|
|
165
|
+
},
|
|
126
166
|
value: this.ptr,
|
|
127
167
|
},
|
|
128
168
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -135,7 +175,12 @@ export class Attribute {
|
|
|
135
175
|
asString() {
|
|
136
176
|
return call("libpango-1.0.so.0", "pango_attribute_as_string", [
|
|
137
177
|
{
|
|
138
|
-
type: {
|
|
178
|
+
type: {
|
|
179
|
+
type: "boxed",
|
|
180
|
+
borrowed: true,
|
|
181
|
+
innerType: "PangoAttribute",
|
|
182
|
+
lib: "libpango-1.0.so.0",
|
|
183
|
+
},
|
|
139
184
|
value: this.ptr,
|
|
140
185
|
},
|
|
141
186
|
], { type: "int", size: 64, unsigned: true });
|
|
@@ -146,7 +191,12 @@ export class Attribute {
|
|
|
146
191
|
copy() {
|
|
147
192
|
const ptr = call("libpango-1.0.so.0", "pango_attribute_copy", [
|
|
148
193
|
{
|
|
149
|
-
type: {
|
|
194
|
+
type: {
|
|
195
|
+
type: "boxed",
|
|
196
|
+
borrowed: true,
|
|
197
|
+
innerType: "PangoAttribute",
|
|
198
|
+
lib: "libpango-1.0.so.0",
|
|
199
|
+
},
|
|
150
200
|
value: this.ptr,
|
|
151
201
|
},
|
|
152
202
|
], {
|
|
@@ -163,7 +213,12 @@ export class Attribute {
|
|
|
163
213
|
destroy() {
|
|
164
214
|
call("libpango-1.0.so.0", "pango_attribute_destroy", [
|
|
165
215
|
{
|
|
166
|
-
type: {
|
|
216
|
+
type: {
|
|
217
|
+
type: "boxed",
|
|
218
|
+
borrowed: true,
|
|
219
|
+
innerType: "PangoAttribute",
|
|
220
|
+
lib: "libpango-1.0.so.0",
|
|
221
|
+
},
|
|
167
222
|
value: this.ptr,
|
|
168
223
|
},
|
|
169
224
|
], { type: "undefined" });
|
|
@@ -179,7 +234,12 @@ export class Attribute {
|
|
|
179
234
|
equal(attr2) {
|
|
180
235
|
return call("libpango-1.0.so.0", "pango_attribute_equal", [
|
|
181
236
|
{
|
|
182
|
-
type: {
|
|
237
|
+
type: {
|
|
238
|
+
type: "boxed",
|
|
239
|
+
borrowed: true,
|
|
240
|
+
innerType: "PangoAttribute",
|
|
241
|
+
lib: "libpango-1.0.so.0",
|
|
242
|
+
},
|
|
183
243
|
value: this.ptr,
|
|
184
244
|
},
|
|
185
245
|
{
|
|
@@ -203,7 +263,12 @@ export class Attribute {
|
|
|
203
263
|
init(klass) {
|
|
204
264
|
call("libpango-1.0.so.0", "pango_attribute_init", [
|
|
205
265
|
{
|
|
206
|
-
type: {
|
|
266
|
+
type: {
|
|
267
|
+
type: "boxed",
|
|
268
|
+
borrowed: true,
|
|
269
|
+
innerType: "PangoAttribute",
|
|
270
|
+
lib: "libpango-1.0.so.0",
|
|
271
|
+
},
|
|
207
272
|
value: this.ptr,
|
|
208
273
|
},
|
|
209
274
|
{
|