@gtkx/ffi 0.1.45 → 0.1.46

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.
Files changed (1582) hide show
  1. package/dist/cairo/cairo.d.ts +103 -0
  2. package/dist/cairo/cairo.js +103 -0
  3. package/dist/cairo/index.d.ts +13 -0
  4. package/dist/cairo/index.js +13 -0
  5. package/dist/codegen/ffi-generator.d.ts +21 -0
  6. package/dist/codegen/ffi-generator.js +14 -0
  7. package/dist/generated/gdk/app-launch-context.d.ts +74 -0
  8. package/dist/generated/gdk/app-launch-context.js +74 -0
  9. package/dist/generated/gdk/button-event.d.ts +4 -0
  10. package/dist/generated/gdk/button-event.js +4 -0
  11. package/dist/generated/gdk/cairo-context.d.ts +17 -0
  12. package/dist/generated/gdk/cairo-context.js +17 -0
  13. package/dist/generated/gdk/cicp-params.d.ts +64 -0
  14. package/dist/generated/gdk/cicp-params.js +64 -0
  15. package/dist/generated/gdk/clipboard.d.ts +71 -0
  16. package/dist/generated/gdk/clipboard.js +89 -0
  17. package/dist/generated/gdk/color-state.d.ts +96 -0
  18. package/dist/generated/gdk/color-state.js +96 -0
  19. package/dist/generated/gdk/content-deserializer.d.ts +58 -0
  20. package/dist/generated/gdk/content-deserializer.js +58 -0
  21. package/dist/generated/gdk/content-formats-builder.d.ts +38 -0
  22. package/dist/generated/gdk/content-formats-builder.js +38 -0
  23. package/dist/generated/gdk/content-formats.d.ts +144 -0
  24. package/dist/generated/gdk/content-formats.js +144 -0
  25. package/dist/generated/gdk/content-provider.d.ts +59 -0
  26. package/dist/generated/gdk/content-provider.js +64 -0
  27. package/dist/generated/gdk/content-serializer.d.ts +59 -0
  28. package/dist/generated/gdk/content-serializer.js +59 -0
  29. package/dist/generated/gdk/crossing-event.d.ts +10 -0
  30. package/dist/generated/gdk/crossing-event.js +10 -0
  31. package/dist/generated/gdk/cursor.d.ts +139 -0
  32. package/dist/generated/gdk/cursor.js +129 -0
  33. package/dist/generated/gdk/delete-event.d.ts +1 -0
  34. package/dist/generated/gdk/delete-event.js +1 -0
  35. package/dist/generated/gdk/device-pad.d.ts +40 -0
  36. package/dist/generated/gdk/device-pad.js +40 -0
  37. package/dist/generated/gdk/device-tool.d.ts +26 -0
  38. package/dist/generated/gdk/device-tool.js +26 -0
  39. package/dist/generated/gdk/device.d.ts +123 -0
  40. package/dist/generated/gdk/device.js +129 -0
  41. package/dist/generated/gdk/display-manager.d.ts +25 -0
  42. package/dist/generated/gdk/display-manager.js +70 -0
  43. package/dist/generated/gdk/display.d.ts +256 -0
  44. package/dist/generated/gdk/display.js +272 -0
  45. package/dist/generated/gdk/dmabuf-formats.d.ts +55 -0
  46. package/dist/generated/gdk/dmabuf-formats.js +55 -0
  47. package/dist/generated/gdk/dmabuf-texture-builder.d.ts +217 -0
  48. package/dist/generated/gdk/dmabuf-texture-builder.js +217 -0
  49. package/dist/generated/gdk/dmabuf-texture.d.ts +8 -0
  50. package/dist/generated/gdk/dmabuf-texture.js +8 -0
  51. package/dist/generated/gdk/dndevent.d.ts +4 -0
  52. package/dist/generated/gdk/dndevent.js +4 -0
  53. package/dist/generated/gdk/drag-surface.d.ts +6 -0
  54. package/dist/generated/gdk/drag-surface.js +6 -0
  55. package/dist/generated/gdk/drag.d.ts +74 -0
  56. package/dist/generated/gdk/drag.js +86 -0
  57. package/dist/generated/gdk/draw-context.d.ts +70 -0
  58. package/dist/generated/gdk/draw-context.js +70 -0
  59. package/dist/generated/gdk/drop.d.ts +93 -0
  60. package/dist/generated/gdk/drop.js +93 -0
  61. package/dist/generated/gdk/enums.d.ts +1069 -0
  62. package/dist/generated/gdk/enums.js +1069 -0
  63. package/dist/generated/gdk/event-sequence.d.ts +1 -0
  64. package/dist/generated/gdk/event-sequence.js +1 -0
  65. package/dist/generated/gdk/event.d.ts +142 -0
  66. package/dist/generated/gdk/event.js +142 -0
  67. package/dist/generated/gdk/file-list.d.ts +20 -0
  68. package/dist/generated/gdk/file-list.js +20 -0
  69. package/dist/generated/gdk/focus-event.d.ts +5 -0
  70. package/dist/generated/gdk/focus-event.js +5 -0
  71. package/dist/generated/gdk/frame-clock.d.ts +79 -0
  72. package/dist/generated/gdk/frame-clock.js +113 -0
  73. package/dist/generated/gdk/frame-timings.d.ts +68 -0
  74. package/dist/generated/gdk/frame-timings.js +68 -0
  75. package/dist/generated/gdk/functions.d.ts +367 -0
  76. package/dist/generated/gdk/functions.js +367 -0
  77. package/dist/generated/gdk/glcontext.d.ts +203 -0
  78. package/dist/generated/gdk/glcontext.js +203 -0
  79. package/dist/generated/gdk/gltexture-builder.d.ts +157 -0
  80. package/dist/generated/gdk/gltexture-builder.js +157 -0
  81. package/dist/generated/gdk/gltexture.d.ts +21 -0
  82. package/dist/generated/gdk/gltexture.js +8 -0
  83. package/dist/generated/gdk/grab-broken-event.d.ts +7 -0
  84. package/dist/generated/gdk/grab-broken-event.js +7 -0
  85. package/dist/generated/gdk/key-event.d.ts +39 -0
  86. package/dist/generated/gdk/key-event.js +39 -0
  87. package/dist/generated/gdk/memory-texture-builder.d.ts +131 -0
  88. package/dist/generated/gdk/memory-texture-builder.js +131 -0
  89. package/dist/generated/gdk/memory-texture.d.ts +12 -0
  90. package/dist/generated/gdk/memory-texture.js +1 -0
  91. package/dist/generated/gdk/monitor.d.ts +77 -0
  92. package/dist/generated/gdk/monitor.js +85 -0
  93. package/dist/generated/gdk/motion-event.d.ts +1 -0
  94. package/dist/generated/gdk/motion-event.js +1 -0
  95. package/dist/generated/gdk/pad-event.d.ts +15 -0
  96. package/dist/generated/gdk/pad-event.js +15 -0
  97. package/dist/generated/gdk/paintable.d.ts +155 -0
  98. package/dist/generated/gdk/paintable.js +155 -0
  99. package/dist/generated/gdk/popup-layout.d.ts +126 -0
  100. package/dist/generated/gdk/popup-layout.js +110 -0
  101. package/dist/generated/gdk/popup.d.ts +53 -0
  102. package/dist/generated/gdk/popup.js +53 -0
  103. package/dist/generated/gdk/proximity-event.d.ts +1 -0
  104. package/dist/generated/gdk/proximity-event.js +1 -0
  105. package/dist/generated/gdk/rectangle.d.ts +53 -0
  106. package/dist/generated/gdk/rectangle.js +53 -0
  107. package/dist/generated/gdk/rgba.d.ts +82 -0
  108. package/dist/generated/gdk/rgba.js +82 -0
  109. package/dist/generated/gdk/scroll-event.d.ts +32 -0
  110. package/dist/generated/gdk/scroll-event.js +32 -0
  111. package/dist/generated/gdk/seat.d.ts +19 -0
  112. package/dist/generated/gdk/seat.js +20 -0
  113. package/dist/generated/gdk/snapshot.d.ts +5 -0
  114. package/dist/generated/gdk/snapshot.js +5 -0
  115. package/dist/generated/gdk/surface.d.ts +233 -0
  116. package/dist/generated/gdk/surface.js +236 -0
  117. package/dist/generated/gdk/texture-downloader.d.ts +81 -0
  118. package/dist/generated/gdk/texture-downloader.js +74 -0
  119. package/dist/generated/gdk/texture.d.ts +307 -0
  120. package/dist/generated/gdk/texture.js +299 -0
  121. package/dist/generated/gdk/toplevel-layout.d.ts +69 -0
  122. package/dist/generated/gdk/toplevel-layout.js +69 -0
  123. package/dist/generated/gdk/toplevel.d.ts +188 -0
  124. package/dist/generated/gdk/toplevel.js +188 -0
  125. package/dist/generated/gdk/touch-event.d.ts +4 -0
  126. package/dist/generated/gdk/touch-event.js +4 -0
  127. package/dist/generated/gdk/touchpad-event.d.ts +25 -0
  128. package/dist/generated/gdk/touchpad-event.js +25 -0
  129. package/dist/generated/gdk/vulkan-context.js +10 -0
  130. package/dist/generated/gdkpixbuf/enums.d.ts +106 -0
  131. package/dist/generated/gdkpixbuf/enums.js +106 -0
  132. package/dist/generated/gdkpixbuf/pixbuf-animation-iter.d.ts +64 -0
  133. package/dist/generated/gdkpixbuf/pixbuf-animation-iter.js +64 -0
  134. package/dist/generated/gdkpixbuf/pixbuf-animation.d.ts +132 -0
  135. package/dist/generated/gdkpixbuf/pixbuf-animation.js +121 -0
  136. package/dist/generated/gdkpixbuf/pixbuf-format.d.ts +80 -0
  137. package/dist/generated/gdkpixbuf/pixbuf-format.js +80 -0
  138. package/dist/generated/gdkpixbuf/pixbuf-loader.d.ts +107 -0
  139. package/dist/generated/gdkpixbuf/pixbuf-loader.js +154 -0
  140. package/dist/generated/gdkpixbuf/pixbuf-simple-anim.d.ts +20 -0
  141. package/dist/generated/gdkpixbuf/pixbuf-simple-anim.js +14 -0
  142. package/dist/generated/gdkpixbuf/pixbuf.d.ts +842 -0
  143. package/dist/generated/gdkpixbuf/pixbuf.js +829 -0
  144. package/dist/generated/gio/action-group.d.ts +243 -0
  145. package/dist/generated/gio/action-group.js +243 -0
  146. package/dist/generated/gio/action-map.d.ts +102 -0
  147. package/dist/generated/gio/action-map.js +102 -0
  148. package/dist/generated/gio/action.d.ts +118 -0
  149. package/dist/generated/gio/action.js +118 -0
  150. package/dist/generated/gio/app-info-monitor.d.ts +15 -0
  151. package/dist/generated/gio/app-info-monitor.js +56 -0
  152. package/dist/generated/gio/app-info.d.ts +221 -0
  153. package/dist/generated/gio/app-info.js +221 -0
  154. package/dist/generated/gio/app-launch-context.d.ts +53 -0
  155. package/dist/generated/gio/app-launch-context.js +58 -0
  156. package/dist/generated/gio/application-command-line.d.ts +339 -0
  157. package/dist/generated/gio/application-command-line.js +339 -0
  158. package/dist/generated/gio/application.d.ts +903 -0
  159. package/dist/generated/gio/application.js +1017 -0
  160. package/dist/generated/gio/async-initable.d.ts +155 -0
  161. package/dist/generated/gio/async-initable.js +155 -0
  162. package/dist/generated/gio/async-result.d.ts +110 -0
  163. package/dist/generated/gio/async-result.js +110 -0
  164. package/dist/generated/gio/buffered-input-stream.d.ts +154 -0
  165. package/dist/generated/gio/buffered-input-stream.js +149 -0
  166. package/dist/generated/gio/buffered-output-stream.d.ts +83 -0
  167. package/dist/generated/gio/buffered-output-stream.js +79 -0
  168. package/dist/generated/gio/bytes-icon.d.ts +67 -0
  169. package/dist/generated/gio/bytes-icon.js +60 -0
  170. package/dist/generated/gio/cancellable.d.ts +197 -0
  171. package/dist/generated/gio/cancellable.js +204 -0
  172. package/dist/generated/gio/charset-converter.d.ts +160 -0
  173. package/dist/generated/gio/charset-converter.js +155 -0
  174. package/dist/generated/gio/converter-input-stream.d.ts +70 -0
  175. package/dist/generated/gio/converter-input-stream.js +65 -0
  176. package/dist/generated/gio/converter-output-stream.d.ts +99 -0
  177. package/dist/generated/gio/converter-output-stream.js +94 -0
  178. package/dist/generated/gio/converter.d.ts +111 -0
  179. package/dist/generated/gio/converter.js +111 -0
  180. package/dist/generated/gio/credentials.d.ts +87 -0
  181. package/dist/generated/gio/credentials.js +87 -0
  182. package/dist/generated/gio/data-input-stream.d.ts +227 -0
  183. package/dist/generated/gio/data-input-stream.js +223 -0
  184. package/dist/generated/gio/data-output-stream.d.ts +97 -0
  185. package/dist/generated/gio/data-output-stream.js +93 -0
  186. package/dist/generated/gio/datagram-based.d.ts +224 -0
  187. package/dist/generated/gio/datagram-based.js +224 -0
  188. package/dist/generated/gio/dbus-action-group.d.ts +250 -0
  189. package/dist/generated/gio/dbus-action-group.js +250 -0
  190. package/dist/generated/gio/dbus-annotation-info.d.ts +23 -0
  191. package/dist/generated/gio/dbus-annotation-info.js +23 -0
  192. package/dist/generated/gio/dbus-arg-info.d.ts +16 -0
  193. package/dist/generated/gio/dbus-arg-info.js +16 -0
  194. package/dist/generated/gio/dbus-auth-observer.d.ts +12 -0
  195. package/dist/generated/gio/dbus-auth-observer.js +77 -0
  196. package/dist/generated/gio/dbus-connection.d.ts +948 -0
  197. package/dist/generated/gio/dbus-connection.js +998 -0
  198. package/dist/generated/gio/dbus-interface-info.d.ts +72 -0
  199. package/dist/generated/gio/dbus-interface-info.js +72 -0
  200. package/dist/generated/gio/dbus-interface-skeleton.d.ts +74 -0
  201. package/dist/generated/gio/dbus-interface-skeleton.js +75 -0
  202. package/dist/generated/gio/dbus-interface.d.ts +20 -0
  203. package/dist/generated/gio/dbus-interface.js +20 -0
  204. package/dist/generated/gio/dbus-menu-model.d.ts +18 -0
  205. package/dist/generated/gio/dbus-menu-model.js +18 -0
  206. package/dist/generated/gio/dbus-message.d.ts +271 -0
  207. package/dist/generated/gio/dbus-message.js +271 -0
  208. package/dist/generated/gio/dbus-method-info.d.ts +21 -0
  209. package/dist/generated/gio/dbus-method-info.js +21 -0
  210. package/dist/generated/gio/dbus-method-invocation.d.ts +148 -0
  211. package/dist/generated/gio/dbus-method-invocation.js +148 -0
  212. package/dist/generated/gio/dbus-node-info.d.ts +48 -0
  213. package/dist/generated/gio/dbus-node-info.js +37 -0
  214. package/dist/generated/gio/dbus-object-manager-client.d.ts +205 -0
  215. package/dist/generated/gio/dbus-object-manager-client.js +281 -0
  216. package/dist/generated/gio/dbus-object-manager-server.d.ts +89 -0
  217. package/dist/generated/gio/dbus-object-manager-server.js +79 -0
  218. package/dist/generated/gio/dbus-object-manager.d.ts +25 -0
  219. package/dist/generated/gio/dbus-object-manager.js +25 -0
  220. package/dist/generated/gio/dbus-object-proxy.d.ts +26 -0
  221. package/dist/generated/gio/dbus-object-proxy.js +20 -0
  222. package/dist/generated/gio/dbus-object-skeleton.d.ts +45 -0
  223. package/dist/generated/gio/dbus-object-skeleton.js +48 -0
  224. package/dist/generated/gio/dbus-object.d.ts +17 -0
  225. package/dist/generated/gio/dbus-object.js +17 -0
  226. package/dist/generated/gio/dbus-property-info.d.ts +17 -0
  227. package/dist/generated/gio/dbus-property-info.js +17 -0
  228. package/dist/generated/gio/dbus-proxy.d.ts +434 -0
  229. package/dist/generated/gio/dbus-proxy.js +480 -0
  230. package/dist/generated/gio/dbus-server.d.ts +90 -0
  231. package/dist/generated/gio/dbus-server.js +85 -0
  232. package/dist/generated/gio/dbus-signal-info.d.ts +18 -0
  233. package/dist/generated/gio/dbus-signal-info.js +18 -0
  234. package/dist/generated/gio/debug-controller-dbus.d.ts +77 -0
  235. package/dist/generated/gio/debug-controller-dbus.js +178 -0
  236. package/dist/generated/gio/debug-controller.d.ts +25 -0
  237. package/dist/generated/gio/debug-controller.js +25 -0
  238. package/dist/generated/gio/drive.d.ts +168 -0
  239. package/dist/generated/gio/drive.js +168 -0
  240. package/dist/generated/gio/dtls-client-connection.d.ts +40 -0
  241. package/dist/generated/gio/dtls-client-connection.js +40 -0
  242. package/dist/generated/gio/dtls-connection.d.ts +305 -0
  243. package/dist/generated/gio/dtls-connection.js +305 -0
  244. package/dist/generated/gio/dtls-server-connection.d.ts +4 -0
  245. package/dist/generated/gio/dtls-server-connection.js +4 -0
  246. package/dist/generated/gio/emblem.d.ts +55 -0
  247. package/dist/generated/gio/emblem.js +51 -0
  248. package/dist/generated/gio/emblemed-icon.d.ts +58 -0
  249. package/dist/generated/gio/emblemed-icon.js +53 -0
  250. package/dist/generated/gio/enums.d.ts +1294 -0
  251. package/dist/generated/gio/enums.js +1294 -0
  252. package/dist/generated/gio/file-attribute-info-list.d.ts +30 -0
  253. package/dist/generated/gio/file-attribute-info-list.js +30 -0
  254. package/dist/generated/gio/file-attribute-matcher.d.ts +70 -0
  255. package/dist/generated/gio/file-attribute-matcher.js +48 -0
  256. package/dist/generated/gio/file-enumerator.d.ts +222 -0
  257. package/dist/generated/gio/file-enumerator.js +222 -0
  258. package/dist/generated/gio/file-icon.d.ts +66 -0
  259. package/dist/generated/gio/file-icon.js +62 -0
  260. package/dist/generated/gio/file-info.d.ts +484 -0
  261. package/dist/generated/gio/file-info.js +484 -0
  262. package/dist/generated/gio/file-input-stream.d.ts +84 -0
  263. package/dist/generated/gio/file-input-stream.js +84 -0
  264. package/dist/generated/gio/file-iostream.d.ts +107 -0
  265. package/dist/generated/gio/file-iostream.js +107 -0
  266. package/dist/generated/gio/file-monitor.d.ts +23 -0
  267. package/dist/generated/gio/file-monitor.js +38 -0
  268. package/dist/generated/gio/file-output-stream.d.ts +102 -0
  269. package/dist/generated/gio/file-output-stream.js +102 -0
  270. package/dist/generated/gio/file.d.ts +1815 -0
  271. package/dist/generated/gio/file.js +1815 -0
  272. package/dist/generated/gio/filename-completer.d.ts +22 -0
  273. package/dist/generated/gio/filename-completer.js +27 -0
  274. package/dist/generated/gio/filter-input-stream.d.ts +17 -0
  275. package/dist/generated/gio/filter-input-stream.js +17 -0
  276. package/dist/generated/gio/filter-output-stream.d.ts +17 -0
  277. package/dist/generated/gio/filter-output-stream.js +17 -0
  278. package/dist/generated/gio/functions.d.ts +1432 -0
  279. package/dist/generated/gio/functions.js +1432 -0
  280. package/dist/generated/gio/icon.d.ts +64 -0
  281. package/dist/generated/gio/icon.js +64 -0
  282. package/dist/generated/gio/inet-address-mask.d.ts +80 -0
  283. package/dist/generated/gio/inet-address-mask.js +74 -0
  284. package/dist/generated/gio/inet-address.d.ts +100 -0
  285. package/dist/generated/gio/inet-address.js +95 -0
  286. package/dist/generated/gio/inet-socket-address.d.ts +39 -0
  287. package/dist/generated/gio/inet-socket-address.js +34 -0
  288. package/dist/generated/gio/initable.d.ts +67 -0
  289. package/dist/generated/gio/initable.js +67 -0
  290. package/dist/generated/gio/input-stream.d.ts +300 -0
  291. package/dist/generated/gio/input-stream.js +300 -0
  292. package/dist/generated/gio/iomodule.d.ts +43 -0
  293. package/dist/generated/gio/iomodule.js +38 -0
  294. package/dist/generated/gio/iostream.d.ts +147 -0
  295. package/dist/generated/gio/iostream.js +147 -0
  296. package/dist/generated/gio/list-model.d.ts +123 -0
  297. package/dist/generated/gio/list-model.js +123 -0
  298. package/dist/generated/gio/list-store.d.ts +170 -0
  299. package/dist/generated/gio/list-store.js +166 -0
  300. package/dist/generated/gio/loadable-icon.d.ts +25 -0
  301. package/dist/generated/gio/loadable-icon.js +25 -0
  302. package/dist/generated/gio/memory-input-stream.d.ts +127 -0
  303. package/dist/generated/gio/memory-input-stream.js +127 -0
  304. package/dist/generated/gio/memory-monitor.d.ts +50 -0
  305. package/dist/generated/gio/memory-monitor.js +50 -0
  306. package/dist/generated/gio/memory-output-stream.d.ts +176 -0
  307. package/dist/generated/gio/memory-output-stream.js +176 -0
  308. package/dist/generated/gio/menu-attribute-iter.d.ts +45 -0
  309. package/dist/generated/gio/menu-attribute-iter.js +45 -0
  310. package/dist/generated/gio/menu-item.d.ts +243 -0
  311. package/dist/generated/gio/menu-item.js +231 -0
  312. package/dist/generated/gio/menu-link-iter.d.ts +42 -0
  313. package/dist/generated/gio/menu-link-iter.js +42 -0
  314. package/dist/generated/gio/menu-model.d.ts +68 -0
  315. package/dist/generated/gio/menu-model.js +186 -0
  316. package/dist/generated/gio/menu.d.ts +140 -0
  317. package/dist/generated/gio/menu.js +140 -0
  318. package/dist/generated/gio/mount-operation.d.ts +73 -0
  319. package/dist/generated/gio/mount-operation.js +97 -0
  320. package/dist/generated/gio/mount.d.ts +217 -0
  321. package/dist/generated/gio/mount.js +217 -0
  322. package/dist/generated/gio/native-socket-address.d.ts +11 -0
  323. package/dist/generated/gio/native-socket-address.js +6 -0
  324. package/dist/generated/gio/network-address.d.ts +105 -0
  325. package/dist/generated/gio/network-address.js +93 -0
  326. package/dist/generated/gio/network-monitor.d.ts +79 -0
  327. package/dist/generated/gio/network-monitor.js +79 -0
  328. package/dist/generated/gio/network-service.d.ts +59 -0
  329. package/dist/generated/gio/network-service.js +51 -0
  330. package/dist/generated/gio/notification.d.ts +134 -0
  331. package/dist/generated/gio/notification.js +125 -0
  332. package/dist/generated/gio/output-stream.d.ts +452 -0
  333. package/dist/generated/gio/output-stream.js +452 -0
  334. package/dist/generated/gio/permission.d.ts +112 -0
  335. package/dist/generated/gio/permission.js +112 -0
  336. package/dist/generated/gio/pollable-input-stream.d.ts +66 -0
  337. package/dist/generated/gio/pollable-input-stream.js +66 -0
  338. package/dist/generated/gio/pollable-output-stream.d.ts +95 -0
  339. package/dist/generated/gio/pollable-output-stream.js +95 -0
  340. package/dist/generated/gio/power-profile-monitor.d.ts +33 -0
  341. package/dist/generated/gio/power-profile-monitor.js +33 -0
  342. package/dist/generated/gio/property-action.d.ts +154 -0
  343. package/dist/generated/gio/property-action.js +141 -0
  344. package/dist/generated/gio/proxy-address-enumerator.d.ts +12 -0
  345. package/dist/generated/gio/proxy-address-enumerator.js +12 -0
  346. package/dist/generated/gio/proxy-address.d.ts +42 -0
  347. package/dist/generated/gio/proxy-address.js +27 -0
  348. package/dist/generated/gio/proxy-resolver.d.ts +48 -0
  349. package/dist/generated/gio/proxy-resolver.js +48 -0
  350. package/dist/generated/gio/proxy.d.ts +38 -0
  351. package/dist/generated/gio/proxy.js +38 -0
  352. package/dist/generated/gio/remote-action-group.d.ts +51 -0
  353. package/dist/generated/gio/remote-action-group.js +51 -0
  354. package/dist/generated/gio/resolver.d.ts +214 -0
  355. package/dist/generated/gio/resolver.js +235 -0
  356. package/dist/generated/gio/resource.d.ts +278 -0
  357. package/dist/generated/gio/resource.js +262 -0
  358. package/dist/generated/gio/seekable.d.ts +58 -0
  359. package/dist/generated/gio/seekable.js +58 -0
  360. package/dist/generated/gio/settings-backend.d.ts +144 -0
  361. package/dist/generated/gio/settings-backend.js +144 -0
  362. package/dist/generated/gio/settings-schema-key.d.ts +99 -0
  363. package/dist/generated/gio/settings-schema-key.js +99 -0
  364. package/dist/generated/gio/settings-schema-source.d.ts +89 -0
  365. package/dist/generated/gio/settings-schema-source.js +53 -0
  366. package/dist/generated/gio/settings-schema.d.ts +136 -0
  367. package/dist/generated/gio/settings-schema.js +136 -0
  368. package/dist/generated/gio/settings.d.ts +582 -0
  369. package/dist/generated/gio/settings.js +949 -0
  370. package/dist/generated/gio/simple-action-group.d.ts +322 -0
  371. package/dist/generated/gio/simple-action-group.js +322 -0
  372. package/dist/generated/gio/simple-action.d.ts +136 -0
  373. package/dist/generated/gio/simple-action.js +133 -0
  374. package/dist/generated/gio/simple-async-result.d.ts +302 -0
  375. package/dist/generated/gio/simple-async-result.js +286 -0
  376. package/dist/generated/gio/simple-iostream.d.ts +18 -0
  377. package/dist/generated/gio/simple-iostream.js +12 -0
  378. package/dist/generated/gio/simple-permission.d.ts +13 -0
  379. package/dist/generated/gio/simple-permission.js +8 -0
  380. package/dist/generated/gio/simple-proxy-resolver.d.ts +85 -0
  381. package/dist/generated/gio/simple-proxy-resolver.js +85 -0
  382. package/dist/generated/gio/socket-address-enumerator.d.ts +49 -0
  383. package/dist/generated/gio/socket-address-enumerator.js +49 -0
  384. package/dist/generated/gio/socket-address.d.ts +51 -0
  385. package/dist/generated/gio/socket-address.js +45 -0
  386. package/dist/generated/gio/socket-client.d.ts +337 -0
  387. package/dist/generated/gio/socket-client.js +352 -0
  388. package/dist/generated/gio/socket-connectable.d.ts +80 -0
  389. package/dist/generated/gio/socket-connectable.js +80 -0
  390. package/dist/generated/gio/socket-connection.d.ts +84 -0
  391. package/dist/generated/gio/socket-connection.js +84 -0
  392. package/dist/generated/gio/socket-control-message.d.ts +56 -0
  393. package/dist/generated/gio/socket-control-message.js +56 -0
  394. package/dist/generated/gio/socket-listener.d.ts +174 -0
  395. package/dist/generated/gio/socket-listener.js +191 -0
  396. package/dist/generated/gio/socket-service.d.ts +41 -0
  397. package/dist/generated/gio/socket-service.js +69 -0
  398. package/dist/generated/gio/socket.d.ts +999 -0
  399. package/dist/generated/gio/socket.js +981 -0
  400. package/dist/generated/gio/srv-target.d.ts +53 -0
  401. package/dist/generated/gio/srv-target.js +43 -0
  402. package/dist/generated/gio/subprocess-launcher.d.ts +226 -0
  403. package/dist/generated/gio/subprocess-launcher.js +218 -0
  404. package/dist/generated/gio/subprocess.d.ts +345 -0
  405. package/dist/generated/gio/subprocess.js +338 -0
  406. package/dist/generated/gio/task.d.ts +890 -0
  407. package/dist/generated/gio/task.js +868 -0
  408. package/dist/generated/gio/tcp-connection.d.ts +20 -0
  409. package/dist/generated/gio/tcp-connection.js +20 -0
  410. package/dist/generated/gio/tcp-wrapper-connection.d.ts +16 -0
  411. package/dist/generated/gio/tcp-wrapper-connection.js +11 -0
  412. package/dist/generated/gio/test-dbus.d.ts +131 -0
  413. package/dist/generated/gio/test-dbus.js +127 -0
  414. package/dist/generated/gio/themed-icon.d.ts +87 -0
  415. package/dist/generated/gio/themed-icon.js +83 -0
  416. package/dist/generated/gio/threaded-resolver.d.ts +4 -0
  417. package/dist/generated/gio/threaded-resolver.js +4 -0
  418. package/dist/generated/gio/threaded-socket-service.d.ts +5 -0
  419. package/dist/generated/gio/threaded-socket-service.js +18 -0
  420. package/dist/generated/gio/tls-backend.d.ts +45 -0
  421. package/dist/generated/gio/tls-backend.js +45 -0
  422. package/dist/generated/gio/tls-certificate.d.ts +190 -0
  423. package/dist/generated/gio/tls-certificate.js +178 -0
  424. package/dist/generated/gio/tls-client-connection.d.ts +88 -0
  425. package/dist/generated/gio/tls-client-connection.js +88 -0
  426. package/dist/generated/gio/tls-connection.d.ts +234 -0
  427. package/dist/generated/gio/tls-connection.js +243 -0
  428. package/dist/generated/gio/tls-database.d.ts +223 -0
  429. package/dist/generated/gio/tls-database.js +223 -0
  430. package/dist/generated/gio/tls-file-database.d.ts +5 -0
  431. package/dist/generated/gio/tls-file-database.js +5 -0
  432. package/dist/generated/gio/tls-interaction.d.ts +169 -0
  433. package/dist/generated/gio/tls-interaction.js +169 -0
  434. package/dist/generated/gio/tls-password.d.ts +67 -0
  435. package/dist/generated/gio/tls-password.js +62 -0
  436. package/dist/generated/gio/tls-server-connection.d.ts +4 -0
  437. package/dist/generated/gio/tls-server-connection.js +4 -0
  438. package/dist/generated/gio/unix-connection.d.ts +112 -0
  439. package/dist/generated/gio/unix-connection.js +112 -0
  440. package/dist/generated/gio/unix-credentials-message.d.ts +34 -0
  441. package/dist/generated/gio/unix-credentials-message.js +34 -0
  442. package/dist/generated/gio/unix-fdlist.d.ts +102 -0
  443. package/dist/generated/gio/unix-fdlist.js +102 -0
  444. package/dist/generated/gio/unix-socket-address.d.ts +90 -0
  445. package/dist/generated/gio/unix-socket-address.js +83 -0
  446. package/dist/generated/gio/vfs.d.ts +65 -0
  447. package/dist/generated/gio/vfs.js +65 -0
  448. package/dist/generated/gio/volume-monitor.d.ts +60 -0
  449. package/dist/generated/gio/volume-monitor.js +73 -0
  450. package/dist/generated/gio/volume.d.ts +164 -0
  451. package/dist/generated/gio/volume.js +164 -0
  452. package/dist/generated/gio/zlib-compressor.d.ts +131 -0
  453. package/dist/generated/gio/zlib-compressor.js +126 -0
  454. package/dist/generated/gio/zlib-decompressor.d.ts +111 -0
  455. package/dist/generated/gio/zlib-decompressor.js +107 -0
  456. package/dist/generated/glib/array.d.ts +9 -0
  457. package/dist/generated/glib/array.js +9 -0
  458. package/dist/generated/glib/bookmark-file.d.ts +513 -0
  459. package/dist/generated/glib/bookmark-file.js +513 -0
  460. package/dist/generated/glib/byte-array.d.ts +128 -0
  461. package/dist/generated/glib/byte-array.js +128 -0
  462. package/dist/generated/glib/bytes.d.ts +176 -0
  463. package/dist/generated/glib/bytes.js +176 -0
  464. package/dist/generated/glib/checksum.d.ts +64 -0
  465. package/dist/generated/glib/checksum.js +48 -0
  466. package/dist/generated/glib/date-time.d.ts +631 -0
  467. package/dist/generated/glib/date-time.js +595 -0
  468. package/dist/generated/glib/date.d.ts +393 -0
  469. package/dist/generated/glib/date.js +393 -0
  470. package/dist/generated/glib/dir.d.ts +67 -0
  471. package/dist/generated/glib/dir.js +60 -0
  472. package/dist/generated/glib/enums.d.ts +1721 -0
  473. package/dist/generated/glib/enums.js +1721 -0
  474. package/dist/generated/glib/error.d.ts +70 -0
  475. package/dist/generated/glib/error.js +61 -0
  476. package/dist/generated/glib/functions.d.ts +7786 -0
  477. package/dist/generated/glib/functions.js +7786 -0
  478. package/dist/generated/glib/hash-table.d.ts +233 -0
  479. package/dist/generated/glib/hash-table.js +233 -0
  480. package/dist/generated/glib/iochannel.d.ts +299 -0
  481. package/dist/generated/glib/iochannel.js +290 -0
  482. package/dist/generated/glib/key-file.d.ts +606 -0
  483. package/dist/generated/glib/key-file.js +606 -0
  484. package/dist/generated/glib/main-context.d.ts +346 -0
  485. package/dist/generated/glib/main-context.js +346 -0
  486. package/dist/generated/glib/main-loop.d.ts +38 -0
  487. package/dist/generated/glib/main-loop.js +33 -0
  488. package/dist/generated/glib/mapped-file.d.ts +72 -0
  489. package/dist/generated/glib/mapped-file.js +52 -0
  490. package/dist/generated/glib/markup-parse-context.d.ts +220 -0
  491. package/dist/generated/glib/markup-parse-context.js +209 -0
  492. package/dist/generated/glib/match-info.d.ts +369 -0
  493. package/dist/generated/glib/match-info.js +369 -0
  494. package/dist/generated/glib/option-group.d.ts +54 -0
  495. package/dist/generated/glib/option-group.js +41 -0
  496. package/dist/generated/glib/pattern-spec.d.ts +65 -0
  497. package/dist/generated/glib/pattern-spec.js +61 -0
  498. package/dist/generated/glib/poll-fd.d.ts +15 -0
  499. package/dist/generated/glib/poll-fd.js +15 -0
  500. package/dist/generated/glib/ptr-array.d.ts +6 -0
  501. package/dist/generated/glib/ptr-array.js +6 -0
  502. package/dist/generated/glib/rand.d.ts +61 -0
  503. package/dist/generated/glib/rand.js +61 -0
  504. package/dist/generated/glib/regex.d.ts +575 -0
  505. package/dist/generated/glib/regex.js +568 -0
  506. package/dist/generated/glib/source.d.ts +506 -0
  507. package/dist/generated/glib/source.js +492 -0
  508. package/dist/generated/glib/string.d.ts +249 -0
  509. package/dist/generated/glib/string.js +245 -0
  510. package/dist/generated/glib/strv-builder.d.ts +72 -0
  511. package/dist/generated/glib/strv-builder.js +72 -0
  512. package/dist/generated/glib/thread.d.ts +124 -0
  513. package/dist/generated/glib/thread.js +92 -0
  514. package/dist/generated/glib/time-zone.d.ts +217 -0
  515. package/dist/generated/glib/time-zone.js +209 -0
  516. package/dist/generated/glib/tree.d.ts +216 -0
  517. package/dist/generated/glib/tree.js +207 -0
  518. package/dist/generated/glib/uri.d.ts +549 -0
  519. package/dist/generated/glib/uri.js +549 -0
  520. package/dist/generated/glib/variant-builder.d.ts +113 -0
  521. package/dist/generated/glib/variant-builder.js +101 -0
  522. package/dist/generated/glib/variant-dict.d.ts +174 -0
  523. package/dist/generated/glib/variant-dict.js +161 -0
  524. package/dist/generated/glib/variant-type.d.ts +420 -0
  525. package/dist/generated/glib/variant-type.js +410 -0
  526. package/dist/generated/glib/variant.d.ts +1132 -0
  527. package/dist/generated/glib/variant.js +1112 -0
  528. package/dist/generated/gmodule/enums.d.ts +19 -0
  529. package/dist/generated/gmodule/enums.js +19 -0
  530. package/dist/generated/gmodule/functions.d.ts +23 -0
  531. package/dist/generated/gmodule/functions.js +23 -0
  532. package/dist/generated/gobject/binding-group.d.ts +59 -0
  533. package/dist/generated/gobject/binding-group.js +68 -0
  534. package/dist/generated/gobject/binding.d.ts +60 -0
  535. package/dist/generated/gobject/binding.js +137 -0
  536. package/dist/generated/gobject/closure.d.ts +187 -0
  537. package/dist/generated/gobject/closure.js +179 -0
  538. package/dist/generated/gobject/enums.d.ts +183 -0
  539. package/dist/generated/gobject/enums.js +183 -0
  540. package/dist/generated/gobject/functions.d.ts +1431 -0
  541. package/dist/generated/gobject/functions.js +1431 -0
  542. package/dist/generated/gobject/initially-unowned.js +6 -0
  543. package/dist/generated/gobject/object.d.ts +357 -0
  544. package/dist/generated/gobject/object.js +372 -0
  545. package/dist/generated/gobject/param-spec-boolean.d.ts +3 -0
  546. package/dist/generated/gobject/param-spec-boolean.js +3 -0
  547. package/dist/generated/gobject/param-spec-boxed.d.ts +3 -0
  548. package/dist/generated/gobject/param-spec-boxed.js +3 -0
  549. package/dist/generated/gobject/param-spec-char.d.ts +3 -0
  550. package/dist/generated/gobject/param-spec-char.js +3 -0
  551. package/dist/generated/gobject/param-spec-double.d.ts +3 -0
  552. package/dist/generated/gobject/param-spec-double.js +3 -0
  553. package/dist/generated/gobject/param-spec-enum.d.ts +4 -0
  554. package/dist/generated/gobject/param-spec-enum.js +4 -0
  555. package/dist/generated/gobject/param-spec-flags.d.ts +4 -0
  556. package/dist/generated/gobject/param-spec-flags.js +4 -0
  557. package/dist/generated/gobject/param-spec-float.d.ts +3 -0
  558. package/dist/generated/gobject/param-spec-float.js +3 -0
  559. package/dist/generated/gobject/param-spec-gtype.d.ts +3 -0
  560. package/dist/generated/gobject/param-spec-gtype.js +3 -0
  561. package/dist/generated/gobject/param-spec-int.d.ts +3 -0
  562. package/dist/generated/gobject/param-spec-int.js +3 -0
  563. package/dist/generated/gobject/param-spec-int64.d.ts +3 -0
  564. package/dist/generated/gobject/param-spec-int64.js +3 -0
  565. package/dist/generated/gobject/param-spec-long.d.ts +3 -0
  566. package/dist/generated/gobject/param-spec-long.js +3 -0
  567. package/dist/generated/gobject/param-spec-object.d.ts +3 -0
  568. package/dist/generated/gobject/param-spec-object.js +3 -0
  569. package/dist/generated/gobject/param-spec-override.d.ts +13 -0
  570. package/dist/generated/gobject/param-spec-override.js +13 -0
  571. package/dist/generated/gobject/param-spec-param.d.ts +4 -0
  572. package/dist/generated/gobject/param-spec-param.js +4 -0
  573. package/dist/generated/gobject/param-spec-pointer.d.ts +3 -0
  574. package/dist/generated/gobject/param-spec-pointer.js +3 -0
  575. package/dist/generated/gobject/param-spec-string.d.ts +4 -0
  576. package/dist/generated/gobject/param-spec-string.js +4 -0
  577. package/dist/generated/gobject/param-spec-uchar.d.ts +3 -0
  578. package/dist/generated/gobject/param-spec-uchar.js +3 -0
  579. package/dist/generated/gobject/param-spec-uint.d.ts +3 -0
  580. package/dist/generated/gobject/param-spec-uint.js +3 -0
  581. package/dist/generated/gobject/param-spec-uint64.d.ts +3 -0
  582. package/dist/generated/gobject/param-spec-uint64.js +3 -0
  583. package/dist/generated/gobject/param-spec-ulong.d.ts +3 -0
  584. package/dist/generated/gobject/param-spec-ulong.js +3 -0
  585. package/dist/generated/gobject/param-spec-unichar.d.ts +3 -0
  586. package/dist/generated/gobject/param-spec-unichar.js +3 -0
  587. package/dist/generated/gobject/param-spec-value-array.d.ts +3 -0
  588. package/dist/generated/gobject/param-spec-value-array.js +3 -0
  589. package/dist/generated/gobject/param-spec-variant.d.ts +9 -0
  590. package/dist/generated/gobject/param-spec-variant.js +9 -0
  591. package/dist/generated/gobject/param-spec.d.ts +82 -0
  592. package/dist/generated/gobject/param-spec.js +82 -0
  593. package/dist/generated/gobject/signal-group.d.ts +57 -0
  594. package/dist/generated/gobject/signal-group.js +74 -0
  595. package/dist/generated/gobject/type-module.d.ts +95 -0
  596. package/dist/generated/gobject/type-module.js +128 -0
  597. package/dist/generated/gobject/type-plugin.d.ts +76 -0
  598. package/dist/generated/gobject/type-plugin.js +76 -0
  599. package/dist/generated/gobject/value-array.d.ts +77 -0
  600. package/dist/generated/gobject/value-array.js +71 -0
  601. package/dist/generated/gobject/value.d.ts +353 -0
  602. package/dist/generated/gobject/value.js +353 -0
  603. package/dist/generated/graphene/box.d.ts +161 -0
  604. package/dist/generated/graphene/box.js +161 -0
  605. package/dist/generated/graphene/enums.d.ts +68 -0
  606. package/dist/generated/graphene/enums.js +68 -0
  607. package/dist/generated/graphene/euler.d.ts +147 -0
  608. package/dist/generated/graphene/euler.js +147 -0
  609. package/dist/generated/graphene/frustum.d.ts +56 -0
  610. package/dist/generated/graphene/frustum.js +56 -0
  611. package/dist/generated/graphene/functions.d.ts +108 -0
  612. package/dist/generated/graphene/functions.js +108 -0
  613. package/dist/generated/graphene/matrix.d.ts +477 -0
  614. package/dist/generated/graphene/matrix.js +477 -0
  615. package/dist/generated/graphene/plane.d.ts +85 -0
  616. package/dist/generated/graphene/plane.js +85 -0
  617. package/dist/generated/graphene/point.d.ts +79 -0
  618. package/dist/generated/graphene/point.js +79 -0
  619. package/dist/generated/graphene/point3d.d.ts +91 -0
  620. package/dist/generated/graphene/point3d.js +91 -0
  621. package/dist/generated/graphene/quad.d.ts +42 -0
  622. package/dist/generated/graphene/quad.js +42 -0
  623. package/dist/generated/graphene/quaternion.d.ts +140 -0
  624. package/dist/generated/graphene/quaternion.js +140 -0
  625. package/dist/generated/graphene/ray.d.ts +108 -0
  626. package/dist/generated/graphene/ray.js +108 -0
  627. package/dist/generated/graphene/rect.d.ts +245 -0
  628. package/dist/generated/graphene/rect.js +245 -0
  629. package/dist/generated/graphene/size.d.ts +41 -0
  630. package/dist/generated/graphene/size.js +41 -0
  631. package/dist/generated/graphene/sphere.d.ts +68 -0
  632. package/dist/generated/graphene/sphere.js +68 -0
  633. package/dist/generated/graphene/triangle.d.ts +111 -0
  634. package/dist/generated/graphene/triangle.js +111 -0
  635. package/dist/generated/graphene/vec2.d.ts +127 -0
  636. package/dist/generated/graphene/vec2.js +127 -0
  637. package/dist/generated/graphene/vec3.d.ts +169 -0
  638. package/dist/generated/graphene/vec3.js +169 -0
  639. package/dist/generated/graphene/vec4.d.ts +170 -0
  640. package/dist/generated/graphene/vec4.js +170 -0
  641. package/dist/generated/gsk/blend-node.d.ts +16 -0
  642. package/dist/generated/gsk/blend-node.js +10 -0
  643. package/dist/generated/gsk/blur-node.d.ts +12 -0
  644. package/dist/generated/gsk/blur-node.js +7 -0
  645. package/dist/generated/gsk/border-node.d.ts +19 -0
  646. package/dist/generated/gsk/border-node.js +10 -0
  647. package/dist/generated/gsk/broadway-renderer.d.ts +15 -0
  648. package/dist/generated/gsk/broadway-renderer.js +15 -0
  649. package/dist/generated/gsk/cairo-node.d.ts +18 -0
  650. package/dist/generated/gsk/cairo-node.js +11 -0
  651. package/dist/generated/gsk/cairo-renderer.d.ts +16 -0
  652. package/dist/generated/gsk/cairo-renderer.js +16 -0
  653. package/dist/generated/gsk/clip-node.d.ts +13 -0
  654. package/dist/generated/gsk/clip-node.js +7 -0
  655. package/dist/generated/gsk/color-matrix-node.d.ts +24 -0
  656. package/dist/generated/gsk/color-matrix-node.js +10 -0
  657. package/dist/generated/gsk/color-node.d.ts +13 -0
  658. package/dist/generated/gsk/color-node.js +7 -0
  659. package/dist/generated/gsk/component-transfer-node.d.ts +16 -0
  660. package/dist/generated/gsk/component-transfer-node.js +7 -0
  661. package/dist/generated/gsk/component-transfer.d.ts +107 -0
  662. package/dist/generated/gsk/component-transfer.js +89 -0
  663. package/dist/generated/gsk/conic-gradient-node.d.ts +34 -0
  664. package/dist/generated/gsk/conic-gradient-node.js +22 -0
  665. package/dist/generated/gsk/container-node.d.ts +15 -0
  666. package/dist/generated/gsk/container-node.js +8 -0
  667. package/dist/generated/gsk/cross-fade-node.d.ts +16 -0
  668. package/dist/generated/gsk/cross-fade-node.js +10 -0
  669. package/dist/generated/gsk/debug-node.d.ts +18 -0
  670. package/dist/generated/gsk/debug-node.js +10 -0
  671. package/dist/generated/gsk/enums.d.ts +313 -0
  672. package/dist/generated/gsk/enums.js +313 -0
  673. package/dist/generated/gsk/fill-node.d.ts +21 -0
  674. package/dist/generated/gsk/fill-node.js +14 -0
  675. package/dist/generated/gsk/functions.d.ts +76 -0
  676. package/dist/generated/gsk/functions.js +76 -0
  677. package/dist/generated/gsk/glrenderer.d.ts +8 -0
  678. package/dist/generated/gsk/glrenderer.js +8 -0
  679. package/dist/generated/gsk/glshader-node.d.ts +38 -0
  680. package/dist/generated/gsk/glshader-node.js +14 -0
  681. package/dist/generated/gsk/glshader.d.ts +226 -0
  682. package/dist/generated/gsk/glshader.js +222 -0
  683. package/dist/generated/gsk/inset-shadow-node.d.ts +32 -0
  684. package/dist/generated/gsk/inset-shadow-node.js +22 -0
  685. package/dist/generated/gsk/linear-gradient-node.d.ts +23 -0
  686. package/dist/generated/gsk/linear-gradient-node.js +14 -0
  687. package/dist/generated/gsk/mask-node.d.ts +20 -0
  688. package/dist/generated/gsk/mask-node.js +10 -0
  689. package/dist/generated/gsk/ngl-renderer.d.ts +8 -0
  690. package/dist/generated/gsk/ngl-renderer.js +8 -0
  691. package/dist/generated/gsk/opacity-node.d.ts +13 -0
  692. package/dist/generated/gsk/opacity-node.js +7 -0
  693. package/dist/generated/gsk/outset-shadow-node.d.ts +32 -0
  694. package/dist/generated/gsk/outset-shadow-node.js +22 -0
  695. package/dist/generated/gsk/path-builder.d.ts +336 -0
  696. package/dist/generated/gsk/path-builder.js +336 -0
  697. package/dist/generated/gsk/path-measure.d.ts +47 -0
  698. package/dist/generated/gsk/path-measure.js +42 -0
  699. package/dist/generated/gsk/path-point.d.ts +93 -0
  700. package/dist/generated/gsk/path-point.js +93 -0
  701. package/dist/generated/gsk/path.d.ts +181 -0
  702. package/dist/generated/gsk/path.js +181 -0
  703. package/dist/generated/gsk/radial-gradient-node.d.ts +37 -0
  704. package/dist/generated/gsk/radial-gradient-node.js +23 -0
  705. package/dist/generated/gsk/render-node.d.ts +83 -0
  706. package/dist/generated/gsk/render-node.js +83 -0
  707. package/dist/generated/gsk/renderer.d.ts +79 -0
  708. package/dist/generated/gsk/renderer.js +69 -0
  709. package/dist/generated/gsk/repeat-node.d.ts +14 -0
  710. package/dist/generated/gsk/repeat-node.js +7 -0
  711. package/dist/generated/gsk/repeating-linear-gradient-node.d.ts +11 -0
  712. package/dist/generated/gsk/repeating-linear-gradient-node.js +1 -0
  713. package/dist/generated/gsk/repeating-radial-gradient-node.d.ts +15 -0
  714. package/dist/generated/gsk/repeating-radial-gradient-node.js +1 -0
  715. package/dist/generated/gsk/rounded-clip-node.d.ts +13 -0
  716. package/dist/generated/gsk/rounded-clip-node.js +7 -0
  717. package/dist/generated/gsk/shader-args-builder.d.ts +77 -0
  718. package/dist/generated/gsk/shader-args-builder.js +71 -0
  719. package/dist/generated/gsk/shadow-node.d.ts +18 -0
  720. package/dist/generated/gsk/shadow-node.js +11 -0
  721. package/dist/generated/gsk/stroke-node.d.ts +23 -0
  722. package/dist/generated/gsk/stroke-node.js +14 -0
  723. package/dist/generated/gsk/stroke.d.ts +110 -0
  724. package/dist/generated/gsk/stroke.js +106 -0
  725. package/dist/generated/gsk/subsurface-node.d.ts +6 -0
  726. package/dist/generated/gsk/subsurface-node.js +6 -0
  727. package/dist/generated/gsk/text-node.d.ts +33 -0
  728. package/dist/generated/gsk/text-node.js +23 -0
  729. package/dist/generated/gsk/texture-node.d.ts +14 -0
  730. package/dist/generated/gsk/texture-node.js +4 -0
  731. package/dist/generated/gsk/texture-scale-node.d.ts +24 -0
  732. package/dist/generated/gsk/texture-scale-node.js +7 -0
  733. package/dist/generated/gsk/transform-node.d.ts +12 -0
  734. package/dist/generated/gsk/transform-node.js +7 -0
  735. package/dist/generated/gsk/transform.d.ts +282 -0
  736. package/dist/generated/gsk/transform.js +282 -0
  737. package/dist/generated/gsk/vulkan-renderer.d.ts +14 -0
  738. package/dist/generated/gsk/vulkan-renderer.js +14 -0
  739. package/dist/generated/gtk/about-dialog.d.ts +166 -0
  740. package/dist/generated/gtk/about-dialog.js +220 -0
  741. package/dist/generated/gtk/accessible-list.d.ts +14 -0
  742. package/dist/generated/gtk/accessible-list.js +14 -0
  743. package/dist/generated/gtk/accessible-range.d.ts +27 -0
  744. package/dist/generated/gtk/accessible-range.js +27 -0
  745. package/dist/generated/gtk/accessible-text.d.ts +38 -0
  746. package/dist/generated/gtk/accessible-text.js +38 -0
  747. package/dist/generated/gtk/accessible.d.ts +154 -0
  748. package/dist/generated/gtk/accessible.js +154 -0
  749. package/dist/generated/gtk/action-bar.d.ts +75 -0
  750. package/dist/generated/gtk/action-bar.js +75 -0
  751. package/dist/generated/gtk/actionable.d.ts +65 -0
  752. package/dist/generated/gtk/actionable.js +65 -0
  753. package/dist/generated/gtk/activate-action.d.ts +11 -0
  754. package/dist/generated/gtk/activate-action.js +11 -0
  755. package/dist/generated/gtk/adjustment.d.ts +121 -0
  756. package/dist/generated/gtk/adjustment.js +125 -0
  757. package/dist/generated/gtk/alert-dialog.d.ts +76 -0
  758. package/dist/generated/gtk/alert-dialog.js +76 -0
  759. package/dist/generated/gtk/alternative-trigger.d.ts +30 -0
  760. package/dist/generated/gtk/alternative-trigger.js +21 -0
  761. package/dist/generated/gtk/any-filter.d.ts +14 -0
  762. package/dist/generated/gtk/any-filter.js +14 -0
  763. package/dist/generated/gtk/app-chooser-button.d.ts +76 -0
  764. package/dist/generated/gtk/app-chooser-button.js +100 -0
  765. package/dist/generated/gtk/app-chooser-dialog.d.ts +38 -0
  766. package/dist/generated/gtk/app-chooser-dialog.js +49 -0
  767. package/dist/generated/gtk/app-chooser-widget.d.ts +69 -0
  768. package/dist/generated/gtk/app-chooser-widget.js +89 -0
  769. package/dist/generated/gtk/app-chooser.d.ts +31 -0
  770. package/dist/generated/gtk/app-chooser.js +31 -0
  771. package/dist/generated/gtk/application-window.d.ts +32 -0
  772. package/dist/generated/gtk/application-window.js +99 -0
  773. package/dist/generated/gtk/application.d.ts +191 -0
  774. package/dist/generated/gtk/application.js +239 -0
  775. package/dist/generated/gtk/aspect-frame.d.ts +65 -0
  776. package/dist/generated/gtk/aspect-frame.js +58 -0
  777. package/dist/generated/gtk/assistant-page.d.ts +4 -0
  778. package/dist/generated/gtk/assistant-page.js +4 -0
  779. package/dist/generated/gtk/assistant.d.ts +141 -0
  780. package/dist/generated/gtk/assistant.js +179 -0
  781. package/dist/generated/gtk/atcontext.d.ts +16 -0
  782. package/dist/generated/gtk/atcontext.js +13 -0
  783. package/dist/generated/gtk/bin-layout.d.ts +11 -0
  784. package/dist/generated/gtk/bin-layout.js +11 -0
  785. package/dist/generated/gtk/bitset-iter.d.ts +60 -0
  786. package/dist/generated/gtk/bitset-iter.js +60 -0
  787. package/dist/generated/gtk/bitset.d.ts +196 -0
  788. package/dist/generated/gtk/bitset.js +196 -0
  789. package/dist/generated/gtk/bookmark-list.d.ts +45 -0
  790. package/dist/generated/gtk/bookmark-list.js +40 -0
  791. package/dist/generated/gtk/bool-filter.d.ts +23 -0
  792. package/dist/generated/gtk/bool-filter.js +19 -0
  793. package/dist/generated/gtk/border.d.ts +18 -0
  794. package/dist/generated/gtk/border.js +18 -0
  795. package/dist/generated/gtk/box-layout.d.ts +62 -0
  796. package/dist/generated/gtk/box-layout.js +58 -0
  797. package/dist/generated/gtk/box.d.ts +122 -0
  798. package/dist/generated/gtk/box.js +117 -0
  799. package/dist/generated/gtk/buildable.d.ts +20 -0
  800. package/dist/generated/gtk/buildable.js +20 -0
  801. package/dist/generated/gtk/builder-cscope.d.ts +36 -0
  802. package/dist/generated/gtk/builder-cscope.js +36 -0
  803. package/dist/generated/gtk/builder-list-item-factory.d.ts +55 -0
  804. package/dist/generated/gtk/builder-list-item-factory.js +49 -0
  805. package/dist/generated/gtk/builder-scope.d.ts +19 -0
  806. package/dist/generated/gtk/builder-scope.js +19 -0
  807. package/dist/generated/gtk/builder.d.ts +613 -0
  808. package/dist/generated/gtk/builder.js +613 -0
  809. package/dist/generated/gtk/button.d.ts +152 -0
  810. package/dist/generated/gtk/button.js +189 -0
  811. package/dist/generated/gtk/calendar.d.ts +97 -0
  812. package/dist/generated/gtk/calendar.js +152 -0
  813. package/dist/generated/gtk/callback-action.d.ts +8 -0
  814. package/dist/generated/gtk/callback-action.js +1 -0
  815. package/dist/generated/gtk/cclosure-expression.d.ts +15 -0
  816. package/dist/generated/gtk/cclosure-expression.js +1 -0
  817. package/dist/generated/gtk/cell-area-box.d.ts +38 -0
  818. package/dist/generated/gtk/cell-area-box.js +38 -0
  819. package/dist/generated/gtk/cell-area-context.d.ts +133 -0
  820. package/dist/generated/gtk/cell-area-context.js +133 -0
  821. package/dist/generated/gtk/cell-area.d.ts +399 -0
  822. package/dist/generated/gtk/cell-area.js +714 -0
  823. package/dist/generated/gtk/cell-editable.d.ts +26 -0
  824. package/dist/generated/gtk/cell-editable.js +26 -0
  825. package/dist/generated/gtk/cell-layout.d.ts +176 -0
  826. package/dist/generated/gtk/cell-layout.js +176 -0
  827. package/dist/generated/gtk/cell-renderer-accel.d.ts +3 -0
  828. package/dist/generated/gtk/cell-renderer-accel.js +10 -0
  829. package/dist/generated/gtk/cell-renderer-combo.d.ts +9 -0
  830. package/dist/generated/gtk/cell-renderer-combo.js +23 -0
  831. package/dist/generated/gtk/cell-renderer-pixbuf.d.ts +25 -0
  832. package/dist/generated/gtk/cell-renderer-pixbuf.js +25 -0
  833. package/dist/generated/gtk/cell-renderer-progress.d.ts +16 -0
  834. package/dist/generated/gtk/cell-renderer-progress.js +16 -0
  835. package/dist/generated/gtk/cell-renderer-spin.d.ts +3 -0
  836. package/dist/generated/gtk/cell-renderer-spin.js +18 -0
  837. package/dist/generated/gtk/cell-renderer-spinner.d.ts +18 -0
  838. package/dist/generated/gtk/cell-renderer-spinner.js +18 -0
  839. package/dist/generated/gtk/cell-renderer-text.d.ts +19 -0
  840. package/dist/generated/gtk/cell-renderer-text.js +29 -0
  841. package/dist/generated/gtk/cell-renderer-toggle.d.ts +38 -0
  842. package/dist/generated/gtk/cell-renderer-toggle.js +46 -0
  843. package/dist/generated/gtk/cell-renderer.d.ts +160 -0
  844. package/dist/generated/gtk/cell-renderer.js +199 -0
  845. package/dist/generated/gtk/cell-view.d.ts +171 -0
  846. package/dist/generated/gtk/cell-view.js +171 -0
  847. package/dist/generated/gtk/center-box.d.ts +103 -0
  848. package/dist/generated/gtk/center-box.js +103 -0
  849. package/dist/generated/gtk/center-layout.d.ts +67 -0
  850. package/dist/generated/gtk/center-layout.js +67 -0
  851. package/dist/generated/gtk/check-button.d.ts +132 -0
  852. package/dist/generated/gtk/check-button.js +197 -0
  853. package/dist/generated/gtk/closure-expression.d.ts +14 -0
  854. package/dist/generated/gtk/closure-expression.js +4 -0
  855. package/dist/generated/gtk/color-button.d.ts +65 -0
  856. package/dist/generated/gtk/color-button.js +85 -0
  857. package/dist/generated/gtk/color-chooser-dialog.d.ts +43 -0
  858. package/dist/generated/gtk/color-chooser-dialog.js +59 -0
  859. package/dist/generated/gtk/color-chooser-widget.d.ts +75 -0
  860. package/dist/generated/gtk/color-chooser-widget.js +75 -0
  861. package/dist/generated/gtk/color-chooser.d.ts +48 -0
  862. package/dist/generated/gtk/color-chooser.js +48 -0
  863. package/dist/generated/gtk/color-dialog-button.d.ts +28 -0
  864. package/dist/generated/gtk/color-dialog-button.js +39 -0
  865. package/dist/generated/gtk/color-dialog.d.ts +47 -0
  866. package/dist/generated/gtk/color-dialog.js +47 -0
  867. package/dist/generated/gtk/column-view-cell.d.ts +17 -0
  868. package/dist/generated/gtk/column-view-cell.js +17 -0
  869. package/dist/generated/gtk/column-view-column.d.ts +127 -0
  870. package/dist/generated/gtk/column-view-column.js +112 -0
  871. package/dist/generated/gtk/column-view-row.d.ts +89 -0
  872. package/dist/generated/gtk/column-view-row.js +89 -0
  873. package/dist/generated/gtk/column-view-sorter.d.ts +67 -0
  874. package/dist/generated/gtk/column-view-sorter.js +67 -0
  875. package/dist/generated/gtk/column-view.d.ts +204 -0
  876. package/dist/generated/gtk/column-view.js +263 -0
  877. package/dist/generated/gtk/combo-box-text.d.ts +76 -0
  878. package/dist/generated/gtk/combo-box-text.js +133 -0
  879. package/dist/generated/gtk/combo-box.d.ts +261 -0
  880. package/dist/generated/gtk/combo-box.js +323 -0
  881. package/dist/generated/gtk/constant-expression.d.ts +8 -0
  882. package/dist/generated/gtk/constant-expression.js +4 -0
  883. package/dist/generated/gtk/constraint-guide.d.ts +72 -0
  884. package/dist/generated/gtk/constraint-guide.js +72 -0
  885. package/dist/generated/gtk/constraint-layout-child.d.ts +1 -0
  886. package/dist/generated/gtk/constraint-layout-child.js +1 -0
  887. package/dist/generated/gtk/constraint-layout.d.ts +319 -0
  888. package/dist/generated/gtk/constraint-layout.js +319 -0
  889. package/dist/generated/gtk/constraint-target.d.ts +6 -0
  890. package/dist/generated/gtk/constraint-target.js +6 -0
  891. package/dist/generated/gtk/constraint.d.ts +83 -0
  892. package/dist/generated/gtk/constraint.js +71 -0
  893. package/dist/generated/gtk/css-provider.d.ts +59 -0
  894. package/dist/generated/gtk/css-provider.js +89 -0
  895. package/dist/generated/gtk/css-section.d.ts +66 -0
  896. package/dist/generated/gtk/css-section.js +58 -0
  897. package/dist/generated/gtk/custom-filter.d.ts +25 -0
  898. package/dist/generated/gtk/custom-filter.js +14 -0
  899. package/dist/generated/gtk/custom-layout.d.ts +18 -0
  900. package/dist/generated/gtk/custom-layout.js +8 -0
  901. package/dist/generated/gtk/custom-sorter.d.ts +24 -0
  902. package/dist/generated/gtk/custom-sorter.js +15 -0
  903. package/dist/generated/gtk/dialog.d.ts +69 -0
  904. package/dist/generated/gtk/dialog.js +192 -0
  905. package/dist/generated/gtk/directory-list.d.ts +101 -0
  906. package/dist/generated/gtk/directory-list.js +94 -0
  907. package/dist/generated/gtk/drag-icon.d.ts +84 -0
  908. package/dist/generated/gtk/drag-icon.js +77 -0
  909. package/dist/generated/gtk/drag-source.d.ts +55 -0
  910. package/dist/generated/gtk/drag-source.js +133 -0
  911. package/dist/generated/gtk/drawing-area.d.ts +50 -0
  912. package/dist/generated/gtk/drawing-area.js +130 -0
  913. package/dist/generated/gtk/drop-controller-motion.d.ts +16 -0
  914. package/dist/generated/gtk/drop-controller-motion.js +25 -0
  915. package/dist/generated/gtk/drop-down.d.ts +92 -0
  916. package/dist/generated/gtk/drop-down.js +141 -0
  917. package/dist/generated/gtk/drop-target-async.d.ts +29 -0
  918. package/dist/generated/gtk/drop-target-async.js +59 -0
  919. package/dist/generated/gtk/drop-target.d.ts +62 -0
  920. package/dist/generated/gtk/drop-target.js +126 -0
  921. package/dist/generated/gtk/editable-label.d.ts +257 -0
  922. package/dist/generated/gtk/editable-label.js +253 -0
  923. package/dist/generated/gtk/editable.d.ts +325 -0
  924. package/dist/generated/gtk/editable.js +325 -0
  925. package/dist/generated/gtk/emoji-chooser.d.ts +3 -0
  926. package/dist/generated/gtk/emoji-chooser.js +45 -0
  927. package/dist/generated/gtk/entry-buffer.d.ts +82 -0
  928. package/dist/generated/gtk/entry-buffer.js +87 -0
  929. package/dist/generated/gtk/entry-completion.d.ts +202 -0
  930. package/dist/generated/gtk/entry-completion.js +242 -0
  931. package/dist/generated/gtk/entry.d.ts +620 -0
  932. package/dist/generated/gtk/entry.js +709 -0
  933. package/dist/generated/gtk/enums.d.ts +2192 -0
  934. package/dist/generated/gtk/enums.js +2192 -0
  935. package/dist/generated/gtk/event-controller-focus.d.ts +9 -0
  936. package/dist/generated/gtk/event-controller-focus.js +19 -0
  937. package/dist/generated/gtk/event-controller-key.d.ts +24 -0
  938. package/dist/generated/gtk/event-controller-key.js +25 -0
  939. package/dist/generated/gtk/event-controller-legacy.d.ts +3 -0
  940. package/dist/generated/gtk/event-controller-legacy.js +9 -0
  941. package/dist/generated/gtk/event-controller-motion.d.ts +9 -0
  942. package/dist/generated/gtk/event-controller-motion.js +19 -0
  943. package/dist/generated/gtk/event-controller-scroll.d.ts +18 -0
  944. package/dist/generated/gtk/event-controller-scroll.js +49 -0
  945. package/dist/generated/gtk/event-controller.d.ts +75 -0
  946. package/dist/generated/gtk/event-controller.js +75 -0
  947. package/dist/generated/gtk/every-filter.d.ts +14 -0
  948. package/dist/generated/gtk/every-filter.js +14 -0
  949. package/dist/generated/gtk/expander.d.ts +82 -0
  950. package/dist/generated/gtk/expander.js +166 -0
  951. package/dist/generated/gtk/expression-watch.d.ts +29 -0
  952. package/dist/generated/gtk/expression-watch.js +29 -0
  953. package/dist/generated/gtk/expression.d.ts +238 -0
  954. package/dist/generated/gtk/expression.js +238 -0
  955. package/dist/generated/gtk/file-chooser-dialog.d.ts +206 -0
  956. package/dist/generated/gtk/file-chooser-dialog.js +380 -0
  957. package/dist/generated/gtk/file-chooser-native.d.ts +390 -0
  958. package/dist/generated/gtk/file-chooser-native.js +382 -0
  959. package/dist/generated/gtk/file-chooser-widget.d.ts +214 -0
  960. package/dist/generated/gtk/file-chooser-widget.js +238 -0
  961. package/dist/generated/gtk/file-chooser.d.ts +248 -0
  962. package/dist/generated/gtk/file-chooser.js +248 -0
  963. package/dist/generated/gtk/file-dialog.d.ts +147 -0
  964. package/dist/generated/gtk/file-dialog.js +147 -0
  965. package/dist/generated/gtk/file-filter.d.ts +133 -0
  966. package/dist/generated/gtk/file-filter.js +133 -0
  967. package/dist/generated/gtk/file-launcher.d.ts +53 -0
  968. package/dist/generated/gtk/file-launcher.js +49 -0
  969. package/dist/generated/gtk/filter-list-model.d.ts +123 -0
  970. package/dist/generated/gtk/filter-list-model.js +117 -0
  971. package/dist/generated/gtk/filter.d.ts +30 -0
  972. package/dist/generated/gtk/filter.js +49 -0
  973. package/dist/generated/gtk/fixed-layout-child.d.ts +8 -0
  974. package/dist/generated/gtk/fixed-layout-child.js +8 -0
  975. package/dist/generated/gtk/fixed-layout.d.ts +35 -0
  976. package/dist/generated/gtk/fixed-layout.js +35 -0
  977. package/dist/generated/gtk/fixed.d.ts +81 -0
  978. package/dist/generated/gtk/fixed.js +81 -0
  979. package/dist/generated/gtk/flatten-list-model.d.ts +50 -0
  980. package/dist/generated/gtk/flatten-list-model.js +46 -0
  981. package/dist/generated/gtk/flow-box-child.d.ts +40 -0
  982. package/dist/generated/gtk/flow-box-child.js +46 -0
  983. package/dist/generated/gtk/flow-box.d.ts +243 -0
  984. package/dist/generated/gtk/flow-box.js +302 -0
  985. package/dist/generated/gtk/font-button.d.ts +129 -0
  986. package/dist/generated/gtk/font-button.js +148 -0
  987. package/dist/generated/gtk/font-chooser-dialog.d.ts +97 -0
  988. package/dist/generated/gtk/font-chooser-dialog.js +113 -0
  989. package/dist/generated/gtk/font-chooser-widget.d.ts +114 -0
  990. package/dist/generated/gtk/font-chooser-widget.js +114 -0
  991. package/dist/generated/gtk/font-chooser.d.ts +132 -0
  992. package/dist/generated/gtk/font-chooser.js +132 -0
  993. package/dist/generated/gtk/font-dialog-button.d.ts +75 -0
  994. package/dist/generated/gtk/font-dialog-button.js +85 -0
  995. package/dist/generated/gtk/font-dialog.d.ts +85 -0
  996. package/dist/generated/gtk/font-dialog.js +85 -0
  997. package/dist/generated/gtk/frame.d.ts +86 -0
  998. package/dist/generated/gtk/frame.js +80 -0
  999. package/dist/generated/gtk/functions.d.ts +769 -0
  1000. package/dist/generated/gtk/functions.js +769 -0
  1001. package/dist/generated/gtk/gesture-click.d.ts +4 -0
  1002. package/dist/generated/gtk/gesture-click.js +13 -0
  1003. package/dist/generated/gtk/gesture-drag.d.ts +21 -0
  1004. package/dist/generated/gtk/gesture-drag.js +32 -0
  1005. package/dist/generated/gtk/gesture-long-press.d.ts +13 -0
  1006. package/dist/generated/gtk/gesture-long-press.js +30 -0
  1007. package/dist/generated/gtk/gesture-pan.d.ts +11 -0
  1008. package/dist/generated/gtk/gesture-pan.js +23 -0
  1009. package/dist/generated/gtk/gesture-rotate.d.ts +11 -0
  1010. package/dist/generated/gtk/gesture-rotate.js +17 -0
  1011. package/dist/generated/gtk/gesture-single.d.ts +47 -0
  1012. package/dist/generated/gtk/gesture-single.js +62 -0
  1013. package/dist/generated/gtk/gesture-stylus.d.ts +61 -0
  1014. package/dist/generated/gtk/gesture-stylus.js +67 -0
  1015. package/dist/generated/gtk/gesture-swipe.d.ts +12 -0
  1016. package/dist/generated/gtk/gesture-swipe.js +26 -0
  1017. package/dist/generated/gtk/gesture-zoom.d.ts +12 -0
  1018. package/dist/generated/gtk/gesture-zoom.js +19 -0
  1019. package/dist/generated/gtk/gesture.d.ts +197 -0
  1020. package/dist/generated/gtk/gesture.js +288 -0
  1021. package/dist/generated/gtk/glarea.d.ts +131 -0
  1022. package/dist/generated/gtk/glarea.js +246 -0
  1023. package/dist/generated/gtk/graphics-offload.d.ts +78 -0
  1024. package/dist/generated/gtk/graphics-offload.js +74 -0
  1025. package/dist/generated/gtk/grid-layout-child.d.ts +29 -0
  1026. package/dist/generated/gtk/grid-layout-child.js +29 -0
  1027. package/dist/generated/gtk/grid-layout.d.ts +72 -0
  1028. package/dist/generated/gtk/grid-layout.js +72 -0
  1029. package/dist/generated/gtk/grid-view.d.ts +86 -0
  1030. package/dist/generated/gtk/grid-view.js +117 -0
  1031. package/dist/generated/gtk/grid.d.ts +241 -0
  1032. package/dist/generated/gtk/grid.js +241 -0
  1033. package/dist/generated/gtk/header-bar.d.ts +157 -0
  1034. package/dist/generated/gtk/header-bar.js +157 -0
  1035. package/dist/generated/gtk/icon-paintable.d.ts +47 -0
  1036. package/dist/generated/gtk/icon-paintable.js +39 -0
  1037. package/dist/generated/gtk/icon-theme.d.ts +148 -0
  1038. package/dist/generated/gtk/icon-theme.js +182 -0
  1039. package/dist/generated/gtk/icon-view.d.ts +464 -0
  1040. package/dist/generated/gtk/icon-view.js +491 -0
  1041. package/dist/generated/gtk/image.d.ts +222 -0
  1042. package/dist/generated/gtk/image.js +222 -0
  1043. package/dist/generated/gtk/imcontext-simple.d.ts +47 -0
  1044. package/dist/generated/gtk/imcontext-simple.js +47 -0
  1045. package/dist/generated/gtk/imcontext.d.ts +162 -0
  1046. package/dist/generated/gtk/imcontext.js +193 -0
  1047. package/dist/generated/gtk/immulticontext.d.ts +24 -0
  1048. package/dist/generated/gtk/immulticontext.js +24 -0
  1049. package/dist/generated/gtk/info-bar.d.ts +93 -0
  1050. package/dist/generated/gtk/info-bar.js +168 -0
  1051. package/dist/generated/gtk/inscription.d.ts +154 -0
  1052. package/dist/generated/gtk/inscription.js +150 -0
  1053. package/dist/generated/gtk/keyval-trigger.d.ts +15 -0
  1054. package/dist/generated/gtk/keyval-trigger.js +9 -0
  1055. package/dist/generated/gtk/label.d.ts +418 -0
  1056. package/dist/generated/gtk/label.js +627 -0
  1057. package/dist/generated/gtk/layout-child.d.ts +17 -0
  1058. package/dist/generated/gtk/layout-child.js +17 -0
  1059. package/dist/generated/gtk/layout-manager.d.ts +95 -0
  1060. package/dist/generated/gtk/layout-manager.js +95 -0
  1061. package/dist/generated/gtk/level-bar.d.ts +80 -0
  1062. package/dist/generated/gtk/level-bar.js +179 -0
  1063. package/dist/generated/gtk/link-button.d.ts +32 -0
  1064. package/dist/generated/gtk/link-button.js +69 -0
  1065. package/dist/generated/gtk/list-base.d.ts +96 -0
  1066. package/dist/generated/gtk/list-base.js +96 -0
  1067. package/dist/generated/gtk/list-box-row.d.ts +119 -0
  1068. package/dist/generated/gtk/list-box-row.js +125 -0
  1069. package/dist/generated/gtk/list-box.d.ts +257 -0
  1070. package/dist/generated/gtk/list-box.js +323 -0
  1071. package/dist/generated/gtk/list-header.d.ts +43 -0
  1072. package/dist/generated/gtk/list-header.js +43 -0
  1073. package/dist/generated/gtk/list-item-factory.d.ts +49 -0
  1074. package/dist/generated/gtk/list-item-factory.js +49 -0
  1075. package/dist/generated/gtk/list-item.d.ts +115 -0
  1076. package/dist/generated/gtk/list-item.js +115 -0
  1077. package/dist/generated/gtk/list-store.d.ts +580 -0
  1078. package/dist/generated/gtk/list-store.js +573 -0
  1079. package/dist/generated/gtk/list-view.d.ts +86 -0
  1080. package/dist/generated/gtk/list-view.js +179 -0
  1081. package/dist/generated/gtk/lock-button.d.ts +11 -0
  1082. package/dist/generated/gtk/lock-button.js +46 -0
  1083. package/dist/generated/gtk/map-list-model.d.ts +97 -0
  1084. package/dist/generated/gtk/map-list-model.js +90 -0
  1085. package/dist/generated/gtk/media-controls.d.ts +18 -0
  1086. package/dist/generated/gtk/media-controls.js +14 -0
  1087. package/dist/generated/gtk/media-file.d.ts +78 -0
  1088. package/dist/generated/gtk/media-file.js +78 -0
  1089. package/dist/generated/gtk/media-stream.d.ts +253 -0
  1090. package/dist/generated/gtk/media-stream.js +253 -0
  1091. package/dist/generated/gtk/menu-button.d.ts +155 -0
  1092. package/dist/generated/gtk/menu-button.js +219 -0
  1093. package/dist/generated/gtk/message-dialog.d.ts +12 -0
  1094. package/dist/generated/gtk/message-dialog.js +70 -0
  1095. package/dist/generated/gtk/mnemonic-action.d.ts +11 -0
  1096. package/dist/generated/gtk/mnemonic-action.js +11 -0
  1097. package/dist/generated/gtk/mnemonic-trigger.d.ts +17 -0
  1098. package/dist/generated/gtk/mnemonic-trigger.js +9 -0
  1099. package/dist/generated/gtk/mount-operation.d.ts +39 -0
  1100. package/dist/generated/gtk/mount-operation.js +35 -0
  1101. package/dist/generated/gtk/multi-filter.d.ts +18 -0
  1102. package/dist/generated/gtk/multi-filter.js +18 -0
  1103. package/dist/generated/gtk/multi-selection.d.ts +135 -0
  1104. package/dist/generated/gtk/multi-selection.js +131 -0
  1105. package/dist/generated/gtk/multi-sorter.d.ts +34 -0
  1106. package/dist/generated/gtk/multi-sorter.js +34 -0
  1107. package/dist/generated/gtk/named-action.d.ts +20 -0
  1108. package/dist/generated/gtk/named-action.js +10 -0
  1109. package/dist/generated/gtk/native-dialog.d.ts +67 -0
  1110. package/dist/generated/gtk/native-dialog.js +86 -0
  1111. package/dist/generated/gtk/native.d.ts +40 -0
  1112. package/dist/generated/gtk/native.js +40 -0
  1113. package/dist/generated/gtk/never-trigger.d.ts +8 -0
  1114. package/dist/generated/gtk/never-trigger.js +8 -0
  1115. package/dist/generated/gtk/no-selection.d.ts +142 -0
  1116. package/dist/generated/gtk/no-selection.js +138 -0
  1117. package/dist/generated/gtk/notebook-page.d.ts +4 -0
  1118. package/dist/generated/gtk/notebook-page.js +4 -0
  1119. package/dist/generated/gtk/notebook.d.ts +283 -0
  1120. package/dist/generated/gtk/notebook.js +401 -0
  1121. package/dist/generated/gtk/nothing-action.d.ts +7 -0
  1122. package/dist/generated/gtk/nothing-action.js +7 -0
  1123. package/dist/generated/gtk/numeric-sorter.d.ts +33 -0
  1124. package/dist/generated/gtk/numeric-sorter.js +26 -0
  1125. package/dist/generated/gtk/object-expression.d.ts +14 -0
  1126. package/dist/generated/gtk/object-expression.js +4 -0
  1127. package/dist/generated/gtk/orientable.d.ts +19 -0
  1128. package/dist/generated/gtk/orientable.js +19 -0
  1129. package/dist/generated/gtk/overlay-layout-child.d.ts +15 -0
  1130. package/dist/generated/gtk/overlay-layout-child.js +15 -0
  1131. package/dist/generated/gtk/overlay-layout.d.ts +12 -0
  1132. package/dist/generated/gtk/overlay-layout.js +12 -0
  1133. package/dist/generated/gtk/overlay.d.ts +48 -0
  1134. package/dist/generated/gtk/overlay.js +81 -0
  1135. package/dist/generated/gtk/pad-controller.d.ts +97 -0
  1136. package/dist/generated/gtk/pad-controller.js +79 -0
  1137. package/dist/generated/gtk/page-setup-unix-dialog.d.ts +21 -0
  1138. package/dist/generated/gtk/page-setup-unix-dialog.js +31 -0
  1139. package/dist/generated/gtk/page-setup.d.ts +188 -0
  1140. package/dist/generated/gtk/page-setup.js +188 -0
  1141. package/dist/generated/gtk/paned.d.ts +71 -0
  1142. package/dist/generated/gtk/paned.js +147 -0
  1143. package/dist/generated/gtk/paper-size.d.ts +141 -0
  1144. package/dist/generated/gtk/paper-size.js +132 -0
  1145. package/dist/generated/gtk/param-spec-expression.d.ts +1 -0
  1146. package/dist/generated/gtk/param-spec-expression.js +1 -0
  1147. package/dist/generated/gtk/password-entry-buffer.d.ts +9 -0
  1148. package/dist/generated/gtk/password-entry-buffer.js +9 -0
  1149. package/dist/generated/gtk/password-entry.d.ts +217 -0
  1150. package/dist/generated/gtk/password-entry.js +251 -0
  1151. package/dist/generated/gtk/picture.d.ts +204 -0
  1152. package/dist/generated/gtk/picture.js +204 -0
  1153. package/dist/generated/gtk/popover-menu-bar.d.ts +55 -0
  1154. package/dist/generated/gtk/popover-menu-bar.js +51 -0
  1155. package/dist/generated/gtk/popover-menu.d.ts +61 -0
  1156. package/dist/generated/gtk/popover-menu.js +163 -0
  1157. package/dist/generated/gtk/popover.d.ts +137 -0
  1158. package/dist/generated/gtk/popover.js +232 -0
  1159. package/dist/generated/gtk/print-context.d.ts +124 -0
  1160. package/dist/generated/gtk/print-context.js +124 -0
  1161. package/dist/generated/gtk/print-dialog.d.ts +71 -0
  1162. package/dist/generated/gtk/print-dialog.js +71 -0
  1163. package/dist/generated/gtk/print-job.d.ts +143 -0
  1164. package/dist/generated/gtk/print-job.js +148 -0
  1165. package/dist/generated/gtk/print-operation-preview.d.ts +31 -0
  1166. package/dist/generated/gtk/print-operation-preview.js +31 -0
  1167. package/dist/generated/gtk/print-operation.d.ts +300 -0
  1168. package/dist/generated/gtk/print-operation.js +364 -0
  1169. package/dist/generated/gtk/print-settings.d.ts +361 -0
  1170. package/dist/generated/gtk/print-settings.js +361 -0
  1171. package/dist/generated/gtk/print-setup.d.ts +32 -0
  1172. package/dist/generated/gtk/print-setup.js +32 -0
  1173. package/dist/generated/gtk/print-unix-dialog.d.ts +75 -0
  1174. package/dist/generated/gtk/print-unix-dialog.js +128 -0
  1175. package/dist/generated/gtk/printer.d.ts +121 -0
  1176. package/dist/generated/gtk/printer.js +126 -0
  1177. package/dist/generated/gtk/progress-bar.d.ts +149 -0
  1178. package/dist/generated/gtk/progress-bar.js +149 -0
  1179. package/dist/generated/gtk/property-expression.d.ts +36 -0
  1180. package/dist/generated/gtk/property-expression.js +21 -0
  1181. package/dist/generated/gtk/range.d.ts +162 -0
  1182. package/dist/generated/gtk/range.js +178 -0
  1183. package/dist/generated/gtk/recent-info.d.ts +123 -0
  1184. package/dist/generated/gtk/recent-info.js +123 -0
  1185. package/dist/generated/gtk/recent-manager.d.ts +81 -0
  1186. package/dist/generated/gtk/recent-manager.js +139 -0
  1187. package/dist/generated/gtk/requisition.d.ts +19 -0
  1188. package/dist/generated/gtk/requisition.js +19 -0
  1189. package/dist/generated/gtk/revealer.d.ts +73 -0
  1190. package/dist/generated/gtk/revealer.js +73 -0
  1191. package/dist/generated/gtk/root.d.ts +37 -0
  1192. package/dist/generated/gtk/root.js +37 -0
  1193. package/dist/generated/gtk/scale-button.d.ts +68 -0
  1194. package/dist/generated/gtk/scale-button.js +82 -0
  1195. package/dist/generated/gtk/scale.d.ts +115 -0
  1196. package/dist/generated/gtk/scale.js +201 -0
  1197. package/dist/generated/gtk/scroll-info.d.ts +31 -0
  1198. package/dist/generated/gtk/scroll-info.js +31 -0
  1199. package/dist/generated/gtk/scrollable.d.ts +73 -0
  1200. package/dist/generated/gtk/scrollable.js +73 -0
  1201. package/dist/generated/gtk/scrollbar.d.ts +63 -0
  1202. package/dist/generated/gtk/scrollbar.js +58 -0
  1203. package/dist/generated/gtk/scrolled-window.d.ts +180 -0
  1204. package/dist/generated/gtk/scrolled-window.js +259 -0
  1205. package/dist/generated/gtk/search-bar.d.ts +110 -0
  1206. package/dist/generated/gtk/search-bar.js +110 -0
  1207. package/dist/generated/gtk/search-entry.d.ts +251 -0
  1208. package/dist/generated/gtk/search-entry.js +305 -0
  1209. package/dist/generated/gtk/section-model.d.ts +46 -0
  1210. package/dist/generated/gtk/section-model.js +46 -0
  1211. package/dist/generated/gtk/selection-filter-model.d.ts +18 -0
  1212. package/dist/generated/gtk/selection-filter-model.js +13 -0
  1213. package/dist/generated/gtk/selection-model.d.ts +131 -0
  1214. package/dist/generated/gtk/selection-model.js +131 -0
  1215. package/dist/generated/gtk/separator.d.ts +29 -0
  1216. package/dist/generated/gtk/separator.js +25 -0
  1217. package/dist/generated/gtk/settings.d.ts +47 -0
  1218. package/dist/generated/gtk/settings.js +47 -0
  1219. package/dist/generated/gtk/shortcut-action.d.ts +70 -0
  1220. package/dist/generated/gtk/shortcut-action.js +55 -0
  1221. package/dist/generated/gtk/shortcut-controller.d.ts +110 -0
  1222. package/dist/generated/gtk/shortcut-controller.js +110 -0
  1223. package/dist/generated/gtk/shortcut-label.d.ts +23 -0
  1224. package/dist/generated/gtk/shortcut-label.js +19 -0
  1225. package/dist/generated/gtk/shortcut-manager.d.ts +13 -0
  1226. package/dist/generated/gtk/shortcut-manager.js +13 -0
  1227. package/dist/generated/gtk/shortcut-trigger.d.ts +106 -0
  1228. package/dist/generated/gtk/shortcut-trigger.js +87 -0
  1229. package/dist/generated/gtk/shortcut.d.ts +44 -0
  1230. package/dist/generated/gtk/shortcut.js +38 -0
  1231. package/dist/generated/gtk/shortcuts-group.d.ts +26 -0
  1232. package/dist/generated/gtk/shortcuts-group.js +26 -0
  1233. package/dist/generated/gtk/shortcuts-section.d.ts +10 -0
  1234. package/dist/generated/gtk/shortcuts-section.js +42 -0
  1235. package/dist/generated/gtk/shortcuts-shortcut.d.ts +6 -0
  1236. package/dist/generated/gtk/shortcuts-shortcut.js +6 -0
  1237. package/dist/generated/gtk/shortcuts-window.d.ts +10 -0
  1238. package/dist/generated/gtk/shortcuts-window.js +70 -0
  1239. package/dist/generated/gtk/signal-action.d.ts +16 -0
  1240. package/dist/generated/gtk/signal-action.js +9 -0
  1241. package/dist/generated/gtk/signal-list-item-factory.d.ts +5 -0
  1242. package/dist/generated/gtk/signal-list-item-factory.js +46 -0
  1243. package/dist/generated/gtk/single-selection.d.ts +189 -0
  1244. package/dist/generated/gtk/single-selection.js +185 -0
  1245. package/dist/generated/gtk/size-group.d.ts +150 -0
  1246. package/dist/generated/gtk/size-group.js +146 -0
  1247. package/dist/generated/gtk/slice-list-model.d.ts +76 -0
  1248. package/dist/generated/gtk/slice-list-model.js +68 -0
  1249. package/dist/generated/gtk/snapshot.d.ts +477 -0
  1250. package/dist/generated/gtk/snapshot.js +477 -0
  1251. package/dist/generated/gtk/sort-list-model.d.ts +131 -0
  1252. package/dist/generated/gtk/sort-list-model.js +126 -0
  1253. package/dist/generated/gtk/sorter.d.ts +39 -0
  1254. package/dist/generated/gtk/sorter.js +61 -0
  1255. package/dist/generated/gtk/spin-button.d.ts +378 -0
  1256. package/dist/generated/gtk/spin-button.js +491 -0
  1257. package/dist/generated/gtk/spinner.d.ts +37 -0
  1258. package/dist/generated/gtk/spinner.js +37 -0
  1259. package/dist/generated/gtk/stack-page.d.ts +171 -0
  1260. package/dist/generated/gtk/stack-page.js +171 -0
  1261. package/dist/generated/gtk/stack-sidebar.d.ts +32 -0
  1262. package/dist/generated/gtk/stack-sidebar.js +32 -0
  1263. package/dist/generated/gtk/stack-switcher.d.ts +51 -0
  1264. package/dist/generated/gtk/stack-switcher.js +51 -0
  1265. package/dist/generated/gtk/stack.d.ts +200 -0
  1266. package/dist/generated/gtk/stack.js +200 -0
  1267. package/dist/generated/gtk/statusbar.d.ts +35 -0
  1268. package/dist/generated/gtk/statusbar.js +73 -0
  1269. package/dist/generated/gtk/string-filter.d.ts +53 -0
  1270. package/dist/generated/gtk/string-filter.js +46 -0
  1271. package/dist/generated/gtk/string-list.d.ts +96 -0
  1272. package/dist/generated/gtk/string-list.js +92 -0
  1273. package/dist/generated/gtk/string-object.d.ts +14 -0
  1274. package/dist/generated/gtk/string-object.js +10 -0
  1275. package/dist/generated/gtk/string-sorter.d.ts +41 -0
  1276. package/dist/generated/gtk/string-sorter.js +33 -0
  1277. package/dist/generated/gtk/style-context.d.ts +188 -0
  1278. package/dist/generated/gtk/style-context.js +188 -0
  1279. package/dist/generated/gtk/style-provider.d.ts +10 -0
  1280. package/dist/generated/gtk/style-provider.js +10 -0
  1281. package/dist/generated/gtk/switch.d.ts +73 -0
  1282. package/dist/generated/gtk/switch.js +112 -0
  1283. package/dist/generated/gtk/symbolic-paintable.d.ts +24 -0
  1284. package/dist/generated/gtk/symbolic-paintable.js +24 -0
  1285. package/dist/generated/gtk/text-buffer.d.ts +693 -0
  1286. package/dist/generated/gtk/text-buffer.js +700 -0
  1287. package/dist/generated/gtk/text-child-anchor.d.ts +36 -0
  1288. package/dist/generated/gtk/text-child-anchor.js +36 -0
  1289. package/dist/generated/gtk/text-iter.d.ts +764 -0
  1290. package/dist/generated/gtk/text-iter.js +764 -0
  1291. package/dist/generated/gtk/text-mark.d.ts +85 -0
  1292. package/dist/generated/gtk/text-mark.js +70 -0
  1293. package/dist/generated/gtk/text-tag-table.d.ts +44 -0
  1294. package/dist/generated/gtk/text-tag-table.js +67 -0
  1295. package/dist/generated/gtk/text-tag.d.ts +52 -0
  1296. package/dist/generated/gtk/text-tag.js +48 -0
  1297. package/dist/generated/gtk/text-view.d.ts +668 -0
  1298. package/dist/generated/gtk/text-view.js +743 -0
  1299. package/dist/generated/gtk/text.d.ts +437 -0
  1300. package/dist/generated/gtk/text.js +549 -0
  1301. package/dist/generated/gtk/toggle-button.d.ts +49 -0
  1302. package/dist/generated/gtk/toggle-button.js +124 -0
  1303. package/dist/generated/gtk/tooltip.d.ts +80 -0
  1304. package/dist/generated/gtk/tooltip.js +80 -0
  1305. package/dist/generated/gtk/tree-drag-dest.d.ts +20 -0
  1306. package/dist/generated/gtk/tree-drag-dest.js +20 -0
  1307. package/dist/generated/gtk/tree-drag-source.d.ts +21 -0
  1308. package/dist/generated/gtk/tree-drag-source.js +21 -0
  1309. package/dist/generated/gtk/tree-expander.d.ts +125 -0
  1310. package/dist/generated/gtk/tree-expander.js +125 -0
  1311. package/dist/generated/gtk/tree-iter.d.ts +23 -0
  1312. package/dist/generated/gtk/tree-iter.js +23 -0
  1313. package/dist/generated/gtk/tree-list-model.d.ts +69 -0
  1314. package/dist/generated/gtk/tree-list-model.js +60 -0
  1315. package/dist/generated/gtk/tree-list-row-sorter.d.ts +32 -0
  1316. package/dist/generated/gtk/tree-list-row-sorter.js +24 -0
  1317. package/dist/generated/gtk/tree-list-row.d.ts +79 -0
  1318. package/dist/generated/gtk/tree-list-row.js +79 -0
  1319. package/dist/generated/gtk/tree-model-filter.d.ts +409 -0
  1320. package/dist/generated/gtk/tree-model-filter.js +409 -0
  1321. package/dist/generated/gtk/tree-model-sort.d.ts +436 -0
  1322. package/dist/generated/gtk/tree-model-sort.js +432 -0
  1323. package/dist/generated/gtk/tree-model.d.ts +411 -0
  1324. package/dist/generated/gtk/tree-model.js +411 -0
  1325. package/dist/generated/gtk/tree-path.d.ts +91 -0
  1326. package/dist/generated/gtk/tree-path.js +91 -0
  1327. package/dist/generated/gtk/tree-row-reference.d.ts +74 -0
  1328. package/dist/generated/gtk/tree-row-reference.js +64 -0
  1329. package/dist/generated/gtk/tree-selection.d.ts +98 -0
  1330. package/dist/generated/gtk/tree-selection.js +125 -0
  1331. package/dist/generated/gtk/tree-sortable.d.ts +58 -0
  1332. package/dist/generated/gtk/tree-sortable.js +58 -0
  1333. package/dist/generated/gtk/tree-store.d.ts +528 -0
  1334. package/dist/generated/gtk/tree-store.js +521 -0
  1335. package/dist/generated/gtk/tree-view-column.d.ts +299 -0
  1336. package/dist/generated/gtk/tree-view-column.js +311 -0
  1337. package/dist/generated/gtk/tree-view.d.ts +659 -0
  1338. package/dist/generated/gtk/tree-view.js +749 -0
  1339. package/dist/generated/gtk/uri-launcher.d.ts +38 -0
  1340. package/dist/generated/gtk/uri-launcher.js +34 -0
  1341. package/dist/generated/gtk/video.d.ts +101 -0
  1342. package/dist/generated/gtk/video.js +101 -0
  1343. package/dist/generated/gtk/viewport.d.ts +95 -0
  1344. package/dist/generated/gtk/viewport.js +87 -0
  1345. package/dist/generated/gtk/volume-button.d.ts +7 -0
  1346. package/dist/generated/gtk/volume-button.js +11 -0
  1347. package/dist/generated/gtk/widget-paintable.d.ts +32 -0
  1348. package/dist/generated/gtk/widget-paintable.js +28 -0
  1349. package/dist/generated/gtk/widget.d.ts +1741 -0
  1350. package/dist/generated/gtk/widget.js +2135 -0
  1351. package/dist/generated/gtk/window-controls.d.ts +102 -0
  1352. package/dist/generated/gtk/window-controls.js +98 -0
  1353. package/dist/generated/gtk/window-group.d.ts +35 -0
  1354. package/dist/generated/gtk/window-group.js +35 -0
  1355. package/dist/generated/gtk/window-handle.d.ts +28 -0
  1356. package/dist/generated/gtk/window-handle.js +28 -0
  1357. package/dist/generated/gtk/window.d.ts +587 -0
  1358. package/dist/generated/gtk/window.js +660 -0
  1359. package/dist/generated/gtksource/annotation-provider.d.ts +15 -0
  1360. package/dist/generated/gtksource/annotation-provider.js +23 -0
  1361. package/dist/generated/gtksource/annotation.d.ts +14 -0
  1362. package/dist/generated/gtksource/annotation.js +8 -0
  1363. package/dist/generated/gtksource/annotations.d.ts +8 -0
  1364. package/dist/generated/gtksource/annotations.js +15 -0
  1365. package/dist/generated/gtksource/buffer.d.ts +234 -0
  1366. package/dist/generated/gtksource/buffer.js +302 -0
  1367. package/dist/generated/gtksource/completion-cell.d.ts +24 -0
  1368. package/dist/generated/gtksource/completion-cell.js +24 -0
  1369. package/dist/generated/gtksource/completion-context.d.ts +64 -0
  1370. package/dist/generated/gtksource/completion-context.js +82 -0
  1371. package/dist/generated/gtksource/completion-proposal.d.ts +17 -0
  1372. package/dist/generated/gtksource/completion-proposal.js +17 -0
  1373. package/dist/generated/gtksource/completion-provider.d.ts +98 -0
  1374. package/dist/generated/gtksource/completion-provider.js +98 -0
  1375. package/dist/generated/gtksource/completion-snippets.d.ts +96 -0
  1376. package/dist/generated/gtksource/completion-snippets.js +96 -0
  1377. package/dist/generated/gtksource/completion-words.d.ts +107 -0
  1378. package/dist/generated/gtksource/completion-words.js +104 -0
  1379. package/dist/generated/gtksource/completion.d.ts +46 -0
  1380. package/dist/generated/gtksource/completion.js +77 -0
  1381. package/dist/generated/gtksource/encoding.d.ts +42 -0
  1382. package/dist/generated/gtksource/encoding.js +42 -0
  1383. package/dist/generated/gtksource/enums.d.ts +113 -0
  1384. package/dist/generated/gtksource/enums.js +113 -0
  1385. package/dist/generated/gtksource/file-loader.d.ts +58 -0
  1386. package/dist/generated/gtksource/file-loader.js +48 -0
  1387. package/dist/generated/gtksource/file-saver.d.ts +61 -0
  1388. package/dist/generated/gtksource/file-saver.js +53 -0
  1389. package/dist/generated/gtksource/file.d.ts +55 -0
  1390. package/dist/generated/gtksource/file.js +55 -0
  1391. package/dist/generated/gtksource/functions.d.ts +129 -0
  1392. package/dist/generated/gtksource/functions.js +129 -0
  1393. package/dist/generated/gtksource/gutter-lines.d.ts +120 -0
  1394. package/dist/generated/gtksource/gutter-lines.js +120 -0
  1395. package/dist/generated/gtksource/gutter-renderer-pixbuf.d.ts +37 -0
  1396. package/dist/generated/gtksource/gutter-renderer-pixbuf.js +37 -0
  1397. package/dist/generated/gtksource/gutter-renderer-text.d.ts +23 -0
  1398. package/dist/generated/gtksource/gutter-renderer-text.js +23 -0
  1399. package/dist/generated/gtksource/gutter-renderer.d.ts +94 -0
  1400. package/dist/generated/gtksource/gutter-renderer.js +128 -0
  1401. package/dist/generated/gtksource/gutter.d.ts +31 -0
  1402. package/dist/generated/gtksource/gutter.js +31 -0
  1403. package/dist/generated/gtksource/hover-context.d.ts +31 -0
  1404. package/dist/generated/gtksource/hover-context.js +31 -0
  1405. package/dist/generated/gtksource/hover-display.d.ts +10 -0
  1406. package/dist/generated/gtksource/hover-display.js +10 -0
  1407. package/dist/generated/gtksource/hover-provider.d.ts +12 -0
  1408. package/dist/generated/gtksource/hover-provider.js +12 -0
  1409. package/dist/generated/gtksource/hover.d.ts +15 -0
  1410. package/dist/generated/gtksource/hover.js +15 -0
  1411. package/dist/generated/gtksource/indenter.d.ts +66 -0
  1412. package/dist/generated/gtksource/indenter.js +66 -0
  1413. package/dist/generated/gtksource/language-manager.d.ts +117 -0
  1414. package/dist/generated/gtksource/language-manager.js +117 -0
  1415. package/dist/generated/gtksource/language.d.ts +58 -0
  1416. package/dist/generated/gtksource/language.js +58 -0
  1417. package/dist/generated/gtksource/map.d.ts +35 -0
  1418. package/dist/generated/gtksource/map.js +35 -0
  1419. package/dist/generated/gtksource/mark-attributes.d.ts +63 -0
  1420. package/dist/generated/gtksource/mark-attributes.js +96 -0
  1421. package/dist/generated/gtksource/mark.d.ts +47 -0
  1422. package/dist/generated/gtksource/mark.js +36 -0
  1423. package/dist/generated/gtksource/print-compositor.d.ts +417 -0
  1424. package/dist/generated/gtksource/print-compositor.js +413 -0
  1425. package/dist/generated/gtksource/region.d.ts +119 -0
  1426. package/dist/generated/gtksource/region.js +116 -0
  1427. package/dist/generated/gtksource/search-context.d.ts +179 -0
  1428. package/dist/generated/gtksource/search-context.js +170 -0
  1429. package/dist/generated/gtksource/search-settings.d.ts +65 -0
  1430. package/dist/generated/gtksource/search-settings.js +65 -0
  1431. package/dist/generated/gtksource/snippet-chunk.d.ts +85 -0
  1432. package/dist/generated/gtksource/snippet-chunk.js +85 -0
  1433. package/dist/generated/gtksource/snippet-context.d.ts +31 -0
  1434. package/dist/generated/gtksource/snippet-context.js +42 -0
  1435. package/dist/generated/gtksource/snippet-manager.d.ts +65 -0
  1436. package/dist/generated/gtksource/snippet-manager.js +65 -0
  1437. package/dist/generated/gtksource/snippet.d.ts +86 -0
  1438. package/dist/generated/gtksource/snippet.js +81 -0
  1439. package/dist/generated/gtksource/space-drawer.d.ts +123 -0
  1440. package/dist/generated/gtksource/space-drawer.js +123 -0
  1441. package/dist/generated/gtksource/style-scheme-chooser-button.d.ts +21 -0
  1442. package/dist/generated/gtksource/style-scheme-chooser-button.js +21 -0
  1443. package/dist/generated/gtksource/style-scheme-chooser-widget.d.ts +22 -0
  1444. package/dist/generated/gtksource/style-scheme-chooser-widget.js +22 -0
  1445. package/dist/generated/gtksource/style-scheme-chooser.d.ts +16 -0
  1446. package/dist/generated/gtksource/style-scheme-chooser.js +16 -0
  1447. package/dist/generated/gtksource/style-scheme-manager.d.ts +53 -0
  1448. package/dist/generated/gtksource/style-scheme-manager.js +53 -0
  1449. package/dist/generated/gtksource/style-scheme-preview.d.ts +8 -0
  1450. package/dist/generated/gtksource/style-scheme-preview.js +11 -0
  1451. package/dist/generated/gtksource/style-scheme.d.ts +22 -0
  1452. package/dist/generated/gtksource/style-scheme.js +22 -0
  1453. package/dist/generated/gtksource/style.d.ts +20 -0
  1454. package/dist/generated/gtksource/style.js +20 -0
  1455. package/dist/generated/gtksource/tag.d.ts +18 -0
  1456. package/dist/generated/gtksource/tag.js +9 -0
  1457. package/dist/generated/gtksource/view.d.ts +248 -0
  1458. package/dist/generated/gtksource/view.js +312 -0
  1459. package/dist/generated/gtksource/vim-imcontext.d.ts +12 -0
  1460. package/dist/generated/gtksource/vim-imcontext.js +85 -0
  1461. package/dist/generated/harfbuzz/blob-t.d.ts +5 -0
  1462. package/dist/generated/harfbuzz/blob-t.js +5 -0
  1463. package/dist/generated/harfbuzz/buffer-t.d.ts +4 -0
  1464. package/dist/generated/harfbuzz/buffer-t.js +4 -0
  1465. package/dist/generated/harfbuzz/color-line-t.d.ts +1 -0
  1466. package/dist/generated/harfbuzz/color-line-t.js +1 -0
  1467. package/dist/generated/harfbuzz/color-stop-t.d.ts +14 -0
  1468. package/dist/generated/harfbuzz/color-stop-t.js +14 -0
  1469. package/dist/generated/harfbuzz/draw-funcs-t.d.ts +8 -0
  1470. package/dist/generated/harfbuzz/draw-funcs-t.js +8 -0
  1471. package/dist/generated/harfbuzz/draw-state-t.d.ts +6 -0
  1472. package/dist/generated/harfbuzz/draw-state-t.js +6 -0
  1473. package/dist/generated/harfbuzz/enums.d.ts +1241 -0
  1474. package/dist/generated/harfbuzz/enums.js +1241 -0
  1475. package/dist/generated/harfbuzz/face-t.d.ts +1 -0
  1476. package/dist/generated/harfbuzz/face-t.js +1 -0
  1477. package/dist/generated/harfbuzz/feature-t.d.ts +25 -0
  1478. package/dist/generated/harfbuzz/feature-t.js +25 -0
  1479. package/dist/generated/harfbuzz/font-funcs-t.d.ts +10 -0
  1480. package/dist/generated/harfbuzz/font-funcs-t.js +10 -0
  1481. package/dist/generated/harfbuzz/font-t.d.ts +1 -0
  1482. package/dist/generated/harfbuzz/font-t.js +1 -0
  1483. package/dist/generated/harfbuzz/functions.d.ts +3816 -0
  1484. package/dist/generated/harfbuzz/functions.js +3816 -0
  1485. package/dist/generated/harfbuzz/glyph-info-t.d.ts +21 -0
  1486. package/dist/generated/harfbuzz/glyph-info-t.js +21 -0
  1487. package/dist/generated/harfbuzz/glyph-position-t.d.ts +21 -0
  1488. package/dist/generated/harfbuzz/glyph-position-t.js +21 -0
  1489. package/dist/generated/harfbuzz/map-t.d.ts +1 -0
  1490. package/dist/generated/harfbuzz/map-t.js +1 -0
  1491. package/dist/generated/harfbuzz/ot-math-glyph-part-t.d.ts +10 -0
  1492. package/dist/generated/harfbuzz/ot-math-glyph-part-t.js +10 -0
  1493. package/dist/generated/harfbuzz/ot-math-glyph-variant-t.d.ts +3 -0
  1494. package/dist/generated/harfbuzz/ot-math-glyph-variant-t.js +3 -0
  1495. package/dist/generated/harfbuzz/ot-var-axis-info-t.d.ts +15 -0
  1496. package/dist/generated/harfbuzz/ot-var-axis-info-t.js +15 -0
  1497. package/dist/generated/harfbuzz/paint-funcs-t.d.ts +22 -0
  1498. package/dist/generated/harfbuzz/paint-funcs-t.js +22 -0
  1499. package/dist/generated/harfbuzz/segment-properties-t.d.ts +8 -0
  1500. package/dist/generated/harfbuzz/segment-properties-t.js +8 -0
  1501. package/dist/generated/harfbuzz/set-t.d.ts +6 -0
  1502. package/dist/generated/harfbuzz/set-t.js +6 -0
  1503. package/dist/generated/harfbuzz/shape-plan-t.d.ts +11 -0
  1504. package/dist/generated/harfbuzz/shape-plan-t.js +11 -0
  1505. package/dist/generated/harfbuzz/unicode-funcs-t.d.ts +10 -0
  1506. package/dist/generated/harfbuzz/unicode-funcs-t.js +10 -0
  1507. package/dist/generated/harfbuzz/user-data-key-t.d.ts +1 -0
  1508. package/dist/generated/harfbuzz/user-data-key-t.js +1 -0
  1509. package/dist/generated/pango/attr-iterator.d.ts +48 -0
  1510. package/dist/generated/pango/attr-iterator.js +48 -0
  1511. package/dist/generated/pango/attr-list.d.ts +168 -0
  1512. package/dist/generated/pango/attr-list.js +168 -0
  1513. package/dist/generated/pango/attribute.d.ts +82 -0
  1514. package/dist/generated/pango/attribute.js +82 -0
  1515. package/dist/generated/pango/color.d.ts +55 -0
  1516. package/dist/generated/pango/color.js +55 -0
  1517. package/dist/generated/pango/context.d.ts +188 -0
  1518. package/dist/generated/pango/context.js +188 -0
  1519. package/dist/generated/pango/coverage.d.ts +50 -0
  1520. package/dist/generated/pango/coverage.js +50 -0
  1521. package/dist/generated/pango/enums.d.ts +589 -0
  1522. package/dist/generated/pango/enums.js +589 -0
  1523. package/dist/generated/pango/font-description.d.ts +374 -0
  1524. package/dist/generated/pango/font-description.js +374 -0
  1525. package/dist/generated/pango/font-face.d.ts +38 -0
  1526. package/dist/generated/pango/font-face.js +38 -0
  1527. package/dist/generated/pango/font-family.d.ts +55 -0
  1528. package/dist/generated/pango/font-family.js +55 -0
  1529. package/dist/generated/pango/font-map.d.ts +88 -0
  1530. package/dist/generated/pango/font-map.js +88 -0
  1531. package/dist/generated/pango/font-metrics.d.ts +78 -0
  1532. package/dist/generated/pango/font-metrics.js +78 -0
  1533. package/dist/generated/pango/font.d.ts +119 -0
  1534. package/dist/generated/pango/font.js +119 -0
  1535. package/dist/generated/pango/fontset-simple.d.ts +20 -0
  1536. package/dist/generated/pango/fontset-simple.js +16 -0
  1537. package/dist/generated/pango/fontset.d.ts +24 -0
  1538. package/dist/generated/pango/fontset.js +24 -0
  1539. package/dist/generated/pango/functions.d.ts +1009 -0
  1540. package/dist/generated/pango/functions.js +1009 -0
  1541. package/dist/generated/pango/glyph-item-iter.d.ts +72 -0
  1542. package/dist/generated/pango/glyph-item-iter.js +72 -0
  1543. package/dist/generated/pango/glyph-item.d.ts +82 -0
  1544. package/dist/generated/pango/glyph-item.js +82 -0
  1545. package/dist/generated/pango/glyph-string.d.ts +114 -0
  1546. package/dist/generated/pango/glyph-string.js +114 -0
  1547. package/dist/generated/pango/item.d.ts +57 -0
  1548. package/dist/generated/pango/item.js +57 -0
  1549. package/dist/generated/pango/language.d.ts +145 -0
  1550. package/dist/generated/pango/language.js +145 -0
  1551. package/dist/generated/pango/layout-iter.d.ts +153 -0
  1552. package/dist/generated/pango/layout-iter.js +153 -0
  1553. package/dist/generated/pango/layout-line.d.ts +99 -0
  1554. package/dist/generated/pango/layout-line.js +99 -0
  1555. package/dist/generated/pango/layout.d.ts +662 -0
  1556. package/dist/generated/pango/layout.js +657 -0
  1557. package/dist/generated/pango/matrix.d.ts +136 -0
  1558. package/dist/generated/pango/matrix.js +136 -0
  1559. package/dist/generated/pango/renderer.d.ts +188 -0
  1560. package/dist/generated/pango/renderer.js +188 -0
  1561. package/dist/generated/pango/script-iter.d.ts +37 -0
  1562. package/dist/generated/pango/script-iter.js +27 -0
  1563. package/dist/generated/pango/tab-array.d.ts +114 -0
  1564. package/dist/generated/pango/tab-array.js +106 -0
  1565. package/dist/generated/pangocairo/font-map.d.ts +41 -0
  1566. package/dist/generated/pangocairo/font-map.js +41 -0
  1567. package/dist/generated/pangocairo/font.d.ts +12 -0
  1568. package/dist/generated/pangocairo/font.js +12 -0
  1569. package/dist/generated/pangocairo/functions.d.ts +227 -0
  1570. package/dist/generated/pangocairo/functions.js +227 -0
  1571. package/dist/gl/constants.d.ts +4 -0
  1572. package/dist/gl/constants.js +4 -0
  1573. package/dist/gl/gl.d.ts +144 -0
  1574. package/dist/gl/gl.js +144 -0
  1575. package/dist/gl/index.d.ts +12 -0
  1576. package/dist/gl/index.js +12 -0
  1577. package/dist/native-error.d.ts +11 -0
  1578. package/dist/native-error.js +11 -0
  1579. package/dist/native.d.ts +29 -0
  1580. package/dist/native.js +29 -0
  1581. package/dist/types.d.ts +5 -0
  1582. package/package.json +3 -3
@@ -22,477 +22,4293 @@ import { SetT } from "./set-t.js";
22
22
  import { ShapePlanT } from "./shape-plan-t.js";
23
23
  import { UnicodeFuncsT } from "./unicode-funcs-t.js";
24
24
  import * as GLib from "../glib/index.js";
25
+ /**
26
+ * Fetches the name identifier of the specified feature type in the face's `name` table.
27
+ * @param face - #hb_face_t to work upon
28
+ * @param featureType - The #hb_aat_layout_feature_type_t of the requested feature type
29
+ */
25
30
  export declare const aatLayoutFeatureTypeGetNameId: (face: FaceT, featureType: AatLayoutFeatureTypeT) => number;
31
+ /**
32
+ * Fetches a list of the selectors available for the specified feature in the given face.
33
+ *
34
+ * If upon return, `default_index` is set to #HB_AAT_LAYOUT_NO_SELECTOR_INDEX, then
35
+ * the feature type is non-exclusive. Otherwise, `default_index` is the index of
36
+ * the selector that is selected by default.
37
+ * @param face - #hb_face_t to work upon
38
+ * @param featureType - The #hb_aat_layout_feature_type_t of the requested feature type
39
+ * @param startOffset - offset of the first feature type to retrieve
40
+ * @param selectorCount - Input = the maximum number of selectors to return;
41
+ * @param selectors - A buffer pointer. The selectors available for the feature type queries.
42
+ * @param defaultIndex - The index of the feature's default selector, if any
43
+ */
26
44
  export declare const aatLayoutFeatureTypeGetSelectorInfos: (face: FaceT, featureType: AatLayoutFeatureTypeT, startOffset: number, selectorCount?: Ref<number> | null, selectors?: Ref<number[]> | null, defaultIndex?: Ref<number> | null) => number;
45
+ /**
46
+ * Fetches a list of the AAT feature types included in the specified face.
47
+ * @param face - #hb_face_t to work upon
48
+ * @param startOffset - offset of the first feature type to retrieve
49
+ * @param featureCount - Input = the maximum number of feature types to return;
50
+ * @param features - Array of feature types found
51
+ */
27
52
  export declare const aatLayoutGetFeatureTypes: (face: FaceT, startOffset: number, features: Ref<AatLayoutFeatureTypeT[]>, featureCount?: Ref<number> | null) => number;
53
+ /**
54
+ * Tests whether the specified face includes any positioning information
55
+ * in the `kerx` table.
56
+ *
57
+ * <note>Note: does not examine the `GPOS` table.</note>
58
+ * @param face - #hb_face_t to work upon
59
+ */
28
60
  export declare const aatLayoutHasPositioning: (face: FaceT) => number;
61
+ /**
62
+ * Tests whether the specified face includes any substitutions in the
63
+ * `morx` or `mort` tables.
64
+ *
65
+ * <note>Note: does not examine the `GSUB` table.</note>
66
+ * @param face - #hb_face_t to work upon
67
+ */
29
68
  export declare const aatLayoutHasSubstitution: (face: FaceT) => number;
69
+ /**
70
+ * Tests whether the specified face includes any tracking information
71
+ * in the `trak` table.
72
+ * @param face - #hb_face_t to work upon
73
+ */
30
74
  export declare const aatLayoutHasTracking: (face: FaceT) => number;
75
+ /**
76
+ * Makes a writable copy of @blob.
77
+ * @param blob - A blob.
78
+ */
31
79
  export declare const blobCopyWritableOrFail: (blob: BlobT) => BlobT;
80
+ /**
81
+ * Creates a new blob containing the data from the
82
+ * specified binary font file.
83
+ *
84
+ * The filename is passed directly to the system on all platforms,
85
+ * except on Windows, where the filename is interpreted as UTF-8.
86
+ * Only if the filename is not valid UTF-8, it will be interpreted
87
+ * according to the system codepage.
88
+ * @param fileName - A font filename
89
+ */
32
90
  export declare const blobCreateFromFile: (fileName: string) => BlobT;
91
+ /**
92
+ * Creates a new blob containing the data from the specified file.
93
+ *
94
+ * The filename is passed directly to the system on all platforms,
95
+ * except on Windows, where the filename is interpreted as UTF-8.
96
+ * Only if the filename is not valid UTF-8, it will be interpreted
97
+ * according to the system codepage.
98
+ * @param fileName - A filename
99
+ */
33
100
  export declare const blobCreateFromFileOrFail: (fileName: string) => BlobT;
101
+ /**
102
+ * Returns a blob that represents a range of bytes in @parent. The new
103
+ * blob is always created with #HB_MEMORY_MODE_READONLY, meaning that it
104
+ * will never modify data in the parent blob. The parent data is not
105
+ * expected to be modified, and will result in undefined behavior if it
106
+ * is.
107
+ *
108
+ * Makes `parent` immutable.
109
+ * @param parent - Parent blob.
110
+ * @param offset - Start offset of sub-blob within @parent, in bytes.
111
+ * @param length - Length of sub-blob.
112
+ */
34
113
  export declare const blobCreateSubBlob: (parent: BlobT, offset: number, length: number) => BlobT;
114
+ /**
115
+ * Fetches the data from a blob.
116
+ * @param blob - a blob.
117
+ * @param length - The length in bytes of the data retrieved
118
+ */
35
119
  export declare const blobGetData: (blob: BlobT, length: Ref<number>) => string[] | null;
120
+ /**
121
+ * Tries to make blob data writable (possibly copying it) and
122
+ * return pointer to data.
123
+ *
124
+ * Fails if blob has been made immutable, or if memory allocation
125
+ * fails.
126
+ * @param blob - a blob.
127
+ * @param length - output length of the writable data.
128
+ */
36
129
  export declare const blobGetDataWritable: (blob: BlobT, length: Ref<number>) => string[];
130
+ /**
131
+ * Returns the singleton empty blob.
132
+ *
133
+ * See TODO:link object types for more information.
134
+ */
37
135
  export declare const blobGetEmpty: () => BlobT;
136
+ /**
137
+ * Fetches the length of a blob's data.
138
+ * @param blob - a blob.
139
+ */
38
140
  export declare const blobGetLength: (blob: BlobT) => number;
141
+ /**
142
+ * Tests whether a blob is immutable.
143
+ * @param blob - a blob.
144
+ */
39
145
  export declare const blobIsImmutable: (blob: BlobT) => number;
146
+ /**
147
+ * Makes a blob immutable.
148
+ * @param blob - a blob
149
+ */
40
150
  export declare const blobMakeImmutable: (blob: BlobT) => void;
151
+ /**
152
+ * Appends a character with the Unicode value of `codepoint` to @buffer, and
153
+ * gives it the initial cluster value of @cluster. Clusters can be any thing
154
+ * the client wants, they are usually used to refer to the index of the
155
+ * character in the input text stream and are output in
156
+ * #hb_glyph_info_t.cluster field.
157
+ *
158
+ * This function does not check the validity of @codepoint, it is up to the
159
+ * caller to ensure it is a valid Unicode code point.
160
+ * @param buffer - An #hb_buffer_t
161
+ * @param codepoint - A Unicode code point.
162
+ * @param cluster - The cluster value of @codepoint.
163
+ */
41
164
  export declare const bufferAdd: (buffer: BufferT, codepoint: number, cluster: number) => void;
165
+ /**
166
+ * Appends characters from `text` array to @buffer. The `item_offset` is the
167
+ * position of the first character from `text` that will be appended, and
168
+ * `item_length` is the number of character. When shaping part of a larger text
169
+ * (e.g. a run of text from a paragraph), instead of passing just the substring
170
+ * corresponding to the run, it is preferable to pass the whole
171
+ * paragraph and specify the run start and length as `item_offset` and
172
+ * @item_length, respectively, to give HarfBuzz the full context to be able,
173
+ * for example, to do cross-run Arabic shaping or properly handle combining
174
+ * marks at stat of run.
175
+ *
176
+ * This function does not check the validity of @text, it is up to the caller
177
+ * to ensure it contains a valid Unicode scalar values. In contrast,
178
+ * hb_buffer_add_utf32() can be used that takes similar input but performs
179
+ * sanity-check on the input.
180
+ * @param buffer - a #hb_buffer_t to append characters to.
181
+ * @param text - an array of Unicode code points to append.
182
+ * @param textLength - the length of the @text, or -1 if it is `NULL` terminated.
183
+ * @param itemOffset - the offset of the first code point to add to the @buffer.
184
+ * @param itemLength - the number of code points to add to the @buffer, or -1 for the
185
+ */
42
186
  export declare const bufferAddCodepoints: (buffer: BufferT, text: number[], textLength: number, itemOffset: number, itemLength: number) => void;
187
+ /**
188
+ * Similar to hb_buffer_add_codepoints(), but allows only access to first 256
189
+ * Unicode code points that can fit in 8-bit strings.
190
+ *
191
+ * <note>Has nothing to do with non-Unicode Latin-1 encoding.</note>
192
+ * @param buffer - An #hb_buffer_t
193
+ * @param text - an array of UTF-8
194
+ * @param textLength - the length of the @text, or -1 if it is `NULL` terminated
195
+ * @param itemOffset - the offset of the first character to add to the @buffer
196
+ * @param itemLength - the number of characters to add to the @buffer, or -1 for the
197
+ */
43
198
  export declare const bufferAddLatin1: (buffer: BufferT, text: number[], textLength: number, itemOffset: number, itemLength: number) => void;
199
+ /**
200
+ * See hb_buffer_add_codepoints().
201
+ *
202
+ * Replaces invalid UTF-16 characters with the `buffer` replacement code point,
203
+ * see hb_buffer_set_replacement_codepoint().
204
+ * @param buffer - An #hb_buffer_t
205
+ * @param text - An array of UTF-16 characters to append
206
+ * @param textLength - The length of the @text, or -1 if it is `NULL` terminated
207
+ * @param itemOffset - The offset of the first character to add to the @buffer
208
+ * @param itemLength - The number of characters to add to the @buffer, or -1 for the
209
+ */
44
210
  export declare const bufferAddUtf16: (buffer: BufferT, text: number[], textLength: number, itemOffset: number, itemLength: number) => void;
211
+ /**
212
+ * See hb_buffer_add_codepoints().
213
+ *
214
+ * Replaces invalid UTF-32 characters with the `buffer` replacement code point,
215
+ * see hb_buffer_set_replacement_codepoint().
216
+ * @param buffer - An #hb_buffer_t
217
+ * @param text - An array of UTF-32 characters to append
218
+ * @param textLength - The length of the @text, or -1 if it is `NULL` terminated
219
+ * @param itemOffset - The offset of the first character to add to the @buffer
220
+ * @param itemLength - The number of characters to add to the @buffer, or -1 for the
221
+ */
45
222
  export declare const bufferAddUtf32: (buffer: BufferT, text: number[], textLength: number, itemOffset: number, itemLength: number) => void;
223
+ /**
224
+ * See hb_buffer_add_codepoints().
225
+ *
226
+ * Replaces invalid UTF-8 characters with the `buffer` replacement code point,
227
+ * see hb_buffer_set_replacement_codepoint().
228
+ * @param buffer - An #hb_buffer_t
229
+ * @param text - An array of UTF-8
230
+ * @param textLength - The length of the @text, or -1 if it is `NULL` terminated.
231
+ * @param itemOffset - The offset of the first character to add to the @buffer.
232
+ * @param itemLength - The number of characters to add to the @buffer, or -1 for the
233
+ */
46
234
  export declare const bufferAddUtf8: (buffer: BufferT, text: number[], textLength: number, itemOffset: number, itemLength: number) => void;
235
+ /**
236
+ * Check if allocating memory for the buffer succeeded.
237
+ * @param buffer - An #hb_buffer_t
238
+ */
47
239
  export declare const bufferAllocationSuccessful: (buffer: BufferT) => number;
240
+ /**
241
+ * Append (part of) contents of another buffer to this buffer.
242
+ * @param buffer - An #hb_buffer_t
243
+ * @param source - source #hb_buffer_t
244
+ * @param start - start index into source buffer to copy. Use 0 to copy from start of buffer.
245
+ * @param end - end index into source buffer to copy. Use `UINT_MAX` (or ((unsigned int) -1)) to copy to end of buffer.
246
+ */
48
247
  export declare const bufferAppend: (buffer: BufferT, source: BufferT, start: number, end: number) => void;
248
+ /**
249
+ * Similar to hb_buffer_reset(), but does not clear the Unicode functions and
250
+ * the replacement code point.
251
+ * @param buffer - An #hb_buffer_t
252
+ */
49
253
  export declare const bufferClearContents: (buffer: BufferT) => void;
254
+ /**
255
+ * Creates a new #hb_buffer_t with all properties to defaults.
256
+ */
50
257
  export declare const bufferCreate: () => BufferT;
258
+ /**
259
+ * Creates a new #hb_buffer_t, similar to hb_buffer_create(). The only
260
+ * difference is that the buffer is configured similarly to @src.
261
+ * @param src - An #hb_buffer_t
262
+ */
51
263
  export declare const bufferCreateSimilar: (src: BufferT) => BufferT;
264
+ /**
265
+ * Deserializes glyphs `buffer` from textual representation in the format
266
+ * produced by hb_buffer_serialize_glyphs().
267
+ * @param buffer - an #hb_buffer_t buffer.
268
+ * @param buf - string to deserialize
269
+ * @param bufLen - the size of @buf, or -1 if it is `NULL`-terminated
270
+ * @param endPtr - output pointer to the character after last
271
+ * @param font - font for getting glyph IDs
272
+ * @param format - the #hb_buffer_serialize_format_t of the input @buf
273
+ */
52
274
  export declare const bufferDeserializeGlyphs: (buffer: BufferT, buf: string[], bufLen: number, format: BufferSerializeFormatT, endPtr?: Ref<string> | null, font?: FontT | null) => number;
275
+ /**
276
+ * Deserializes Unicode `buffer` from textual representation in the format
277
+ * produced by hb_buffer_serialize_unicode().
278
+ * @param buffer - an #hb_buffer_t buffer.
279
+ * @param buf - string to deserialize
280
+ * @param bufLen - the size of @buf, or -1 if it is `NULL`-terminated
281
+ * @param endPtr - output pointer to the character after last
282
+ * @param format - the #hb_buffer_serialize_format_t of the input @buf
283
+ */
53
284
  export declare const bufferDeserializeUnicode: (buffer: BufferT, buf: string[], bufLen: number, format: BufferSerializeFormatT, endPtr?: Ref<string> | null) => number;
285
+ /**
286
+ * If dottedcircle_glyph is (hb_codepoint_t) -1 then #HB_BUFFER_DIFF_FLAG_DOTTED_CIRCLE_PRESENT
287
+ * and #HB_BUFFER_DIFF_FLAG_NOTDEF_PRESENT are never returned. This should be used by most
288
+ * callers if just comparing two buffers is needed.
289
+ * @param buffer - a buffer.
290
+ * @param reference - other buffer to compare to.
291
+ * @param dottedcircleGlyph - glyph id of U+25CC DOTTED CIRCLE, or (hb_codepoint_t) -1.
292
+ * @param positionFuzz - allowed absolute difference in position values.
293
+ */
54
294
  export declare const bufferDiff: (buffer: BufferT, reference: BufferT, dottedcircleGlyph: number, positionFuzz: number) => BufferDiffFlagsT;
295
+ /**
296
+ * Fetches the cluster level of a buffer. The #hb_buffer_cluster_level_t
297
+ * dictates one aspect of how HarfBuzz will treat non-base characters
298
+ * during shaping.
299
+ * @param buffer - An #hb_buffer_t
300
+ */
55
301
  export declare const bufferGetClusterLevel: (buffer: BufferT) => BufferClusterLevelT;
302
+ /**
303
+ * Fetches the type of `buffer` contents. Buffers are either empty, contain
304
+ * characters (before shaping), or contain glyphs (the result of shaping).
305
+ * @param buffer - An #hb_buffer_t
306
+ */
56
307
  export declare const bufferGetContentType: (buffer: BufferT) => BufferContentTypeT;
308
+ /**
309
+ * See hb_buffer_set_direction()
310
+ * @param buffer - An #hb_buffer_t
311
+ */
57
312
  export declare const bufferGetDirection: (buffer: BufferT) => DirectionT;
313
+ /**
314
+ * Fetches an empty #hb_buffer_t.
315
+ */
58
316
  export declare const bufferGetEmpty: () => BufferT;
317
+ /**
318
+ * Fetches the #hb_buffer_flags_t of @buffer.
319
+ * @param buffer - An #hb_buffer_t
320
+ */
59
321
  export declare const bufferGetFlags: (buffer: BufferT) => BufferFlagsT;
322
+ /**
323
+ * Returns `buffer` glyph information array. Returned pointer
324
+ * is valid as long as `buffer` contents are not modified.
325
+ * @param buffer - An #hb_buffer_t
326
+ * @param length - The output-array length.
327
+ */
60
328
  export declare const bufferGetGlyphInfos: (buffer: BufferT, length: Ref<number>) => GlyphInfoT[];
329
+ /**
330
+ * Returns `buffer` glyph position array. Returned pointer
331
+ * is valid as long as `buffer` contents are not modified.
332
+ *
333
+ * If buffer did not have positions before, the positions will be
334
+ * initialized to zeros, unless this function is called from
335
+ * within a buffer message callback (see hb_buffer_set_message_func()),
336
+ * in which case `NULL` is returned.
337
+ * @param buffer - An #hb_buffer_t
338
+ * @param length - The output length
339
+ */
61
340
  export declare const bufferGetGlyphPositions: (buffer: BufferT, length: Ref<number>) => GlyphPositionT[];
341
+ /**
342
+ * See hb_buffer_set_invisible_glyph().
343
+ * @param buffer - An #hb_buffer_t
344
+ */
62
345
  export declare const bufferGetInvisibleGlyph: (buffer: BufferT) => number;
346
+ /**
347
+ * See hb_buffer_set_language().
348
+ * @param buffer - An #hb_buffer_t
349
+ */
63
350
  export declare const bufferGetLanguage: (buffer: BufferT) => number;
351
+ /**
352
+ * Returns the number of items in the buffer.
353
+ * @param buffer - An #hb_buffer_t
354
+ */
64
355
  export declare const bufferGetLength: (buffer: BufferT) => number;
356
+ /**
357
+ * See hb_buffer_set_not_found_glyph().
358
+ * @param buffer - An #hb_buffer_t
359
+ */
65
360
  export declare const bufferGetNotFoundGlyph: (buffer: BufferT) => number;
361
+ /**
362
+ * See hb_buffer_set_not_found_variation_selector_glyph().
363
+ * @param buffer - An #hb_buffer_t
364
+ */
66
365
  export declare const bufferGetNotFoundVariationSelectorGlyph: (buffer: BufferT) => number;
366
+ /**
367
+ * See hb_buffer_set_random_state().
368
+ * @param buffer - An #hb_buffer_t
369
+ */
67
370
  export declare const bufferGetRandomState: (buffer: BufferT) => number;
371
+ /**
372
+ * Fetches the #hb_codepoint_t that replaces invalid entries for a given encoding
373
+ * when adding text to @buffer.
374
+ * @param buffer - An #hb_buffer_t
375
+ */
68
376
  export declare const bufferGetReplacementCodepoint: (buffer: BufferT) => number;
377
+ /**
378
+ * Fetches the script of @buffer.
379
+ * @param buffer - An #hb_buffer_t
380
+ */
69
381
  export declare const bufferGetScript: (buffer: BufferT) => ScriptT;
382
+ /**
383
+ * Sets `props` to the #hb_segment_properties_t of @buffer.
384
+ * @param buffer - An #hb_buffer_t
385
+ * @param props - The output #hb_segment_properties_t
386
+ */
70
387
  export declare const bufferGetSegmentProperties: (buffer: BufferT, props: Ref<SegmentPropertiesT>) => void;
388
+ /**
389
+ * Fetches the Unicode-functions structure of a buffer.
390
+ * @param buffer - An #hb_buffer_t
391
+ */
71
392
  export declare const bufferGetUnicodeFuncs: (buffer: BufferT) => UnicodeFuncsT;
393
+ /**
394
+ * Sets unset buffer segment properties based on buffer Unicode
395
+ * contents. If buffer is not empty, it must have content type
396
+ * #HB_BUFFER_CONTENT_TYPE_UNICODE.
397
+ *
398
+ * If buffer script is not set (ie. is #HB_SCRIPT_INVALID), it
399
+ * will be set to the Unicode script of the first character in
400
+ * the buffer that has a script other than #HB_SCRIPT_COMMON,
401
+ * #HB_SCRIPT_INHERITED, and #HB_SCRIPT_UNKNOWN.
402
+ *
403
+ * Next, if buffer direction is not set (ie. is #HB_DIRECTION_INVALID),
404
+ * it will be set to the natural horizontal direction of the
405
+ * buffer script as returned by hb_script_get_horizontal_direction().
406
+ * If hb_script_get_horizontal_direction() returns #HB_DIRECTION_INVALID,
407
+ * then #HB_DIRECTION_LTR is used.
408
+ *
409
+ * Finally, if buffer language is not set (ie. is #HB_LANGUAGE_INVALID),
410
+ * it will be set to the process's default language as returned by
411
+ * hb_language_get_default(). This may change in the future by
412
+ * taking buffer script into consideration when choosing a language.
413
+ * Note that hb_language_get_default() is NOT threadsafe the first time
414
+ * it is called. See documentation for that function for details.
415
+ * @param buffer - An #hb_buffer_t
416
+ */
72
417
  export declare const bufferGuessSegmentProperties: (buffer: BufferT) => void;
418
+ /**
419
+ * Returns whether `buffer` has glyph position data.
420
+ * A buffer gains position data when hb_buffer_get_glyph_positions() is called on it,
421
+ * and cleared of position data when hb_buffer_clear_contents() is called.
422
+ * @param buffer - an #hb_buffer_t.
423
+ */
73
424
  export declare const bufferHasPositions: (buffer: BufferT) => number;
425
+ /**
426
+ * Reorders a glyph buffer to have canonical in-cluster glyph order / position.
427
+ * The resulting clusters should behave identical to pre-reordering clusters.
428
+ *
429
+ * <note>This has nothing to do with Unicode normalization.</note>
430
+ * @param buffer - An #hb_buffer_t
431
+ */
74
432
  export declare const bufferNormalizeGlyphs: (buffer: BufferT) => void;
433
+ /**
434
+ * Pre allocates memory for `buffer` to fit at least `size` number of items.
435
+ * @param buffer - An #hb_buffer_t
436
+ * @param size - Number of items to pre allocate.
437
+ */
75
438
  export declare const bufferPreAllocate: (buffer: BufferT, size: number) => number;
439
+ /**
440
+ * Resets the buffer to its initial status, as if it was just newly created
441
+ * with hb_buffer_create().
442
+ * @param buffer - An #hb_buffer_t
443
+ */
76
444
  export declare const bufferReset: (buffer: BufferT) => void;
445
+ /**
446
+ * Reverses buffer contents.
447
+ * @param buffer - An #hb_buffer_t
448
+ */
77
449
  export declare const bufferReverse: (buffer: BufferT) => void;
450
+ /**
451
+ * Reverses buffer clusters. That is, the buffer contents are
452
+ * reversed, then each cluster (consecutive items having the
453
+ * same cluster number) are reversed again.
454
+ * @param buffer - An #hb_buffer_t
455
+ */
78
456
  export declare const bufferReverseClusters: (buffer: BufferT) => void;
457
+ /**
458
+ * Reverses buffer contents between `start` and @end.
459
+ * @param buffer - An #hb_buffer_t
460
+ * @param start - start index
461
+ * @param end - end index
462
+ */
79
463
  export declare const bufferReverseRange: (buffer: BufferT, start: number, end: number) => void;
464
+ /**
465
+ * Serializes `buffer` into a textual representation of its content, whether
466
+ * Unicode codepoints or glyph identifiers and positioning information. This is
467
+ * useful for showing the contents of the buffer, for example during debugging.
468
+ * See the documentation of hb_buffer_serialize_unicode() and
469
+ * hb_buffer_serialize_glyphs() for a description of the output format.
470
+ * @param buffer - an #hb_buffer_t buffer.
471
+ * @param start - the first item in `buffer` to serialize.
472
+ * @param end - the last item in `buffer` to serialize.
473
+ * @param buf - output string to
474
+ * @param bufSize - the size of @buf.
475
+ * @param bufConsumed - if not `NULL`, will be set to the number of bytes written into @buf.
476
+ * @param font - the #hb_font_t used to shape this buffer, needed to
477
+ * @param format - the #hb_buffer_serialize_format_t to use for formatting the output.
478
+ * @param flags - the #hb_buffer_serialize_flags_t that control what glyph properties
479
+ */
80
480
  export declare const bufferSerialize: (buffer: BufferT, start: number, end: number, buf: Ref<number[]>, bufSize: Ref<number>, format: BufferSerializeFormatT, flags: BufferSerializeFlagsT, bufConsumed?: Ref<number> | null, font?: FontT | null) => number;
481
+ /**
482
+ * Parses a string into an #hb_buffer_serialize_format_t. Does not check if
483
+ * `str` is a valid buffer serialization format, use
484
+ * hb_buffer_serialize_list_formats() to get the list of supported formats.
485
+ * @param str - a string to parse
486
+ * @param len - length of @str, or -1 if string is `NULL` terminated
487
+ */
81
488
  export declare const bufferSerializeFormatFromString: (str: number[], len: number) => BufferSerializeFormatT;
489
+ /**
490
+ * Converts `format` to the string corresponding it, or `NULL` if it is not a valid
491
+ * #hb_buffer_serialize_format_t.
492
+ * @param format - an #hb_buffer_serialize_format_t to convert.
493
+ */
82
494
  export declare const bufferSerializeFormatToString: (format: BufferSerializeFormatT) => string;
495
+ /**
496
+ * Serializes `buffer` into a textual representation of its glyph content,
497
+ * useful for showing the contents of the buffer, for example during debugging.
498
+ * There are currently two supported serialization formats:
499
+ *
500
+ * ## text
501
+ * A human-readable, plain text format.
502
+ * The serialized glyphs will look something like:
503
+ *
504
+ * ```
505
+ * [uni0651=0@518,0+0|uni0628=0+1897]
506
+ * ```
507
+ *
508
+ * - The serialized glyphs are delimited with `[` and `]`.
509
+ * - Glyphs are separated with `|`
510
+ * - Each glyph starts with glyph name, or glyph index if
511
+ * #HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES flag is set. Then,
512
+ * - If #HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS is not set, `=` then #hb_glyph_info_t.cluster.
513
+ * - If #HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS is not set, the #hb_glyph_position_t in the format:
514
+ * - If both #hb_glyph_position_t.x_offset and #hb_glyph_position_t.y_offset are not 0, `@x_offset,y_offset`. Then,
515
+ * - `+x_advance`, then `,y_advance` if #hb_glyph_position_t.y_advance is not 0. Then,
516
+ * - If #HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS is set, the #hb_glyph_extents_t in the format `<x_bearing,y_bearing,width,height>`
517
+ *
518
+ * ## json
519
+ * A machine-readable, structured format.
520
+ * The serialized glyphs will look something like:
521
+ *
522
+ * ```
523
+ * [{"g":"uni0651","cl":0,"dx":518,"dy":0,"ax":0,"ay":0},
524
+ * {"g":"uni0628","cl":0,"dx":0,"dy":0,"ax":1897,"ay":0}]
525
+ * ```
526
+ *
527
+ * Each glyph is a JSON object, with the following properties:
528
+ * - `g`: the glyph name or glyph index if
529
+ * #HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES flag is set.
530
+ * - `cl`: #hb_glyph_info_t.cluster if
531
+ * #HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS is not set.
532
+ * - `dx`,`dy`,`ax`,`ay`: #hb_glyph_position_t.x_offset, #hb_glyph_position_t.y_offset,
533
+ * #hb_glyph_position_t.x_advance and #hb_glyph_position_t.y_advance
534
+ * respectively, if #HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS is not set.
535
+ * - `xb`,`yb`,`w`,`h`: #hb_glyph_extents_t.x_bearing, #hb_glyph_extents_t.y_bearing,
536
+ * #hb_glyph_extents_t.width and #hb_glyph_extents_t.height respectively if
537
+ * #HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS is set.
538
+ * @param buffer - an #hb_buffer_t buffer.
539
+ * @param start - the first item in `buffer` to serialize.
540
+ * @param end - the last item in `buffer` to serialize.
541
+ * @param buf - output string to
542
+ * @param bufSize - the size of @buf.
543
+ * @param bufConsumed - if not `NULL`, will be set to the number of bytes written into @buf.
544
+ * @param font - the #hb_font_t used to shape this buffer, needed to
545
+ * @param format - the #hb_buffer_serialize_format_t to use for formatting the output.
546
+ * @param flags - the #hb_buffer_serialize_flags_t that control what glyph properties
547
+ */
83
548
  export declare const bufferSerializeGlyphs: (buffer: BufferT, start: number, end: number, buf: Ref<number[]>, bufSize: Ref<number>, format: BufferSerializeFormatT, flags: BufferSerializeFlagsT, bufConsumed?: Ref<number> | null, font?: FontT | null) => number;
549
+ /**
550
+ * Returns a list of supported buffer serialization formats.
551
+ */
84
552
  export declare const bufferSerializeListFormats: () => string[];
553
+ /**
554
+ * Serializes `buffer` into a textual representation of its content,
555
+ * when the buffer contains Unicode codepoints (i.e., before shaping). This is
556
+ * useful for showing the contents of the buffer, for example during debugging.
557
+ * There are currently two supported serialization formats:
558
+ *
559
+ * ## text
560
+ * A human-readable, plain text format.
561
+ * The serialized codepoints will look something like:
562
+ *
563
+ * ```
564
+ * <U+0651=0|U+0628=1>
565
+ * ```
566
+ *
567
+ * - Glyphs are separated with `|`
568
+ * - Unicode codepoints are expressed as zero-padded four (or more)
569
+ * digit hexadecimal numbers preceded by `U+`
570
+ * - If #HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS is not set, the cluster
571
+ * will be indicated with a `=` then #hb_glyph_info_t.cluster.
572
+ *
573
+ * ## json
574
+ * A machine-readable, structured format.
575
+ * The serialized codepoints will be a list of objects with the following
576
+ * properties:
577
+ * - `u`: the Unicode codepoint as a decimal integer
578
+ * - `cl`: #hb_glyph_info_t.cluster if
579
+ * #HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS is not set.
580
+ *
581
+ * For example:
582
+ *
583
+ * ```
584
+ * [{u:1617,cl:0},{u:1576,cl:1}]
585
+ * ```
586
+ * @param buffer - an #hb_buffer_t buffer.
587
+ * @param start - the first item in `buffer` to serialize.
588
+ * @param end - the last item in `buffer` to serialize.
589
+ * @param buf - output string to
590
+ * @param bufSize - the size of @buf.
591
+ * @param bufConsumed - if not `NULL`, will be set to the number of bytes written into @buf.
592
+ * @param format - the #hb_buffer_serialize_format_t to use for formatting the output.
593
+ * @param flags - the #hb_buffer_serialize_flags_t that control what glyph properties
594
+ */
85
595
  export declare const bufferSerializeUnicode: (buffer: BufferT, start: number, end: number, buf: Ref<number[]>, bufSize: Ref<number>, format: BufferSerializeFormatT, flags: BufferSerializeFlagsT, bufConsumed?: Ref<number> | null) => number;
596
+ /**
597
+ * Sets the cluster level of a buffer. The #hb_buffer_cluster_level_t
598
+ * dictates one aspect of how HarfBuzz will treat non-base characters
599
+ * during shaping.
600
+ * @param buffer - An #hb_buffer_t
601
+ * @param clusterLevel - The cluster level to set on the buffer
602
+ */
86
603
  export declare const bufferSetClusterLevel: (buffer: BufferT, clusterLevel: BufferClusterLevelT) => void;
604
+ /**
605
+ * Sets the type of `buffer` contents. Buffers are either empty, contain
606
+ * characters (before shaping), or contain glyphs (the result of shaping).
607
+ *
608
+ * You rarely need to call this function, since a number of other
609
+ * functions transition the content type for you. Namely:
610
+ *
611
+ * - A newly created buffer starts with content type
612
+ * %HB_BUFFER_CONTENT_TYPE_INVALID. Calling hb_buffer_reset(),
613
+ * hb_buffer_clear_contents(), as well as calling hb_buffer_set_length()
614
+ * with an argument of zero all set the buffer content type to invalid
615
+ * as well.
616
+ *
617
+ * - Calling hb_buffer_add_utf8(), hb_buffer_add_utf16(),
618
+ * hb_buffer_add_utf32(), hb_buffer_add_codepoints() and
619
+ * hb_buffer_add_latin1() expect that buffer is either empty and
620
+ * have a content type of invalid, or that buffer content type is
621
+ * %HB_BUFFER_CONTENT_TYPE_UNICODE, and they also set the content
622
+ * type to Unicode if they added anything to an empty buffer.
623
+ *
624
+ * - Finally hb_shape() and hb_shape_full() expect that the buffer
625
+ * is either empty and have content type of invalid, or that buffer
626
+ * content type is %HB_BUFFER_CONTENT_TYPE_UNICODE, and upon
627
+ * success they set the buffer content type to
628
+ * %HB_BUFFER_CONTENT_TYPE_GLYPHS.
629
+ *
630
+ * The above transitions are designed such that one can use a buffer
631
+ * in a loop of "reset : add-text : shape" without needing to ever
632
+ * modify the content type manually.
633
+ * @param buffer - An #hb_buffer_t
634
+ * @param contentType - The type of buffer contents to set
635
+ */
87
636
  export declare const bufferSetContentType: (buffer: BufferT, contentType: BufferContentTypeT) => void;
637
+ /**
638
+ * Set the text flow direction of the buffer. No shaping can happen without
639
+ * setting `buffer` direction, and it controls the visual direction for the
640
+ * output glyphs; for RTL direction the glyphs will be reversed. Many layout
641
+ * features depend on the proper setting of the direction, for example,
642
+ * reversing RTL text before shaping, then shaping with LTR direction is not
643
+ * the same as keeping the text in logical order and shaping with RTL
644
+ * direction.
645
+ * @param buffer - An #hb_buffer_t
646
+ * @param direction - the #hb_direction_t of the @buffer
647
+ */
88
648
  export declare const bufferSetDirection: (buffer: BufferT, direction: DirectionT) => void;
649
+ /**
650
+ * Sets `buffer` flags to @flags. See #hb_buffer_flags_t.
651
+ * @param buffer - An #hb_buffer_t
652
+ * @param flags - The buffer flags to set
653
+ */
89
654
  export declare const bufferSetFlags: (buffer: BufferT, flags: BufferFlagsT) => void;
655
+ /**
656
+ * Sets the #hb_codepoint_t that replaces invisible characters in
657
+ * the shaping result. If set to zero (default), the glyph for the
658
+ * U+0020 SPACE character is used. Otherwise, this value is used
659
+ * verbatim.
660
+ * @param buffer - An #hb_buffer_t
661
+ * @param invisible - the invisible #hb_codepoint_t
662
+ */
90
663
  export declare const bufferSetInvisibleGlyph: (buffer: BufferT, invisible: number) => void;
664
+ /**
665
+ * Sets the language of `buffer` to @language.
666
+ *
667
+ * Languages are crucial for selecting which OpenType feature to apply to the
668
+ * buffer which can result in applying language-specific behaviour. Languages
669
+ * are orthogonal to the scripts, and though they are related, they are
670
+ * different concepts and should not be confused with each other.
671
+ *
672
+ * Use hb_language_from_string() to convert from BCP 47 language tags to
673
+ * #hb_language_t.
674
+ * @param buffer - An #hb_buffer_t
675
+ * @param language - An hb_language_t to set
676
+ */
91
677
  export declare const bufferSetLanguage: (buffer: BufferT, language: number) => void;
678
+ /**
679
+ * Similar to hb_buffer_pre_allocate(), but clears any new items added at the
680
+ * end.
681
+ * @param buffer - An #hb_buffer_t
682
+ * @param length - The new length of @buffer
683
+ */
92
684
  export declare const bufferSetLength: (buffer: BufferT, length: number) => number;
685
+ /**
686
+ * Sets the implementation function for #hb_buffer_message_func_t.
687
+ * @param buffer - An #hb_buffer_t
688
+ * @param func - Callback function
689
+ * @param userData - Data to pass to @func
690
+ * @param destroy - The function to call when `user_data` is not needed anymore
691
+ */
93
692
  export declare const bufferSetMessageFunc: (buffer: BufferT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
693
+ /**
694
+ * Sets the #hb_codepoint_t that replaces characters not found in
695
+ * the font during shaping.
696
+ *
697
+ * The not-found glyph defaults to zero, sometimes known as the
698
+ * ".notdef" glyph. This API allows for differentiating the two.
699
+ * @param buffer - An #hb_buffer_t
700
+ * @param notFound - the not-found #hb_codepoint_t
701
+ */
94
702
  export declare const bufferSetNotFoundGlyph: (buffer: BufferT, notFound: number) => void;
703
+ /**
704
+ * Sets the #hb_codepoint_t that replaces variation-selector characters not resolved
705
+ * in the font during shaping.
706
+ *
707
+ * The not-found-variation-selector glyph defaults to #HB_CODEPOINT_INVALID,
708
+ * in which case an unresolved variation-selector will be removed from the glyph
709
+ * string during shaping. This API allows for changing that and retaining a glyph,
710
+ * such that the situation can be detected by the client and handled accordingly
711
+ * (e.g. by using a different font).
712
+ * @param buffer - An #hb_buffer_t
713
+ * @param notFoundVariationSelector - the not-found-variation-selector #hb_codepoint_t
714
+ */
95
715
  export declare const bufferSetNotFoundVariationSelectorGlyph: (buffer: BufferT, notFoundVariationSelector: number) => void;
716
+ /**
717
+ * Sets the random state of the buffer. The state changes
718
+ * every time a glyph uses randomness (eg. the `rand`
719
+ * OpenType feature). This function together with
720
+ * hb_buffer_get_random_state() allow for transferring
721
+ * the current random state to a subsequent buffer, to
722
+ * get better randomness distribution.
723
+ *
724
+ * Defaults to 1 and when buffer contents are cleared.
725
+ * A value of 0 disables randomness during shaping.
726
+ * @param buffer - An #hb_buffer_t
727
+ * @param state - the new random state
728
+ */
96
729
  export declare const bufferSetRandomState: (buffer: BufferT, state: number) => void;
730
+ /**
731
+ * Sets the #hb_codepoint_t that replaces invalid entries for a given encoding
732
+ * when adding text to @buffer.
733
+ *
734
+ * Default is #HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT.
735
+ * @param buffer - An #hb_buffer_t
736
+ * @param replacement - the replacement #hb_codepoint_t
737
+ */
97
738
  export declare const bufferSetReplacementCodepoint: (buffer: BufferT, replacement: number) => void;
739
+ /**
740
+ * Sets the script of `buffer` to @script.
741
+ *
742
+ * Script is crucial for choosing the proper shaping behaviour for scripts that
743
+ * require it (e.g. Arabic) and the which OpenType features defined in the font
744
+ * to be applied.
745
+ *
746
+ * You can pass one of the predefined #hb_script_t values, or use
747
+ * hb_script_from_string() or hb_script_from_iso15924_tag() to get the
748
+ * corresponding script from an ISO 15924 script tag.
749
+ * @param buffer - An #hb_buffer_t
750
+ * @param script - An #hb_script_t to set.
751
+ */
98
752
  export declare const bufferSetScript: (buffer: BufferT, script: ScriptT) => void;
753
+ /**
754
+ * Sets the segment properties of the buffer, a shortcut for calling
755
+ * hb_buffer_set_direction(), hb_buffer_set_script() and
756
+ * hb_buffer_set_language() individually.
757
+ * @param buffer - An #hb_buffer_t
758
+ * @param props - An #hb_segment_properties_t to use
759
+ */
99
760
  export declare const bufferSetSegmentProperties: (buffer: BufferT, props: SegmentPropertiesT) => void;
761
+ /**
762
+ * Sets the Unicode-functions structure of a buffer to
763
+ * @unicode_funcs.
764
+ * @param buffer - An #hb_buffer_t
765
+ * @param unicodeFuncs - The Unicode-functions structure
766
+ */
100
767
  export declare const bufferSetUnicodeFuncs: (buffer: BufferT, unicodeFuncs: UnicodeFuncsT) => void;
768
+ /**
769
+ * Allocates `nmemb` elements of `size` bytes each, initialized to zero,
770
+ * using the allocator set at compile-time. Typically just calloc().
771
+ * @param nmemb - The number of elements to allocate.
772
+ * @param size - The size of each element.
773
+ */
101
774
  export declare const calloc: (nmemb: number, size: number) => number | null;
775
+ /**
776
+ * Fetches the alpha channel of the given @color.
777
+ * @param color - an #hb_color_t we are interested in its channels.
778
+ */
102
779
  export declare const colorGetAlpha: (color: number) => number;
780
+ /**
781
+ * Fetches the blue channel of the given @color.
782
+ * @param color - an #hb_color_t we are interested in its channels.
783
+ */
103
784
  export declare const colorGetBlue: (color: number) => number;
785
+ /**
786
+ * Fetches the green channel of the given @color.
787
+ * @param color - an #hb_color_t we are interested in its channels.
788
+ */
104
789
  export declare const colorGetGreen: (color: number) => number;
790
+ /**
791
+ * Fetches the red channel of the given @color.
792
+ * @param color - an #hb_color_t we are interested in its channels.
793
+ */
105
794
  export declare const colorGetRed: (color: number) => number;
795
+ /**
796
+ * Fetches a list of color stops from the given color line object.
797
+ *
798
+ * Note that due to variations being applied, the returned color stops
799
+ * may be out of order. It is the callers responsibility to ensure that
800
+ * color stops are sorted by their offset before they are used.
801
+ * @param colorLine - a #hb_color_line_t object
802
+ * @param start - the index of the first color stop to return
803
+ * @param count - Input = the maximum number of feature tags to return;
804
+ * @param colorStops - Array of #hb_color_stop_t to populate
805
+ */
106
806
  export declare const colorLineGetColorStops: (colorLine: ColorLineT, start: number, count?: Ref<number> | null, colorStops?: Ref<ColorStopT[]> | null) => number;
807
+ /**
808
+ * Fetches the extend mode of the color line object.
809
+ * @param colorLine - a #hb_color_line_t object
810
+ */
107
811
  export declare const colorLineGetExtend: (colorLine: ColorLineT) => PaintExtendT;
812
+ /**
813
+ * Converts a string to an #hb_direction_t.
814
+ *
815
+ * Matching is loose and applies only to the first letter. For
816
+ * examples, "LTR" and "left-to-right" will both return #HB_DIRECTION_LTR.
817
+ *
818
+ * Unmatched strings will return #HB_DIRECTION_INVALID.
819
+ * @param str - String to convert
820
+ * @param len - Length of @str, or -1 if it is `NULL`-terminated
821
+ */
108
822
  export declare const directionFromString: (str: number[], len: number) => DirectionT;
823
+ /**
824
+ * Converts an #hb_direction_t to a string.
825
+ * @param direction - The #hb_direction_t to convert
826
+ */
109
827
  export declare const directionToString: (direction: DirectionT) => string;
828
+ /**
829
+ * Perform a "close-path" draw operation.
830
+ * @param dfuncs - draw functions
831
+ * @param drawData - associated draw data passed by the caller
832
+ * @param st - current draw state
833
+ */
110
834
  export declare const drawClosePath: (dfuncs: DrawFuncsT, st: DrawStateT, drawData?: number | null) => void;
835
+ /**
836
+ * Perform a "cubic-to" draw operation.
837
+ * @param dfuncs - draw functions
838
+ * @param drawData - associated draw data passed by the caller
839
+ * @param st - current draw state
840
+ * @param control1X - X component of first control point
841
+ * @param control1Y - Y component of first control point
842
+ * @param control2X - X component of second control point
843
+ * @param control2Y - Y component of second control point
844
+ * @param toX - X component of target point
845
+ * @param toY - Y component of target point
846
+ */
111
847
  export declare const drawCubicTo: (dfuncs: DrawFuncsT, st: DrawStateT, control1X: number, control1Y: number, control2X: number, control2Y: number, toX: number, toY: number, drawData?: number | null) => void;
848
+ /**
849
+ * Creates a new draw callbacks object.
850
+ */
112
851
  export declare const drawFuncsCreate: () => DrawFuncsT;
852
+ /**
853
+ * Fetches the singleton empty draw-functions structure.
854
+ */
113
855
  export declare const drawFuncsGetEmpty: () => DrawFuncsT;
856
+ /**
857
+ * Checks whether `dfuncs` is immutable.
858
+ * @param dfuncs - draw functions
859
+ */
114
860
  export declare const drawFuncsIsImmutable: (dfuncs: DrawFuncsT) => number;
861
+ /**
862
+ * Makes `dfuncs` object immutable.
863
+ * @param dfuncs - draw functions
864
+ */
115
865
  export declare const drawFuncsMakeImmutable: (dfuncs: DrawFuncsT) => void;
866
+ /**
867
+ * Sets close-path callback to the draw functions object.
868
+ * @param dfuncs - draw functions object
869
+ * @param func - close-path callback
870
+ * @param userData - Data to pass to @func
871
+ * @param destroy - The function to call when `user_data` is not needed anymore
872
+ */
116
873
  export declare const drawFuncsSetClosePathFunc: (dfuncs: DrawFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
874
+ /**
875
+ * Sets cubic-to callback to the draw functions object.
876
+ * @param dfuncs - draw functions
877
+ * @param func - cubic-to callback
878
+ * @param userData - Data to pass to @func
879
+ * @param destroy - The function to call when `user_data` is not needed anymore
880
+ */
117
881
  export declare const drawFuncsSetCubicToFunc: (dfuncs: DrawFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
882
+ /**
883
+ * Sets line-to callback to the draw functions object.
884
+ * @param dfuncs - draw functions object
885
+ * @param func - line-to callback
886
+ * @param userData - Data to pass to @func
887
+ * @param destroy - The function to call when `user_data` is not needed anymore
888
+ */
118
889
  export declare const drawFuncsSetLineToFunc: (dfuncs: DrawFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
890
+ /**
891
+ * Sets move-to callback to the draw functions object.
892
+ * @param dfuncs - draw functions object
893
+ * @param func - move-to callback
894
+ * @param userData - Data to pass to @func
895
+ * @param destroy - The function to call when `user_data` is not needed anymore
896
+ */
119
897
  export declare const drawFuncsSetMoveToFunc: (dfuncs: DrawFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
898
+ /**
899
+ * Sets quadratic-to callback to the draw functions object.
900
+ * @param dfuncs - draw functions object
901
+ * @param func - quadratic-to callback
902
+ * @param userData - Data to pass to @func
903
+ * @param destroy - The function to call when `user_data` is not needed anymore
904
+ */
120
905
  export declare const drawFuncsSetQuadraticToFunc: (dfuncs: DrawFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
906
+ /**
907
+ * Perform a "line-to" draw operation.
908
+ * @param dfuncs - draw functions
909
+ * @param drawData - associated draw data passed by the caller
910
+ * @param st - current draw state
911
+ * @param toX - X component of target point
912
+ * @param toY - Y component of target point
913
+ */
121
914
  export declare const drawLineTo: (dfuncs: DrawFuncsT, st: DrawStateT, toX: number, toY: number, drawData?: number | null) => void;
915
+ /**
916
+ * Perform a "move-to" draw operation.
917
+ * @param dfuncs - draw functions
918
+ * @param drawData - associated draw data passed by the caller
919
+ * @param st - current draw state
920
+ * @param toX - X component of target point
921
+ * @param toY - Y component of target point
922
+ */
122
923
  export declare const drawMoveTo: (dfuncs: DrawFuncsT, st: DrawStateT, toX: number, toY: number, drawData?: number | null) => void;
924
+ /**
925
+ * Perform a "quadratic-to" draw operation.
926
+ * @param dfuncs - draw functions
927
+ * @param drawData - associated draw data passed by the caller
928
+ * @param st - current draw state
929
+ * @param controlX - X component of control point
930
+ * @param controlY - Y component of control point
931
+ * @param toX - X component of target point
932
+ * @param toY - Y component of target point
933
+ */
123
934
  export declare const drawQuadraticTo: (dfuncs: DrawFuncsT, st: DrawStateT, controlX: number, controlY: number, toX: number, toY: number, drawData?: number | null) => void;
935
+ /**
936
+ * Add table for `tag` with data provided by `blob` to the face. `face` must
937
+ * be created using hb_face_builder_create().
938
+ * @param face - A face object created with hb_face_builder_create()
939
+ * @param tag - The #hb_tag_t of the table to add
940
+ * @param blob - The blob containing the table data to add
941
+ */
124
942
  export declare const faceBuilderAddTable: (face: FaceT, tag: number, blob: BlobT) => number;
943
+ /**
944
+ * Creates a #hb_face_t that can be used with hb_face_builder_add_table().
945
+ * After tables are added to the face, it can be compiled to a binary
946
+ * font file by calling hb_face_reference_blob().
947
+ */
125
948
  export declare const faceBuilderCreate: () => FaceT;
949
+ /**
950
+ * Set the ordering of tables for serialization. Any tables not
951
+ * specified in the tags list will be ordered after the tables in
952
+ * tags, ordered by the default sort ordering.
953
+ * @param face - A face object created with hb_face_builder_create()
954
+ * @param tags - ordered list of table tags terminated by
955
+ */
126
956
  export declare const faceBuilderSortTables: (face: FaceT, tags: number[]) => void;
957
+ /**
958
+ * Collects the mapping from Unicode characters to nominal glyphs of the @face,
959
+ * and optionally all of the Unicode characters covered by @face.
960
+ * @param face - A face object
961
+ * @param mapping - The map to add Unicode-to-glyph mapping to
962
+ * @param unicodes - The set to add Unicode characters to, or `NULL`
963
+ */
127
964
  export declare const faceCollectNominalGlyphMapping: (face: FaceT, mapping: Ref<MapT>, unicodes?: Ref<SetT> | null) => void;
965
+ /**
966
+ * Collects all of the Unicode characters covered by `face` and adds
967
+ * them to the #hb_set_t set @out.
968
+ * @param face - A face object
969
+ * @param out - The set to add Unicode characters to
970
+ */
128
971
  export declare const faceCollectUnicodes: (face: FaceT, out: Ref<SetT>) => void;
972
+ /**
973
+ * Collects all Unicode "Variation Selector" characters covered by `face` and adds
974
+ * them to the #hb_set_t set @out.
975
+ * @param face - A face object
976
+ * @param out - The set to add Variation Selector characters to
977
+ */
129
978
  export declare const faceCollectVariationSelectors: (face: FaceT, out: Ref<SetT>) => void;
979
+ /**
980
+ * Collects all Unicode characters for `variation_selector` covered by `face` and adds
981
+ * them to the #hb_set_t set @out.
982
+ * @param face - A face object
983
+ * @param variationSelector - The Variation Selector to query
984
+ * @param out - The set to add Unicode characters to
985
+ */
130
986
  export declare const faceCollectVariationUnicodes: (face: FaceT, variationSelector: number, out: Ref<SetT>) => void;
987
+ /**
988
+ * Fetches the number of faces in a blob.
989
+ * @param blob - a blob.
990
+ */
131
991
  export declare const faceCount: (blob: BlobT) => number;
992
+ /**
993
+ * Constructs a new face object from the specified blob and
994
+ * a face index into that blob.
995
+ *
996
+ * The face index is used for blobs of file formats such as TTC and
997
+ * DFont that can contain more than one face. Face indices within
998
+ * such collections are zero-based.
999
+ *
1000
+ * <note>Note: If the blob font format is not a collection, `index` is ignored. Otherwise, only the lower 16-bits of `index` are used.
1001
+ * The unmodified `index` can be accessed via hb_face_get_index().</note>
1002
+ *
1003
+ * <note>Note: The high 16-bits of @index, if non-zero, are used by
1004
+ * hb_font_create() to load named-instances in variable fonts. See
1005
+ * hb_font_create() for details.</note>
1006
+ * @param blob - #hb_blob_t to work upon
1007
+ * @param index - The index of the face within @blob
1008
+ */
132
1009
  export declare const faceCreate: (blob: BlobT, index: number) => FaceT;
1010
+ /**
1011
+ * Variant of hb_face_create(), built for those cases where it is more
1012
+ * convenient to provide data for individual tables instead of the whole font
1013
+ * data. With the caveat that hb_face_get_table_tags() would not work
1014
+ * with faces created this way. You can address that by calling the
1015
+ * hb_face_set_get_table_tags_func() function and setting the appropriate callback.
1016
+ *
1017
+ * Creates a new face object from the specified `user_data` and @reference_table_func,
1018
+ * with the `destroy` callback.
1019
+ * @param referenceTableFunc - Table-referencing function
1020
+ * @param userData - A pointer to the user data
1021
+ * @param destroy - A callback to call when `data` is not needed anymore
1022
+ */
133
1023
  export declare const faceCreateForTables: (referenceTableFunc: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => FaceT;
1024
+ /**
1025
+ * A thin wrapper around hb_blob_create_from_file_or_fail()
1026
+ * followed by hb_face_create_or_fail().
1027
+ * @param fileName - A font filename
1028
+ * @param index - The index of the face within the file
1029
+ */
134
1030
  export declare const faceCreateFromFileOrFail: (fileName: string, index: number) => FaceT;
1031
+ /**
1032
+ * A thin wrapper around the face loader functions registered with HarfBuzz.
1033
+ * If `loader_name` is `NULL` or the empty string, the first available loader
1034
+ * is used.
1035
+ *
1036
+ * For example, the FreeType ("ft") loader might be able to load
1037
+ * WOFF and WOFF2 files if FreeType is built with those features,
1038
+ * whereas the OpenType ("ot") loader will not.
1039
+ * @param fileName - A font filename
1040
+ * @param index - The index of the face within the file
1041
+ * @param loaderName - The name of the loader to use, or `NULL`
1042
+ */
135
1043
  export declare const faceCreateFromFileOrFailUsing: (fileName: string, index: number, loaderName?: string | null) => FaceT;
1044
+ /**
1045
+ * Like hb_face_create(), but returns `NULL` if the blob data
1046
+ * contains no usable font face at the specified index.
1047
+ * @param blob - #hb_blob_t to work upon
1048
+ * @param index - The index of the face within @blob
1049
+ */
136
1050
  export declare const faceCreateOrFail: (blob: BlobT, index: number) => FaceT;
1051
+ /**
1052
+ * A thin wrapper around the face loader functions registered with HarfBuzz.
1053
+ * If `loader_name` is `NULL` or the empty string, the first available loader
1054
+ * is used.
1055
+ *
1056
+ * For example, the FreeType ("ft") loader might be able to load
1057
+ * WOFF and WOFF2 files if FreeType is built with those features,
1058
+ * whereas the OpenType ("ot") loader will not.
1059
+ * @param blob - #hb_blob_t to work upon
1060
+ * @param index - The index of the face within @blob
1061
+ * @param loaderName - The name of the loader to use, or `NULL`
1062
+ */
137
1063
  export declare const faceCreateOrFailUsing: (blob: BlobT, index: number, loaderName?: string | null) => FaceT;
1064
+ /**
1065
+ * Fetches the singleton empty face object.
1066
+ */
138
1067
  export declare const faceGetEmpty: () => FaceT;
1068
+ /**
1069
+ * Fetches the glyph-count value of the specified face object.
1070
+ * @param face - A face object
1071
+ */
139
1072
  export declare const faceGetGlyphCount: (face: FaceT) => number;
1073
+ /**
1074
+ * Fetches the face-index corresponding to the given face.
1075
+ *
1076
+ * <note>Note: face indices within a collection are zero-based.</note>
1077
+ * @param face - A face object
1078
+ */
140
1079
  export declare const faceGetIndex: (face: FaceT) => number;
1080
+ /**
1081
+ * Fetches a list of all table tags for a face, if possible. The list returned will
1082
+ * begin at the offset provided
1083
+ * @param face - A face object
1084
+ * @param startOffset - The index of first table tag to retrieve
1085
+ * @param tableCount - Input = the maximum number of table tags to return;
1086
+ * @param tableTags - The array of table tags found
1087
+ */
141
1088
  export declare const faceGetTableTags: (face: FaceT, startOffset: number, tableCount: Ref<number>, tableTags: Ref<number[]>) => number;
1089
+ /**
1090
+ * Fetches the units-per-em (UPEM) value of the specified face object.
1091
+ *
1092
+ * Typical UPEM values for fonts are 1000, or 2048, but any value
1093
+ * in between 16 and 16,384 is allowed for OpenType fonts.
1094
+ * @param face - A face object
1095
+ */
142
1096
  export declare const faceGetUpem: (face: FaceT) => number;
1097
+ /**
1098
+ * Tests whether the given face object is immutable.
1099
+ * @param face - A face object
1100
+ */
143
1101
  export declare const faceIsImmutable: (face: FaceT) => number;
1102
+ /**
1103
+ * Retrieves the list of face loaders supported by HarfBuzz.
1104
+ */
144
1105
  export declare const faceListLoaders: () => string[];
1106
+ /**
1107
+ * Makes the given face object immutable.
1108
+ * @param face - A face object
1109
+ */
145
1110
  export declare const faceMakeImmutable: (face: FaceT) => void;
1111
+ /**
1112
+ * Fetches a pointer to the binary blob that contains the specified face.
1113
+ * If referencing the face data is not possible, this function creates a blob
1114
+ * out of individual table blobs if hb_face_get_table_tags() works with this
1115
+ * face, otherwise it returns an empty blob.
1116
+ * @param face - A face object
1117
+ */
146
1118
  export declare const faceReferenceBlob: (face: FaceT) => BlobT;
1119
+ /**
1120
+ * Fetches a reference to the specified table within
1121
+ * the specified face. Returns an empty blob if referencing table data is not
1122
+ * possible.
1123
+ * @param face - A face object
1124
+ * @param tag - The #hb_tag_t of the table to query
1125
+ */
147
1126
  export declare const faceReferenceTable: (face: FaceT, tag: number) => BlobT;
1127
+ /**
1128
+ * Sets the table-tag-fetching function for the specified face object.
1129
+ * @param face - A face object
1130
+ * @param func - The table-tag-fetching function
1131
+ * @param userData - A pointer to the user data, to be destroyed by `destroy` when not needed anymore
1132
+ * @param destroy - A callback to call when `func` is not needed anymore
1133
+ */
148
1134
  export declare const faceSetGetTableTagsFunc: (face: FaceT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1135
+ /**
1136
+ * Sets the glyph count for a face object to the specified value.
1137
+ *
1138
+ * This API is used in rare circumstances.
1139
+ * @param face - A face object
1140
+ * @param glyphCount - The glyph-count value to assign
1141
+ */
149
1142
  export declare const faceSetGlyphCount: (face: FaceT, glyphCount: number) => void;
1143
+ /**
1144
+ * Assigns the specified face-index to @face. Fails if the
1145
+ * face is immutable.
1146
+ *
1147
+ * <note>Note: changing the index has no effect on the face itself
1148
+ * This only changes the value returned by hb_face_get_index().</note>
1149
+ * @param face - A face object
1150
+ * @param index - The index to assign
1151
+ */
150
1152
  export declare const faceSetIndex: (face: FaceT, index: number) => void;
1153
+ /**
1154
+ * Sets the units-per-em (upem) for a face object to the specified value.
1155
+ *
1156
+ * This API is used in rare circumstances.
1157
+ * @param face - A face object
1158
+ * @param upem - The units-per-em value to assign
1159
+ */
151
1160
  export declare const faceSetUpem: (face: FaceT, upem: number) => void;
1161
+ /**
1162
+ * Parses a string into a #hb_feature_t.
1163
+ *
1164
+ * The format for specifying feature strings follows. All valid CSS
1165
+ * font-feature-settings values other than 'normal' and the global values are
1166
+ * also accepted, though not documented below. CSS string escapes are not
1167
+ * supported.
1168
+ *
1169
+ * The range indices refer to the positions between Unicode characters. The
1170
+ * position before the first character is always 0.
1171
+ *
1172
+ * The format is Python-esque. Here is how it all works:
1173
+ *
1174
+ * <informaltable pgwide='1' align='left' frame='none'>
1175
+ * <tgroup cols='5'>
1176
+ * <thead>
1177
+ * <row><entry>Syntax</entry> <entry>Value</entry> <entry>Start</entry> <entry>End</entry></row>
1178
+ * </thead>
1179
+ * <tbody>
1180
+ * <row><entry>Setting value:</entry></row>
1181
+ * <row><entry>kern</entry> <entry>1</entry> <entry>0</entry> <entry>∞</entry> <entry>Turn feature on</entry></row>
1182
+ * <row><entry>+kern</entry> <entry>1</entry> <entry>0</entry> <entry>∞</entry> <entry>Turn feature on</entry></row>
1183
+ * <row><entry>-kern</entry> <entry>0</entry> <entry>0</entry> <entry>∞</entry> <entry>Turn feature off</entry></row>
1184
+ * <row><entry>kern=0</entry> <entry>0</entry> <entry>0</entry> <entry>∞</entry> <entry>Turn feature off</entry></row>
1185
+ * <row><entry>kern=1</entry> <entry>1</entry> <entry>0</entry> <entry>∞</entry> <entry>Turn feature on</entry></row>
1186
+ * <row><entry>aalt=2</entry> <entry>2</entry> <entry>0</entry> <entry>∞</entry> <entry>Choose 2nd alternate</entry></row>
1187
+ * <row><entry>Setting index:</entry></row>
1188
+ * <row><entry>kern[]</entry> <entry>1</entry> <entry>0</entry> <entry>∞</entry> <entry>Turn feature on</entry></row>
1189
+ * <row><entry>kern[:]</entry> <entry>1</entry> <entry>0</entry> <entry>∞</entry> <entry>Turn feature on</entry></row>
1190
+ * <row><entry>kern[5:]</entry> <entry>1</entry> <entry>5</entry> <entry>∞</entry> <entry>Turn feature on, partial</entry></row>
1191
+ * <row><entry>kern[:5]</entry> <entry>1</entry> <entry>0</entry> <entry>5</entry> <entry>Turn feature on, partial</entry></row>
1192
+ * <row><entry>kern[3:5]</entry> <entry>1</entry> <entry>3</entry> <entry>5</entry> <entry>Turn feature on, range</entry></row>
1193
+ * <row><entry>kern[3]</entry> <entry>1</entry> <entry>3</entry> <entry>3+1</entry> <entry>Turn feature on, single char</entry></row>
1194
+ * <row><entry>Mixing it all:</entry></row>
1195
+ * <row><entry>aalt[3:5]=2</entry> <entry>2</entry> <entry>3</entry> <entry>5</entry> <entry>Turn 2nd alternate on for range</entry></row>
1196
+ * </tbody>
1197
+ * </tgroup>
1198
+ * </informaltable>
1199
+ * @param str - a string to parse
1200
+ * @param len - length of @str, or -1 if string is `NULL` terminated
1201
+ * @param feature - the #hb_feature_t to initialize with the parsed values
1202
+ */
152
1203
  export declare const featureFromString: (str: number[], len: number, feature: Ref<FeatureT>) => number;
1204
+ /**
1205
+ * Converts a #hb_feature_t into a `NULL`-terminated string in the format
1206
+ * understood by hb_feature_from_string(). The client in responsible for
1207
+ * allocating big enough size for @buf, 128 bytes is more than enough.
1208
+ *
1209
+ * Note that the feature value will be omitted if it is '1', but the
1210
+ * string won't include any whitespace.
1211
+ * @param feature - an #hb_feature_t to convert
1212
+ * @param buf - output string
1213
+ * @param size - the allocated size of @buf
1214
+ */
153
1215
  export declare const featureToString: (feature: FeatureT, buf: Ref<string[]>, size: Ref<number>) => void;
1216
+ /**
1217
+ * Adds the origin coordinates to an (X,Y) point coordinate, in
1218
+ * the specified glyph ID in the specified font.
1219
+ *
1220
+ * Calls the appropriate direction-specific variant (horizontal
1221
+ * or vertical) depending on the value of @direction.
1222
+ * @param font - #hb_font_t to work upon
1223
+ * @param glyph - The glyph ID to query
1224
+ * @param direction - The direction of the text segment
1225
+ * @param x - Input = The original X coordinate
1226
+ * @param y - Input = The original Y coordinate
1227
+ */
154
1228
  export declare const fontAddGlyphOriginForDirection: (font: FontT, glyph: number, direction: DirectionT, x: Ref<number>, y: Ref<number>) => void;
1229
+ /**
1230
+ * Notifies the `font` that underlying font data has changed.
1231
+ * This has the effect of increasing the serial as returned
1232
+ * by hb_font_get_serial(), which invalidates internal caches.
1233
+ * @param font - #hb_font_t to work upon
1234
+ */
155
1235
  export declare const fontChanged: (font: FontT) => void;
1236
+ /**
1237
+ * Constructs a new font object from the specified face.
1238
+ *
1239
+ * <note>Note: If @face's index value (as passed to hb_face_create()
1240
+ * has non-zero top 16-bits, those bits minus one are passed to
1241
+ * hb_font_set_var_named_instance(), effectively loading a named-instance
1242
+ * of a variable font, instead of the default-instance. This allows
1243
+ * specifying which named-instance to load by default when creating the
1244
+ * face.</note>
1245
+ * @param face - a face.
1246
+ */
156
1247
  export declare const fontCreate: (face: FaceT) => FontT;
1248
+ /**
1249
+ * Constructs a sub-font font object from the specified `parent` font,
1250
+ * replicating the parent's properties.
1251
+ * @param parent - The parent font object
1252
+ */
157
1253
  export declare const fontCreateSubFont: (parent: FontT) => FontT;
1254
+ /**
1255
+ * Draws the outline that corresponds to a glyph in the specified @font.
1256
+ *
1257
+ * This is an older name for hb_font_draw_glyph_or_fail(), with no
1258
+ * return value.
1259
+ *
1260
+ * The outline is returned by way of calls to the callbacks of the `dfuncs` objects, with `draw_data` passed to them.
1261
+ * @param font - #hb_font_t to work upon
1262
+ * @param glyph - The glyph ID
1263
+ * @param dfuncs - #hb_draw_funcs_t to draw to
1264
+ * @param drawData - User data to pass to draw callbacks
1265
+ */
158
1266
  export declare const fontDrawGlyph: (font: FontT, glyph: number, dfuncs: DrawFuncsT, drawData?: number | null) => void;
1267
+ /**
1268
+ * Draws the outline that corresponds to a glyph in the specified @font.
1269
+ *
1270
+ * This is a newer name for hb_font_draw_glyph(), that returns `false`
1271
+ * if the font has no outlines for the glyph.
1272
+ *
1273
+ * The outline is returned by way of calls to the callbacks of the `dfuncs` objects, with `draw_data` passed to them.
1274
+ * @param font - #hb_font_t to work upon
1275
+ * @param glyph - The glyph ID
1276
+ * @param dfuncs - #hb_draw_funcs_t to draw to
1277
+ * @param drawData - User data to pass to draw callbacks
1278
+ */
159
1279
  export declare const fontDrawGlyphOrFail: (font: FontT, glyph: number, dfuncs: DrawFuncsT, drawData?: number | null) => number;
1280
+ /**
1281
+ * Creates a new #hb_font_funcs_t structure of font functions.
1282
+ */
160
1283
  export declare const fontFuncsCreate: () => FontFuncsT;
1284
+ /**
1285
+ * Fetches an empty font-functions structure.
1286
+ */
161
1287
  export declare const fontFuncsGetEmpty: () => FontFuncsT;
1288
+ /**
1289
+ * Tests whether a font-functions structure is immutable.
1290
+ * @param ffuncs - The font-functions structure
1291
+ */
162
1292
  export declare const fontFuncsIsImmutable: (ffuncs: FontFuncsT) => number;
1293
+ /**
1294
+ * Makes a font-functions structure immutable.
1295
+ * @param ffuncs - The font-functions structure
1296
+ */
163
1297
  export declare const fontFuncsMakeImmutable: (ffuncs: FontFuncsT) => void;
1298
+ /**
1299
+ * Sets the implementation function for #hb_font_draw_glyph_func_t.
1300
+ * @param ffuncs - A font-function structure
1301
+ * @param func - The callback function to assign
1302
+ * @param userData - Data to pass to @func
1303
+ * @param destroy - The function to call when `user_data` is not needed anymore
1304
+ */
164
1305
  export declare const fontFuncsSetDrawGlyphFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1306
+ /**
1307
+ * Sets the implementation function for #hb_font_draw_glyph_or_fail_func_t.
1308
+ * @param ffuncs - A font-function structure
1309
+ * @param func - The callback function to assign
1310
+ * @param userData - Data to pass to @func
1311
+ * @param destroy - The function to call when `user_data` is not needed anymore
1312
+ */
165
1313
  export declare const fontFuncsSetDrawGlyphOrFailFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1314
+ /**
1315
+ * Sets the implementation function for #hb_font_get_font_h_extents_func_t.
1316
+ * @param ffuncs - A font-function structure
1317
+ * @param func - The callback function to assign
1318
+ * @param userData - Data to pass to @func
1319
+ * @param destroy - The function to call when `user_data` is not needed anymore
1320
+ */
166
1321
  export declare const fontFuncsSetFontHExtentsFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1322
+ /**
1323
+ * Sets the implementation function for #hb_font_get_font_v_extents_func_t.
1324
+ * @param ffuncs - A font-function structure
1325
+ * @param func - The callback function to assign
1326
+ * @param userData - Data to pass to @func
1327
+ * @param destroy - The function to call when `user_data` is not needed anymore
1328
+ */
167
1329
  export declare const fontFuncsSetFontVExtentsFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1330
+ /**
1331
+ * Sets the implementation function for #hb_font_get_glyph_contour_point_func_t.
1332
+ * @param ffuncs - A font-function structure
1333
+ * @param func - The callback function to assign
1334
+ * @param userData - Data to pass to @func
1335
+ * @param destroy - The function to call when `user_data` is not needed anymore
1336
+ */
168
1337
  export declare const fontFuncsSetGlyphContourPointFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1338
+ /**
1339
+ * Sets the implementation function for #hb_font_get_glyph_extents_func_t.
1340
+ * @param ffuncs - A font-function structure
1341
+ * @param func - The callback function to assign
1342
+ * @param userData - Data to pass to @func
1343
+ * @param destroy - The function to call when `user_data` is not needed anymore
1344
+ */
169
1345
  export declare const fontFuncsSetGlyphExtentsFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1346
+ /**
1347
+ * Sets the implementation function for #hb_font_get_glyph_from_name_func_t.
1348
+ * @param ffuncs - A font-function structure
1349
+ * @param func - The callback function to assign
1350
+ * @param userData - Data to pass to @func
1351
+ * @param destroy - The function to call when `user_data` is not needed anymore
1352
+ */
170
1353
  export declare const fontFuncsSetGlyphFromNameFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1354
+ /**
1355
+ * Deprecated. Use hb_font_funcs_set_nominal_glyph_func() and
1356
+ * hb_font_funcs_set_variation_glyph_func() instead.
1357
+ * @param ffuncs - The font-functions structure
1358
+ * @param func - callback function
1359
+ * @param userData - data to pass to @func
1360
+ * @param destroy - function to call when `user_data` is not needed anymore
1361
+ */
171
1362
  export declare const fontFuncsSetGlyphFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1363
+ /**
1364
+ * Sets the implementation function for #hb_font_get_glyph_h_advance_func_t.
1365
+ * @param ffuncs - A font-function structure
1366
+ * @param func - The callback function to assign
1367
+ * @param userData - Data to pass to @func
1368
+ * @param destroy - The function to call when `user_data` is not needed anymore
1369
+ */
172
1370
  export declare const fontFuncsSetGlyphHAdvanceFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1371
+ /**
1372
+ * Sets the implementation function for #hb_font_get_glyph_h_advances_func_t.
1373
+ * @param ffuncs - A font-function structure
1374
+ * @param func - The callback function to assign
1375
+ * @param userData - Data to pass to @func
1376
+ * @param destroy - The function to call when `user_data` is not needed anymore
1377
+ */
173
1378
  export declare const fontFuncsSetGlyphHAdvancesFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1379
+ /**
1380
+ * Sets the implementation function for #hb_font_get_glyph_h_kerning_func_t.
1381
+ * @param ffuncs - A font-function structure
1382
+ * @param func - The callback function to assign
1383
+ * @param userData - Data to pass to @func
1384
+ * @param destroy - The function to call when `user_data` is not needed anymore
1385
+ */
174
1386
  export declare const fontFuncsSetGlyphHKerningFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1387
+ /**
1388
+ * Sets the implementation function for #hb_font_get_glyph_h_origin_func_t.
1389
+ * @param ffuncs - A font-function structure
1390
+ * @param func - The callback function to assign
1391
+ * @param userData - Data to pass to @func
1392
+ * @param destroy - The function to call when `user_data` is not needed anymore
1393
+ */
175
1394
  export declare const fontFuncsSetGlyphHOriginFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1395
+ /**
1396
+ * Sets the implementation function for #hb_font_get_glyph_h_origins_func_t.
1397
+ * @param ffuncs - A font-function structure
1398
+ * @param func - The callback function to assign
1399
+ * @param userData - Data to pass to @func
1400
+ * @param destroy - The function to call when `user_data` is not needed anymore
1401
+ */
176
1402
  export declare const fontFuncsSetGlyphHOriginsFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1403
+ /**
1404
+ * Sets the implementation function for #hb_font_get_glyph_name_func_t.
1405
+ * @param ffuncs - A font-function structure
1406
+ * @param func - The callback function to assign
1407
+ * @param userData - Data to pass to @func
1408
+ * @param destroy - The function to call when `user_data` is not needed anymore
1409
+ */
177
1410
  export declare const fontFuncsSetGlyphNameFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1411
+ /**
1412
+ * Sets the implementation function for #hb_font_get_glyph_shape_func_t,
1413
+ * which is the same as #hb_font_draw_glyph_func_t.
1414
+ * @param ffuncs - A font-function structure
1415
+ * @param func - The callback function to assign
1416
+ * @param userData - Data to pass to @func
1417
+ * @param destroy - The function to call when `user_data` is not needed anymore
1418
+ */
178
1419
  export declare const fontFuncsSetGlyphShapeFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1420
+ /**
1421
+ * Sets the implementation function for #hb_font_get_glyph_v_advance_func_t.
1422
+ * @param ffuncs - A font-function structure
1423
+ * @param func - The callback function to assign
1424
+ * @param userData - Data to pass to @func
1425
+ * @param destroy - The function to call when `user_data` is not needed anymore
1426
+ */
179
1427
  export declare const fontFuncsSetGlyphVAdvanceFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1428
+ /**
1429
+ * Sets the implementation function for #hb_font_get_glyph_v_advances_func_t.
1430
+ * @param ffuncs - A font-function structure
1431
+ * @param func - The callback function to assign
1432
+ * @param userData - Data to pass to @func
1433
+ * @param destroy - The function to call when `user_data` is not needed anymore
1434
+ */
180
1435
  export declare const fontFuncsSetGlyphVAdvancesFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1436
+ /**
1437
+ * Sets the implementation function for #hb_font_get_glyph_v_kerning_func_t.
1438
+ * @param ffuncs - A font-function structure
1439
+ * @param func - The callback function to assign
1440
+ * @param userData - Data to pass to @func
1441
+ * @param destroy - The function to call when `user_data` is not needed anymore
1442
+ */
181
1443
  export declare const fontFuncsSetGlyphVKerningFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1444
+ /**
1445
+ * Sets the implementation function for #hb_font_get_glyph_v_origin_func_t.
1446
+ * @param ffuncs - A font-function structure
1447
+ * @param func - The callback function to assign
1448
+ * @param userData - Data to pass to @func
1449
+ * @param destroy - The function to call when `user_data` is not needed anymore
1450
+ */
182
1451
  export declare const fontFuncsSetGlyphVOriginFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1452
+ /**
1453
+ * Sets the implementation function for #hb_font_get_glyph_v_origins_func_t.
1454
+ * @param ffuncs - A font-function structure
1455
+ * @param func - The callback function to assign
1456
+ * @param userData - Data to pass to @func
1457
+ * @param destroy - The function to call when `user_data` is not needed anymore
1458
+ */
183
1459
  export declare const fontFuncsSetGlyphVOriginsFunc: (ffuncs: FontFuncsT, func: number, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1460
+ /**
1461
+ * Sets the implementation function for #hb_font_get_nominal_glyph_func_t.
1462
+ * @param ffuncs - A font-function structure
1463
+ * @param func - The callback function to assign
1464
+ * @param userData - Data to pass to @func
1465
+ * @param destroy - The function to call when `user_data` is not needed anymore
1466
+ */
184
1467
  export declare const fontFuncsSetNominalGlyphFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1468
+ /**
1469
+ * Sets the implementation function for #hb_font_get_nominal_glyphs_func_t.
1470
+ * @param ffuncs - A font-function structure
1471
+ * @param func - The callback function to assign
1472
+ * @param userData - Data to pass to @func
1473
+ * @param destroy - The function to call when `user_data` is not needed anymore
1474
+ */
185
1475
  export declare const fontFuncsSetNominalGlyphsFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1476
+ /**
1477
+ * Sets the implementation function for #hb_font_paint_glyph_func_t.
1478
+ * @param ffuncs - A font-function structure
1479
+ * @param func - The callback function to assign
1480
+ * @param userData - Data to pass to @func
1481
+ * @param destroy - The function to call when `user_data` is no longer needed
1482
+ */
186
1483
  export declare const fontFuncsSetPaintGlyphFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1484
+ /**
1485
+ * Sets the implementation function for #hb_font_paint_glyph_or_fail_func_t.
1486
+ * @param ffuncs - A font-function structure
1487
+ * @param func - The callback function to assign
1488
+ * @param userData - Data to pass to @func
1489
+ * @param destroy - The function to call when `user_data` is no longer needed
1490
+ */
187
1491
  export declare const fontFuncsSetPaintGlyphOrFailFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1492
+ /**
1493
+ * Sets the implementation function for #hb_font_get_variation_glyph_func_t.
1494
+ * @param ffuncs - A font-function structure
1495
+ * @param func - The callback function to assign
1496
+ * @param userData - Data to pass to @func
1497
+ * @param destroy - The function to call when `user_data` is not needed anymore
1498
+ */
188
1499
  export declare const fontFuncsSetVariationGlyphFunc: (ffuncs: FontFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
1500
+ /**
1501
+ * Fetches the empty font object.
1502
+ */
189
1503
  export declare const fontGetEmpty: () => FontT;
1504
+ /**
1505
+ * Fetches the extents for a font in a text segment of the
1506
+ * specified direction.
1507
+ *
1508
+ * Calls the appropriate direction-specific variant (horizontal
1509
+ * or vertical) depending on the value of @direction.
1510
+ * @param font - #hb_font_t to work upon
1511
+ * @param direction - The direction of the text segment
1512
+ * @param extents - The #hb_font_extents_t retrieved
1513
+ */
190
1514
  export declare const fontGetExtentsForDirection: (font: FontT, direction: DirectionT, extents: Ref<number>) => void;
1515
+ /**
1516
+ * Fetches the face associated with the specified font object.
1517
+ * @param font - #hb_font_t to work upon
1518
+ */
191
1519
  export declare const fontGetFace: (font: FontT) => FaceT;
1520
+ /**
1521
+ * Fetches the glyph ID for a Unicode code point in the specified
1522
+ * font, with an optional variation selector.
1523
+ *
1524
+ * If `variation_selector` is 0, calls hb_font_get_nominal_glyph();
1525
+ * otherwise calls hb_font_get_variation_glyph().
1526
+ * @param font - #hb_font_t to work upon
1527
+ * @param unicode - The Unicode code point to query
1528
+ * @param variationSelector - A variation-selector code point
1529
+ * @param glyph - The glyph ID retrieved
1530
+ */
192
1531
  export declare const fontGetGlyph: (font: FontT, unicode: number, variationSelector: number, glyph: Ref<number>) => number;
1532
+ /**
1533
+ * Fetches the advance for a glyph ID from the specified font,
1534
+ * in a text segment of the specified direction.
1535
+ *
1536
+ * Calls the appropriate direction-specific variant (horizontal
1537
+ * or vertical) depending on the value of @direction.
1538
+ * @param font - #hb_font_t to work upon
1539
+ * @param glyph - The glyph ID to query
1540
+ * @param direction - The direction of the text segment
1541
+ * @param x - The horizontal advance retrieved
1542
+ * @param y - The vertical advance retrieved
1543
+ */
193
1544
  export declare const fontGetGlyphAdvanceForDirection: (font: FontT, glyph: number, direction: DirectionT, x: Ref<number>, y: Ref<number>) => void;
1545
+ /**
1546
+ * Fetches the advances for a sequence of glyph IDs in the specified
1547
+ * font, in a text segment of the specified direction.
1548
+ *
1549
+ * Calls the appropriate direction-specific variant (horizontal
1550
+ * or vertical) depending on the value of @direction.
1551
+ * @param font - #hb_font_t to work upon
1552
+ * @param direction - The direction of the text segment
1553
+ * @param count - The number of glyph IDs in the sequence queried
1554
+ * @param firstGlyph - The first glyph ID to query
1555
+ * @param glyphStride - The stride between successive glyph IDs
1556
+ * @param firstAdvance - The first advance retrieved
1557
+ * @param advanceStride - The stride between successive advances
1558
+ */
194
1559
  export declare const fontGetGlyphAdvancesForDirection: (font: FontT, direction: DirectionT, count: number, firstGlyph: number, glyphStride: number, firstAdvance: Ref<number>, advanceStride: Ref<number>) => void;
1560
+ /**
1561
+ * Fetches the (x,y) coordinates of a specified contour-point index
1562
+ * in the specified glyph, within the specified font.
1563
+ * @param font - #hb_font_t to work upon
1564
+ * @param glyph - The glyph ID to query
1565
+ * @param pointIndex - The contour-point index to query
1566
+ * @param x - The X value retrieved for the contour point
1567
+ * @param y - The Y value retrieved for the contour point
1568
+ */
195
1569
  export declare const fontGetGlyphContourPoint: (font: FontT, glyph: number, pointIndex: number, x: Ref<number>, y: Ref<number>) => number;
1570
+ /**
1571
+ * Fetches the (X,Y) coordinates of a specified contour-point index
1572
+ * in the specified glyph ID in the specified font, with respect
1573
+ * to the origin in a text segment in the specified direction.
1574
+ *
1575
+ * Calls the appropriate direction-specific variant (horizontal
1576
+ * or vertical) depending on the value of @direction.
1577
+ * @param font - #hb_font_t to work upon
1578
+ * @param glyph - The glyph ID to query
1579
+ * @param pointIndex - The contour-point index to query
1580
+ * @param direction - The direction of the text segment
1581
+ * @param x - The X value retrieved for the contour point
1582
+ * @param y - The Y value retrieved for the contour point
1583
+ */
196
1584
  export declare const fontGetGlyphContourPointForOrigin: (font: FontT, glyph: number, pointIndex: number, direction: DirectionT, x: Ref<number>, y: Ref<number>) => number;
1585
+ /**
1586
+ * Fetches the #hb_glyph_extents_t data for a glyph ID
1587
+ * in the specified font.
1588
+ * @param font - #hb_font_t to work upon
1589
+ * @param glyph - The glyph ID to query
1590
+ * @param extents - The #hb_glyph_extents_t retrieved
1591
+ */
197
1592
  export declare const fontGetGlyphExtents: (font: FontT, glyph: number, extents: Ref<number>) => number;
1593
+ /**
1594
+ * Fetches the #hb_glyph_extents_t data for a glyph ID
1595
+ * in the specified font, with respect to the origin in
1596
+ * a text segment in the specified direction.
1597
+ *
1598
+ * Calls the appropriate direction-specific variant (horizontal
1599
+ * or vertical) depending on the value of @direction.
1600
+ * @param font - #hb_font_t to work upon
1601
+ * @param glyph - The glyph ID to query
1602
+ * @param direction - The direction of the text segment
1603
+ * @param extents - The #hb_glyph_extents_t retrieved
1604
+ */
198
1605
  export declare const fontGetGlyphExtentsForOrigin: (font: FontT, glyph: number, direction: DirectionT, extents: Ref<number>) => number;
1606
+ /**
1607
+ * Fetches the glyph ID that corresponds to a name string in the specified @font.
1608
+ *
1609
+ * <note>Note: `len` == -1 means the name string is null-terminated.</note>
1610
+ * @param font - #hb_font_t to work upon
1611
+ * @param name - The name string to query
1612
+ * @param len - The length of the name queried
1613
+ * @param glyph - The glyph ID retrieved
1614
+ */
199
1615
  export declare const fontGetGlyphFromName: (font: FontT, name: string[], len: number, glyph: Ref<number>) => number;
1616
+ /**
1617
+ * Fetches the advance for a glyph ID in the specified font,
1618
+ * for horizontal text segments.
1619
+ * @param font - #hb_font_t to work upon
1620
+ * @param glyph - The glyph ID to query
1621
+ */
200
1622
  export declare const fontGetGlyphHAdvance: (font: FontT, glyph: number) => number;
1623
+ /**
1624
+ * Fetches the advances for a sequence of glyph IDs in the specified
1625
+ * font, for horizontal text segments.
1626
+ * @param font - #hb_font_t to work upon
1627
+ * @param count - The number of glyph IDs in the sequence queried
1628
+ * @param firstGlyph - The first glyph ID to query
1629
+ * @param glyphStride - The stride between successive glyph IDs
1630
+ * @param firstAdvance - The first advance retrieved
1631
+ * @param advanceStride - The stride between successive advances
1632
+ */
201
1633
  export declare const fontGetGlyphHAdvances: (font: FontT, count: number, firstGlyph: number, glyphStride: number, firstAdvance: Ref<number>, advanceStride: number) => void;
1634
+ /**
1635
+ * Fetches the kerning-adjustment value for a glyph-pair in
1636
+ * the specified font, for horizontal text segments.
1637
+ *
1638
+ * <note>It handles legacy kerning only (as returned by the corresponding
1639
+ * #hb_font_funcs_t function).</note>
1640
+ * @param font - #hb_font_t to work upon
1641
+ * @param leftGlyph - The glyph ID of the left glyph in the glyph pair
1642
+ * @param rightGlyph - The glyph ID of the right glyph in the glyph pair
1643
+ */
202
1644
  export declare const fontGetGlyphHKerning: (font: FontT, leftGlyph: number, rightGlyph: number) => number;
1645
+ /**
1646
+ * Fetches the (X,Y) coordinates of the origin for a glyph ID
1647
+ * in the specified font, for horizontal text segments.
1648
+ * @param font - #hb_font_t to work upon
1649
+ * @param glyph - The glyph ID to query
1650
+ * @param x - The X coordinate of the origin
1651
+ * @param y - The Y coordinate of the origin
1652
+ */
203
1653
  export declare const fontGetGlyphHOrigin: (font: FontT, glyph: number, x: Ref<number>, y: Ref<number>) => number;
1654
+ /**
1655
+ * Fetches the (X,Y) coordinates of the origin for requested glyph IDs
1656
+ * in the specified font, for horizontal text segments.
1657
+ * @param font - #hb_font_t to work upon
1658
+ * @param count - The number of glyph IDs in the sequence queried
1659
+ * @param firstGlyph - The first glyph ID to query
1660
+ * @param glyphStride - The stride between successive glyph IDs
1661
+ * @param firstX - The first X coordinate of the origin retrieved
1662
+ * @param xStride - The stride between successive X coordinates
1663
+ * @param firstY - The first Y coordinate of the origin retrieved
1664
+ * @param yStride - The stride between successive Y coordinates
1665
+ */
204
1666
  export declare const fontGetGlyphHOrigins: (font: FontT, count: number, firstGlyph: number, glyphStride: number, firstX: Ref<number>, xStride: number, firstY: Ref<number>, yStride: number) => number;
1667
+ /**
1668
+ * Fetches the kerning-adjustment value for a glyph-pair in the specified font.
1669
+ *
1670
+ * Calls the appropriate direction-specific variant (horizontal
1671
+ * or vertical) depending on the value of @direction.
1672
+ * @param font - #hb_font_t to work upon
1673
+ * @param firstGlyph - The glyph ID of the first glyph in the glyph pair to query
1674
+ * @param secondGlyph - The glyph ID of the second glyph in the glyph pair to query
1675
+ * @param direction - The direction of the text segment
1676
+ * @param x - The horizontal kerning-adjustment value retrieved
1677
+ * @param y - The vertical kerning-adjustment value retrieved
1678
+ */
205
1679
  export declare const fontGetGlyphKerningForDirection: (font: FontT, firstGlyph: number, secondGlyph: number, direction: DirectionT, x: Ref<number>, y: Ref<number>) => void;
1680
+ /**
1681
+ * Fetches the glyph-name string for a glyph ID in the specified @font.
1682
+ *
1683
+ * According to the OpenType specification, glyph names are limited to 63
1684
+ * characters and can only contain (a subset of) ASCII.
1685
+ * @param font - #hb_font_t to work upon
1686
+ * @param glyph - The glyph ID to query
1687
+ * @param name - Name string retrieved for the glyph ID
1688
+ * @param size - Length of the glyph-name string retrieved
1689
+ */
206
1690
  export declare const fontGetGlyphName: (font: FontT, glyph: number, name: Ref<string[]>, size: Ref<number>) => number;
1691
+ /**
1692
+ * Fetches the (X,Y) coordinates of the origin for a glyph in
1693
+ * the specified font.
1694
+ *
1695
+ * Calls the appropriate direction-specific variant (horizontal
1696
+ * or vertical) depending on the value of @direction.
1697
+ * @param font - #hb_font_t to work upon
1698
+ * @param glyph - The glyph ID to query
1699
+ * @param direction - The direction of the text segment
1700
+ * @param x - The X coordinate retrieved for the origin
1701
+ * @param y - The Y coordinate retrieved for the origin
1702
+ */
207
1703
  export declare const fontGetGlyphOriginForDirection: (font: FontT, glyph: number, direction: DirectionT, x: Ref<number>, y: Ref<number>) => void;
1704
+ /**
1705
+ * Fetches the glyph shape that corresponds to a glyph in the specified @font.
1706
+ * The shape is returned by way of calls to the callbacks of the `dfuncs` objects, with `draw_data` passed to them.
1707
+ * @param font - #hb_font_t to work upon
1708
+ * @param glyph - The glyph ID
1709
+ * @param dfuncs - #hb_draw_funcs_t to draw to
1710
+ * @param drawData - User data to pass to draw callbacks
1711
+ */
208
1712
  export declare const fontGetGlyphShape: (font: FontT, glyph: number, dfuncs: DrawFuncsT, drawData?: number | null) => void;
1713
+ /**
1714
+ * Fetches the advance for a glyph ID in the specified font,
1715
+ * for vertical text segments.
1716
+ * @param font - #hb_font_t to work upon
1717
+ * @param glyph - The glyph ID to query
1718
+ */
209
1719
  export declare const fontGetGlyphVAdvance: (font: FontT, glyph: number) => number;
1720
+ /**
1721
+ * Fetches the advances for a sequence of glyph IDs in the specified
1722
+ * font, for vertical text segments.
1723
+ * @param font - #hb_font_t to work upon
1724
+ * @param count - The number of glyph IDs in the sequence queried
1725
+ * @param firstGlyph - The first glyph ID to query
1726
+ * @param glyphStride - The stride between successive glyph IDs
1727
+ * @param firstAdvance - The first advance retrieved
1728
+ * @param advanceStride - The stride between successive advances
1729
+ */
210
1730
  export declare const fontGetGlyphVAdvances: (font: FontT, count: number, firstGlyph: number, glyphStride: number, firstAdvance: Ref<number>, advanceStride: Ref<number>) => void;
1731
+ /**
1732
+ * Fetches the kerning-adjustment value for a glyph-pair in
1733
+ * the specified font, for vertical text segments.
1734
+ *
1735
+ * <note>It handles legacy kerning only (as returned by the corresponding
1736
+ * #hb_font_funcs_t function).</note>
1737
+ * @param font - #hb_font_t to work upon
1738
+ * @param topGlyph - The glyph ID of the top glyph in the glyph pair
1739
+ * @param bottomGlyph - The glyph ID of the bottom glyph in the glyph pair
1740
+ */
211
1741
  export declare const fontGetGlyphVKerning: (font: FontT, topGlyph: number, bottomGlyph: number) => number;
1742
+ /**
1743
+ * Fetches the (X,Y) coordinates of the origin for a glyph ID
1744
+ * in the specified font, for vertical text segments.
1745
+ * @param font - #hb_font_t to work upon
1746
+ * @param glyph - The glyph ID to query
1747
+ * @param x - The X coordinate of the origin
1748
+ * @param y - The Y coordinate of the origin
1749
+ */
212
1750
  export declare const fontGetGlyphVOrigin: (font: FontT, glyph: number, x: Ref<number>, y: Ref<number>) => number;
1751
+ /**
1752
+ * Fetches the (X,Y) coordinates of the origin for requested glyph IDs
1753
+ * in the specified font, for vertical text segments.
1754
+ * @param font - #hb_font_t to work upon
1755
+ * @param count - The number of glyph IDs in the sequence queried
1756
+ * @param firstGlyph - The first glyph ID to query
1757
+ * @param glyphStride - The stride between successive glyph IDs
1758
+ * @param firstX - The first X coordinate of the origin retrieved
1759
+ * @param xStride - The stride between successive X coordinates
1760
+ * @param firstY - The first Y coordinate of the origin retrieved
1761
+ * @param yStride - The stride between successive Y coordinates
1762
+ */
213
1763
  export declare const fontGetGlyphVOrigins: (font: FontT, count: number, firstGlyph: number, glyphStride: number, firstX: Ref<number>, xStride: number, firstY: Ref<number>, yStride: number) => number;
1764
+ /**
1765
+ * Fetches the extents for a specified font, for horizontal
1766
+ * text segments.
1767
+ * @param font - #hb_font_t to work upon
1768
+ * @param extents - The font extents retrieved
1769
+ */
214
1770
  export declare const fontGetHExtents: (font: FontT, extents: Ref<number>) => number;
1771
+ /**
1772
+ * Fetches the nominal glyph ID for a Unicode code point in the
1773
+ * specified font.
1774
+ *
1775
+ * This version of the function should not be used to fetch glyph IDs
1776
+ * for code points modified by variation selectors. For variation-selector
1777
+ * support, user hb_font_get_variation_glyph() or use hb_font_get_glyph().
1778
+ * @param font - #hb_font_t to work upon
1779
+ * @param unicode - The Unicode code point to query
1780
+ * @param glyph - The glyph ID retrieved
1781
+ */
215
1782
  export declare const fontGetNominalGlyph: (font: FontT, unicode: number, glyph: Ref<number>) => number;
1783
+ /**
1784
+ * Fetches the nominal glyph IDs for a sequence of Unicode code points. Glyph
1785
+ * IDs must be returned in a #hb_codepoint_t output parameter. Stops at the
1786
+ * first unsupported glyph ID.
1787
+ * @param font - #hb_font_t to work upon
1788
+ * @param count - number of code points to query
1789
+ * @param firstUnicode - The first Unicode code point to query
1790
+ * @param unicodeStride - The stride between successive code points
1791
+ * @param firstGlyph - The first glyph ID retrieved
1792
+ * @param glyphStride - The stride between successive glyph IDs
1793
+ */
216
1794
  export declare const fontGetNominalGlyphs: (font: FontT, count: number, firstUnicode: number, unicodeStride: number, firstGlyph: Ref<number>, glyphStride: number) => number;
1795
+ /**
1796
+ * Fetches the parent font of @font.
1797
+ * @param font - #hb_font_t to work upon
1798
+ */
217
1799
  export declare const fontGetParent: (font: FontT) => FontT;
1800
+ /**
1801
+ * Fetches the horizontal and vertical points-per-em (ppem) of a font.
1802
+ * @param font - #hb_font_t to work upon
1803
+ * @param xPpem - Horizontal ppem value
1804
+ * @param yPpem - Vertical ppem value
1805
+ */
218
1806
  export declare const fontGetPpem: (font: FontT, xPpem: Ref<number>, yPpem: Ref<number>) => void;
1807
+ /**
1808
+ * Fetches the "point size" of a font. Used in CoreText to
1809
+ * implement optical sizing.
1810
+ * @param font - #hb_font_t to work upon
1811
+ */
219
1812
  export declare const fontGetPtem: (font: FontT) => number;
1813
+ /**
1814
+ * Fetches the horizontal and vertical scale of a font.
1815
+ * @param font - #hb_font_t to work upon
1816
+ * @param xScale - Horizontal scale value
1817
+ * @param yScale - Vertical scale value
1818
+ */
220
1819
  export declare const fontGetScale: (font: FontT, xScale: Ref<number>, yScale: Ref<number>) => void;
1820
+ /**
1821
+ * Returns the internal serial number of the font. The serial
1822
+ * number is increased every time a setting on the font is
1823
+ * changed, using a setter function.
1824
+ * @param font - #hb_font_t to work upon
1825
+ */
221
1826
  export declare const fontGetSerial: (font: FontT) => number;
1827
+ /**
1828
+ * Fetches the "synthetic boldness" parameters of a font.
1829
+ * @param font - #hb_font_t to work upon
1830
+ * @param xEmbolden - return location for horizontal value
1831
+ * @param yEmbolden - return location for vertical value
1832
+ * @param inPlace - return location for in-place value
1833
+ */
222
1834
  export declare const fontGetSyntheticBold: (font: FontT, xEmbolden: Ref<number>, yEmbolden: Ref<number>, inPlace: Ref<number>) => void;
1835
+ /**
1836
+ * Fetches the "synthetic slant" of a font.
1837
+ * @param font - #hb_font_t to work upon
1838
+ */
223
1839
  export declare const fontGetSyntheticSlant: (font: FontT) => number;
1840
+ /**
1841
+ * Fetches the extents for a specified font, for vertical
1842
+ * text segments.
1843
+ * @param font - #hb_font_t to work upon
1844
+ * @param extents - The font extents retrieved
1845
+ */
224
1846
  export declare const fontGetVExtents: (font: FontT, extents: Ref<number>) => number;
1847
+ /**
1848
+ * Fetches the list of variation coordinates (in design-space units) currently
1849
+ * set on a font.
1850
+ *
1851
+ * <note>Note that if no variation coordinates are set, this function may
1852
+ * return %NULL.</note>
1853
+ *
1854
+ * <note>If variations have been set on the font using normalized coordinates
1855
+ * (i.e. via hb_font_set_var_coords_normalized()), the design coordinates will
1856
+ * have NaN (Not a Number) values.</note>
1857
+ *
1858
+ * Return value is valid as long as variation coordinates of the font
1859
+ * are not modified.
1860
+ * @param font - #hb_font_t to work upon
1861
+ * @param length - Number of coordinates retrieved
1862
+ */
225
1863
  export declare const fontGetVarCoordsDesign: (font: FontT, length: Ref<number>) => number;
1864
+ /**
1865
+ * Fetches the list of normalized variation coordinates currently
1866
+ * set on a font.
1867
+ *
1868
+ * <note>Note that if no variation coordinates are set, this function may
1869
+ * return %NULL.</note>
1870
+ *
1871
+ * Return value is valid as long as variation coordinates of the font
1872
+ * are not modified.
1873
+ * @param font - #hb_font_t to work upon
1874
+ * @param length - Number of coordinates retrieved
1875
+ */
226
1876
  export declare const fontGetVarCoordsNormalized: (font: FontT, length: Ref<number>) => number;
1877
+ /**
1878
+ * Returns the currently-set named-instance index of the font.
1879
+ * @param font - a font.
1880
+ */
227
1881
  export declare const fontGetVarNamedInstance: (font: FontT) => number;
1882
+ /**
1883
+ * Fetches the glyph ID for a Unicode code point when followed by
1884
+ * by the specified variation-selector code point, in the specified
1885
+ * font.
1886
+ * @param font - #hb_font_t to work upon
1887
+ * @param unicode - The Unicode code point to query
1888
+ * @param variationSelector - The variation-selector code point to query
1889
+ * @param glyph - The glyph ID retrieved
1890
+ */
228
1891
  export declare const fontGetVariationGlyph: (font: FontT, unicode: number, variationSelector: number, glyph: Ref<number>) => number;
1892
+ /**
1893
+ * Fetches the glyph ID from `font` that matches the specified string.
1894
+ * Strings of the format `gidDDD` or `uniUUUU` are parsed automatically.
1895
+ *
1896
+ * <note>Note: `len` == -1 means the string is null-terminated.</note>
1897
+ * @param font - #hb_font_t to work upon
1898
+ * @param s - string to query
1899
+ * @param len - The length of the string @s
1900
+ * @param glyph - The glyph ID corresponding to the string requested
1901
+ */
229
1902
  export declare const fontGlyphFromString: (font: FontT, s: number[], len: number, glyph: Ref<number>) => number;
1903
+ /**
1904
+ * Fetches the name of the specified glyph ID in `font` and returns
1905
+ * it in string @s.
1906
+ *
1907
+ * If the glyph ID has no name in @font, a string of the form `gidDDD` is
1908
+ * generated, with `DDD` being the glyph ID.
1909
+ *
1910
+ * According to the OpenType specification, glyph names are limited to 63
1911
+ * characters and can only contain (a subset of) ASCII.
1912
+ * @param font - #hb_font_t to work upon
1913
+ * @param glyph - The glyph ID to query
1914
+ * @param s - The string containing the glyph name
1915
+ * @param size - Length of string @s
1916
+ */
230
1917
  export declare const fontGlyphToString: (font: FontT, glyph: number, s: Ref<string[]>, size: Ref<number>) => void;
1918
+ /**
1919
+ * Tests whether a font object is immutable.
1920
+ * @param font - #hb_font_t to work upon
1921
+ */
231
1922
  export declare const fontIsImmutable: (font: FontT) => number;
1923
+ /**
1924
+ * Tests whether a font is synthetic. A synthetic font is one
1925
+ * that has either synthetic slant or synthetic bold set on it.
1926
+ * @param font - #hb_font_t to work upon
1927
+ */
232
1928
  export declare const fontIsSynthetic: (font: FontT) => number;
1929
+ /**
1930
+ * Retrieves the list of font functions supported by HarfBuzz.
1931
+ */
233
1932
  export declare const fontListFuncs: () => string[];
1933
+ /**
1934
+ * Makes `font` immutable.
1935
+ * @param font - #hb_font_t to work upon
1936
+ */
234
1937
  export declare const fontMakeImmutable: (font: FontT) => void;
1938
+ /**
1939
+ * Paints the glyph. This function is similar to
1940
+ * hb_font_paint_glyph_or_fail(), but if painting a color glyph
1941
+ * failed, it will fall back to painting an outline monochrome
1942
+ * glyph.
1943
+ *
1944
+ * The painting instructions are returned by way of calls to
1945
+ * the callbacks of the `funcs` object, with `paint_data` passed
1946
+ * to them.
1947
+ *
1948
+ * If the font has color palettes (see hb_ot_color_has_palettes()),
1949
+ * then `palette_index` selects the palette to use. If the font only
1950
+ * has one palette, this will be 0.
1951
+ * @param font - #hb_font_t to work upon
1952
+ * @param glyph - The glyph ID
1953
+ * @param pfuncs - #hb_paint_funcs_t to paint with
1954
+ * @param paintData - User data to pass to paint callbacks
1955
+ * @param paletteIndex - The index of the font's color palette to use
1956
+ * @param foreground - The foreground color, unpremultipled
1957
+ */
235
1958
  export declare const fontPaintGlyph: (font: FontT, glyph: number, pfuncs: PaintFuncsT, paletteIndex: number, foreground: number, paintData?: number | null) => void;
1959
+ /**
1960
+ * Paints a color glyph.
1961
+ *
1962
+ * This function is similar to, but lower-level than,
1963
+ * hb_font_paint_glyph(). It is suitable for clients that
1964
+ * need more control. If there are no color glyphs available,
1965
+ * it will return `false`. The client can then fall back to
1966
+ * hb_font_draw_glyph_or_fail() for the monochrome outline glyph.
1967
+ *
1968
+ * The painting instructions are returned by way of calls to
1969
+ * the callbacks of the `funcs` object, with `paint_data` passed
1970
+ * to them.
1971
+ *
1972
+ * If the font has color palettes (see hb_ot_color_has_palettes()),
1973
+ * then `palette_index` selects the palette to use. If the font only
1974
+ * has one palette, this will be 0.
1975
+ * @param font - #hb_font_t to work upon
1976
+ * @param glyph - The glyph ID
1977
+ * @param pfuncs - #hb_paint_funcs_t to paint with
1978
+ * @param paintData - User data to pass to paint callbacks
1979
+ * @param paletteIndex - The index of the font's color palette to use
1980
+ * @param foreground - The foreground color, unpremultipled
1981
+ */
236
1982
  export declare const fontPaintGlyphOrFail: (font: FontT, glyph: number, pfuncs: PaintFuncsT, paletteIndex: number, foreground: number, paintData?: number | null) => number;
1983
+ /**
1984
+ * Sets `face` as the font-face value of @font.
1985
+ * @param font - #hb_font_t to work upon
1986
+ * @param face - The #hb_face_t to assign
1987
+ */
237
1988
  export declare const fontSetFace: (font: FontT, face: FaceT) => void;
1989
+ /**
1990
+ * Sets the font-functions structure to use for a font, based on the
1991
+ * specified name.
1992
+ *
1993
+ * If `name` is `NULL` or the empty string, the default (first) functioning font-functions
1994
+ * are used. This default can be changed by setting the `HB_FONT_FUNCS` environment
1995
+ * variable to the name of the desired font-functions.
1996
+ * @param font - #hb_font_t to work upon
1997
+ * @param name - The name of the font-functions structure to use, or `NULL`
1998
+ */
238
1999
  export declare const fontSetFuncsUsing: (font: FontT, name: string) => number;
2000
+ /**
2001
+ * Sets the parent font of @font.
2002
+ * @param font - #hb_font_t to work upon
2003
+ * @param parent - The parent font object to assign
2004
+ */
239
2005
  export declare const fontSetParent: (font: FontT, parent: FontT) => void;
2006
+ /**
2007
+ * Sets the horizontal and vertical pixels-per-em (PPEM) of a font.
2008
+ *
2009
+ * These values are used for pixel-size-specific adjustment to
2010
+ * shaping and draw results, though for the most part they are
2011
+ * unused and can be left unset.
2012
+ * @param font - #hb_font_t to work upon
2013
+ * @param xPpem - Horizontal ppem value to assign
2014
+ * @param yPpem - Vertical ppem value to assign
2015
+ */
240
2016
  export declare const fontSetPpem: (font: FontT, xPpem: number, yPpem: number) => void;
2017
+ /**
2018
+ * Sets the "point size" of a font. Set to zero to unset.
2019
+ * Used in CoreText to implement optical sizing.
2020
+ *
2021
+ * <note>Note: There are 72 points in an inch.</note>
2022
+ * @param font - #hb_font_t to work upon
2023
+ * @param ptem - font size in points.
2024
+ */
241
2025
  export declare const fontSetPtem: (font: FontT, ptem: number) => void;
2026
+ /**
2027
+ * Sets the horizontal and vertical scale of a font.
2028
+ *
2029
+ * The font scale is a number related to, but not the same as,
2030
+ * font size. Typically the client establishes a scale factor
2031
+ * to be used between the two. For example, 64, or 256, which
2032
+ * would be the fractional-precision part of the font scale.
2033
+ * This is necessary because #hb_position_t values are integer
2034
+ * types and you need to leave room for fractional values
2035
+ * in there.
2036
+ *
2037
+ * For example, to set the font size to 20, with 64
2038
+ * levels of fractional precision you would call
2039
+ * `hb_font_set_scale(font, 20 * 64, 20 * 64)`.
2040
+ *
2041
+ * In the example above, even what font size 20 means is up to
2042
+ * you. It might be 20 pixels, or 20 points, or 20 millimeters.
2043
+ * HarfBuzz does not care about that. You can set the point
2044
+ * size of the font using hb_font_set_ptem(), and the pixel
2045
+ * size using hb_font_set_ppem().
2046
+ *
2047
+ * The choice of scale is yours but needs to be consistent between
2048
+ * what you set here, and what you expect out of #hb_position_t
2049
+ * as well has draw / paint API output values.
2050
+ *
2051
+ * Fonts default to a scale equal to the UPEM value of their face.
2052
+ * A font with this setting is sometimes called an "unscaled" font.
2053
+ * @param font - #hb_font_t to work upon
2054
+ * @param xScale - Horizontal scale value to assign
2055
+ * @param yScale - Vertical scale value to assign
2056
+ */
242
2057
  export declare const fontSetScale: (font: FontT, xScale: number, yScale: number) => void;
2058
+ /**
2059
+ * Sets the "synthetic boldness" of a font.
2060
+ *
2061
+ * Positive values for `x_embolden` / `y_embolden` make a font
2062
+ * bolder, negative values thinner. Typical values are in the
2063
+ * 0.01 to 0.05 range. The default value is zero.
2064
+ *
2065
+ * Synthetic boldness is applied by offsetting the contour
2066
+ * points of the glyph shape.
2067
+ *
2068
+ * Synthetic boldness is applied when rendering a glyph via
2069
+ * hb_font_draw_glyph_or_fail().
2070
+ *
2071
+ * If `in_place` is `false`, then glyph advance-widths are also
2072
+ * adjusted, otherwise they are not. The in-place mode is
2073
+ * useful for simulating [font grading](https://fonts.google.com/knowledge/glossary/grade).
2074
+ * @param font - #hb_font_t to work upon
2075
+ * @param xEmbolden - the amount to embolden horizontally
2076
+ * @param yEmbolden - the amount to embolden vertically
2077
+ * @param inPlace - whether to embolden glyphs in-place
2078
+ */
243
2079
  export declare const fontSetSyntheticBold: (font: FontT, xEmbolden: number, yEmbolden: number, inPlace: number) => void;
2080
+ /**
2081
+ * Sets the "synthetic slant" of a font. By default is zero.
2082
+ * Synthetic slant is the graphical skew applied to the font
2083
+ * at rendering time.
2084
+ *
2085
+ * HarfBuzz needs to know this value to adjust shaping results,
2086
+ * metrics, and style values to match the slanted rendering.
2087
+ *
2088
+ * <note>Note: The glyph shape fetched via the hb_font_draw_glyph_or_fail()
2089
+ * function is slanted to reflect this value as well.</note>
2090
+ *
2091
+ * <note>Note: The slant value is a ratio. For example, a
2092
+ * 20% slant would be represented as a 0.2 value.</note>
2093
+ * @param font - #hb_font_t to work upon
2094
+ * @param slant - synthetic slant value.
2095
+ */
244
2096
  export declare const fontSetSyntheticSlant: (font: FontT, slant: number) => void;
2097
+ /**
2098
+ * Applies a list of variation coordinates (in design-space units)
2099
+ * to a font.
2100
+ *
2101
+ * Note that this overrides all existing variations set on @font.
2102
+ * Axes not included in `coords` will be effectively set to their
2103
+ * default values.
2104
+ * @param font - #hb_font_t to work upon
2105
+ * @param coords - Array of variation coordinates to apply
2106
+ * @param coordsLength - Number of coordinates to apply
2107
+ */
245
2108
  export declare const fontSetVarCoordsDesign: (font: FontT, coords: number[], coordsLength: number) => void;
2109
+ /**
2110
+ * Applies a list of variation coordinates (in normalized units)
2111
+ * to a font.
2112
+ *
2113
+ * Note that this overrides all existing variations set on @font.
2114
+ * Axes not included in `coords` will be effectively set to their
2115
+ * default values.
2116
+ *
2117
+ * <note>Note: Coordinates should be normalized to 2.14.</note>
2118
+ * @param font - #hb_font_t to work upon
2119
+ * @param coords - Array of variation coordinates to apply
2120
+ * @param coordsLength - Number of coordinates to apply
2121
+ */
246
2122
  export declare const fontSetVarCoordsNormalized: (font: FontT, coords: number[], coordsLength: number) => void;
2123
+ /**
2124
+ * Sets design coords of a font from a named-instance index.
2125
+ * @param font - a font.
2126
+ * @param instanceIndex - named instance index.
2127
+ */
247
2128
  export declare const fontSetVarNamedInstance: (font: FontT, instanceIndex: number) => void;
2129
+ /**
2130
+ * Change the value of one variation axis on the font.
2131
+ *
2132
+ * Note: This function is expensive to be called repeatedly.
2133
+ * If you want to set multiple variation axes at the same time,
2134
+ * use hb_font_set_variations() instead.
2135
+ * @param font - #hb_font_t to work upon
2136
+ * @param tag - The #hb_tag_t tag of the variation-axis name
2137
+ * @param value - The value of the variation axis
2138
+ */
248
2139
  export declare const fontSetVariation: (font: FontT, tag: number, value: number) => void;
2140
+ /**
2141
+ * Applies a list of font-variation settings to a font.
2142
+ *
2143
+ * Note that this overrides all existing variations set on @font.
2144
+ * Axes not included in `variations` will be effectively set to their
2145
+ * default values.
2146
+ * @param font - #hb_font_t to work upon
2147
+ * @param variations - Array of variation settings to apply
2148
+ * @param variationsLength - Number of variations to apply
2149
+ */
249
2150
  export declare const fontSetVariations: (font: FontT, variations: number[], variationsLength: number) => void;
2151
+ /**
2152
+ * Subtracts the origin coordinates from an (X,Y) point coordinate,
2153
+ * in the specified glyph ID in the specified font.
2154
+ *
2155
+ * Calls the appropriate direction-specific variant (horizontal
2156
+ * or vertical) depending on the value of @direction.
2157
+ * @param font - #hb_font_t to work upon
2158
+ * @param glyph - The glyph ID to query
2159
+ * @param direction - The direction of the text segment
2160
+ * @param x - Input = The original X coordinate
2161
+ * @param y - Input = The original Y coordinate
2162
+ */
250
2163
  export declare const fontSubtractGlyphOriginForDirection: (font: FontT, glyph: number, direction: DirectionT, x: Ref<number>, y: Ref<number>) => void;
2164
+ /**
2165
+ * Frees the memory pointed to by @ptr, using the allocator set at
2166
+ * compile-time. Typically just free().
2167
+ * @param ptr - The pointer to the memory to free.
2168
+ */
251
2169
  export declare const free: (ptr?: number | null) => void;
2170
+ /**
2171
+ * Creates an #hb_face_t face object from the specified FT_Face.
2172
+ *
2173
+ * Note that this is using the FT_Face object just to get at the underlying
2174
+ * font data, and fonts created from the returned #hb_face_t will use the native
2175
+ * HarfBuzz font implementation, unless you call hb_ft_font_set_funcs() on them.
2176
+ *
2177
+ * This variant of the function caches the newly created #hb_face_t
2178
+ * face object, using the `generic` pointer of @ft_face. Subsequent function
2179
+ * calls that are passed the same `ft_face` parameter will have the same
2180
+ * #hb_face_t returned to them, and that #hb_face_t will be correctly
2181
+ * reference counted.
2182
+ *
2183
+ * However, client programs are still responsible for destroying
2184
+ * `ft_face` after the last #hb_face_t face object has been destroyed.
2185
+ * @param ftFace - FT_Face to work upon
2186
+ */
252
2187
  export declare const ftFaceCreateCached: (ftFace: number) => FaceT;
2188
+ /**
2189
+ * Creates an #hb_face_t face object from the specified
2190
+ * font blob and face index.
2191
+ *
2192
+ * This is similar in functionality to hb_face_create_from_blob_or_fail(),
2193
+ * but uses the FreeType library for loading the font blob. This can
2194
+ * be useful, for example, to load WOFF and WOFF2 font data.
2195
+ * @param blob - A blob
2196
+ * @param index - The index of the face within the blob
2197
+ */
253
2198
  export declare const ftFaceCreateFromBlobOrFail: (blob: BlobT, index: number) => FaceT;
2199
+ /**
2200
+ * Creates an #hb_face_t face object from the specified
2201
+ * font file and face index.
2202
+ *
2203
+ * This is similar in functionality to hb_face_create_from_file_or_fail(),
2204
+ * but uses the FreeType library for loading the font file. This can
2205
+ * be useful, for example, to load WOFF and WOFF2 font data.
2206
+ * @param fileName - A font filename
2207
+ * @param index - The index of the face within the file
2208
+ */
254
2209
  export declare const ftFaceCreateFromFileOrFail: (fileName: string, index: number) => FaceT;
2210
+ /**
2211
+ * Creates an #hb_face_t face object from the specified FT_Face.
2212
+ *
2213
+ * Note that this is using the FT_Face object just to get at the underlying
2214
+ * font data, and fonts created from the returned #hb_face_t will use the native
2215
+ * HarfBuzz font implementation, unless you call hb_ft_font_set_funcs() on them.
2216
+ *
2217
+ * This is the preferred variant of the hb_ft_face_create*
2218
+ * function family, because it calls FT_Reference_Face() on @ft_face,
2219
+ * ensuring that `ft_face` remains alive as long as the resulting
2220
+ * #hb_face_t face object remains alive. Also calls FT_Done_Face()
2221
+ * when the #hb_face_t face object is destroyed.
2222
+ *
2223
+ * Use this version unless you know you have good reasons not to.
2224
+ * @param ftFace - FT_Face to work upon
2225
+ */
255
2226
  export declare const ftFaceCreateReferenced: (ftFace: number) => FaceT;
2227
+ /**
2228
+ * Refreshes the state of `font` when the underlying FT_Face has changed.
2229
+ * This function should be called after changing the size or
2230
+ * variation-axis settings on the FT_Face.
2231
+ * @param font - #hb_font_t to work upon
2232
+ */
256
2233
  export declare const ftFontChanged: (font: FontT) => void;
2234
+ /**
2235
+ * Creates an #hb_font_t font object from the specified FT_Face.
2236
+ *
2237
+ * <note>Note: You must set the face size on `ft_face` before calling
2238
+ * hb_ft_font_create_referenced() on it. HarfBuzz assumes size is always set
2239
+ * and will access `size` member of FT_Face unconditionally.</note>
2240
+ *
2241
+ * This is the preferred variant of the hb_ft_font_create*
2242
+ * function family, because it calls FT_Reference_Face() on @ft_face,
2243
+ * ensuring that `ft_face` remains alive as long as the resulting
2244
+ * #hb_font_t font object remains alive.
2245
+ *
2246
+ * Use this version unless you know you have good reasons not to.
2247
+ * @param ftFace - FT_Face to work upon
2248
+ */
257
2249
  export declare const ftFontCreateReferenced: (ftFace: number) => FontT;
2250
+ /**
2251
+ * Fetches the FT_Load_Glyph load flags of the specified #hb_font_t.
2252
+ *
2253
+ * For more information, see
2254
+ * <https://freetype.org/freetype2/docs/reference/ft2-glyph_retrieval.html#ft_load_xxx>
2255
+ *
2256
+ * This function works with #hb_font_t objects created by
2257
+ * hb_ft_font_create() or hb_ft_font_create_referenced().
2258
+ * @param font - #hb_font_t to work upon
2259
+ */
258
2260
  export declare const ftFontGetLoadFlags: (font: FontT) => number;
2261
+ /**
2262
+ * Configures the font-functions structure of the specified
2263
+ * #hb_font_t font object to use FreeType font functions.
2264
+ *
2265
+ * In particular, you can use this function to configure an
2266
+ * existing #hb_face_t face object for use with FreeType font
2267
+ * functions even if that #hb_face_t face object was initially
2268
+ * created with hb_face_create(), and therefore was not
2269
+ * initially configured to use FreeType font functions.
2270
+ *
2271
+ * An #hb_font_t object created with hb_ft_font_create()
2272
+ * is preconfigured for FreeType font functions and does not
2273
+ * require this function to be used.
2274
+ *
2275
+ * Note that if you modify the underlying #hb_font_t after
2276
+ * calling this function, you need to call hb_ft_hb_font_changed()
2277
+ * to update the underlying FT_Face.
2278
+ *
2279
+ * <note>Note: Internally, this function creates an FT_Face.
2280
+ * </note>
2281
+ * @param font - #hb_font_t to work upon
2282
+ */
259
2283
  export declare const ftFontSetFuncs: (font: FontT) => void;
2284
+ /**
2285
+ * Sets the FT_Load_Glyph load flags for the specified #hb_font_t.
2286
+ *
2287
+ * For more information, see
2288
+ * <https://freetype.org/freetype2/docs/reference/ft2-glyph_retrieval.html#ft_load_xxx>
2289
+ *
2290
+ * This function works with #hb_font_t objects created by
2291
+ * hb_ft_font_create() or hb_ft_font_create_referenced().
2292
+ * @param font - #hb_font_t to work upon
2293
+ * @param loadFlags - The FreeType load flags to set
2294
+ */
260
2295
  export declare const ftFontSetLoadFlags: (font: FontT, loadFlags: number) => void;
2296
+ /**
2297
+ * Refreshes the state of the underlying FT_Face of `font` when the hb_font_t
2298
+ * `font` has changed.
2299
+ * This function should be called after changing the size or
2300
+ * variation-axis settings on the @font.
2301
+ * This call is fast if nothing has changed on @font.
2302
+ *
2303
+ * Note that as of version 11.0.0, calling this function is not necessary,
2304
+ * as HarfBuzz will automatically detect changes to the font and update
2305
+ * the underlying FT_Face as needed.
2306
+ * @param font - #hb_font_t to work upon
2307
+ */
261
2308
  export declare const ftHbFontChanged: (font: FontT) => number;
2309
+ /**
2310
+ * Creates an #hb_blob_t blob from the specified
2311
+ * GBytes data structure.
2312
+ * @param gbytes - the GBytes structure to work upon
2313
+ */
262
2314
  export declare const glibBlobCreate: (gbytes: GLib.Bytes) => BlobT;
2315
+ /**
2316
+ * Fetches a Unicode-functions structure that is populated
2317
+ * with the appropriate GLib function for each method.
2318
+ */
263
2319
  export declare const glibGetUnicodeFuncs: () => UnicodeFuncsT;
2320
+ /**
2321
+ * Fetches the GUnicodeScript identifier that corresponds to the
2322
+ * specified #hb_script_t script.
2323
+ * @param script - The #hb_script_t to query
2324
+ */
264
2325
  export declare const glibScriptFromScript: (script: ScriptT) => GLib.UnicodeScript;
2326
+ /**
2327
+ * Fetches the #hb_script_t script that corresponds to the
2328
+ * specified GUnicodeScript identifier.
2329
+ * @param script - The GUnicodeScript identifier to query
2330
+ */
265
2331
  export declare const glibScriptToScript: (script: GLib.UnicodeScript) => ScriptT;
2332
+ /**
2333
+ * Returns glyph flags encoded within a #hb_glyph_info_t.
2334
+ * @param info - a #hb_glyph_info_t
2335
+ */
266
2336
  export declare const glyphInfoGetGlyphFlags: (info: GlyphInfoT) => GlyphFlagsT;
2337
+ /**
2338
+ * Converts `str` representing a BCP 47 language tag to the corresponding
2339
+ * #hb_language_t.
2340
+ * @param str - a string representing
2341
+ * @param len - length of the @str, or -1 if it is `NULL`-terminated.
2342
+ */
267
2343
  export declare const languageFromString: (str: number[], len: number) => number;
2344
+ /**
2345
+ * Fetch the default language from current locale.
2346
+ *
2347
+ * <note>Note that the first time this function is called, it calls
2348
+ * "setlocale (LC_CTYPE, nullptr)" to fetch current locale. The underlying
2349
+ * setlocale function is, in many implementations, NOT threadsafe. To avoid
2350
+ * problems, call this function once before multiple threads can call it.
2351
+ * This function is only used from hb_buffer_guess_segment_properties() by
2352
+ * HarfBuzz itself.</note>
2353
+ */
268
2354
  export declare const languageGetDefault: () => number;
2355
+ /**
2356
+ * Check whether a second language tag is the same or a more
2357
+ * specific version of the provided language tag. For example,
2358
+ * "fa_IR.utf8" is a more specific tag for "fa" or for "fa_IR".
2359
+ * @param language - The #hb_language_t to work on
2360
+ * @param specific - Another #hb_language_t
2361
+ */
269
2362
  export declare const languageMatches: (language: number, specific: number) => number;
2363
+ /**
2364
+ * Converts an #hb_language_t to a string.
2365
+ * @param language - The #hb_language_t to convert
2366
+ */
270
2367
  export declare const languageToString: (language: number) => string;
2368
+ /**
2369
+ * Allocates `size` bytes of memory, using the allocator set at
2370
+ * compile-time. Typically just malloc().
2371
+ * @param size - The size of the memory to allocate.
2372
+ */
271
2373
  export declare const malloc: (size: number) => number | null;
2374
+ /**
2375
+ * Tests whether memory allocation for a set was successful.
2376
+ * @param map - A map
2377
+ */
272
2378
  export declare const mapAllocationSuccessful: (map: MapT) => number;
2379
+ /**
2380
+ * Clears out the contents of @map.
2381
+ * @param map - A map
2382
+ */
273
2383
  export declare const mapClear: (map: MapT) => void;
2384
+ /**
2385
+ * Allocate a copy of @map.
2386
+ * @param map - A map
2387
+ */
274
2388
  export declare const mapCopy: (map: MapT) => MapT;
2389
+ /**
2390
+ * Creates a new, initially empty map.
2391
+ */
275
2392
  export declare const mapCreate: () => MapT;
2393
+ /**
2394
+ * Removes `key` and its stored value from @map.
2395
+ * @param map - A map
2396
+ * @param key - The key to delete
2397
+ */
276
2398
  export declare const mapDel: (map: MapT, key: number) => void;
2399
+ /**
2400
+ * Fetches the value stored for `key` in @map.
2401
+ * @param map - A map
2402
+ * @param key - The key to query
2403
+ */
277
2404
  export declare const mapGet: (map: MapT, key: number) => number;
2405
+ /**
2406
+ * Fetches the singleton empty #hb_map_t.
2407
+ */
278
2408
  export declare const mapGetEmpty: () => MapT;
2409
+ /**
2410
+ * Returns the number of key-value pairs in the map.
2411
+ * @param map - A map
2412
+ */
279
2413
  export declare const mapGetPopulation: (map: MapT) => number;
2414
+ /**
2415
+ * Tests whether `key` is an element of @map.
2416
+ * @param map - A map
2417
+ * @param key - The key to query
2418
+ */
280
2419
  export declare const mapHas: (map: MapT, key: number) => number;
2420
+ /**
2421
+ * Creates a hash representing @map.
2422
+ * @param map - A map
2423
+ */
281
2424
  export declare const mapHash: (map: MapT) => number;
2425
+ /**
2426
+ * Tests whether `map` is empty (contains no elements).
2427
+ * @param map - A map
2428
+ */
282
2429
  export declare const mapIsEmpty: (map: MapT) => number;
2430
+ /**
2431
+ * Tests whether `map` and `other` are equal (contain the same
2432
+ * elements).
2433
+ * @param map - A map
2434
+ * @param other - Another map
2435
+ */
283
2436
  export declare const mapIsEqual: (map: MapT, other: MapT) => number;
2437
+ /**
2438
+ * Add the keys of `map` to @keys.
2439
+ * @param map - A map
2440
+ * @param keys - A set
2441
+ */
284
2442
  export declare const mapKeys: (map: MapT, keys: SetT) => void;
2443
+ /**
2444
+ * Fetches the next key/value pair in @map.
2445
+ *
2446
+ * Set `idx` to -1 to get started.
2447
+ *
2448
+ * If the map is modified during iteration, the behavior is undefined.
2449
+ *
2450
+ * The order in which the key/values are returned is undefined.
2451
+ * @param map - A map
2452
+ * @param idx - Iterator internal state
2453
+ * @param key - Key retrieved
2454
+ * @param value - Value retrieved
2455
+ */
285
2456
  export declare const mapNext: (map: MapT, idx: Ref<number>, key: Ref<number>, value: Ref<number>) => number;
2457
+ /**
2458
+ * Stores @key:`value` in the map.
2459
+ * @param map - A map
2460
+ * @param key - The key to store in the map
2461
+ * @param value - The value to store for @key
2462
+ */
286
2463
  export declare const mapSet: (map: MapT, key: number, value: number) => void;
2464
+ /**
2465
+ * Add the contents of `other` to @map.
2466
+ * @param map - A map
2467
+ * @param other - Another map
2468
+ */
287
2469
  export declare const mapUpdate: (map: MapT, other: MapT) => void;
2470
+ /**
2471
+ * Add the values of `map` to @values.
2472
+ * @param map - A map
2473
+ * @param values - A set
2474
+ */
288
2475
  export declare const mapValues: (map: MapT, values: SetT) => void;
2476
+ /**
2477
+ * Fetches a list of all color layers for the specified glyph index in the specified
2478
+ * face. The list returned will begin at the offset provided.
2479
+ * @param face - #hb_face_t to work upon
2480
+ * @param glyph - The glyph index to query
2481
+ * @param startOffset - offset of the first layer to retrieve
2482
+ * @param layerCount - Input = the maximum number of layers to return;
2483
+ * @param layers - The array of layers found
2484
+ */
289
2485
  export declare const otColorGlyphGetLayers: (face: FaceT, glyph: number, startOffset: number, layerCount?: Ref<number> | null, layers?: Ref<number[]> | null) => number;
2486
+ /**
2487
+ * Tests where a face includes COLRv1 paint
2488
+ * data for @glyph.
2489
+ * @param face - #hb_face_t to work upon
2490
+ * @param glyph - The glyph index to query
2491
+ */
290
2492
  export declare const otColorGlyphHasPaint: (face: FaceT, glyph: number) => number;
2493
+ /**
2494
+ * Fetches the PNG image for a glyph. This function takes a font object, not a face object,
2495
+ * as input. To get an optimally sized PNG blob, the PPEM values must be set on the `font` object. If PPEM is unset, the blob returned will be the largest PNG available.
2496
+ *
2497
+ * If the glyph has no PNG image, the singleton empty blob is returned.
2498
+ * @param font - #hb_font_t to work upon
2499
+ * @param glyph - a glyph index
2500
+ */
291
2501
  export declare const otColorGlyphReferencePng: (font: FontT, glyph: number) => BlobT;
2502
+ /**
2503
+ * Fetches the SVG document for a glyph. The blob may be either plain text or gzip-encoded.
2504
+ *
2505
+ * If the glyph has no SVG document, the singleton empty blob is returned.
2506
+ * @param face - #hb_face_t to work upon
2507
+ * @param glyph - a svg glyph index
2508
+ */
292
2509
  export declare const otColorGlyphReferenceSvg: (face: FaceT, glyph: number) => BlobT;
2510
+ /**
2511
+ * Tests whether a face includes a `COLR` table
2512
+ * with data according to COLRv0.
2513
+ * @param face - #hb_face_t to work upon
2514
+ */
293
2515
  export declare const otColorHasLayers: (face: FaceT) => number;
2516
+ /**
2517
+ * Tests where a face includes a `COLR` table
2518
+ * with data according to COLRv1.
2519
+ * @param face - #hb_face_t to work upon
2520
+ */
294
2521
  export declare const otColorHasPaint: (face: FaceT) => number;
2522
+ /**
2523
+ * Tests whether a face includes a `CPAL` color-palette table.
2524
+ * @param face - #hb_face_t to work upon
2525
+ */
295
2526
  export declare const otColorHasPalettes: (face: FaceT) => number;
2527
+ /**
2528
+ * Tests whether a face has PNG glyph images (either in `CBDT` or `sbix` tables).
2529
+ * @param face - #hb_face_t to work upon
2530
+ */
296
2531
  export declare const otColorHasPng: (face: FaceT) => number;
2532
+ /**
2533
+ * Tests whether a face includes any `SVG` glyph images.
2534
+ * @param face - #hb_face_t to work upon.
2535
+ */
297
2536
  export declare const otColorHasSvg: (face: FaceT) => number;
2537
+ /**
2538
+ * Fetches the `name` table Name ID that provides display names for
2539
+ * the specified color in a face's `CPAL` color palette.
2540
+ *
2541
+ * Display names can be generic (e.g., "Background") or specific
2542
+ * (e.g., "Eye color").
2543
+ * @param face - #hb_face_t to work upon
2544
+ * @param colorIndex - The index of the color
2545
+ */
298
2546
  export declare const otColorPaletteColorGetNameId: (face: FaceT, colorIndex: number) => number;
2547
+ /**
2548
+ * Fetches a list of the colors in a color palette.
2549
+ *
2550
+ * After calling this function, `colors` will be filled with the palette
2551
+ * colors. If `colors` is NULL, the function will just return the number
2552
+ * of total colors without storing any actual colors; this can be used
2553
+ * for allocating a buffer of suitable size before calling
2554
+ * hb_ot_color_palette_get_colors() a second time.
2555
+ *
2556
+ * The RGBA values in the palette are unpremultiplied. See the
2557
+ * OpenType spec [CPAL](https://learn.microsoft.com/en-us/typography/opentype/spec/cpal)
2558
+ * section for details.
2559
+ * @param face - #hb_face_t to work upon
2560
+ * @param paletteIndex - the index of the color palette to query
2561
+ * @param startOffset - offset of the first color to retrieve
2562
+ * @param colorCount - Input = the maximum number of colors to return;
2563
+ * @param colors - The array of #hb_color_t records found
2564
+ */
299
2565
  export declare const otColorPaletteGetColors: (face: FaceT, paletteIndex: number, startOffset: number, colorCount?: Ref<number> | null, colors?: Ref<number[]> | null) => number;
2566
+ /**
2567
+ * Fetches the number of color palettes in a face.
2568
+ * @param face - #hb_face_t to work upon
2569
+ */
300
2570
  export declare const otColorPaletteGetCount: (face: FaceT) => number;
2571
+ /**
2572
+ * Fetches the flags defined for a color palette.
2573
+ * @param face - #hb_face_t to work upon
2574
+ * @param paletteIndex - The index of the color palette
2575
+ */
301
2576
  export declare const otColorPaletteGetFlags: (face: FaceT, paletteIndex: number) => OtColorPaletteFlagsT;
2577
+ /**
2578
+ * Fetches the `name` table Name ID that provides display names for
2579
+ * a `CPAL` color palette.
2580
+ *
2581
+ * Palette display names can be generic (e.g., "Default") or provide
2582
+ * specific, themed names (e.g., "Spring", "Summer", "Fall", and "Winter").
2583
+ * @param face - #hb_face_t to work upon
2584
+ * @param paletteIndex - The index of the color palette
2585
+ */
302
2586
  export declare const otColorPaletteGetNameId: (face: FaceT, paletteIndex: number) => number;
2587
+ /**
2588
+ * Sets the font functions to use when working with `font` to
2589
+ * the HarfBuzz's native implementation. This is the default
2590
+ * for fonts newly created.
2591
+ * @param font - #hb_font_t to work upon
2592
+ */
303
2593
  export declare const otFontSetFuncs: (font: FontT) => void;
2594
+ /**
2595
+ * Fetches a list of all feature indexes in the specified face's GSUB table
2596
+ * or GPOS table, underneath the specified scripts, languages, and features.
2597
+ * If no list of scripts is provided, all scripts will be queried. If no list
2598
+ * of languages is provided, all languages will be queried. If no list of
2599
+ * features is provided, all features will be queried.
2600
+ * @param face - #hb_face_t to work upon
2601
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2602
+ * @param scripts - The array of scripts to collect features for,
2603
+ * @param languages - The array of languages to collect features for,
2604
+ * @param features - The array of features to collect,
2605
+ * @param featureIndexes - The set of feature indexes found for the query
2606
+ */
304
2607
  export declare const otLayoutCollectFeatures: (face: FaceT, tableTag: number, featureIndexes: Ref<SetT>, scripts?: number[] | null, languages?: number[] | null, features?: number[] | null) => void;
2608
+ /**
2609
+ * Fetches the mapping from feature tags to feature indexes for
2610
+ * the specified script and language.
2611
+ * @param face - #hb_face_t to work upon
2612
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2613
+ * @param scriptIndex - The index of the requested script tag
2614
+ * @param languageIndex - The index of the requested language tag
2615
+ * @param featureMap - The map of feature tag to feature index.
2616
+ */
305
2617
  export declare const otLayoutCollectFeaturesMap: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, featureMap: Ref<MapT>) => void;
2618
+ /**
2619
+ * Fetches a list of all feature-lookup indexes in the specified face's GSUB
2620
+ * table or GPOS table, underneath the specified scripts, languages, and
2621
+ * features. If no list of scripts is provided, all scripts will be queried.
2622
+ * If no list of languages is provided, all languages will be queried. If no
2623
+ * list of features is provided, all features will be queried.
2624
+ * @param face - #hb_face_t to work upon
2625
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2626
+ * @param scripts - The array of scripts to collect lookups for,
2627
+ * @param languages - The array of languages to collect lookups for,
2628
+ * @param features - The array of features to collect lookups for,
2629
+ * @param lookupIndexes - The array of lookup indexes found for the query
2630
+ */
306
2631
  export declare const otLayoutCollectLookups: (face: FaceT, tableTag: number, lookupIndexes: Ref<SetT>, scripts?: number[] | null, languages?: number[] | null, features?: number[] | null) => void;
2632
+ /**
2633
+ * Fetches a list of the characters defined as having a variant under the specified
2634
+ * "Character Variant" ("cvXX") feature tag.
2635
+ * @param face - #hb_face_t to work upon
2636
+ * @param tableTag - table tag to query, "GSUB" or "GPOS".
2637
+ * @param featureIndex - index of feature to query.
2638
+ * @param startOffset - offset of the first character to retrieve
2639
+ * @param charCount - Input = the maximum number of characters to return;
2640
+ * @param characters - A buffer pointer.
2641
+ */
307
2642
  export declare const otLayoutFeatureGetCharacters: (face: FaceT, tableTag: number, featureIndex: number, startOffset: number, characters: Ref<number[]>, charCount?: Ref<number> | null) => number;
2643
+ /**
2644
+ * Fetches a list of all lookups enumerated for the specified feature, in
2645
+ * the specified face's GSUB table or GPOS table. The list returned will
2646
+ * begin at the offset provided.
2647
+ * @param face - #hb_face_t to work upon
2648
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2649
+ * @param featureIndex - The index of the requested feature
2650
+ * @param startOffset - offset of the first lookup to retrieve
2651
+ * @param lookupCount - Input = the maximum number of lookups to return;
2652
+ * @param lookupIndexes - The array of lookup indexes found for the query
2653
+ */
308
2654
  export declare const otLayoutFeatureGetLookups: (face: FaceT, tableTag: number, featureIndex: number, startOffset: number, lookupIndexes: Ref<number[]>, lookupCount?: Ref<number> | null) => number;
2655
+ /**
2656
+ * Fetches name indices from feature parameters for "Stylistic Set" ('ssXX') or
2657
+ * "Character Variant" ('cvXX') features.
2658
+ * @param face - #hb_face_t to work upon
2659
+ * @param tableTag - table tag to query, "GSUB" or "GPOS".
2660
+ * @param featureIndex - index of feature to query.
2661
+ * @param labelId - The ‘name’ table name ID that specifies a string
2662
+ * @param tooltipId - The ‘name’ table name ID that specifies a string
2663
+ * @param sampleId - The ‘name’ table name ID that specifies sample text
2664
+ * @param numNamedParameters - Number of named parameters.
2665
+ * @param firstParamId - The first ‘name’ table name ID used to specify
2666
+ */
309
2667
  export declare const otLayoutFeatureGetNameIds: (face: FaceT, tableTag: number, featureIndex: number, labelId?: Ref<number> | null, tooltipId?: Ref<number> | null, sampleId?: Ref<number> | null, numNamedParameters?: Ref<number> | null, firstParamId?: Ref<number> | null) => number;
2668
+ /**
2669
+ * Fetches a list of all lookups enumerated for the specified feature, in
2670
+ * the specified face's GSUB table or GPOS table, enabled at the specified
2671
+ * variations index. The list returned will begin at the offset provided.
2672
+ * @param face - #hb_face_t to work upon
2673
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2674
+ * @param featureIndex - The index of the feature to query
2675
+ * @param variationsIndex - The index of the feature variation to query
2676
+ * @param startOffset - offset of the first lookup to retrieve
2677
+ * @param lookupCount - Input = the maximum number of lookups to return;
2678
+ * @param lookupIndexes - The array of lookups found for the query
2679
+ */
310
2680
  export declare const otLayoutFeatureWithVariationsGetLookups: (face: FaceT, tableTag: number, featureIndex: number, variationsIndex: number, startOffset: number, lookupIndexes: Ref<number[]>, lookupCount?: Ref<number> | null) => number;
2681
+ /**
2682
+ * Fetches a list of all attachment points for the specified glyph in the GDEF
2683
+ * table of the face. The list returned will begin at the offset provided.
2684
+ *
2685
+ * Useful if the client program wishes to cache the list.
2686
+ * @param face - The #hb_face_t to work on
2687
+ * @param glyph - The #hb_codepoint_t code point to query
2688
+ * @param startOffset - offset of the first attachment point to retrieve
2689
+ * @param pointCount - Input = the maximum number of attachment points to return;
2690
+ * @param pointArray - The array of attachment points found for the query
2691
+ */
311
2692
  export declare const otLayoutGetAttachPoints: (face: FaceT, glyph: number, startOffset: number, pointArray: Ref<number[]>, pointCount?: Ref<number> | null) => number;
2693
+ /**
2694
+ * Fetches a baseline value from the face.
2695
+ * @param font - a font
2696
+ * @param baselineTag - a baseline tag
2697
+ * @param direction - text direction.
2698
+ * @param scriptTag - script tag.
2699
+ * @param languageTag - language tag, currently unused.
2700
+ * @param coord - baseline value if found.
2701
+ */
312
2702
  export declare const otLayoutGetBaseline: (font: FontT, baselineTag: OtLayoutBaselineTagT, direction: DirectionT, scriptTag: number, languageTag: number, coord?: Ref<number> | null) => number;
2703
+ /**
2704
+ * Fetches a baseline value from the face.
2705
+ *
2706
+ * This function is like hb_ot_layout_get_baseline() but takes
2707
+ * #hb_script_t and #hb_language_t instead of OpenType #hb_tag_t.
2708
+ * @param font - a font
2709
+ * @param baselineTag - a baseline tag
2710
+ * @param direction - text direction.
2711
+ * @param script - script.
2712
+ * @param language - language, currently unused.
2713
+ * @param coord - baseline value if found.
2714
+ */
313
2715
  export declare const otLayoutGetBaseline2: (font: FontT, baselineTag: OtLayoutBaselineTagT, direction: DirectionT, script: ScriptT, language?: number | null, coord?: Ref<number> | null) => number;
2716
+ /**
2717
+ * Fetches a baseline value from the face, and synthesizes
2718
+ * it if the font does not have it.
2719
+ * @param font - a font
2720
+ * @param baselineTag - a baseline tag
2721
+ * @param direction - text direction.
2722
+ * @param scriptTag - script tag.
2723
+ * @param languageTag - language tag, currently unused.
2724
+ * @param coord - baseline value if found.
2725
+ */
314
2726
  export declare const otLayoutGetBaselineWithFallback: (font: FontT, baselineTag: OtLayoutBaselineTagT, direction: DirectionT, scriptTag: number, languageTag: number, coord: Ref<number>) => void;
2727
+ /**
2728
+ * Fetches a baseline value from the face, and synthesizes
2729
+ * it if the font does not have it.
2730
+ *
2731
+ * This function is like hb_ot_layout_get_baseline_with_fallback() but takes
2732
+ * #hb_script_t and #hb_language_t instead of OpenType #hb_tag_t.
2733
+ * @param font - a font
2734
+ * @param baselineTag - a baseline tag
2735
+ * @param direction - text direction.
2736
+ * @param script - script.
2737
+ * @param language - language, currently unused.
2738
+ * @param coord - baseline value if found.
2739
+ */
315
2740
  export declare const otLayoutGetBaselineWithFallback2: (font: FontT, baselineTag: OtLayoutBaselineTagT, direction: DirectionT, script: ScriptT, coord: Ref<number>, language?: number | null) => void;
2741
+ /**
2742
+ * Fetches script/language-specific font extents. These values are
2743
+ * looked up in the `BASE` table's `MinMax` records.
2744
+ *
2745
+ * If no such extents are found, the default extents for the font are
2746
+ * fetched. As such, the return value of this function can for the
2747
+ * most part be ignored. Note that the per-script/language extents
2748
+ * do not have a line-gap value, and the line-gap is set to zero in
2749
+ * that case.
2750
+ * @param font - a font
2751
+ * @param direction - text direction.
2752
+ * @param scriptTag - script tag.
2753
+ * @param languageTag - language tag.
2754
+ * @param extents - font extents if found.
2755
+ */
316
2756
  export declare const otLayoutGetFontExtents: (font: FontT, direction: DirectionT, scriptTag: number, languageTag: number, extents?: Ref<number> | null) => number;
2757
+ /**
2758
+ * Fetches script/language-specific font extents. These values are
2759
+ * looked up in the `BASE` table's `MinMax` records.
2760
+ *
2761
+ * If no such extents are found, the default extents for the font are
2762
+ * fetched. As such, the return value of this function can for the
2763
+ * most part be ignored. Note that the per-script/language extents
2764
+ * do not have a line-gap value, and the line-gap is set to zero in
2765
+ * that case.
2766
+ *
2767
+ * This function is like hb_ot_layout_get_font_extents() but takes
2768
+ * #hb_script_t and #hb_language_t instead of OpenType #hb_tag_t.
2769
+ * @param font - a font
2770
+ * @param direction - text direction.
2771
+ * @param script - script.
2772
+ * @param language - language.
2773
+ * @param extents - font extents if found.
2774
+ */
317
2775
  export declare const otLayoutGetFontExtents2: (font: FontT, direction: DirectionT, script: ScriptT, language?: number | null, extents?: Ref<number> | null) => number;
2776
+ /**
2777
+ * Fetches the GDEF class of the requested glyph in the specified face.
2778
+ * @param face - The #hb_face_t to work on
2779
+ * @param glyph - The #hb_codepoint_t code point to query
2780
+ */
318
2781
  export declare const otLayoutGetGlyphClass: (face: FaceT, glyph: number) => OtLayoutGlyphClassT;
2782
+ /**
2783
+ * Retrieves the set of all glyphs from the face that belong to the requested
2784
+ * glyph class in the face's GDEF table.
2785
+ * @param face - The #hb_face_t to work on
2786
+ * @param klass - The #hb_ot_layout_glyph_class_t GDEF class to retrieve
2787
+ * @param glyphs - The #hb_set_t set of all glyphs belonging to the requested
2788
+ */
319
2789
  export declare const otLayoutGetGlyphsInClass: (face: FaceT, klass: OtLayoutGlyphClassT, glyphs: Ref<SetT>) => void;
2790
+ /**
2791
+ * Fetches the dominant horizontal baseline tag used by @script.
2792
+ * @param script - a script tag.
2793
+ */
320
2794
  export declare const otLayoutGetHorizontalBaselineTagForScript: (script: ScriptT) => OtLayoutBaselineTagT;
2795
+ /**
2796
+ * Fetches a list of the caret positions defined for a ligature glyph in the GDEF
2797
+ * table of the font. The list returned will begin at the offset provided.
2798
+ *
2799
+ * Note that a ligature that is formed from n characters will have n-1
2800
+ * caret positions. The first character is not represented in the array,
2801
+ * since its caret position is the glyph position.
2802
+ *
2803
+ * The positions returned by this function are 'unshaped', and will have to
2804
+ * be fixed up for kerning that may be applied to the ligature glyph.
2805
+ * @param font - The #hb_font_t to work on
2806
+ * @param direction - The #hb_direction_t text direction to use
2807
+ * @param glyph - The #hb_codepoint_t code point to query
2808
+ * @param startOffset - offset of the first caret position to retrieve
2809
+ * @param caretCount - Input = the maximum number of caret positions to return;
2810
+ * @param caretArray - The array of caret positions found for the query
2811
+ */
321
2812
  export declare const otLayoutGetLigatureCarets: (font: FontT, direction: DirectionT, glyph: number, startOffset: number, caretArray: Ref<number[]>, caretCount?: Ref<number> | null) => number;
2813
+ /**
2814
+ * Fetches optical-size feature data (i.e., the `size` feature from GPOS). Note that
2815
+ * the subfamily_id and the subfamily name string (accessible via the subfamily_name_id)
2816
+ * as used here are defined as pertaining only to fonts within a font family that differ
2817
+ * specifically in their respective size ranges; other ways to differentiate fonts within
2818
+ * a subfamily are not covered by the `size` feature.
2819
+ *
2820
+ * For more information on this distinction, see the [`size` feature documentation](
2821
+ * https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-size).
2822
+ * @param face - #hb_face_t to work upon
2823
+ * @param designSize - The design size of the face
2824
+ * @param subfamilyId - The identifier of the face within the font subfamily
2825
+ * @param subfamilyNameId - The ‘name’ table name ID of the face within the font subfamily
2826
+ * @param rangeStart - The minimum size of the recommended size range for the face
2827
+ * @param rangeEnd - The maximum size of the recommended size range for the face
2828
+ */
322
2829
  export declare const otLayoutGetSizeParams: (face: FaceT, designSize: Ref<number>, subfamilyId: Ref<number>, subfamilyNameId: Ref<number>, rangeStart: Ref<number>, rangeEnd: Ref<number>) => number;
2830
+ /**
2831
+ * Tests whether a face has any glyph classes defined in its GDEF table.
2832
+ * @param face - #hb_face_t to work upon
2833
+ */
323
2834
  export declare const otLayoutHasGlyphClasses: (face: FaceT) => number;
2835
+ /**
2836
+ * Tests whether the specified face includes any GPOS positioning.
2837
+ * @param face - #hb_face_t to work upon
2838
+ */
324
2839
  export declare const otLayoutHasPositioning: (face: FaceT) => number;
2840
+ /**
2841
+ * Tests whether the specified face includes any GSUB substitutions.
2842
+ * @param face - #hb_face_t to work upon
2843
+ */
325
2844
  export declare const otLayoutHasSubstitution: (face: FaceT) => number;
2845
+ /**
2846
+ * Fetches the index of a given feature tag in the specified face's GSUB table
2847
+ * or GPOS table, underneath the specified script and language.
2848
+ * @param face - #hb_face_t to work upon
2849
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2850
+ * @param scriptIndex - The index of the requested script tag
2851
+ * @param languageIndex - The index of the requested language tag
2852
+ * @param featureTag - #hb_tag_t of the feature tag requested
2853
+ * @param featureIndex - The index of the requested feature
2854
+ */
326
2855
  export declare const otLayoutLanguageFindFeature: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, featureTag: number, featureIndex: Ref<number>) => number;
2856
+ /**
2857
+ * Fetches a list of all features in the specified face's GSUB table
2858
+ * or GPOS table, underneath the specified script and language. The list
2859
+ * returned will begin at the offset provided.
2860
+ * @param face - #hb_face_t to work upon
2861
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2862
+ * @param scriptIndex - The index of the requested script tag
2863
+ * @param languageIndex - The index of the requested language tag
2864
+ * @param startOffset - offset of the first feature tag to retrieve
2865
+ * @param featureCount - Input = the maximum number of feature tags to return;
2866
+ * @param featureIndexes - The array of feature indexes found for the query
2867
+ */
327
2868
  export declare const otLayoutLanguageGetFeatureIndexes: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, startOffset: number, featureIndexes: Ref<number[]>, featureCount?: Ref<number> | null) => number;
2869
+ /**
2870
+ * Fetches a list of all features in the specified face's GSUB table
2871
+ * or GPOS table, underneath the specified script and language. The list
2872
+ * returned will begin at the offset provided.
2873
+ * @param face - #hb_face_t to work upon
2874
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2875
+ * @param scriptIndex - The index of the requested script tag
2876
+ * @param languageIndex - The index of the requested language tag
2877
+ * @param startOffset - offset of the first feature tag to retrieve
2878
+ * @param featureCount - Input = the maximum number of feature tags to return;
2879
+ * @param featureTags - The array of #hb_tag_t feature tags found for the query
2880
+ */
328
2881
  export declare const otLayoutLanguageGetFeatureTags: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, startOffset: number, featureTags: Ref<number[]>, featureCount?: Ref<number> | null) => number;
2882
+ /**
2883
+ * Fetches the tag of a requested feature index in the given face's GSUB or GPOS table,
2884
+ * underneath the specified script and language.
2885
+ * @param face - #hb_face_t to work upon
2886
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2887
+ * @param scriptIndex - The index of the requested script tag
2888
+ * @param languageIndex - The index of the requested language tag
2889
+ * @param featureIndex - The index of the requested feature
2890
+ * @param featureTag - The #hb_tag_t of the requested feature
2891
+ */
329
2892
  export declare const otLayoutLanguageGetRequiredFeature: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, featureIndex: Ref<number>, featureTag: Ref<number>) => number;
2893
+ /**
2894
+ * Fetches the index of a requested feature in the given face's GSUB or GPOS table,
2895
+ * underneath the specified script and language.
2896
+ * @param face - #hb_face_t to work upon
2897
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2898
+ * @param scriptIndex - The index of the requested script tag
2899
+ * @param languageIndex - The index of the requested language tag
2900
+ * @param featureIndex - The index of the requested feature
2901
+ */
330
2902
  export declare const otLayoutLanguageGetRequiredFeatureIndex: (face: FaceT, tableTag: number, scriptIndex: number, languageIndex: number, featureIndex: Ref<number>) => number;
2903
+ /**
2904
+ * Fetches a list of all glyphs affected by the specified lookup in the
2905
+ * specified face's GSUB table or GPOS table.
2906
+ * @param face - #hb_face_t to work upon
2907
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2908
+ * @param lookupIndex - The index of the feature lookup to query
2909
+ * @param glyphsBefore - Array of glyphs preceding the substitution range
2910
+ * @param glyphsInput - Array of input glyphs that would be substituted by the lookup
2911
+ * @param glyphsAfter - Array of glyphs following the substitution range
2912
+ * @param glyphsOutput - Array of glyphs that would be the substituted output of the lookup
2913
+ */
331
2914
  export declare const otLayoutLookupCollectGlyphs: (face: FaceT, tableTag: number, lookupIndex: number, glyphsBefore?: Ref<SetT> | null, glyphsInput?: Ref<SetT> | null, glyphsAfter?: Ref<SetT> | null, glyphsOutput?: Ref<SetT> | null) => void;
2915
+ /**
2916
+ * Fetches alternates of a glyph from a given GSUB lookup index. Note that for one-to-one GSUB
2917
+ * glyph substitutions, this function fetches the substituted glyph.
2918
+ * @param face - a face.
2919
+ * @param lookupIndex - index of the feature lookup to query.
2920
+ * @param glyph - a glyph id.
2921
+ * @param startOffset - starting offset.
2922
+ * @param alternateCount - Input = the maximum number of alternate glyphs to return;
2923
+ * @param alternateGlyphs - A glyphs buffer.
2924
+ */
332
2925
  export declare const otLayoutLookupGetGlyphAlternates: (face: FaceT, lookupIndex: number, glyph: number, startOffset: number, alternateGlyphs: Ref<number[]>, alternateCount?: Ref<number> | null) => number;
2926
+ /**
2927
+ * Fetches the optical bound of a glyph positioned at the margin of text.
2928
+ * The direction identifies which edge of the glyph to query.
2929
+ * @param font - a font.
2930
+ * @param lookupIndex - index of the feature lookup to query.
2931
+ * @param direction - edge of the glyph to query.
2932
+ * @param glyph - a glyph id.
2933
+ */
333
2934
  export declare const otLayoutLookupGetOpticalBound: (font: FontT, lookupIndex: number, direction: DirectionT, glyph: number) => number;
2935
+ /**
2936
+ * Compute the transitive closure of glyphs needed for a
2937
+ * specified lookup.
2938
+ * @param face - #hb_face_t to work upon
2939
+ * @param lookupIndex - index of the feature lookup to query
2940
+ * @param glyphs - Array of glyphs comprising the transitive closure of the lookup
2941
+ */
334
2942
  export declare const otLayoutLookupSubstituteClosure: (face: FaceT, lookupIndex: number, glyphs: Ref<SetT>) => void;
2943
+ /**
2944
+ * Tests whether a specified lookup in the specified face would
2945
+ * trigger a substitution on the given glyph sequence.
2946
+ * @param face - #hb_face_t to work upon
2947
+ * @param lookupIndex - The index of the lookup to query
2948
+ * @param glyphs - The sequence of glyphs to query for substitution
2949
+ * @param glyphsLength - The length of the glyph sequence
2950
+ * @param zeroContext - #hb_bool_t indicating whether pre-/post-context are disallowed
2951
+ */
335
2952
  export declare const otLayoutLookupWouldSubstitute: (face: FaceT, lookupIndex: number, glyphs: number, glyphsLength: number, zeroContext: number) => number;
2953
+ /**
2954
+ * Compute the transitive closure of glyphs needed for all of the
2955
+ * provided lookups.
2956
+ * @param face - #hb_face_t to work upon
2957
+ * @param lookups - The set of lookups to query
2958
+ * @param glyphs - Array of glyphs comprising the transitive closure of the lookups
2959
+ */
336
2960
  export declare const otLayoutLookupsSubstituteClosure: (face: FaceT, lookups: SetT, glyphs: Ref<SetT>) => void;
2961
+ /**
2962
+ * Fetches the index of a given language tag in the specified face's GSUB table
2963
+ * or GPOS table, underneath the specified script tag.
2964
+ * @param face - #hb_face_t to work upon
2965
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2966
+ * @param scriptIndex - The index of the requested script tag
2967
+ * @param languageTag - The #hb_tag_t of the requested language
2968
+ * @param languageIndex - The index of the requested language
2969
+ */
337
2970
  export declare const otLayoutScriptFindLanguage: (face: FaceT, tableTag: number, scriptIndex: number, languageTag: number, languageIndex: number) => number;
2971
+ /**
2972
+ * Fetches a list of language tags in the given face's GSUB or GPOS table, underneath
2973
+ * the specified script index. The list returned will begin at the offset provided.
2974
+ * @param face - #hb_face_t to work upon
2975
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2976
+ * @param scriptIndex - The index of the requested script tag
2977
+ * @param startOffset - offset of the first language tag to retrieve
2978
+ * @param languageCount - Input = the maximum number of language tags to return;
2979
+ * @param languageTags - Array of language tags found in the table
2980
+ */
338
2981
  export declare const otLayoutScriptGetLanguageTags: (face: FaceT, tableTag: number, scriptIndex: number, startOffset: number, languageTags: Ref<number[]>, languageCount?: Ref<number> | null) => number;
2982
+ /**
2983
+ * Fetches the index of the first language tag fom `language_tags` that is present
2984
+ * in the specified face's GSUB or GPOS table, underneath the specified script
2985
+ * index.
2986
+ *
2987
+ * If none of the given language tags is found, `false` is returned and
2988
+ * `language_index` is set to the default language index.
2989
+ * @param face - #hb_face_t to work upon
2990
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
2991
+ * @param scriptIndex - The index of the requested script tag
2992
+ * @param languageCount - The number of languages in the specified script
2993
+ * @param languageTags - The array of language tags
2994
+ * @param languageIndex - The index of the requested language
2995
+ */
339
2996
  export declare const otLayoutScriptSelectLanguage: (face: FaceT, tableTag: number, scriptIndex: number, languageCount: number, languageTags: number, languageIndex: Ref<number>) => number;
2997
+ /**
2998
+ * Fetches the index of the first language tag fom `language_tags` that is present
2999
+ * in the specified face's GSUB or GPOS table, underneath the specified script
3000
+ * index.
3001
+ *
3002
+ * If none of the given language tags is found, `false` is returned and
3003
+ * `language_index` is set to #HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX and
3004
+ * `chosen_language` is set to #HB_TAG_NONE.
3005
+ * @param face - #hb_face_t to work upon
3006
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3007
+ * @param scriptIndex - The index of the requested script tag
3008
+ * @param languageCount - The number of languages in the specified script
3009
+ * @param languageTags - The array of language tags
3010
+ * @param languageIndex - The index of the chosen language
3011
+ * @param chosenLanguage - #hb_tag_t of the chosen language
3012
+ */
340
3013
  export declare const otLayoutScriptSelectLanguage2: (face: FaceT, tableTag: number, scriptIndex: number, languageCount: number, languageTags: number, languageIndex: Ref<number>, chosenLanguage: Ref<number>) => number;
3014
+ /**
3015
+ * Deprecated since 2.0.0
3016
+ * @param face - #hb_face_t to work upon
3017
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3018
+ * @param scriptTags - Array of #hb_tag_t script tags
3019
+ * @param scriptIndex - The index of the chosen script
3020
+ * @param chosenScript - #hb_tag_t of the chosen script
3021
+ */
341
3022
  export declare const otLayoutTableChooseScript: (face: FaceT, tableTag: number, scriptTags: number, scriptIndex: Ref<number>, chosenScript: Ref<number>) => number;
3023
+ /**
3024
+ * Fetches a list of feature variations in the specified face's GSUB table
3025
+ * or GPOS table, at the specified variation coordinates.
3026
+ * @param face - #hb_face_t to work upon
3027
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3028
+ * @param coords - The variation coordinates to query
3029
+ * @param numCoords - The number of variation coordinates
3030
+ * @param variationsIndex - The array of feature variations found for the query
3031
+ */
342
3032
  export declare const otLayoutTableFindFeatureVariations: (face: FaceT, tableTag: number, coords: number, numCoords: number, variationsIndex: Ref<number>) => number;
3033
+ /**
3034
+ * Fetches the index if a given script tag in the specified face's GSUB table
3035
+ * or GPOS table.
3036
+ * @param face - #hb_face_t to work upon
3037
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3038
+ * @param scriptTag - #hb_tag_t of the script tag requested
3039
+ * @param scriptIndex - The index of the requested script tag
3040
+ */
343
3041
  export declare const otLayoutTableFindScript: (face: FaceT, tableTag: number, scriptTag: number, scriptIndex: Ref<number>) => number;
3042
+ /**
3043
+ * Fetches a list of all feature tags in the given face's GSUB or GPOS table.
3044
+ * Note that there might be duplicate feature tags, belonging to different
3045
+ * script/language-system pairs of the table.
3046
+ * @param face - #hb_face_t to work upon
3047
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3048
+ * @param startOffset - offset of the first feature tag to retrieve
3049
+ * @param featureCount - Input = the maximum number of feature tags to return;
3050
+ * @param featureTags - Array of feature tags found in the table
3051
+ */
344
3052
  export declare const otLayoutTableGetFeatureTags: (face: FaceT, tableTag: number, startOffset: number, featureTags: Ref<number[]>, featureCount?: Ref<number> | null) => number;
3053
+ /**
3054
+ * Fetches the total number of lookups enumerated in the specified
3055
+ * face's GSUB table or GPOS table.
3056
+ * @param face - #hb_face_t to work upon
3057
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3058
+ */
345
3059
  export declare const otLayoutTableGetLookupCount: (face: FaceT, tableTag: number) => number;
3060
+ /**
3061
+ * Fetches a list of all scripts enumerated in the specified face's GSUB table
3062
+ * or GPOS table. The list returned will begin at the offset provided.
3063
+ * @param face - #hb_face_t to work upon
3064
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3065
+ * @param startOffset - offset of the first script tag to retrieve
3066
+ * @param scriptCount - Input = the maximum number of script tags to return;
3067
+ * @param scriptTags - The array of #hb_tag_t script tags found for the query
3068
+ */
346
3069
  export declare const otLayoutTableGetScriptTags: (face: FaceT, tableTag: number, startOffset: number, scriptTags: Ref<number[]>, scriptCount?: Ref<number> | null) => number;
3070
+ /**
3071
+ * Selects an OpenType script for `table_tag` from the `script_tags` array.
3072
+ *
3073
+ * If the table does not have any of the requested scripts, then `DFLT`,
3074
+ * `dflt`, and `latn` tags are tried in that order. If the table still does not
3075
+ * have any of these scripts, `script_index` is set to
3076
+ * #HB_OT_LAYOUT_NO_SCRIPT_INDEX and `chosen_script` is set to #HB_TAG_NONE.
3077
+ * @param face - #hb_face_t to work upon
3078
+ * @param tableTag - #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
3079
+ * @param scriptCount - Number of script tags in the array
3080
+ * @param scriptTags - Array of #hb_tag_t script tags
3081
+ * @param scriptIndex - The index of the requested script
3082
+ * @param chosenScript - #hb_tag_t of the requested script
3083
+ */
347
3084
  export declare const otLayoutTableSelectScript: (face: FaceT, tableTag: number, scriptCount: number, scriptTags: number, scriptIndex?: Ref<number> | null, chosenScript?: Ref<number> | null) => number;
3085
+ /**
3086
+ * Fetches the specified math constant. For most constants, the value returned
3087
+ * is an #hb_position_t.
3088
+ *
3089
+ * However, if the requested constant is #HB_OT_MATH_CONSTANT_SCRIPT_PERCENT_SCALE_DOWN,
3090
+ * #HB_OT_MATH_CONSTANT_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN or
3091
+ * #HB_OT_MATH_CONSTANT_RADICAL_DEGREE_BOTTOM_RAISE_PERCENT, then the return value is
3092
+ * an integer between 0 and 100 representing that percentage.
3093
+ * @param font - #hb_font_t to work upon
3094
+ * @param constant - #hb_ot_math_constant_t the constant to retrieve
3095
+ */
348
3096
  export declare const otMathGetConstant: (font: FontT, constant: OtMathConstantT) => number;
3097
+ /**
3098
+ * Fetches the GlyphAssembly for the specified font, glyph index, and direction.
3099
+ * Returned are a list of #hb_ot_math_glyph_part_t glyph parts that can be
3100
+ * used to draw the glyph and an italics-correction value (if one is defined
3101
+ * in the font).
3102
+ *
3103
+ * <note>The `direction` parameter is only used to select between horizontal
3104
+ * or vertical directions for the construction. Even though all #hb_direction_t
3105
+ * values are accepted, only the result of #HB_DIRECTION_IS_HORIZONTAL is
3106
+ * considered.</note>
3107
+ * @param font - #hb_font_t to work upon
3108
+ * @param glyph - The index of the glyph to stretch
3109
+ * @param direction - direction of the stretching (horizontal or vertical)
3110
+ * @param startOffset - offset of the first glyph part to retrieve
3111
+ * @param partsCount - Input = maximum number of glyph parts to return;
3112
+ * @param parts - the glyph parts returned
3113
+ * @param italicsCorrection - italics correction of the glyph assembly
3114
+ */
349
3115
  export declare const otMathGetGlyphAssembly: (font: FontT, glyph: number, direction: DirectionT, startOffset: number, partsCount: Ref<number>, parts: Ref<OtMathGlyphPartT[]>, italicsCorrection: Ref<number>) => number;
3116
+ /**
3117
+ * Fetches an italics-correction value (if one exists) for the specified
3118
+ * glyph index.
3119
+ * @param font - #hb_font_t to work upon
3120
+ * @param glyph - The glyph index from which to retrieve the value
3121
+ */
350
3122
  export declare const otMathGetGlyphItalicsCorrection: (font: FontT, glyph: number) => number;
3123
+ /**
3124
+ * Fetches the math kerning (cut-ins) value for the specified font, glyph index, and
3125
+ * @kern.
3126
+ *
3127
+ * If the MathKern table is found, the function examines it to find a height
3128
+ * value that is greater or equal to @correction_height. If such a height
3129
+ * value is found, corresponding kerning value from the table is returned. If
3130
+ * no such height value is found, the last kerning value is returned.
3131
+ * @param font - #hb_font_t to work upon
3132
+ * @param glyph - The glyph index from which to retrieve the value
3133
+ * @param kern - The #hb_ot_math_kern_t from which to retrieve the value
3134
+ * @param correctionHeight - the correction height to use to determine the kerning.
3135
+ */
351
3136
  export declare const otMathGetGlyphKerning: (font: FontT, glyph: number, kern: OtMathKernT, correctionHeight: number) => number;
3137
+ /**
3138
+ * Fetches the raw MathKern (cut-in) data for the specified font, glyph index,
3139
+ * and @kern. The corresponding list of kern values and correction heights is
3140
+ * returned as a list of #hb_ot_math_kern_entry_t structs.
3141
+ *
3142
+ * See also #hb_ot_math_get_glyph_kerning, which handles selecting the
3143
+ * appropriate kern value for a given correction height.
3144
+ *
3145
+ * <note>For a glyph with `n` defined kern values (where `n` > 0), there are only
3146
+ * @n−1 defined correction heights, as each correction height defines a boundary
3147
+ * past which the next kern value should be selected. Therefore, only the
3148
+ * #hb_ot_math_kern_entry_t.kern_value of the uppermost #hb_ot_math_kern_entry_t
3149
+ * actually comes from the font; its corresponding
3150
+ * #hb_ot_math_kern_entry_t.max_correction_height is always set to
3151
+ * <code>INT32_MAX</code>.</note>
3152
+ * @param font - #hb_font_t to work upon
3153
+ * @param glyph - The glyph index from which to retrieve the kernings
3154
+ * @param kern - The #hb_ot_math_kern_t from which to retrieve the kernings
3155
+ * @param startOffset - offset of the first kern entry to retrieve
3156
+ * @param entriesCount - Input = the maximum number of kern entries to return;
3157
+ * @param kernEntries - array of kern entries returned
3158
+ */
352
3159
  export declare const otMathGetGlyphKernings: (font: FontT, glyph: number, kern: OtMathKernT, startOffset: number, kernEntries: Ref<number[]>, entriesCount?: Ref<number> | null) => number;
3160
+ /**
3161
+ * Fetches a top-accent-attachment value (if one exists) for the specified
3162
+ * glyph index.
3163
+ *
3164
+ * For any glyph that does not have a top-accent-attachment value - that is,
3165
+ * a glyph not covered by the `MathTopAccentAttachment` table (or, when
3166
+ * `font` has no `MathTopAccentAttachment` table or no `MATH` table, any
3167
+ * glyph) - the function synthesizes a value, returning the position at
3168
+ * one-half the glyph's advance width.
3169
+ * @param font - #hb_font_t to work upon
3170
+ * @param glyph - The glyph index from which to retrieve the value
3171
+ */
353
3172
  export declare const otMathGetGlyphTopAccentAttachment: (font: FontT, glyph: number) => number;
3173
+ /**
3174
+ * Fetches the MathGlyphConstruction for the specified font, glyph index, and
3175
+ * direction. The corresponding list of size variants is returned as a list of
3176
+ * #hb_ot_math_glyph_variant_t structs.
3177
+ *
3178
+ * <note>The `direction` parameter is only used to select between horizontal
3179
+ * or vertical directions for the construction. Even though all #hb_direction_t
3180
+ * values are accepted, only the result of #HB_DIRECTION_IS_HORIZONTAL is
3181
+ * considered.</note>
3182
+ * @param font - #hb_font_t to work upon
3183
+ * @param glyph - The index of the glyph to stretch
3184
+ * @param direction - The direction of the stretching (horizontal or vertical)
3185
+ * @param startOffset - offset of the first variant to retrieve
3186
+ * @param variantsCount - Input = the maximum number of variants to return;
3187
+ * @param variants - array of variants returned
3188
+ */
354
3189
  export declare const otMathGetGlyphVariants: (font: FontT, glyph: number, direction: DirectionT, startOffset: number, variantsCount: Ref<number>, variants: Ref<OtMathGlyphVariantT[]>) => number;
3190
+ /**
3191
+ * Fetches the MathVariants table for the specified font and returns the
3192
+ * minimum overlap of connecting glyphs that are required to draw a glyph
3193
+ * assembly in the specified direction.
3194
+ *
3195
+ * <note>The `direction` parameter is only used to select between horizontal
3196
+ * or vertical directions for the construction. Even though all #hb_direction_t
3197
+ * values are accepted, only the result of #HB_DIRECTION_IS_HORIZONTAL is
3198
+ * considered.</note>
3199
+ * @param font - #hb_font_t to work upon
3200
+ * @param direction - direction of the stretching (horizontal or vertical)
3201
+ */
355
3202
  export declare const otMathGetMinConnectorOverlap: (font: FontT, direction: DirectionT) => number;
3203
+ /**
3204
+ * Tests whether a face has a `MATH` table.
3205
+ * @param face - #hb_face_t to test
3206
+ */
356
3207
  export declare const otMathHasData: (face: FaceT) => number;
3208
+ /**
3209
+ * Tests whether the given glyph index is an extended shape in the face.
3210
+ * @param face - #hb_face_t to work upon
3211
+ * @param glyph - The glyph index to test
3212
+ */
357
3213
  export declare const otMathIsGlyphExtendedShape: (face: FaceT, glyph: number) => number;
3214
+ /**
3215
+ * Fetches all available feature types.
3216
+ * @param face - a face object
3217
+ * @param startOffset - iteration's start offset
3218
+ * @param entriesCount - buffer size as input, filled size as output
3219
+ * @param entries - entries tags buffer
3220
+ */
358
3221
  export declare const otMetaGetEntryTags: (face: FaceT, startOffset: number, entries: Ref<OtMetaTagT[]>, entriesCount?: Ref<number> | null) => number;
3222
+ /**
3223
+ * It fetches metadata entry of a given tag from a font.
3224
+ * @param face - a #hb_face_t object.
3225
+ * @param metaTag - tag of metadata you like to have.
3226
+ */
359
3227
  export declare const otMetaReferenceEntry: (face: FaceT, metaTag: OtMetaTagT) => BlobT;
3228
+ /**
3229
+ * Fetches metrics value corresponding to `metrics_tag` from @font.
3230
+ * @param font - an #hb_font_t object.
3231
+ * @param metricsTag - tag of metrics value you like to fetch.
3232
+ * @param position - result of metrics value from the font.
3233
+ */
360
3234
  export declare const otMetricsGetPosition: (font: FontT, metricsTag: OtMetricsTagT, position?: Ref<number> | null) => number;
3235
+ /**
3236
+ * Fetches metrics value corresponding to `metrics_tag` from @font,
3237
+ * and synthesizes a value if it the value is missing in the font.
3238
+ * @param font - an #hb_font_t object.
3239
+ * @param metricsTag - tag of metrics value you like to fetch.
3240
+ * @param position - result of metrics value from the font.
3241
+ */
361
3242
  export declare const otMetricsGetPositionWithFallback: (font: FontT, metricsTag: OtMetricsTagT, position?: Ref<number> | null) => void;
3243
+ /**
3244
+ * Fetches metrics value corresponding to `metrics_tag` from `font` with the
3245
+ * current font variation settings applied.
3246
+ * @param font - an #hb_font_t object.
3247
+ * @param metricsTag - tag of metrics value you like to fetch.
3248
+ */
362
3249
  export declare const otMetricsGetVariation: (font: FontT, metricsTag: OtMetricsTagT) => number;
3250
+ /**
3251
+ * Fetches horizontal metrics value corresponding to `metrics_tag` from `font` with the current font variation settings applied.
3252
+ * @param font - an #hb_font_t object.
3253
+ * @param metricsTag - tag of metrics value you like to fetch.
3254
+ */
363
3255
  export declare const otMetricsGetXVariation: (font: FontT, metricsTag: OtMetricsTagT) => number;
3256
+ /**
3257
+ * Fetches vertical metrics value corresponding to `metrics_tag` from `font` with
3258
+ * the current font variation settings applied.
3259
+ * @param font - an #hb_font_t object.
3260
+ * @param metricsTag - tag of metrics value you like to fetch.
3261
+ */
364
3262
  export declare const otMetricsGetYVariation: (font: FontT, metricsTag: OtMetricsTagT) => number;
3263
+ /**
3264
+ * Fetches a font name from the OpenType 'name' table.
3265
+ * If `language` is #HB_LANGUAGE_INVALID, English ("en") is assumed.
3266
+ * Returns string in UTF-16 encoding. A NUL terminator is always written
3267
+ * for convenience, and isn't included in the output @text_size.
3268
+ * @param face - font face.
3269
+ * @param nameId - OpenType name identifier to fetch.
3270
+ * @param language - language to fetch the name for.
3271
+ * @param textSize - input size of `text` buffer, and output size of
3272
+ * @param text - buffer to write fetched name into.
3273
+ */
365
3274
  export declare const otNameGetUtf16: (face: FaceT, nameId: number, language: number, text: Ref<number[]>, textSize?: Ref<number> | null) => number;
3275
+ /**
3276
+ * Fetches a font name from the OpenType 'name' table.
3277
+ * If `language` is #HB_LANGUAGE_INVALID, English ("en") is assumed.
3278
+ * Returns string in UTF-32 encoding. A NUL terminator is always written
3279
+ * for convenience, and isn't included in the output @text_size.
3280
+ * @param face - font face.
3281
+ * @param nameId - OpenType name identifier to fetch.
3282
+ * @param language - language to fetch the name for.
3283
+ * @param textSize - input size of `text` buffer, and output size of
3284
+ * @param text - buffer to write fetched name into.
3285
+ */
366
3286
  export declare const otNameGetUtf32: (face: FaceT, nameId: number, language: number, text: Ref<number[]>, textSize?: Ref<number> | null) => number;
3287
+ /**
3288
+ * Fetches a font name from the OpenType 'name' table.
3289
+ * If `language` is #HB_LANGUAGE_INVALID, English ("en") is assumed.
3290
+ * Returns string in UTF-8 encoding. A NUL terminator is always written
3291
+ * for convenience, and isn't included in the output @text_size.
3292
+ * @param face - font face.
3293
+ * @param nameId - OpenType name identifier to fetch.
3294
+ * @param language - language to fetch the name for.
3295
+ * @param textSize - input size of `text` buffer, and output size of
3296
+ * @param text - buffer to write fetched name into.
3297
+ */
367
3298
  export declare const otNameGetUtf8: (face: FaceT, nameId: number, language: number, text: Ref<string[]>, textSize?: Ref<number> | null) => number;
3299
+ /**
3300
+ * Enumerates all available name IDs and language combinations. Returned
3301
+ * array is owned by the `face` and should not be modified. It can be
3302
+ * used as long as `face` is alive.
3303
+ * @param face - font face.
3304
+ * @param numEntries - number of returned entries.
3305
+ */
368
3306
  export declare const otNameListNames: (face: FaceT, numEntries?: Ref<number> | null) => number[];
3307
+ /**
3308
+ * Computes the transitive closure of glyphs needed for a specified
3309
+ * input buffer under the given font and feature list. The closure is
3310
+ * computed as a set, not as a list.
3311
+ * @param font - #hb_font_t to work upon
3312
+ * @param buffer - The input buffer to compute from
3313
+ * @param features - The features enabled on the buffer
3314
+ * @param numFeatures - The number of features enabled on the buffer
3315
+ * @param glyphs - The #hb_set_t set of glyphs comprising the transitive closure of the query
3316
+ */
369
3317
  export declare const otShapeGlyphsClosure: (font: FontT, buffer: BufferT, features: FeatureT[], numFeatures: number, glyphs: Ref<SetT>) => void;
3318
+ /**
3319
+ * Computes the complete set of GSUB or GPOS lookups that are applicable
3320
+ * under a given @shape_plan.
3321
+ * @param shapePlan - #hb_shape_plan_t to query
3322
+ * @param tableTag - GSUB or GPOS
3323
+ * @param lookupIndexes - The #hb_set_t set of lookups returned
3324
+ */
370
3325
  export declare const otShapePlanCollectLookups: (shapePlan: ShapePlanT, tableTag: number, lookupIndexes: Ref<SetT>) => void;
3326
+ /**
3327
+ * Fetches the list of OpenType feature tags enabled for a shaping plan, if possible.
3328
+ * @param shapePlan - A shaping plan
3329
+ * @param startOffset - The index of first feature to retrieve
3330
+ * @param tagCount - Input = the maximum number of features to return;
3331
+ * @param tags - The array of enabled feature
3332
+ */
371
3333
  export declare const otShapePlanGetFeatureTags: (shapePlan: ShapePlanT, startOffset: number, tagCount: Ref<number>, tags: Ref<number[]>) => number;
3334
+ /**
3335
+ * Converts an #hb_language_t to an #hb_tag_t.
3336
+ * @param language - an #hb_language_t to convert.
3337
+ */
372
3338
  export declare const otTagFromLanguage: (language: number) => number;
3339
+ /**
3340
+ * Converts a language tag to an #hb_language_t.
3341
+ * @param tag - an language tag
3342
+ */
373
3343
  export declare const otTagToLanguage: (tag: number) => number | null;
3344
+ /**
3345
+ * Converts a script tag to an #hb_script_t.
3346
+ * @param tag - a script tag
3347
+ */
374
3348
  export declare const otTagToScript: (tag: number) => ScriptT;
3349
+ /**
3350
+ * Converts an #hb_script_t to script tags.
3351
+ * @param script - an #hb_script_t to convert.
3352
+ * @param scriptTag_1 - output #hb_tag_t.
3353
+ * @param scriptTag_2 - output #hb_tag_t.
3354
+ */
375
3355
  export declare const otTagsFromScript: (script: ScriptT, scriptTag_1: Ref<number>, scriptTag_2: Ref<number>) => void;
3356
+ /**
3357
+ * Converts an #hb_script_t and an #hb_language_t to script and language tags.
3358
+ * @param script - an #hb_script_t to convert.
3359
+ * @param language - an #hb_language_t to convert.
3360
+ * @param scriptCount - maximum number of script tags to retrieve (IN)
3361
+ * @param scriptTags - array of size at least `script_count` to store the
3362
+ * @param languageCount - maximum number of language tags to retrieve
3363
+ * @param languageTags - array of size at least `language_count` to store
3364
+ */
376
3365
  export declare const otTagsFromScriptAndLanguage: (script: ScriptT, scriptCount: Ref<number>, languageCount: Ref<number>, language?: number | null, scriptTags?: Ref<number> | null, languageTags?: Ref<number> | null) => void;
3366
+ /**
3367
+ * Converts a script tag and a language tag to an #hb_script_t and an
3368
+ * #hb_language_t.
3369
+ * @param scriptTag - a script tag
3370
+ * @param languageTag - a language tag
3371
+ * @param script - the #hb_script_t corresponding to @script_tag.
3372
+ * @param language - the #hb_language_t corresponding to `script_tag` and
3373
+ */
377
3374
  export declare const otTagsToScriptAndLanguage: (scriptTag: number, languageTag: number, script?: Ref<ScriptT> | null, language?: Ref<number> | null) => void;
3375
+ /**
3376
+ * Fetches the variation-axis information corresponding to the specified axis tag
3377
+ * in the specified face.
3378
+ * @param face - #hb_face_t to work upon
3379
+ * @param axisTag - The #hb_tag_t of the variation axis to query
3380
+ * @param axisIndex - The index of the variation axis
3381
+ * @param axisInfo - The #hb_ot_var_axis_info_t of the axis tag queried
3382
+ */
378
3383
  export declare const otVarFindAxis: (face: FaceT, axisTag: number, axisIndex: number, axisInfo: Ref<number>) => number;
3384
+ /**
3385
+ * Fetches the variation-axis information corresponding to the specified axis tag
3386
+ * in the specified face.
3387
+ * @param face - #hb_face_t to work upon
3388
+ * @param axisTag - The #hb_tag_t of the variation axis to query
3389
+ * @param axisInfo - The #hb_ot_var_axis_info_t of the axis tag queried
3390
+ */
379
3391
  export declare const otVarFindAxisInfo: (face: FaceT, axisTag: number, axisInfo: Ref<OtVarAxisInfoT>) => number;
3392
+ /**
3393
+ * Fetches a list of all variation axes in the specified face. The list returned will begin
3394
+ * at the offset provided.
3395
+ * @param face - #hb_face_t to work upon
3396
+ * @param startOffset - offset of the first lookup to retrieve
3397
+ * @param axesCount - Input = the maximum number of variation axes to return;
3398
+ * @param axesArray - The array of variation axes found
3399
+ */
380
3400
  export declare const otVarGetAxes: (face: FaceT, startOffset: number, axesArray: Ref<number[]>, axesCount?: Ref<number> | null) => number;
3401
+ /**
3402
+ * Fetches the number of OpenType variation axes included in the face.
3403
+ * @param face - The #hb_face_t to work on
3404
+ */
381
3405
  export declare const otVarGetAxisCount: (face: FaceT) => number;
3406
+ /**
3407
+ * Fetches a list of all variation axes in the specified face. The list returned will begin
3408
+ * at the offset provided.
3409
+ * @param face - #hb_face_t to work upon
3410
+ * @param startOffset - offset of the first lookup to retrieve
3411
+ * @param axesCount - Input = the maximum number of variation axes to return;
3412
+ * @param axesArray - The array of variation axes found
3413
+ */
382
3414
  export declare const otVarGetAxisInfos: (face: FaceT, startOffset: number, axesArray: Ref<OtVarAxisInfoT[]>, axesCount?: Ref<number> | null) => number;
3415
+ /**
3416
+ * Fetches the number of named instances included in the face.
3417
+ * @param face - The #hb_face_t to work on
3418
+ */
383
3419
  export declare const otVarGetNamedInstanceCount: (face: FaceT) => number;
3420
+ /**
3421
+ * Tests whether a face includes any OpenType variation data in the `fvar` table.
3422
+ * @param face - The #hb_face_t to work on
3423
+ */
384
3424
  export declare const otVarHasData: (face: FaceT) => number;
3425
+ /**
3426
+ * Fetches the design-space coordinates corresponding to the given
3427
+ * named instance in the face.
3428
+ * @param face - The #hb_face_t to work on
3429
+ * @param instanceIndex - The index of the named instance to query
3430
+ * @param coordsLength - Input = the maximum number of coordinates to return;
3431
+ * @param coords - The array of coordinates found for the query
3432
+ */
385
3433
  export declare const otVarNamedInstanceGetDesignCoords: (face: FaceT, instanceIndex: number, coords: Ref<number[]>, coordsLength?: Ref<number> | null) => number;
3434
+ /**
3435
+ * Fetches the `name` table Name ID that provides display names for
3436
+ * the "PostScript name" defined for the given named instance in the face.
3437
+ * @param face - The #hb_face_t to work on
3438
+ * @param instanceIndex - The index of the named instance to query
3439
+ */
386
3440
  export declare const otVarNamedInstanceGetPostscriptNameId: (face: FaceT, instanceIndex: number) => number;
3441
+ /**
3442
+ * Fetches the `name` table Name ID that provides display names for
3443
+ * the "Subfamily name" defined for the given named instance in the face.
3444
+ * @param face - The #hb_face_t to work on
3445
+ * @param instanceIndex - The index of the named instance to query
3446
+ */
387
3447
  export declare const otVarNamedInstanceGetSubfamilyNameId: (face: FaceT, instanceIndex: number) => number;
3448
+ /**
3449
+ * Normalizes the given design-space coordinates. The minimum and maximum
3450
+ * values for the axis are mapped to the interval [-1,1], with the default
3451
+ * axis value mapped to 0.
3452
+ *
3453
+ * The normalized values have 14 bits of fixed-point sub-integer precision as per
3454
+ * OpenType specification.
3455
+ *
3456
+ * Any additional scaling defined in the face's `avar` table is also
3457
+ * applied, as described at https://docs.microsoft.com/en-us/typography/opentype/spec/avar
3458
+ *
3459
+ * Note: `coords_length` must be the same as the number of axes in the face, as
3460
+ * for example returned by hb_ot_var_get_axis_count().
3461
+ * Otherwise, the behavior is undefined.
3462
+ * @param face - The #hb_face_t to work on
3463
+ * @param coordsLength - The length of the coordinate array
3464
+ * @param designCoords - The design-space coordinates to normalize
3465
+ * @param normalizedCoords - The normalized coordinates
3466
+ */
388
3467
  export declare const otVarNormalizeCoords: (face: FaceT, coordsLength: number, designCoords: number, normalizedCoords: Ref<number>) => void;
3468
+ /**
3469
+ * Normalizes all of the coordinates in the given list of variation axes.
3470
+ * @param face - The #hb_face_t to work on
3471
+ * @param variations - The array of variations to normalize
3472
+ * @param variationsLength - The number of variations to normalize
3473
+ * @param coords - The array of normalized coordinates
3474
+ * @param coordsLength - The length of the coordinate array
3475
+ */
389
3476
  export declare const otVarNormalizeVariations: (face: FaceT, variations: number, variationsLength: number, coords: Ref<number[]>, coordsLength: Ref<number>) => void;
3477
+ /**
3478
+ * Perform a "color" paint operation.
3479
+ * @param funcs - paint functions
3480
+ * @param paintData - associated data passed by the caller
3481
+ * @param isForeground - whether the color is the foreground
3482
+ * @param color - The color to use
3483
+ */
390
3484
  export declare const paintColor: (funcs: PaintFuncsT, isForeground: number, color: number, paintData?: number | null) => void;
3485
+ /**
3486
+ * Perform a "color-glyph" paint operation.
3487
+ * @param funcs - paint functions
3488
+ * @param paintData - associated data passed by the caller
3489
+ * @param glyph - the glyph ID
3490
+ * @param font - the font
3491
+ */
391
3492
  export declare const paintColorGlyph: (funcs: PaintFuncsT, glyph: number, font: FontT, paintData?: number | null) => number;
3493
+ /**
3494
+ * Gets the custom palette color for @color_index.
3495
+ * @param funcs - paint functions
3496
+ * @param paintData - associated data passed by the caller
3497
+ * @param colorIndex - color index
3498
+ * @param color - fetched color
3499
+ */
392
3500
  export declare const paintCustomPaletteColor: (funcs: PaintFuncsT, colorIndex: number, color: Ref<number>, paintData?: number | null) => number;
3501
+ /**
3502
+ * Creates a new #hb_paint_funcs_t structure of paint functions.
3503
+ *
3504
+ * The initial reference count of 1 should be released with hb_paint_funcs_destroy()
3505
+ * when you are done using the #hb_paint_funcs_t. This function never returns
3506
+ * `NULL`. If memory cannot be allocated, a special singleton #hb_paint_funcs_t
3507
+ * object will be returned.
3508
+ */
393
3509
  export declare const paintFuncsCreate: () => PaintFuncsT;
3510
+ /**
3511
+ * Fetches the singleton empty paint-functions structure.
3512
+ */
394
3513
  export declare const paintFuncsGetEmpty: () => PaintFuncsT;
3514
+ /**
3515
+ * Tests whether a paint-functions structure is immutable.
3516
+ * @param funcs - The paint-functions structure
3517
+ */
395
3518
  export declare const paintFuncsIsImmutable: (funcs: PaintFuncsT) => number;
3519
+ /**
3520
+ * Makes a paint-functions structure immutable.
3521
+ *
3522
+ * After this call, all attempts to set one of the callbacks
3523
+ * on `funcs` will fail.
3524
+ * @param funcs - The paint-functions structure
3525
+ */
396
3526
  export declare const paintFuncsMakeImmutable: (funcs: PaintFuncsT) => void;
3527
+ /**
3528
+ * Sets the paint-color callback on the paint functions struct.
3529
+ * @param funcs - A paint functions struct
3530
+ * @param func - The paint-color callback
3531
+ * @param userData - Data to pass to @func
3532
+ * @param destroy - Function to call when `user_data` is no longer needed
3533
+ */
397
3534
  export declare const paintFuncsSetColorFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3535
+ /**
3536
+ * Sets the color-glyph callback on the paint functions struct.
3537
+ * @param funcs - A paint functions struct
3538
+ * @param func - The color-glyph callback
3539
+ * @param userData - Data to pass to @func
3540
+ * @param destroy - Function to call when `user_data` is no longer needed
3541
+ */
398
3542
  export declare const paintFuncsSetColorGlyphFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3543
+ /**
3544
+ * Sets the custom-palette-color callback on the paint functions struct.
3545
+ * @param funcs - A paint functions struct
3546
+ * @param func - The custom-palette-color callback
3547
+ * @param userData - Data to pass to @func
3548
+ * @param destroy - Function to call when `user_data` is no longer needed
3549
+ */
399
3550
  export declare const paintFuncsSetCustomPaletteColorFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3551
+ /**
3552
+ * Sets the paint-image callback on the paint functions struct.
3553
+ * @param funcs - A paint functions struct
3554
+ * @param func - The paint-image callback
3555
+ * @param userData - Data to pass to @func
3556
+ * @param destroy - Function to call when `user_data` is no longer needed
3557
+ */
400
3558
  export declare const paintFuncsSetImageFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3559
+ /**
3560
+ * Sets the linear-gradient callback on the paint functions struct.
3561
+ * @param funcs - A paint functions struct
3562
+ * @param func - The linear-gradient callback
3563
+ * @param userData - Data to pass to @func
3564
+ * @param destroy - Function to call when `user_data` is no longer needed
3565
+ */
401
3566
  export declare const paintFuncsSetLinearGradientFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3567
+ /**
3568
+ * Sets the pop-clip callback on the paint functions struct.
3569
+ * @param funcs - A paint functions struct
3570
+ * @param func - The pop-clip callback
3571
+ * @param userData - Data to pass to @func
3572
+ * @param destroy - Function to call when `user_data` is no longer needed
3573
+ */
402
3574
  export declare const paintFuncsSetPopClipFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3575
+ /**
3576
+ * Sets the pop-group callback on the paint functions struct.
3577
+ * @param funcs - A paint functions struct
3578
+ * @param func - The pop-group callback
3579
+ * @param userData - Data to pass to @func
3580
+ * @param destroy - Function to call when `user_data` is no longer needed
3581
+ */
403
3582
  export declare const paintFuncsSetPopGroupFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3583
+ /**
3584
+ * Sets the pop-transform callback on the paint functions struct.
3585
+ * @param funcs - A paint functions struct
3586
+ * @param func - The pop-transform callback
3587
+ * @param userData - Data to pass to @func
3588
+ * @param destroy - Function to call when `user_data` is no longer needed
3589
+ */
404
3590
  export declare const paintFuncsSetPopTransformFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3591
+ /**
3592
+ * Sets the push-clip-glyph callback on the paint functions struct.
3593
+ * @param funcs - A paint functions struct
3594
+ * @param func - The push-clip-glyph callback
3595
+ * @param userData - Data to pass to @func
3596
+ * @param destroy - Function to call when `user_data` is no longer needed
3597
+ */
405
3598
  export declare const paintFuncsSetPushClipGlyphFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3599
+ /**
3600
+ * Sets the push-clip-rect callback on the paint functions struct.
3601
+ * @param funcs - A paint functions struct
3602
+ * @param func - The push-clip-rectangle callback
3603
+ * @param userData - Data to pass to @func
3604
+ * @param destroy - Function to call when `user_data` is no longer needed
3605
+ */
406
3606
  export declare const paintFuncsSetPushClipRectangleFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3607
+ /**
3608
+ * Sets the push-group callback on the paint functions struct.
3609
+ * @param funcs - A paint functions struct
3610
+ * @param func - The push-group callback
3611
+ * @param userData - Data to pass to @func
3612
+ * @param destroy - Function to call when `user_data` is no longer needed
3613
+ */
407
3614
  export declare const paintFuncsSetPushGroupFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3615
+ /**
3616
+ * Sets the push-transform callback on the paint functions struct.
3617
+ * @param funcs - A paint functions struct
3618
+ * @param func - The push-transform callback
3619
+ * @param userData - Data to pass to @func
3620
+ * @param destroy - Function to call when `user_data` is no longer needed
3621
+ */
408
3622
  export declare const paintFuncsSetPushTransformFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3623
+ /**
3624
+ * Sets the radial-gradient callback on the paint functions struct.
3625
+ * @param funcs - A paint functions struct
3626
+ * @param func - The radial-gradient callback
3627
+ * @param userData - Data to pass to @func
3628
+ * @param destroy - Function to call when `user_data` is no longer needed
3629
+ */
409
3630
  export declare const paintFuncsSetRadialGradientFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3631
+ /**
3632
+ * Sets the sweep-gradient callback on the paint functions struct.
3633
+ * @param funcs - A paint functions struct
3634
+ * @param func - The sweep-gradient callback
3635
+ * @param userData - Data to pass to @func
3636
+ * @param destroy - Function to call when `user_data` is no longer needed
3637
+ */
410
3638
  export declare const paintFuncsSetSweepGradientFunc: (funcs: PaintFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
3639
+ /**
3640
+ * Perform a "image" paint operation.
3641
+ * @param funcs - paint functions
3642
+ * @param paintData - associated data passed by the caller
3643
+ * @param image - image data
3644
+ * @param width - width of the raster image in pixels, or 0
3645
+ * @param height - height of the raster image in pixels, or 0
3646
+ * @param format - the image format as a tag
3647
+ * @param slant - Deprecated. set to 0.0
3648
+ * @param extents - the extents of the glyph
3649
+ */
411
3650
  export declare const paintImage: (funcs: PaintFuncsT, image: BlobT, width: number, height: number, format: number, slant: number, paintData?: number | null, extents?: number | null) => void;
3651
+ /**
3652
+ * Perform a "linear-gradient" paint operation.
3653
+ * @param funcs - paint functions
3654
+ * @param paintData - associated data passed by the caller
3655
+ * @param colorLine - Color information for the gradient
3656
+ * @param x0 - X coordinate of the first point
3657
+ * @param y0 - Y coordinate of the first point
3658
+ * @param x1 - X coordinate of the second point
3659
+ * @param y1 - Y coordinate of the second point
3660
+ * @param x2 - X coordinate of the third point
3661
+ * @param y2 - Y coordinate of the third point
3662
+ */
412
3663
  export declare const paintLinearGradient: (funcs: PaintFuncsT, colorLine: ColorLineT, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, paintData?: number | null) => void;
3664
+ /**
3665
+ * Perform a "pop-clip" paint operation.
3666
+ * @param funcs - paint functions
3667
+ * @param paintData - associated data passed by the caller
3668
+ */
413
3669
  export declare const paintPopClip: (funcs: PaintFuncsT, paintData?: number | null) => void;
3670
+ /**
3671
+ * Perform a "pop-group" paint operation.
3672
+ * @param funcs - paint functions
3673
+ * @param paintData - associated data passed by the caller
3674
+ * @param mode - the compositing mode to use
3675
+ */
414
3676
  export declare const paintPopGroup: (funcs: PaintFuncsT, mode: PaintCompositeModeT, paintData?: number | null) => void;
3677
+ /**
3678
+ * Perform a "pop-transform" paint operation.
3679
+ * @param funcs - paint functions
3680
+ * @param paintData - associated data passed by the caller
3681
+ */
415
3682
  export declare const paintPopTransform: (funcs: PaintFuncsT, paintData?: number | null) => void;
3683
+ /**
3684
+ * Perform a "push-clip-glyph" paint operation.
3685
+ * @param funcs - paint functions
3686
+ * @param paintData - associated data passed by the caller
3687
+ * @param glyph - the glyph ID
3688
+ * @param font - the font
3689
+ */
416
3690
  export declare const paintPushClipGlyph: (funcs: PaintFuncsT, glyph: number, font: FontT, paintData?: number | null) => void;
3691
+ /**
3692
+ * Perform a "push-clip-rect" paint operation.
3693
+ * @param funcs - paint functions
3694
+ * @param paintData - associated data passed by the caller
3695
+ * @param xmin - min X for the rectangle
3696
+ * @param ymin - min Y for the rectangle
3697
+ * @param xmax - max X for the rectangle
3698
+ * @param ymax - max Y for the rectangle
3699
+ */
417
3700
  export declare const paintPushClipRectangle: (funcs: PaintFuncsT, xmin: number, ymin: number, xmax: number, ymax: number, paintData?: number | null) => void;
3701
+ /**
3702
+ * Push the transform reflecting the font's scale and slant
3703
+ * settings onto the paint functions.
3704
+ * @param funcs - paint functions
3705
+ * @param paintData - associated data passed by the caller
3706
+ * @param font - a font
3707
+ */
418
3708
  export declare const paintPushFontTransform: (funcs: PaintFuncsT, font: FontT, paintData?: number | null) => void;
3709
+ /**
3710
+ * Perform a "push-group" paint operation.
3711
+ * @param funcs - paint functions
3712
+ * @param paintData - associated data passed by the caller
3713
+ */
419
3714
  export declare const paintPushGroup: (funcs: PaintFuncsT, paintData?: number | null) => void;
3715
+ /**
3716
+ * Push the inverse of the transform reflecting the font's
3717
+ * scale and slant settings onto the paint functions.
3718
+ * @param funcs - paint functions
3719
+ * @param paintData - associated data passed by the caller
3720
+ * @param font - a font
3721
+ */
420
3722
  export declare const paintPushInverseFontTransform: (funcs: PaintFuncsT, font: FontT, paintData?: number | null) => void;
3723
+ /**
3724
+ * Perform a "push-transform" paint operation.
3725
+ * @param funcs - paint functions
3726
+ * @param paintData - associated data passed by the caller
3727
+ * @param xx - xx component of the transform matrix
3728
+ * @param yx - yx component of the transform matrix
3729
+ * @param xy - xy component of the transform matrix
3730
+ * @param yy - yy component of the transform matrix
3731
+ * @param dx - dx component of the transform matrix
3732
+ * @param dy - dy component of the transform matrix
3733
+ */
421
3734
  export declare const paintPushTransform: (funcs: PaintFuncsT, xx: number, yx: number, xy: number, yy: number, dx: number, dy: number, paintData?: number | null) => void;
3735
+ /**
3736
+ * Perform a "radial-gradient" paint operation.
3737
+ * @param funcs - paint functions
3738
+ * @param paintData - associated data passed by the caller
3739
+ * @param colorLine - Color information for the gradient
3740
+ * @param x0 - X coordinate of the first circle's center
3741
+ * @param y0 - Y coordinate of the first circle's center
3742
+ * @param r0 - radius of the first circle
3743
+ * @param x1 - X coordinate of the second circle's center
3744
+ * @param y1 - Y coordinate of the second circle's center
3745
+ * @param r1 - radius of the second circle
3746
+ */
422
3747
  export declare const paintRadialGradient: (funcs: PaintFuncsT, colorLine: ColorLineT, x0: number, y0: number, r0: number, x1: number, y1: number, r1: number, paintData?: number | null) => void;
3748
+ /**
3749
+ * Perform a "sweep-gradient" paint operation.
3750
+ * @param funcs - paint functions
3751
+ * @param paintData - associated data passed by the caller
3752
+ * @param colorLine - Color information for the gradient
3753
+ * @param x0 - X coordinate of the circle's center
3754
+ * @param y0 - Y coordinate of the circle's center
3755
+ * @param startAngle - the start angle
3756
+ * @param endAngle - the end angle
3757
+ */
423
3758
  export declare const paintSweepGradient: (funcs: PaintFuncsT, colorLine: ColorLineT, x0: number, y0: number, startAngle: number, endAngle: number, paintData?: number | null) => void;
3759
+ /**
3760
+ * Reallocates the memory pointed to by `ptr` to `size` bytes, using the
3761
+ * allocator set at compile-time. Typically just realloc().
3762
+ * @param ptr - The pointer to the memory to reallocate.
3763
+ * @param size - The new size of the memory.
3764
+ */
424
3765
  export declare const realloc: (size: number, ptr?: number | null) => number | null;
3766
+ /**
3767
+ * Converts an ISO 15924 script tag to a corresponding #hb_script_t.
3768
+ * @param tag - an #hb_tag_t representing an ISO 15924 tag.
3769
+ */
425
3770
  export declare const scriptFromIso15924Tag: (tag: number) => ScriptT;
3771
+ /**
3772
+ * Converts a string `str` representing an ISO 15924 script tag to a
3773
+ * corresponding #hb_script_t. Shorthand for hb_tag_from_string() then
3774
+ * hb_script_from_iso15924_tag().
3775
+ * @param str - a string representing an
3776
+ * @param len - length of the @str, or -1 if it is `NULL`-terminated.
3777
+ */
426
3778
  export declare const scriptFromString: (str: number[], len: number) => ScriptT;
3779
+ /**
3780
+ * Fetches the #hb_direction_t of a script when it is
3781
+ * set horizontally. All right-to-left scripts will return
3782
+ * #HB_DIRECTION_RTL. All left-to-right scripts will return
3783
+ * #HB_DIRECTION_LTR.
3784
+ *
3785
+ * Scripts that can be written either right-to-left or
3786
+ * left-to-right will return #HB_DIRECTION_INVALID.
3787
+ *
3788
+ * Unknown scripts will return #HB_DIRECTION_LTR.
3789
+ * @param script - The #hb_script_t to query
3790
+ */
427
3791
  export declare const scriptGetHorizontalDirection: (script: ScriptT) => DirectionT;
3792
+ /**
3793
+ * Converts an #hb_script_t to a corresponding ISO 15924 script tag.
3794
+ * @param script - an #hb_script_t to convert.
3795
+ */
428
3796
  export declare const scriptToIso15924Tag: (script: ScriptT) => number;
3797
+ /**
3798
+ * Checks the equality of two #hb_segment_properties_t's.
3799
+ * @param a - first #hb_segment_properties_t to compare.
3800
+ * @param b - second #hb_segment_properties_t to compare.
3801
+ */
429
3802
  export declare const segmentPropertiesEqual: (a: SegmentPropertiesT, b: SegmentPropertiesT) => number;
3803
+ /**
3804
+ * Creates a hash representing @p.
3805
+ * @param p - #hb_segment_properties_t to hash.
3806
+ */
430
3807
  export declare const segmentPropertiesHash: (p: SegmentPropertiesT) => number;
3808
+ /**
3809
+ * Fills in missing fields of `p` from `src` in a considered manner.
3810
+ *
3811
+ * First, if `p` does not have direction set, direction is copied from @src.
3812
+ *
3813
+ * Next, if `p` and `src` have the same direction (which can be unset), if `p` does not have script set, script is copied from @src.
3814
+ *
3815
+ * Finally, if `p` and `src` have the same direction and script (which either
3816
+ * can be unset), if `p` does not have language set, language is copied from
3817
+ * @src.
3818
+ * @param p - #hb_segment_properties_t to fill in.
3819
+ * @param src - #hb_segment_properties_t to fill in from.
3820
+ */
431
3821
  export declare const segmentPropertiesOverlay: (p: SegmentPropertiesT, src: SegmentPropertiesT) => void;
3822
+ /**
3823
+ * Adds `codepoint` to @set.
3824
+ * @param set - A set
3825
+ * @param codepoint - The element to add to @set
3826
+ */
432
3827
  export declare const setAdd: (set: SetT, codepoint: number) => void;
3828
+ /**
3829
+ * Adds all of the elements from `first` to `last` (inclusive) to @set.
3830
+ * @param set - A set
3831
+ * @param first - The first element to add to @set
3832
+ * @param last - The final element to add to @set
3833
+ */
433
3834
  export declare const setAddRange: (set: SetT, first: number, last: number) => void;
3835
+ /**
3836
+ * Adds `num_codepoints` codepoints to a set at once.
3837
+ * The codepoints array must be in increasing order,
3838
+ * with size at least @num_codepoints.
3839
+ * @param set - A set
3840
+ * @param sortedCodepoints - Array of codepoints to add
3841
+ * @param numCodepoints - Length of @sorted_codepoints
3842
+ */
434
3843
  export declare const setAddSortedArray: (set: SetT, sortedCodepoints: number[], numCodepoints: number) => void;
3844
+ /**
3845
+ * Tests whether memory allocation for a set was successful.
3846
+ * @param set - A set
3847
+ */
435
3848
  export declare const setAllocationSuccessful: (set: SetT) => number;
3849
+ /**
3850
+ * Clears out the contents of a set.
3851
+ * @param set - A set
3852
+ */
436
3853
  export declare const setClear: (set: SetT) => void;
3854
+ /**
3855
+ * Allocate a copy of @set.
3856
+ * @param set - A set
3857
+ */
437
3858
  export declare const setCopy: (set: SetT) => SetT;
3859
+ /**
3860
+ * Creates a new, initially empty set.
3861
+ */
438
3862
  export declare const setCreate: () => SetT;
3863
+ /**
3864
+ * Removes `codepoint` from @set.
3865
+ * @param set - A set
3866
+ * @param codepoint - Removes `codepoint` from @set
3867
+ */
439
3868
  export declare const setDel: (set: SetT, codepoint: number) => void;
3869
+ /**
3870
+ * Removes all of the elements from `first` to `last` (inclusive) from @set.
3871
+ *
3872
+ * If `last` is #HB_SET_VALUE_INVALID, then all values
3873
+ * greater than or equal to `first` are removed.
3874
+ * @param set - A set
3875
+ * @param first - The first element to remove from @set
3876
+ * @param last - The final element to remove from @set
3877
+ */
440
3878
  export declare const setDelRange: (set: SetT, first: number, last: number) => void;
3879
+ /**
3880
+ * Fetches the singleton empty #hb_set_t.
3881
+ */
441
3882
  export declare const setGetEmpty: () => SetT;
3883
+ /**
3884
+ * Finds the largest element in the set.
3885
+ * @param set - A set
3886
+ */
442
3887
  export declare const setGetMax: (set: SetT) => number;
3888
+ /**
3889
+ * Finds the smallest element in the set.
3890
+ * @param set - A set
3891
+ */
443
3892
  export declare const setGetMin: (set: SetT) => number;
3893
+ /**
3894
+ * Returns the number of elements in the set.
3895
+ * @param set - A set
3896
+ */
444
3897
  export declare const setGetPopulation: (set: SetT) => number;
3898
+ /**
3899
+ * Tests whether `codepoint` belongs to @set.
3900
+ * @param set - A set
3901
+ * @param codepoint - The element to query
3902
+ */
445
3903
  export declare const setHas: (set: SetT, codepoint: number) => number;
3904
+ /**
3905
+ * Creates a hash representing @set.
3906
+ * @param set - A set
3907
+ */
446
3908
  export declare const setHash: (set: SetT) => number;
3909
+ /**
3910
+ * Makes `set` the intersection of `set` and @other.
3911
+ * @param set - A set
3912
+ * @param other - Another set
3913
+ */
447
3914
  export declare const setIntersect: (set: SetT, other: SetT) => void;
3915
+ /**
3916
+ * Inverts the contents of @set.
3917
+ * @param set - A set
3918
+ */
448
3919
  export declare const setInvert: (set: SetT) => void;
3920
+ /**
3921
+ * Tests whether a set is empty (contains no elements).
3922
+ * @param set - a set.
3923
+ */
449
3924
  export declare const setIsEmpty: (set: SetT) => number;
3925
+ /**
3926
+ * Tests whether `set` and `other` are equal (contain the same
3927
+ * elements).
3928
+ * @param set - A set
3929
+ * @param other - Another set
3930
+ */
450
3931
  export declare const setIsEqual: (set: SetT, other: SetT) => number;
3932
+ /**
3933
+ * Returns whether the set is inverted.
3934
+ * @param set - A set
3935
+ */
451
3936
  export declare const setIsInverted: (set: SetT) => number;
3937
+ /**
3938
+ * Tests whether `set` is a subset of @larger_set.
3939
+ * @param set - A set
3940
+ * @param largerSet - Another set
3941
+ */
452
3942
  export declare const setIsSubset: (set: SetT, largerSet: SetT) => number;
3943
+ /**
3944
+ * Fetches the next element in `set` that is greater than current value of @codepoint.
3945
+ *
3946
+ * Set `codepoint` to #HB_SET_VALUE_INVALID to get started.
3947
+ * @param set - A set
3948
+ * @param codepoint - Input = Code point to query
3949
+ */
453
3950
  export declare const setNext: (set: SetT, codepoint: Ref<number>) => number;
3951
+ /**
3952
+ * Finds the next element in `set` that is greater than @codepoint. Writes out
3953
+ * codepoints to @out, until either the set runs out of elements, or `size` codepoints are written, whichever comes first.
3954
+ * @param set - A set
3955
+ * @param codepoint - Outputting codepoints starting after this one.
3956
+ * @param out - An array of codepoints to write to.
3957
+ * @param size - The maximum number of codepoints to write out.
3958
+ */
454
3959
  export declare const setNextMany: (set: SetT, codepoint: number, out: number[], size: number) => number;
3960
+ /**
3961
+ * Fetches the next consecutive range of elements in `set` that
3962
+ * are greater than current value of @last.
3963
+ *
3964
+ * Set `last` to #HB_SET_VALUE_INVALID to get started.
3965
+ * @param set - A set
3966
+ * @param first - The first code point in the range
3967
+ * @param last - Input = The current last code point in the range
3968
+ */
455
3969
  export declare const setNextRange: (set: SetT, first: Ref<number>, last: Ref<number>) => number;
3970
+ /**
3971
+ * Fetches the previous element in `set` that is lower than current value of @codepoint.
3972
+ *
3973
+ * Set `codepoint` to #HB_SET_VALUE_INVALID to get started.
3974
+ * @param set - A set
3975
+ * @param codepoint - Input = Code point to query
3976
+ */
456
3977
  export declare const setPrevious: (set: SetT, codepoint: Ref<number>) => number;
3978
+ /**
3979
+ * Fetches the previous consecutive range of elements in `set` that
3980
+ * are greater than current value of @last.
3981
+ *
3982
+ * Set `first` to #HB_SET_VALUE_INVALID to get started.
3983
+ * @param set - A set
3984
+ * @param first - Input = The current first code point in the range
3985
+ * @param last - The last code point in the range
3986
+ */
457
3987
  export declare const setPreviousRange: (set: SetT, first: Ref<number>, last: Ref<number>) => number;
3988
+ /**
3989
+ * Makes the contents of `set` equal to the contents of @other.
3990
+ * @param set - A set
3991
+ * @param other - Another set
3992
+ */
458
3993
  export declare const setSet: (set: SetT, other: SetT) => void;
3994
+ /**
3995
+ * Subtracts the contents of `other` from @set.
3996
+ * @param set - A set
3997
+ * @param other - Another set
3998
+ */
459
3999
  export declare const setSubtract: (set: SetT, other: SetT) => void;
4000
+ /**
4001
+ * Makes `set` the symmetric difference of `set` and @other.
4002
+ * @param set - A set
4003
+ * @param other - Another set
4004
+ */
460
4005
  export declare const setSymmetricDifference: (set: SetT, other: SetT) => void;
4006
+ /**
4007
+ * Makes `set` the union of `set` and @other.
4008
+ * @param set - A set
4009
+ * @param other - Another set
4010
+ */
461
4011
  export declare const setUnion: (set: SetT, other: SetT) => void;
4012
+ /**
4013
+ * Shapes `buffer` using `font` turning its Unicode characters content to
4014
+ * positioned glyphs. If `features` is not `NULL`, it will be used to control the
4015
+ * features applied during shaping. If two `features` have the same tag but
4016
+ * overlapping ranges the value of the feature with the higher index takes
4017
+ * precedence.
4018
+ * @param font - an #hb_font_t to use for shaping
4019
+ * @param buffer - an #hb_buffer_t to shape
4020
+ * @param features - an array of user
4021
+ * @param numFeatures - the length of `features` array
4022
+ */
462
4023
  export declare const shape: (font: FontT, buffer: BufferT, numFeatures: number, features?: FeatureT[] | null) => void;
4024
+ /**
4025
+ * See hb_shape() for details. If `shaper_list` is not `NULL`, the specified
4026
+ * shapers will be used in the given order, otherwise the default shapers list
4027
+ * will be used.
4028
+ * @param font - an #hb_font_t to use for shaping
4029
+ * @param buffer - an #hb_buffer_t to shape
4030
+ * @param features - an array of user
4031
+ * @param numFeatures - the length of `features` array
4032
+ * @param shaperList - a `NULL`-terminated
4033
+ */
463
4034
  export declare const shapeFull: (font: FontT, buffer: BufferT, numFeatures: number, features?: FeatureT[] | null, shaperList?: string[] | null) => number;
4035
+ /**
4036
+ * Retrieves the list of shapers supported by HarfBuzz.
4037
+ */
464
4038
  export declare const shapeListShapers: () => string[];
4039
+ /**
4040
+ * Constructs a shaping plan for a combination of @face, @user_features, @props,
4041
+ * and @shaper_list.
4042
+ * @param face - #hb_face_t to use
4043
+ * @param props - The #hb_segment_properties_t of the segment
4044
+ * @param userFeatures - The list of user-selected features
4045
+ * @param numUserFeatures - The number of user-selected features
4046
+ * @param shaperList - List of shapers to try
4047
+ */
465
4048
  export declare const shapePlanCreate: (face: FaceT, props: SegmentPropertiesT, userFeatures: FeatureT[], numUserFeatures: number, shaperList: string[]) => ShapePlanT;
4049
+ /**
4050
+ * The variable-font version of #hb_shape_plan_create.
4051
+ * Constructs a shaping plan for a combination of @face, @user_features, @props,
4052
+ * and @shaper_list, plus the variation-space coordinates @coords.
4053
+ * @param face - #hb_face_t to use
4054
+ * @param props - The #hb_segment_properties_t of the segment
4055
+ * @param userFeatures - The list of user-selected features
4056
+ * @param numUserFeatures - The number of user-selected features
4057
+ * @param coords - The list of variation-space coordinates
4058
+ * @param numCoords - The number of variation-space coordinates
4059
+ * @param shaperList - List of shapers to try
4060
+ */
466
4061
  export declare const shapePlanCreate2: (face: FaceT, props: SegmentPropertiesT, userFeatures: FeatureT[], numUserFeatures: number, coords: number[], numCoords: number, shaperList: string[]) => ShapePlanT;
4062
+ /**
4063
+ * Creates a cached shaping plan suitable for reuse, for a combination
4064
+ * of @face, @user_features, @props, and @shaper_list.
4065
+ * @param face - #hb_face_t to use
4066
+ * @param props - The #hb_segment_properties_t of the segment
4067
+ * @param userFeatures - The list of user-selected features
4068
+ * @param numUserFeatures - The number of user-selected features
4069
+ * @param shaperList - List of shapers to try
4070
+ */
467
4071
  export declare const shapePlanCreateCached: (face: FaceT, props: SegmentPropertiesT, userFeatures: FeatureT[], numUserFeatures: number, shaperList: string[]) => ShapePlanT;
4072
+ /**
4073
+ * The variable-font version of #hb_shape_plan_create_cached.
4074
+ * Creates a cached shaping plan suitable for reuse, for a combination
4075
+ * of @face, @user_features, @props, and @shaper_list, plus the
4076
+ * variation-space coordinates @coords.
4077
+ * @param face - #hb_face_t to use
4078
+ * @param props - The #hb_segment_properties_t of the segment
4079
+ * @param userFeatures - The list of user-selected features
4080
+ * @param numUserFeatures - The number of user-selected features
4081
+ * @param coords - The list of variation-space coordinates
4082
+ * @param numCoords - The number of variation-space coordinates
4083
+ * @param shaperList - List of shapers to try
4084
+ */
468
4085
  export declare const shapePlanCreateCached2: (face: FaceT, props: SegmentPropertiesT, userFeatures: FeatureT[], numUserFeatures: number, coords: number[], numCoords: number, shaperList: string[]) => ShapePlanT;
4086
+ /**
4087
+ * Executes the given shaping plan on the specified buffer, using
4088
+ * the given `font` and @features.
4089
+ * @param shapePlan - A shaping plan
4090
+ * @param font - The #hb_font_t to use
4091
+ * @param buffer - The #hb_buffer_t to work upon
4092
+ * @param features - Features to enable
4093
+ * @param numFeatures - The number of features to enable
4094
+ */
469
4095
  export declare const shapePlanExecute: (shapePlan: ShapePlanT, font: FontT, buffer: BufferT, features: FeatureT[], numFeatures: number) => number;
4096
+ /**
4097
+ * Fetches the singleton empty shaping plan.
4098
+ */
470
4099
  export declare const shapePlanGetEmpty: () => ShapePlanT;
4100
+ /**
4101
+ * Fetches the shaper from a given shaping plan.
4102
+ * @param shapePlan - A shaping plan
4103
+ */
471
4104
  export declare const shapePlanGetShaper: (shapePlan: ShapePlanT) => string;
4105
+ /**
4106
+ * Searches variation axes of a #hb_font_t object for a specific axis first,
4107
+ * if not set, first tries to get default style values in `STAT` table
4108
+ * then tries to polyfill from different tables of the font.
4109
+ * @param font - a #hb_font_t object.
4110
+ * @param styleTag - a style tag.
4111
+ */
472
4112
  export declare const styleGetValue: (font: FontT, styleTag: StyleTagT) => number;
4113
+ /**
4114
+ * Converts a string into an #hb_tag_t. Valid tags
4115
+ * are four characters. Shorter input strings will be
4116
+ * padded with spaces. Longer input strings will be
4117
+ * truncated.
4118
+ * @param str - String to convert
4119
+ * @param len - Length of @str, or -1 if it is `NULL`-terminated
4120
+ */
473
4121
  export declare const tagFromString: (str: number[], len: number) => number;
4122
+ /**
4123
+ * Converts an #hb_tag_t to a string and returns it in @buf.
4124
+ * Strings will be four characters long.
4125
+ * @param tag - #hb_tag_t to convert
4126
+ * @param buf - Converted string
4127
+ */
474
4128
  export declare const tagToString: (tag: number, buf: Ref<number[]>) => void;
4129
+ /**
4130
+ * Retrieves the Canonical Combining Class (ccc) property
4131
+ * of code point @unicode.
4132
+ * @param ufuncs - The Unicode-functions structure
4133
+ * @param unicode - The code point to query
4134
+ */
475
4135
  export declare const unicodeCombiningClass: (ufuncs: UnicodeFuncsT, unicode: number) => UnicodeCombiningClassT;
4136
+ /**
4137
+ * Fetches the composition of a sequence of two Unicode
4138
+ * code points.
4139
+ *
4140
+ * Calls the composition function of the specified
4141
+ * Unicode-functions structure @ufuncs.
4142
+ * @param ufuncs - The Unicode-functions structure
4143
+ * @param a - The first Unicode code point to compose
4144
+ * @param b - The second Unicode code point to compose
4145
+ * @param ab - The composition of @a, @b
4146
+ */
476
4147
  export declare const unicodeCompose: (ufuncs: UnicodeFuncsT, a: number, b: number, ab: Ref<number>) => number;
4148
+ /**
4149
+ * Fetches the decomposition of a Unicode code point.
4150
+ *
4151
+ * Calls the decomposition function of the specified
4152
+ * Unicode-functions structure @ufuncs.
4153
+ * @param ufuncs - The Unicode-functions structure
4154
+ * @param ab - Unicode code point to decompose
4155
+ * @param a - The first code point of the decomposition of @ab
4156
+ * @param b - The second code point of the decomposition of @ab
4157
+ */
477
4158
  export declare const unicodeDecompose: (ufuncs: UnicodeFuncsT, ab: number, a: Ref<number>, b: Ref<number>) => number;
4159
+ /**
4160
+ * Fetches the compatibility decomposition of a Unicode
4161
+ * code point. Deprecated.
4162
+ * @param ufuncs - The Unicode-functions structure
4163
+ * @param u - Code point to decompose
4164
+ * @param decomposed - Compatibility decomposition of @u
4165
+ */
478
4166
  export declare const unicodeDecomposeCompatibility: (ufuncs: UnicodeFuncsT, u: number, decomposed: Ref<number>) => number;
4167
+ /**
4168
+ * Don't use. Not used by HarfBuzz.
4169
+ * @param ufuncs - a Unicode-function structure
4170
+ * @param unicode - The code point to query
4171
+ */
479
4172
  export declare const unicodeEastasianWidth: (ufuncs: UnicodeFuncsT, unicode: number) => number;
4173
+ /**
4174
+ * Creates a new #hb_unicode_funcs_t structure of Unicode functions.
4175
+ * @param parent - Parent Unicode-functions structure
4176
+ */
480
4177
  export declare const unicodeFuncsCreate: (parent?: UnicodeFuncsT | null) => UnicodeFuncsT;
4178
+ /**
4179
+ * Fetches a pointer to the default Unicode-functions structure that is used
4180
+ * when no functions are explicitly set on #hb_buffer_t.
4181
+ */
481
4182
  export declare const unicodeFuncsGetDefault: () => UnicodeFuncsT;
4183
+ /**
4184
+ * Fetches the singleton empty Unicode-functions structure.
4185
+ */
482
4186
  export declare const unicodeFuncsGetEmpty: () => UnicodeFuncsT;
4187
+ /**
4188
+ * Fetches the parent of the Unicode-functions structure
4189
+ * @ufuncs.
4190
+ * @param ufuncs - The Unicode-functions structure
4191
+ */
483
4192
  export declare const unicodeFuncsGetParent: (ufuncs: UnicodeFuncsT) => UnicodeFuncsT;
4193
+ /**
4194
+ * Tests whether the specified Unicode-functions structure
4195
+ * is immutable.
4196
+ * @param ufuncs - The Unicode-functions structure
4197
+ */
484
4198
  export declare const unicodeFuncsIsImmutable: (ufuncs: UnicodeFuncsT) => number;
4199
+ /**
4200
+ * Makes the specified Unicode-functions structure
4201
+ * immutable.
4202
+ * @param ufuncs - The Unicode-functions structure
4203
+ */
485
4204
  export declare const unicodeFuncsMakeImmutable: (ufuncs: UnicodeFuncsT) => void;
4205
+ /**
4206
+ * Sets the implementation function for #hb_unicode_combining_class_func_t.
4207
+ * @param ufuncs - A Unicode-functions structure
4208
+ * @param func - The callback function to assign
4209
+ * @param userData - Data to pass to @func
4210
+ * @param destroy - The function to call when `user_data` is not needed anymore
4211
+ */
486
4212
  export declare const unicodeFuncsSetCombiningClassFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4213
+ /**
4214
+ * Sets the implementation function for #hb_unicode_compose_func_t.
4215
+ * @param ufuncs - A Unicode-functions structure
4216
+ * @param func - The callback function to assign
4217
+ * @param userData - Data to pass to @func
4218
+ * @param destroy - The function to call when `user_data` is not needed anymore
4219
+ */
487
4220
  export declare const unicodeFuncsSetComposeFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4221
+ /**
4222
+ * Sets the implementation function for #hb_unicode_decompose_compatibility_func_t.
4223
+ * @param ufuncs - A Unicode-functions structure
4224
+ * @param func - The callback function to assign
4225
+ * @param userData - Data to pass to @func
4226
+ * @param destroy - The function to call when `user_data` is not needed anymore
4227
+ */
488
4228
  export declare const unicodeFuncsSetDecomposeCompatibilityFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4229
+ /**
4230
+ * Sets the implementation function for #hb_unicode_decompose_func_t.
4231
+ * @param ufuncs - A Unicode-functions structure
4232
+ * @param func - The callback function to assign
4233
+ * @param userData - Data to pass to @func
4234
+ * @param destroy - The function to call when `user_data` is not needed anymore
4235
+ */
489
4236
  export declare const unicodeFuncsSetDecomposeFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4237
+ /**
4238
+ * Sets the implementation function for #hb_unicode_eastasian_width_func_t.
4239
+ * @param ufuncs - a Unicode-function structure
4240
+ * @param func - The callback function to assign
4241
+ * @param userData - Data to pass to @func
4242
+ * @param destroy - The function to call when `user_data` is not needed anymore
4243
+ */
490
4244
  export declare const unicodeFuncsSetEastasianWidthFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4245
+ /**
4246
+ * Sets the implementation function for #hb_unicode_general_category_func_t.
4247
+ * @param ufuncs - A Unicode-functions structure
4248
+ * @param func - The callback function to assign
4249
+ * @param userData - Data to pass to @func
4250
+ * @param destroy - The function to call when `user_data` is not needed anymore
4251
+ */
491
4252
  export declare const unicodeFuncsSetGeneralCategoryFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4253
+ /**
4254
+ * Sets the implementation function for #hb_unicode_mirroring_func_t.
4255
+ * @param ufuncs - A Unicode-functions structure
4256
+ * @param func - The callback function to assign
4257
+ * @param userData - Data to pass to @func
4258
+ * @param destroy - The function to call when `user_data` is not needed anymore
4259
+ */
492
4260
  export declare const unicodeFuncsSetMirroringFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4261
+ /**
4262
+ * Sets the implementation function for #hb_unicode_script_func_t.
4263
+ * @param ufuncs - A Unicode-functions structure
4264
+ * @param func - The callback function to assign
4265
+ * @param userData - Data to pass to @func
4266
+ * @param destroy - The function to call when `user_data` is not needed anymore
4267
+ */
493
4268
  export declare const unicodeFuncsSetScriptFunc: (ufuncs: UnicodeFuncsT, func: (...args: unknown[]) => unknown, userData?: number | null, destroy?: (...args: unknown[]) => unknown | null) => void;
4269
+ /**
4270
+ * Retrieves the General Category (gc) property
4271
+ * of code point @unicode.
4272
+ * @param ufuncs - The Unicode-functions structure
4273
+ * @param unicode - The code point to query
4274
+ */
494
4275
  export declare const unicodeGeneralCategory: (ufuncs: UnicodeFuncsT, unicode: number) => UnicodeGeneralCategoryT;
4276
+ /**
4277
+ * Retrieves the Bi-directional Mirroring Glyph code
4278
+ * point defined for code point @unicode.
4279
+ * @param ufuncs - The Unicode-functions structure
4280
+ * @param unicode - The code point to query
4281
+ */
495
4282
  export declare const unicodeMirroring: (ufuncs: UnicodeFuncsT, unicode: number) => number;
4283
+ /**
4284
+ * Retrieves the #hb_script_t script to which code
4285
+ * point `unicode` belongs.
4286
+ * @param ufuncs - The Unicode-functions structure
4287
+ * @param unicode - The code point to query
4288
+ */
496
4289
  export declare const unicodeScript: (ufuncs: UnicodeFuncsT, unicode: number) => ScriptT;
4290
+ /**
4291
+ * Parses a string into a #hb_variation_t.
4292
+ *
4293
+ * The format for specifying variation settings follows. All valid CSS
4294
+ * font-variation-settings values other than 'normal' and 'inherited' are also
4295
+ * accepted, though, not documented below.
4296
+ *
4297
+ * The format is a tag, optionally followed by an equals sign, followed by a
4298
+ * number. For example `wght=500`, or `slnt=-7.5`.
4299
+ * @param str - a string to parse
4300
+ * @param len - length of @str, or -1 if string is `NULL` terminated
4301
+ * @param variation - the #hb_variation_t to initialize with the parsed values
4302
+ */
497
4303
  export declare const variationFromString: (str: number[], len: number, variation: Ref<number>) => number;
4304
+ /**
4305
+ * Converts an #hb_variation_t into a `NULL`-terminated string in the format
4306
+ * understood by hb_variation_from_string(). The client in responsible for
4307
+ * allocating big enough size for @buf, 128 bytes is more than enough.
4308
+ *
4309
+ * Note that the string won't include any whitespace.
4310
+ * @param variation - an #hb_variation_t to convert
4311
+ * @param buf - output string
4312
+ * @param size - the allocated size of @buf
4313
+ */
498
4314
  export declare const variationToString: (variation: number, buf: Ref<string[]>, size: Ref<number>) => void;