@gtkx/ffi 0.1.44 → 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
@@ -10,6 +10,99 @@ import { FileMonitor } from "./file-monitor.js";
10
10
  import { FileOutputStream } from "./file-output-stream.js";
11
11
  import { Mount } from "./mount.js";
12
12
  import * as GLib from "../glib/index.js";
13
+ /**
14
+ * `GFile` is a high level abstraction for manipulating files on a
15
+ * virtual file system. `GFile`s are lightweight, immutable objects
16
+ * that do no I/O upon creation. It is necessary to understand that
17
+ * `GFile` objects do not represent files, merely an identifier for a
18
+ * file. All file content I/O is implemented as streaming operations
19
+ * (see [class@Gio.InputStream] and [class@Gio.OutputStream]).
20
+ *
21
+ * To construct a `GFile`, you can use:
22
+ *
23
+ * - [func@Gio.File.new_for_path] if you have a path.
24
+ * - [func@Gio.File.new_for_uri] if you have a URI.
25
+ * - [func@Gio.File.new_for_commandline_arg] or
26
+ * [func@Gio.File.new_for_commandline_arg_and_cwd] for a command line
27
+ * argument.
28
+ * - [func@Gio.File.new_tmp] to create a temporary file from a template.
29
+ * - [func@Gio.File.new_tmp_async] to asynchronously create a temporary file.
30
+ * - [func@Gio.File.new_tmp_dir_async] to asynchronously create a temporary
31
+ * directory.
32
+ * - [func@Gio.File.parse_name] from a UTF-8 string gotten from
33
+ * [method@Gio.File.get_parse_name].
34
+ * - [func@Gio.File.new_build_filename] or [func@Gio.File.new_build_filenamev]
35
+ * to create a file from path elements.
36
+ *
37
+ * One way to think of a `GFile` is as an abstraction of a pathname. For
38
+ * normal files the system pathname is what is stored internally, but as
39
+ * `GFile`s are extensible it could also be something else that corresponds
40
+ * to a pathname in a userspace implementation of a filesystem.
41
+ *
42
+ * `GFile`s make up hierarchies of directories and files that correspond to
43
+ * the files on a filesystem. You can move through the file system with
44
+ * `GFile` using [method@Gio.File.get_parent] to get an identifier for the
45
+ * parent directory, [method@Gio.File.get_child] to get a child within a
46
+ * directory, and [method@Gio.File.resolve_relative_path] to resolve a relative
47
+ * path between two `GFile`s. There can be multiple hierarchies, so you may not
48
+ * end up at the same root if you repeatedly call [method@Gio.File.get_parent]
49
+ * on two different files.
50
+ *
51
+ * All `GFile`s have a basename (get with [method@Gio.File.get_basename]). These
52
+ * names are byte strings that are used to identify the file on the filesystem
53
+ * (relative to its parent directory) and there is no guarantees that they
54
+ * have any particular charset encoding or even make any sense at all. If
55
+ * you want to use filenames in a user interface you should use the display
56
+ * name that you can get by requesting the
57
+ * `G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME` attribute with
58
+ * [method@Gio.File.query_info]. This is guaranteed to be in UTF-8 and can be
59
+ * used in a user interface. But always store the real basename or the `GFile`
60
+ * to use to actually access the file, because there is no way to go from a
61
+ * display name to the actual name.
62
+ *
63
+ * Using `GFile` as an identifier has the same weaknesses as using a path
64
+ * in that there may be multiple aliases for the same file. For instance,
65
+ * hard or soft links may cause two different `GFile`s to refer to the same
66
+ * file. Other possible causes for aliases are: case insensitive filesystems,
67
+ * short and long names on FAT/NTFS, or bind mounts in Linux. If you want to
68
+ * check if two `GFile`s point to the same file you can query for the
69
+ * `G_FILE_ATTRIBUTE_ID_FILE` attribute. Note that `GFile` does some trivial
70
+ * canonicalization of pathnames passed in, so that trivial differences in
71
+ * the path string used at creation (duplicated slashes, slash at end of
72
+ * path, `.` or `..` path segments, etc) does not create different `GFile`s.
73
+ *
74
+ * Many `GFile` operations have both synchronous and asynchronous versions
75
+ * to suit your application. Asynchronous versions of synchronous functions
76
+ * simply have `_async()` appended to their function names. The asynchronous
77
+ * I/O functions call a [callback@Gio.AsyncReadyCallback] which is then used to
78
+ * finalize the operation, producing a [iface@Gio.AsyncResult] which is then
79
+ * passed to the function’s matching `_finish()` operation.
80
+ *
81
+ * It is highly recommended to use asynchronous calls when running within a
82
+ * shared main loop, such as in the main thread of an application. This avoids
83
+ * I/O operations blocking other sources on the main loop from being dispatched.
84
+ * Synchronous I/O operations should be performed from worker threads. See the
85
+ * introduction to asynchronous programming section
86
+ * for more.
87
+ *
88
+ * Some `GFile` operations almost always take a noticeable amount of time, and
89
+ * so do not have synchronous analogs. Notable cases include:
90
+ *
91
+ * - [method@Gio.File.mount_mountable] to mount a mountable file.
92
+ * - [method@Gio.File.unmount_mountable_with_operation] to unmount a mountable
93
+ * file.
94
+ * - [method@Gio.File.eject_mountable_with_operation] to eject a mountable file.
95
+ *
96
+ * ## Entity Tags
97
+ *
98
+ * One notable feature of `GFile`s are entity tags, or ‘etags’ for
99
+ * short. Entity tags are somewhat like a more abstract version of the
100
+ * traditional mtime, and can be used to quickly determine if the file
101
+ * has been modified from the version on the file system. See the
102
+ * HTTP 1.1
103
+ * specification
104
+ * for HTTP `ETag` headers, which are a very similar concept.
105
+ */
13
106
  export class File {
14
107
  ptr;
15
108
  constructor(ptr) {
@@ -18,6 +111,27 @@ export class File {
18
111
  static fromPtr(ptr) {
19
112
  return new File(ptr);
20
113
  }
114
+ /**
115
+ * Gets an output stream for appending data to the file.
116
+ * If the file doesn't already exist it is created.
117
+ *
118
+ * By default files created are generally readable by everyone,
119
+ * but if you pass %G_FILE_CREATE_PRIVATE in `flags` the file
120
+ * will be made readable only to the current user, to the level that
121
+ * is supported on the target filesystem.
122
+ *
123
+ * If `cancellable` is not %NULL, then the operation can be cancelled
124
+ * by triggering the cancellable object from another thread. If the
125
+ * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
126
+ * returned.
127
+ *
128
+ * Some file systems don't allow all file names, and may return an
129
+ * %G_IO_ERROR_INVALID_FILENAME error. If the file is a directory the
130
+ * %G_IO_ERROR_IS_DIRECTORY error will be returned. Other errors are
131
+ * possible too, and depend on what kind of filesystem the file is on.
132
+ * @param flags - a set of #GFileCreateFlags
133
+ * @param cancellable - optional #GCancellable object,
134
+ */
21
135
  appendTo(flags, cancellable) {
22
136
  const error = { value: null };
23
137
  const ptr = call("libgio-2.0.so.0", "g_file_append_to", [
@@ -51,6 +165,21 @@ export class File {
51
165
  }
52
166
  return getObject(ptr, FileOutputStream);
53
167
  }
168
+ /**
169
+ * Asynchronously opens `file` for appending.
170
+ *
171
+ * For more details, see g_file_append_to() which is
172
+ * the synchronous version of this call.
173
+ *
174
+ * When the operation is finished, `callback` will be called.
175
+ * You can then call g_file_append_to_finish() to get the result
176
+ * of the operation.
177
+ * @param flags - a set of #GFileCreateFlags
178
+ * @param ioPriority - the I/O priority of the request
179
+ * @param cancellable - optional #GCancellable object,
180
+ * @param callback - a #GAsyncReadyCallback
181
+ * @param userData - the data to pass to callback function
182
+ */
54
183
  appendToAsync(flags, ioPriority, cancellable, callback, userData) {
55
184
  call("libgio-2.0.so.0", "g_file_append_to_async", [
56
185
  {
@@ -82,6 +211,11 @@ export class File {
82
211
  },
83
212
  ], { type: "undefined" });
84
213
  }
214
+ /**
215
+ * Finishes an asynchronous file append operation started with
216
+ * g_file_append_to_async().
217
+ * @param res - #GAsyncResult
218
+ */
85
219
  appendToFinish(res) {
86
220
  const error = { value: null };
87
221
  const ptr = call("libgio-2.0.so.0", "g_file_append_to_finish", [
@@ -110,6 +244,19 @@ export class File {
110
244
  }
111
245
  return getObject(ptr, FileOutputStream);
112
246
  }
247
+ /**
248
+ * Prepares the file attribute query string for copying to @file.
249
+ *
250
+ * This function prepares an attribute query string to be
251
+ * passed to g_file_query_info() to get a list of attributes
252
+ * normally copied with the file (see g_file_copy_attributes()
253
+ * for the detailed description). This function is used by the
254
+ * implementation of g_file_copy_attributes() and is useful
255
+ * when one needs to query and set the attributes in two
256
+ * stages (e.g., for recursive move of a directory).
257
+ * @param flags - a set of #GFileCopyFlags
258
+ * @param cancellable - optional #GCancellable object,
259
+ */
113
260
  buildAttributeListForCopy(flags, cancellable) {
114
261
  const error = { value: null };
115
262
  const result = call("libgio-2.0.so.0", "g_file_build_attribute_list_for_copy", [
@@ -143,6 +290,53 @@ export class File {
143
290
  }
144
291
  return result;
145
292
  }
293
+ /**
294
+ * Copies the file `source` to the location specified by @destination.
295
+ * Can not handle recursive copies of directories.
296
+ *
297
+ * If the flag %G_FILE_COPY_OVERWRITE is specified an already
298
+ * existing `destination` file is overwritten.
299
+ *
300
+ * If the flag %G_FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks
301
+ * will be copied as symlinks, otherwise the target of the
302
+ * `source` symlink will be copied.
303
+ *
304
+ * If the flag %G_FILE_COPY_ALL_METADATA is specified then all the metadata
305
+ * that is possible to copy is copied, not just the default subset (which,
306
+ * for instance, does not include the owner, see #GFileInfo).
307
+ *
308
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
309
+ * triggering the cancellable object from another thread. If the operation
310
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
311
+ *
312
+ * If `progress_callback` is not %NULL, then the operation can be monitored
313
+ * by setting this to a #GFileProgressCallback function.
314
+ * `progress_callback_data` will be passed to this function. It is guaranteed
315
+ * that this callback will be called after all data has been transferred with
316
+ * the total number of bytes copied during the operation.
317
+ *
318
+ * If the `source` file does not exist, then the %G_IO_ERROR_NOT_FOUND error
319
+ * is returned, independent on the status of the @destination.
320
+ *
321
+ * If %G_FILE_COPY_OVERWRITE is not specified and the target exists, then
322
+ * the error %G_IO_ERROR_EXISTS is returned.
323
+ *
324
+ * If trying to overwrite a file over a directory, the %G_IO_ERROR_IS_DIRECTORY
325
+ * error is returned. If trying to overwrite a directory with a directory the
326
+ * %G_IO_ERROR_WOULD_MERGE error is returned.
327
+ *
328
+ * If the source is a directory and the target does not exist, or
329
+ * %G_FILE_COPY_OVERWRITE is specified and the target is a file, then the
330
+ * %G_IO_ERROR_WOULD_RECURSE error is returned.
331
+ *
332
+ * If you are interested in copying the #GFile object itself (not the on-disk
333
+ * file), see g_file_dup().
334
+ * @param destination - destination #GFile
335
+ * @param flags - set of #GFileCopyFlags
336
+ * @param cancellable - optional #GCancellable object,
337
+ * @param progressCallback - function to callback with
338
+ * @param progressCallbackData - user data to pass to @progress_callback
339
+ */
146
340
  copy(destination, flags, cancellable, progressCallback, progressCallbackData) {
147
341
  const error = { value: null };
148
342
  const result = call("libgio-2.0.so.0", "g_file_copy", [
@@ -190,6 +384,25 @@ export class File {
190
384
  }
191
385
  return result;
192
386
  }
387
+ /**
388
+ * Copies the file `source` to the location specified by `destination` asynchronously. For details of the behaviour, see g_file_copy().
389
+ *
390
+ * If `progress_callback` is not %NULL, then that function that will be called
391
+ * just like in g_file_copy(). The callback will run in the default main context
392
+ * of the thread calling g_file_copy_async() — the same context as `callback` is
393
+ * run in.
394
+ *
395
+ * When the operation is finished, `callback` will be called. You can then call
396
+ * g_file_copy_finish() to get the result of the operation.
397
+ * @param destination - destination #GFile
398
+ * @param flags - set of #GFileCopyFlags
399
+ * @param ioPriority - the I/O priority of the request
400
+ * @param cancellable - optional #GCancellable object,
401
+ * @param progressCallback - function to callback with progress information, or %NULL if
402
+ * @param progressCallbackData - user data to pass to @progress_callback
403
+ * @param callback - a #GAsyncReadyCallback
404
+ * @param userData - the data to pass to callback
405
+ */
193
406
  copyAsync(destination, flags, ioPriority, cancellable, progressCallback, progressCallbackData, callback, userData) {
194
407
  call("libgio-2.0.so.0", "g_file_copy_async", [
195
408
  {
@@ -235,6 +448,16 @@ export class File {
235
448
  },
236
449
  ], { type: "undefined" });
237
450
  }
451
+ /**
452
+ * Version of [method@Gio.File.copy_async] using closures instead of callbacks for
453
+ * easier binding in other languages.
454
+ * @param destination - destination [type@Gio.File]
455
+ * @param flags - set of [flags@Gio.FileCopyFlags]
456
+ * @param ioPriority - the I/O priority of the request
457
+ * @param cancellable - optional [class@Gio.Cancellable] object,
458
+ * @param progressCallbackClosure - [type@GObject.Closure] to invoke with progress
459
+ * @param readyCallbackClosure - [type@GObject.Closure] to invoke when the request is satisfied
460
+ */
238
461
  copyAsyncWithClosures(destination, flags, ioPriority, readyCallbackClosure, cancellable, progressCallbackClosure) {
239
462
  call("libgio-2.0.so.0", "g_file_copy_async_with_closures", [
240
463
  {
@@ -279,6 +502,19 @@ export class File {
279
502
  },
280
503
  ], { type: "undefined" });
281
504
  }
505
+ /**
506
+ * Copies the file attributes from `source` to @destination.
507
+ *
508
+ * Normally only a subset of the file attributes are copied,
509
+ * those that are copies in a normal file copy operation
510
+ * (which for instance does not include e.g. owner). However
511
+ * if %G_FILE_COPY_ALL_METADATA is specified in @flags, then
512
+ * all the metadata that is possible to copy is copied. This
513
+ * is useful when implementing move by copy + delete source.
514
+ * @param destination - a #GFile to copy attributes to
515
+ * @param flags - a set of #GFileCopyFlags
516
+ * @param cancellable - optional #GCancellable object,
517
+ */
282
518
  copyAttributes(destination, flags, cancellable) {
283
519
  const error = { value: null };
284
520
  const result = call("libgio-2.0.so.0", "g_file_copy_attributes", [
@@ -316,6 +552,10 @@ export class File {
316
552
  }
317
553
  return result;
318
554
  }
555
+ /**
556
+ * Finishes copying the file started with g_file_copy_async().
557
+ * @param res - a #GAsyncResult
558
+ */
319
559
  copyFinish(res) {
320
560
  const error = { value: null };
321
561
  const result = call("libgio-2.0.so.0", "g_file_copy_finish", [
@@ -344,6 +584,29 @@ export class File {
344
584
  }
345
585
  return result;
346
586
  }
587
+ /**
588
+ * Creates a new file and returns an output stream for writing to it.
589
+ * The file must not already exist.
590
+ *
591
+ * By default files created are generally readable by everyone,
592
+ * but if you pass %G_FILE_CREATE_PRIVATE in `flags` the file
593
+ * will be made readable only to the current user, to the level
594
+ * that is supported on the target filesystem.
595
+ *
596
+ * If `cancellable` is not %NULL, then the operation can be cancelled
597
+ * by triggering the cancellable object from another thread. If the
598
+ * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
599
+ * returned.
600
+ *
601
+ * If a file or directory with this name already exists the
602
+ * %G_IO_ERROR_EXISTS error will be returned. Some file systems don't
603
+ * allow all file names, and may return an %G_IO_ERROR_INVALID_FILENAME
604
+ * error, and if the name is to long %G_IO_ERROR_FILENAME_TOO_LONG will
605
+ * be returned. Other errors are possible too, and depend on what kind
606
+ * of filesystem the file is on.
607
+ * @param flags - a set of #GFileCreateFlags
608
+ * @param cancellable - optional #GCancellable object,
609
+ */
347
610
  create(flags, cancellable) {
348
611
  const error = { value: null };
349
612
  const ptr = call("libgio-2.0.so.0", "g_file_create", [
@@ -377,6 +640,22 @@ export class File {
377
640
  }
378
641
  return getObject(ptr, FileOutputStream);
379
642
  }
643
+ /**
644
+ * Asynchronously creates a new file and returns an output stream
645
+ * for writing to it. The file must not already exist.
646
+ *
647
+ * For more details, see g_file_create() which is
648
+ * the synchronous version of this call.
649
+ *
650
+ * When the operation is finished, `callback` will be called.
651
+ * You can then call g_file_create_finish() to get the result
652
+ * of the operation.
653
+ * @param flags - a set of #GFileCreateFlags
654
+ * @param ioPriority - the I/O priority of the request
655
+ * @param cancellable - optional #GCancellable object,
656
+ * @param callback - a #GAsyncReadyCallback
657
+ * @param userData - the data to pass to callback function
658
+ */
380
659
  createAsync(flags, ioPriority, cancellable, callback, userData) {
381
660
  call("libgio-2.0.so.0", "g_file_create_async", [
382
661
  {
@@ -408,6 +687,11 @@ export class File {
408
687
  },
409
688
  ], { type: "undefined" });
410
689
  }
690
+ /**
691
+ * Finishes an asynchronous file create operation started with
692
+ * g_file_create_async().
693
+ * @param res - a #GAsyncResult
694
+ */
411
695
  createFinish(res) {
412
696
  const error = { value: null };
413
697
  const ptr = call("libgio-2.0.so.0", "g_file_create_finish", [
@@ -436,6 +720,33 @@ export class File {
436
720
  }
437
721
  return getObject(ptr, FileOutputStream);
438
722
  }
723
+ /**
724
+ * Creates a new file and returns a stream for reading and
725
+ * writing to it. The file must not already exist.
726
+ *
727
+ * By default files created are generally readable by everyone,
728
+ * but if you pass %G_FILE_CREATE_PRIVATE in `flags` the file
729
+ * will be made readable only to the current user, to the level
730
+ * that is supported on the target filesystem.
731
+ *
732
+ * If `cancellable` is not %NULL, then the operation can be cancelled
733
+ * by triggering the cancellable object from another thread. If the
734
+ * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
735
+ * returned.
736
+ *
737
+ * If a file or directory with this name already exists, the
738
+ * %G_IO_ERROR_EXISTS error will be returned. Some file systems don't
739
+ * allow all file names, and may return an %G_IO_ERROR_INVALID_FILENAME
740
+ * error, and if the name is too long, %G_IO_ERROR_FILENAME_TOO_LONG
741
+ * will be returned. Other errors are possible too, and depend on what
742
+ * kind of filesystem the file is on.
743
+ *
744
+ * Note that in many non-local file cases read and write streams are
745
+ * not supported, so make sure you really need to do read and write
746
+ * streaming, rather than just opening for reading or writing.
747
+ * @param flags - a set of #GFileCreateFlags
748
+ * @param cancellable - optional #GCancellable object,
749
+ */
439
750
  createReadwrite(flags, cancellable) {
440
751
  const error = { value: null };
441
752
  const ptr = call("libgio-2.0.so.0", "g_file_create_readwrite", [
@@ -469,6 +780,22 @@ export class File {
469
780
  }
470
781
  return getObject(ptr, FileIOStream);
471
782
  }
783
+ /**
784
+ * Asynchronously creates a new file and returns a stream
785
+ * for reading and writing to it. The file must not already exist.
786
+ *
787
+ * For more details, see g_file_create_readwrite() which is
788
+ * the synchronous version of this call.
789
+ *
790
+ * When the operation is finished, `callback` will be called.
791
+ * You can then call g_file_create_readwrite_finish() to get
792
+ * the result of the operation.
793
+ * @param flags - a set of #GFileCreateFlags
794
+ * @param ioPriority - the I/O priority of the request
795
+ * @param cancellable - optional #GCancellable object,
796
+ * @param callback - a #GAsyncReadyCallback
797
+ * @param userData - the data to pass to callback function
798
+ */
472
799
  createReadwriteAsync(flags, ioPriority, cancellable, callback, userData) {
473
800
  call("libgio-2.0.so.0", "g_file_create_readwrite_async", [
474
801
  {
@@ -500,6 +827,11 @@ export class File {
500
827
  },
501
828
  ], { type: "undefined" });
502
829
  }
830
+ /**
831
+ * Finishes an asynchronous file create operation started with
832
+ * g_file_create_readwrite_async().
833
+ * @param res - a #GAsyncResult
834
+ */
503
835
  createReadwriteFinish(res) {
504
836
  const error = { value: null };
505
837
  const ptr = call("libgio-2.0.so.0", "g_file_create_readwrite_finish", [
@@ -528,6 +860,30 @@ export class File {
528
860
  }
529
861
  return getObject(ptr, FileIOStream);
530
862
  }
863
+ /**
864
+ * Deletes a file. If the `file` is a directory, it will only be
865
+ * deleted if it is empty. This has the same semantics as g_unlink().
866
+ *
867
+ * If `file` doesn’t exist, %G_IO_ERROR_NOT_FOUND will be returned. This allows
868
+ * for deletion to be implemented avoiding
869
+ * [time-of-check to time-of-use races](https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use):
870
+ * |[
871
+ * g_autoptr(GError) local_error = NULL;
872
+ * if (!g_file_delete (my_file, my_cancellable, &local_error) &&
873
+ * !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
874
+ * {
875
+ * // deletion failed for some reason other than the file not existing:
876
+ * // so report the error
877
+ * g_warning ("Failed to delete %s: %s",
878
+ * g_file_peek_path (my_file), local_error->message);
879
+ * }
880
+ * ]|
881
+ *
882
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
883
+ * triggering the cancellable object from another thread. If the operation
884
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
885
+ * @param cancellable - optional #GCancellable object,
886
+ */
531
887
  delete(cancellable) {
532
888
  const error = { value: null };
533
889
  const result = call("libgio-2.0.so.0", "g_file_delete", [
@@ -557,6 +913,15 @@ export class File {
557
913
  }
558
914
  return result;
559
915
  }
916
+ /**
917
+ * Asynchronously delete a file. If the `file` is a directory, it will
918
+ * only be deleted if it is empty. This has the same semantics as
919
+ * g_unlink().
920
+ * @param ioPriority - the I/O priority of the request
921
+ * @param cancellable - optional #GCancellable object,
922
+ * @param callback - a #GAsyncReadyCallback to call
923
+ * @param userData - the data to pass to callback function
924
+ */
560
925
  deleteAsync(ioPriority, cancellable, callback, userData) {
561
926
  call("libgio-2.0.so.0", "g_file_delete_async", [
562
927
  {
@@ -584,6 +949,10 @@ export class File {
584
949
  },
585
950
  ], { type: "undefined" });
586
951
  }
952
+ /**
953
+ * Finishes deleting a file started with g_file_delete_async().
954
+ * @param result - a #GAsyncResult
955
+ */
587
956
  deleteFinish(result) {
588
957
  const error = { value: null };
589
958
  const _result = call("libgio-2.0.so.0", "g_file_delete_finish", [
@@ -612,6 +981,18 @@ export class File {
612
981
  }
613
982
  return _result;
614
983
  }
984
+ /**
985
+ * Duplicates a #GFile handle. This operation does not duplicate
986
+ * the actual file or directory represented by the #GFile; see
987
+ * g_file_copy() if attempting to copy a file.
988
+ *
989
+ * g_file_dup() is useful when a second handle is needed to the same underlying
990
+ * file, for use in a separate thread (#GFile is not thread-safe). For use
991
+ * within the same thread, use g_object_ref() to increment the existing object’s
992
+ * reference count.
993
+ *
994
+ * This call does no blocking I/O.
995
+ */
615
996
  dup() {
616
997
  const ptr = call("libgio-2.0.so.0", "g_file_dup", [
617
998
  {
@@ -621,6 +1002,20 @@ export class File {
621
1002
  ], { type: "gobject", borrowed: true });
622
1003
  return getObject(ptr, File);
623
1004
  }
1005
+ /**
1006
+ * Starts an asynchronous eject on a mountable.
1007
+ * When this operation has completed, `callback` will be called with
1008
+ * `user_user` data, and the operation can be finalized with
1009
+ * g_file_eject_mountable_finish().
1010
+ *
1011
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
1012
+ * triggering the cancellable object from another thread. If the operation
1013
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
1014
+ * @param flags - flags affecting the operation
1015
+ * @param cancellable - optional #GCancellable object,
1016
+ * @param callback - a #GAsyncReadyCallback
1017
+ * @param userData - the data to pass to callback function
1018
+ */
624
1019
  ejectMountable(flags, cancellable, callback, userData) {
625
1020
  call("libgio-2.0.so.0", "g_file_eject_mountable", [
626
1021
  {
@@ -648,6 +1043,11 @@ export class File {
648
1043
  },
649
1044
  ], { type: "undefined" });
650
1045
  }
1046
+ /**
1047
+ * Finishes an asynchronous eject operation started by
1048
+ * g_file_eject_mountable().
1049
+ * @param result - a #GAsyncResult
1050
+ */
651
1051
  ejectMountableFinish(result) {
652
1052
  const error = { value: null };
653
1053
  const _result = call("libgio-2.0.so.0", "g_file_eject_mountable_finish", [
@@ -676,6 +1076,21 @@ export class File {
676
1076
  }
677
1077
  return _result;
678
1078
  }
1079
+ /**
1080
+ * Starts an asynchronous eject on a mountable.
1081
+ * When this operation has completed, `callback` will be called with
1082
+ * `user_user` data, and the operation can be finalized with
1083
+ * g_file_eject_mountable_with_operation_finish().
1084
+ *
1085
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
1086
+ * triggering the cancellable object from another thread. If the operation
1087
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
1088
+ * @param flags - flags affecting the operation
1089
+ * @param mountOperation - a #GMountOperation,
1090
+ * @param cancellable - optional #GCancellable object,
1091
+ * @param callback - a #GAsyncReadyCallback
1092
+ * @param userData - the data to pass to callback function
1093
+ */
679
1094
  ejectMountableWithOperation(flags, mountOperation, cancellable, callback, userData) {
680
1095
  call("libgio-2.0.so.0", "g_file_eject_mountable_with_operation", [
681
1096
  {
@@ -708,6 +1123,11 @@ export class File {
708
1123
  },
709
1124
  ], { type: "undefined" });
710
1125
  }
1126
+ /**
1127
+ * Finishes an asynchronous eject operation started by
1128
+ * g_file_eject_mountable_with_operation().
1129
+ * @param result - a #GAsyncResult
1130
+ */
711
1131
  ejectMountableWithOperationFinish(result) {
712
1132
  const error = { value: null };
713
1133
  const _result = call("libgio-2.0.so.0", "g_file_eject_mountable_with_operation_finish", [
@@ -736,6 +1156,36 @@ export class File {
736
1156
  }
737
1157
  return _result;
738
1158
  }
1159
+ /**
1160
+ * Gets the requested information about the files in a directory.
1161
+ * The result is a #GFileEnumerator object that will give out
1162
+ * #GFileInfo objects for all the files in the directory.
1163
+ *
1164
+ * The `attributes` value is a string that specifies the file
1165
+ * attributes that should be gathered. It is not an error if
1166
+ * it's not possible to read a particular requested attribute
1167
+ * from a file - it just won't be set. `attributes` should
1168
+ * be a comma-separated list of attributes or attribute wildcards.
1169
+ * The wildcard "*" means all attributes, and a wildcard like
1170
+ * "standard::*" means all attributes in the standard namespace.
1171
+ * An example attribute query be "standard::*,owner::user".
1172
+ * The standard attributes are available as defines, like
1173
+ * %G_FILE_ATTRIBUTE_STANDARD_NAME. %G_FILE_ATTRIBUTE_STANDARD_NAME should
1174
+ * always be specified if you plan to call g_file_enumerator_get_child() or
1175
+ * g_file_enumerator_iterate() on the returned enumerator.
1176
+ *
1177
+ * If `cancellable` is not %NULL, then the operation can be cancelled
1178
+ * by triggering the cancellable object from another thread. If the
1179
+ * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
1180
+ * returned.
1181
+ *
1182
+ * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will
1183
+ * be returned. If the file is not a directory, the %G_IO_ERROR_NOT_DIRECTORY
1184
+ * error will be returned. Other errors are possible too.
1185
+ * @param attributes - an attribute query string
1186
+ * @param flags - a set of #GFileQueryInfoFlags
1187
+ * @param cancellable - optional #GCancellable object,
1188
+ */
739
1189
  enumerateChildren(attributes, flags, cancellable) {
740
1190
  const error = { value: null };
741
1191
  const ptr = call("libgio-2.0.so.0", "g_file_enumerate_children", [
@@ -773,6 +1223,24 @@ export class File {
773
1223
  }
774
1224
  return getObject(ptr, FileEnumerator);
775
1225
  }
1226
+ /**
1227
+ * Asynchronously gets the requested information about the files
1228
+ * in a directory. The result is a #GFileEnumerator object that will
1229
+ * give out #GFileInfo objects for all the files in the directory.
1230
+ *
1231
+ * For more details, see g_file_enumerate_children() which is
1232
+ * the synchronous version of this call.
1233
+ *
1234
+ * When the operation is finished, `callback` will be called. You can
1235
+ * then call g_file_enumerate_children_finish() to get the result of
1236
+ * the operation.
1237
+ * @param attributes - an attribute query string
1238
+ * @param flags - a set of #GFileQueryInfoFlags
1239
+ * @param ioPriority - the I/O priority of the request
1240
+ * @param cancellable - optional #GCancellable object,
1241
+ * @param callback - a #GAsyncReadyCallback
1242
+ * @param userData - the data to pass to callback function
1243
+ */
776
1244
  enumerateChildrenAsync(attributes, flags, ioPriority, cancellable, callback, userData) {
777
1245
  call("libgio-2.0.so.0", "g_file_enumerate_children_async", [
778
1246
  {
@@ -808,6 +1276,11 @@ export class File {
808
1276
  },
809
1277
  ], { type: "undefined" });
810
1278
  }
1279
+ /**
1280
+ * Finishes an async enumerate children operation.
1281
+ * See g_file_enumerate_children_async().
1282
+ * @param res - a #GAsyncResult
1283
+ */
811
1284
  enumerateChildrenFinish(res) {
812
1285
  const error = { value: null };
813
1286
  const ptr = call("libgio-2.0.so.0", "g_file_enumerate_children_finish", [
@@ -836,6 +1309,16 @@ export class File {
836
1309
  }
837
1310
  return getObject(ptr, FileEnumerator);
838
1311
  }
1312
+ /**
1313
+ * Checks if the two given #GFiles refer to the same file.
1314
+ *
1315
+ * Note that two #GFiles that differ can still refer to the same
1316
+ * file on the filesystem due to various forms of filename
1317
+ * aliasing.
1318
+ *
1319
+ * This call does no blocking I/O.
1320
+ * @param file2 - the second #GFile
1321
+ */
839
1322
  equal(file2) {
840
1323
  return call("libgio-2.0.so.0", "g_file_equal", [
841
1324
  {
@@ -848,6 +1331,18 @@ export class File {
848
1331
  },
849
1332
  ], { type: "boolean" });
850
1333
  }
1334
+ /**
1335
+ * Gets a #GMount for the #GFile.
1336
+ *
1337
+ * #GMount is returned only for user interesting locations, see
1338
+ * #GVolumeMonitor. If the #GFileIface for `file` does not have a #mount,
1339
+ * `error` will be set to %G_IO_ERROR_NOT_FOUND and %NULL #will be returned.
1340
+ *
1341
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
1342
+ * triggering the cancellable object from another thread. If the operation
1343
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
1344
+ * @param cancellable - optional #GCancellable object,
1345
+ */
851
1346
  findEnclosingMount(cancellable) {
852
1347
  const error = { value: null };
853
1348
  const ptr = call("libgio-2.0.so.0", "g_file_find_enclosing_mount", [
@@ -877,6 +1372,20 @@ export class File {
877
1372
  }
878
1373
  return getObject(ptr, Mount);
879
1374
  }
1375
+ /**
1376
+ * Asynchronously gets the mount for the file.
1377
+ *
1378
+ * For more details, see g_file_find_enclosing_mount() which is
1379
+ * the synchronous version of this call.
1380
+ *
1381
+ * When the operation is finished, `callback` will be called.
1382
+ * You can then call g_file_find_enclosing_mount_finish() to
1383
+ * get the result of the operation.
1384
+ * @param ioPriority - the I/O priority of the request
1385
+ * @param cancellable - optional #GCancellable object,
1386
+ * @param callback - a #GAsyncReadyCallback
1387
+ * @param userData - the data to pass to callback function
1388
+ */
880
1389
  findEnclosingMountAsync(ioPriority, cancellable, callback, userData) {
881
1390
  call("libgio-2.0.so.0", "g_file_find_enclosing_mount_async", [
882
1391
  {
@@ -904,6 +1413,11 @@ export class File {
904
1413
  },
905
1414
  ], { type: "undefined" });
906
1415
  }
1416
+ /**
1417
+ * Finishes an asynchronous find mount request.
1418
+ * See g_file_find_enclosing_mount_async().
1419
+ * @param res - a #GAsyncResult
1420
+ */
907
1421
  findEnclosingMountFinish(res) {
908
1422
  const error = { value: null };
909
1423
  const ptr = call("libgio-2.0.so.0", "g_file_find_enclosing_mount_finish", [
@@ -932,6 +1446,21 @@ export class File {
932
1446
  }
933
1447
  return getObject(ptr, Mount);
934
1448
  }
1449
+ /**
1450
+ * Gets the base name (the last component of the path) for a given #GFile.
1451
+ *
1452
+ * If called for the top level of a system (such as the filesystem root
1453
+ * or a uri like sftp://host/) it will return a single directory separator
1454
+ * (and on Windows, possibly a drive letter).
1455
+ *
1456
+ * The base name is a byte string (not UTF-8). It has no defined encoding
1457
+ * or rules other than it may not contain zero bytes. If you want to use
1458
+ * filenames in a user interface you should use the display name that you
1459
+ * can get by requesting the %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME
1460
+ * attribute with g_file_query_info().
1461
+ *
1462
+ * This call does no blocking I/O.
1463
+ */
935
1464
  getBasename() {
936
1465
  return call("libgio-2.0.so.0", "g_file_get_basename", [
937
1466
  {
@@ -940,6 +1469,16 @@ export class File {
940
1469
  },
941
1470
  ], { type: "string" });
942
1471
  }
1472
+ /**
1473
+ * Gets a child of `file` with basename equal to @name.
1474
+ *
1475
+ * Note that the file with that specific name might not exist, but
1476
+ * you can still have a #GFile that points to it. You can use this
1477
+ * for instance to create that file.
1478
+ *
1479
+ * This call does no blocking I/O.
1480
+ * @param name - string containing the child's basename
1481
+ */
943
1482
  getChild(name) {
944
1483
  const ptr = call("libgio-2.0.so.0", "g_file_get_child", [
945
1484
  {
@@ -953,6 +1492,17 @@ export class File {
953
1492
  ], { type: "gobject", borrowed: true });
954
1493
  return getObject(ptr, File);
955
1494
  }
1495
+ /**
1496
+ * Gets the child of `file` for a given `display_name` (i.e. a UTF-8
1497
+ * version of the name). If this function fails, it returns %NULL
1498
+ * and `error` will be set. This is very useful when constructing a
1499
+ * #GFile for a new file and the user entered the filename in the
1500
+ * user interface, for instance when you select a directory and
1501
+ * type a filename in the file selector.
1502
+ *
1503
+ * This call does no blocking I/O.
1504
+ * @param displayName - string to a possible child
1505
+ */
956
1506
  getChildForDisplayName(displayName) {
957
1507
  const error = { value: null };
958
1508
  const ptr = call("libgio-2.0.so.0", "g_file_get_child_for_display_name", [
@@ -981,6 +1531,13 @@ export class File {
981
1531
  }
982
1532
  return getObject(ptr, File);
983
1533
  }
1534
+ /**
1535
+ * Gets the parent directory for the @file.
1536
+ * If the `file` represents the root directory of the
1537
+ * file system, then %NULL will be returned.
1538
+ *
1539
+ * This call does no blocking I/O.
1540
+ */
984
1541
  getParent() {
985
1542
  const ptr = call("libgio-2.0.so.0", "g_file_get_parent", [
986
1543
  {
@@ -992,6 +1549,22 @@ export class File {
992
1549
  return null;
993
1550
  return getObject(ptr, File);
994
1551
  }
1552
+ /**
1553
+ * Gets the parse name of the @file.
1554
+ * A parse name is a UTF-8 string that describes the
1555
+ * file such that one can get the #GFile back using
1556
+ * g_file_parse_name().
1557
+ *
1558
+ * This is generally used to show the #GFile as a nice
1559
+ * full-pathname kind of string in a user interface,
1560
+ * like in a location entry.
1561
+ *
1562
+ * For local files with names that can safely be converted
1563
+ * to UTF-8 the pathname is used, otherwise the IRI is used
1564
+ * (a form of URI that allows UTF-8 characters unescaped).
1565
+ *
1566
+ * This call does no blocking I/O.
1567
+ */
995
1568
  getParseName() {
996
1569
  return call("libgio-2.0.so.0", "g_file_get_parse_name", [
997
1570
  {
@@ -1000,6 +1573,12 @@ export class File {
1000
1573
  },
1001
1574
  ], { type: "string" });
1002
1575
  }
1576
+ /**
1577
+ * Gets the local pathname for #GFile, if one exists. If non-%NULL, this is
1578
+ * guaranteed to be an absolute, canonical path. It might contain symlinks.
1579
+ *
1580
+ * This call does no blocking I/O.
1581
+ */
1003
1582
  getPath() {
1004
1583
  return call("libgio-2.0.so.0", "g_file_get_path", [
1005
1584
  {
@@ -1008,6 +1587,12 @@ export class File {
1008
1587
  },
1009
1588
  ], { type: "string" });
1010
1589
  }
1590
+ /**
1591
+ * Gets the path for `descendant` relative to @parent.
1592
+ *
1593
+ * This call does no blocking I/O.
1594
+ * @param descendant - input #GFile
1595
+ */
1011
1596
  getRelativePath(descendant) {
1012
1597
  return call("libgio-2.0.so.0", "g_file_get_relative_path", [
1013
1598
  {
@@ -1020,6 +1605,11 @@ export class File {
1020
1605
  },
1021
1606
  ], { type: "string" });
1022
1607
  }
1608
+ /**
1609
+ * Gets the URI for the @file.
1610
+ *
1611
+ * This call does no blocking I/O.
1612
+ */
1023
1613
  getUri() {
1024
1614
  return call("libgio-2.0.so.0", "g_file_get_uri", [
1025
1615
  {
@@ -1028,6 +1618,19 @@ export class File {
1028
1618
  },
1029
1619
  ], { type: "string" });
1030
1620
  }
1621
+ /**
1622
+ * Gets the URI scheme for a #GFile.
1623
+ * RFC 3986 decodes the scheme as:
1624
+ * |[
1625
+ * URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
1626
+ * ]|
1627
+ * Common schemes include "file", "http", "ftp", etc.
1628
+ *
1629
+ * The scheme can be different from the one used to construct the #GFile,
1630
+ * in that it might be replaced with one that is logically equivalent to the #GFile.
1631
+ *
1632
+ * This call does no blocking I/O.
1633
+ */
1031
1634
  getUriScheme() {
1032
1635
  return call("libgio-2.0.so.0", "g_file_get_uri_scheme", [
1033
1636
  {
@@ -1036,6 +1639,14 @@ export class File {
1036
1639
  },
1037
1640
  ], { type: "string" });
1038
1641
  }
1642
+ /**
1643
+ * Checks if `file` has a parent, and optionally, if it is @parent.
1644
+ *
1645
+ * If `parent` is %NULL then this function returns %TRUE if `file` has any
1646
+ * parent at all. If `parent` is non-%NULL then %TRUE is only returned
1647
+ * if `file` is an immediate child of @parent.
1648
+ * @param parent - the parent to check for, or %NULL
1649
+ */
1039
1650
  hasParent(parent) {
1040
1651
  return call("libgio-2.0.so.0", "g_file_has_parent", [
1041
1652
  {
@@ -1049,6 +1660,23 @@ export class File {
1049
1660
  },
1050
1661
  ], { type: "boolean" });
1051
1662
  }
1663
+ /**
1664
+ * Checks whether `file` has the prefix specified by @prefix.
1665
+ *
1666
+ * In other words, if the names of initial elements of @file's
1667
+ * pathname match @prefix. Only full pathname elements are matched,
1668
+ * so a path like /foo is not considered a prefix of /foobar, only
1669
+ * of /foo/bar.
1670
+ *
1671
+ * A #GFile is not a prefix of itself. If you want to check for
1672
+ * equality, use g_file_equal().
1673
+ *
1674
+ * This call does no I/O, as it works purely on names. As such it can
1675
+ * sometimes return %FALSE even if `file` is inside a `prefix` (from a
1676
+ * filesystem point of view), because the prefix of `file` is an alias
1677
+ * of @prefix.
1678
+ * @param prefix - input #GFile
1679
+ */
1052
1680
  hasPrefix(prefix) {
1053
1681
  return call("libgio-2.0.so.0", "g_file_has_prefix", [
1054
1682
  {
@@ -1061,6 +1689,12 @@ export class File {
1061
1689
  },
1062
1690
  ], { type: "boolean" });
1063
1691
  }
1692
+ /**
1693
+ * Checks to see if a #GFile has a given URI scheme.
1694
+ *
1695
+ * This call does no blocking I/O.
1696
+ * @param uriScheme - a string containing a URI scheme
1697
+ */
1064
1698
  hasUriScheme(uriScheme) {
1065
1699
  return call("libgio-2.0.so.0", "g_file_has_uri_scheme", [
1066
1700
  {
@@ -1073,6 +1707,11 @@ export class File {
1073
1707
  },
1074
1708
  ], { type: "boolean" });
1075
1709
  }
1710
+ /**
1711
+ * Creates a hash value for a #GFile.
1712
+ *
1713
+ * This call does no blocking I/O.
1714
+ */
1076
1715
  hash() {
1077
1716
  return call("libgio-2.0.so.0", "g_file_hash", [
1078
1717
  {
@@ -1081,6 +1720,19 @@ export class File {
1081
1720
  },
1082
1721
  ], { type: "int", size: 32, unsigned: true });
1083
1722
  }
1723
+ /**
1724
+ * Checks to see if a file is native to the platform.
1725
+ *
1726
+ * A native file is one expressed in the platform-native filename format,
1727
+ * e.g. "C:\Windows" or "/usr/bin/". This does not mean the file is local,
1728
+ * as it might be on a locally mounted remote filesystem.
1729
+ *
1730
+ * On some systems non-native files may be available using the native
1731
+ * filesystem via a userspace filesystem (FUSE), in these cases this call
1732
+ * will return %FALSE, but g_file_get_path() will still return a native path.
1733
+ *
1734
+ * This call does no blocking I/O.
1735
+ */
1084
1736
  isNative() {
1085
1737
  return call("libgio-2.0.so.0", "g_file_is_native", [
1086
1738
  {
@@ -1089,6 +1741,21 @@ export class File {
1089
1741
  },
1090
1742
  ], { type: "boolean" });
1091
1743
  }
1744
+ /**
1745
+ * Loads the contents of `file` and returns it as #GBytes.
1746
+ *
1747
+ * If `file` is a resource:// based URI, the resulting bytes will reference the
1748
+ * embedded resource instead of a copy. Otherwise, this is equivalent to calling
1749
+ * g_file_load_contents() and g_bytes_new_take().
1750
+ *
1751
+ * For resources, `etag_out` will be set to %NULL.
1752
+ *
1753
+ * The data contained in the resulting #GBytes is always zero-terminated, but
1754
+ * this is not included in the #GBytes length. The resulting #GBytes should be
1755
+ * freed with g_bytes_unref() when no longer in use.
1756
+ * @param cancellable - a #GCancellable or %NULL
1757
+ * @param etagOut - a location to place the current
1758
+ */
1092
1759
  loadBytes(cancellable, etagOut) {
1093
1760
  const error = { value: null };
1094
1761
  const ptr = call("libgio-2.0.so.0", "g_file_load_bytes", [
@@ -1128,6 +1795,21 @@ export class File {
1128
1795
  }
1129
1796
  return getObject(ptr, GLib.Bytes);
1130
1797
  }
1798
+ /**
1799
+ * Asynchronously loads the contents of `file` as #GBytes.
1800
+ *
1801
+ * If `file` is a resource:// based URI, the resulting bytes will reference the
1802
+ * embedded resource instead of a copy. Otherwise, this is equivalent to calling
1803
+ * g_file_load_contents_async() and g_bytes_new_take().
1804
+ *
1805
+ * `callback` should call g_file_load_bytes_finish() to get the result of this
1806
+ * asynchronous operation.
1807
+ *
1808
+ * See g_file_load_bytes() for more information.
1809
+ * @param cancellable - a #GCancellable or %NULL
1810
+ * @param callback - a #GAsyncReadyCallback
1811
+ * @param userData - the data to pass to callback function
1812
+ */
1131
1813
  loadBytesAsync(cancellable, callback, userData) {
1132
1814
  call("libgio-2.0.so.0", "g_file_load_bytes_async", [
1133
1815
  {
@@ -1151,6 +1833,19 @@ export class File {
1151
1833
  },
1152
1834
  ], { type: "undefined" });
1153
1835
  }
1836
+ /**
1837
+ * Completes an asynchronous request to g_file_load_bytes_async().
1838
+ *
1839
+ * For resources, `etag_out` will be set to %NULL.
1840
+ *
1841
+ * The data contained in the resulting #GBytes is always zero-terminated, but
1842
+ * this is not included in the #GBytes length. The resulting #GBytes should be
1843
+ * freed with g_bytes_unref() when no longer in use.
1844
+ *
1845
+ * See g_file_load_bytes() for more information.
1846
+ * @param result - a #GAsyncResult provided to the callback
1847
+ * @param etagOut - a location to place the current
1848
+ */
1154
1849
  loadBytesFinish(result, etagOut) {
1155
1850
  const error = { value: null };
1156
1851
  const ptr = call("libgio-2.0.so.0", "g_file_load_bytes_finish", [
@@ -1189,6 +1884,20 @@ export class File {
1189
1884
  }
1190
1885
  return getObject(ptr, GLib.Bytes);
1191
1886
  }
1887
+ /**
1888
+ * Loads the content of the file into memory. The data is always
1889
+ * zero-terminated, but this is not included in the resultant @length.
1890
+ * The returned `contents` should be freed with g_free() when no longer
1891
+ * needed.
1892
+ *
1893
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
1894
+ * triggering the cancellable object from another thread. If the operation
1895
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
1896
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
1897
+ * @param contents - a location to place the contents of the file
1898
+ * @param length - a location to place the length of the contents of the file,
1899
+ * @param etagOut - a location to place the current entity tag for the file,
1900
+ */
1192
1901
  loadContents(contents, cancellable, length, etagOut) {
1193
1902
  const error = { value: null };
1194
1903
  const result = call("libgio-2.0.so.0", "g_file_load_contents", [
@@ -1241,6 +1950,24 @@ export class File {
1241
1950
  }
1242
1951
  return result;
1243
1952
  }
1953
+ /**
1954
+ * Starts an asynchronous load of the @file's contents.
1955
+ *
1956
+ * For more details, see g_file_load_contents() which is
1957
+ * the synchronous version of this call.
1958
+ *
1959
+ * When the load operation has completed, `callback` will be called
1960
+ * with `user` data. To finish the operation, call
1961
+ * g_file_load_contents_finish() with the #GAsyncResult returned by
1962
+ * the @callback.
1963
+ *
1964
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
1965
+ * triggering the cancellable object from another thread. If the operation
1966
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
1967
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
1968
+ * @param callback - a #GAsyncReadyCallback to call when the request is satisfied
1969
+ * @param userData - the data to pass to callback function
1970
+ */
1244
1971
  loadContentsAsync(cancellable, callback, userData) {
1245
1972
  call("libgio-2.0.so.0", "g_file_load_contents_async", [
1246
1973
  {
@@ -1264,6 +1991,17 @@ export class File {
1264
1991
  },
1265
1992
  ], { type: "undefined" });
1266
1993
  }
1994
+ /**
1995
+ * Finishes an asynchronous load of the @file's contents.
1996
+ * The contents are placed in @contents, and `length` is set to the
1997
+ * size of the `contents` string. The `contents` should be freed with
1998
+ * g_free() when no longer needed. If `etag_out` is present, it will be
1999
+ * set to the new entity tag for the @file.
2000
+ * @param res - a #GAsyncResult
2001
+ * @param contents - a location to place the contents of the file
2002
+ * @param length - a location to place the length of the contents of the file,
2003
+ * @param etagOut - a location to place the current entity tag for the file,
2004
+ */
1267
2005
  loadContentsFinish(res, contents, length, etagOut) {
1268
2006
  const error = { value: null };
1269
2007
  const result = call("libgio-2.0.so.0", "g_file_load_contents_finish", [
@@ -1315,6 +2053,17 @@ export class File {
1315
2053
  }
1316
2054
  return result;
1317
2055
  }
2056
+ /**
2057
+ * Finishes an asynchronous partial load operation that was started
2058
+ * with g_file_load_partial_contents_async(). The data is always
2059
+ * zero-terminated, but this is not included in the resultant @length.
2060
+ * The returned `contents` should be freed with g_free() when no longer
2061
+ * needed.
2062
+ * @param res - a #GAsyncResult
2063
+ * @param contents - a location to place the contents of the file
2064
+ * @param length - a location to place the length of the contents of the file,
2065
+ * @param etagOut - a location to place the current entity tag for the file,
2066
+ */
1318
2067
  loadPartialContentsFinish(res, contents, length, etagOut) {
1319
2068
  const error = { value: null };
1320
2069
  const result = call("libgio-2.0.so.0", "g_file_load_partial_contents_finish", [
@@ -1366,6 +2115,27 @@ export class File {
1366
2115
  }
1367
2116
  return result;
1368
2117
  }
2118
+ /**
2119
+ * Creates a directory.
2120
+ *
2121
+ * Note that this will only create a child directory
2122
+ * of the immediate parent directory of the path or URI given by the #GFile.
2123
+ * To recursively create directories, see g_file_make_directory_with_parents().
2124
+ *
2125
+ * This function will fail if the parent directory does not exist, setting
2126
+ * `error` to %G_IO_ERROR_NOT_FOUND. If the file system doesn't support
2127
+ * creating directories, this function will fail, setting `error` to
2128
+ * %G_IO_ERROR_NOT_SUPPORTED. If the directory already exists,
2129
+ * [error@Gio.IOErrorEnum.EXISTS] will be returned.
2130
+ *
2131
+ * For a local #GFile the newly created directory will have the default
2132
+ * (current) ownership and permissions of the current process.
2133
+ *
2134
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2135
+ * triggering the cancellable object from another thread. If the operation
2136
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2137
+ * @param cancellable - optional #GCancellable object,
2138
+ */
1369
2139
  makeDirectory(cancellable) {
1370
2140
  const error = { value: null };
1371
2141
  const result = call("libgio-2.0.so.0", "g_file_make_directory", [
@@ -1395,6 +2165,13 @@ export class File {
1395
2165
  }
1396
2166
  return result;
1397
2167
  }
2168
+ /**
2169
+ * Asynchronously creates a directory.
2170
+ * @param ioPriority - the I/O priority of the request
2171
+ * @param cancellable - optional #GCancellable object,
2172
+ * @param callback - a #GAsyncReadyCallback to call
2173
+ * @param userData - the data to pass to callback function
2174
+ */
1398
2175
  makeDirectoryAsync(ioPriority, cancellable, callback, userData) {
1399
2176
  call("libgio-2.0.so.0", "g_file_make_directory_async", [
1400
2177
  {
@@ -1422,6 +2199,11 @@ export class File {
1422
2199
  },
1423
2200
  ], { type: "undefined" });
1424
2201
  }
2202
+ /**
2203
+ * Finishes an asynchronous directory creation, started with
2204
+ * g_file_make_directory_async().
2205
+ * @param result - a #GAsyncResult
2206
+ */
1425
2207
  makeDirectoryFinish(result) {
1426
2208
  const error = { value: null };
1427
2209
  const _result = call("libgio-2.0.so.0", "g_file_make_directory_finish", [
@@ -1450,6 +2232,22 @@ export class File {
1450
2232
  }
1451
2233
  return _result;
1452
2234
  }
2235
+ /**
2236
+ * Creates a directory and any parent directories that may not
2237
+ * exist similar to 'mkdir -p'. If the file system does not support
2238
+ * creating directories, this function will fail, setting `error` to
2239
+ * %G_IO_ERROR_NOT_SUPPORTED. If the directory itself already exists,
2240
+ * this function will fail setting `error` to %G_IO_ERROR_EXISTS, unlike
2241
+ * the similar g_mkdir_with_parents().
2242
+ *
2243
+ * For a local #GFile the newly created directories will have the default
2244
+ * (current) ownership and permissions of the current process.
2245
+ *
2246
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2247
+ * triggering the cancellable object from another thread. If the operation
2248
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2249
+ * @param cancellable - optional #GCancellable object,
2250
+ */
1453
2251
  makeDirectoryWithParents(cancellable) {
1454
2252
  const error = { value: null };
1455
2253
  const result = call("libgio-2.0.so.0", "g_file_make_directory_with_parents", [
@@ -1479,6 +2277,16 @@ export class File {
1479
2277
  }
1480
2278
  return result;
1481
2279
  }
2280
+ /**
2281
+ * Creates a symbolic link named `file` which contains the string
2282
+ * @symlink_value.
2283
+ *
2284
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2285
+ * triggering the cancellable object from another thread. If the operation
2286
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2287
+ * @param symlinkValue - a string with the path for the target
2288
+ * @param cancellable - optional #GCancellable object,
2289
+ */
1482
2290
  makeSymbolicLink(symlinkValue, cancellable) {
1483
2291
  const error = { value: null };
1484
2292
  const result = call("libgio-2.0.so.0", "g_file_make_symbolic_link", [
@@ -1512,6 +2320,15 @@ export class File {
1512
2320
  }
1513
2321
  return result;
1514
2322
  }
2323
+ /**
2324
+ * Asynchronously creates a symbolic link named `file` which contains the
2325
+ * string @symlink_value.
2326
+ * @param symlinkValue - a string with the path for the target
2327
+ * @param ioPriority - the I/O priority of the request
2328
+ * @param cancellable - optional #GCancellable object,
2329
+ * @param callback - a #GAsyncReadyCallback to call
2330
+ * @param userData - the data to pass to callback function
2331
+ */
1515
2332
  makeSymbolicLinkAsync(symlinkValue, ioPriority, cancellable, callback, userData) {
1516
2333
  call("libgio-2.0.so.0", "g_file_make_symbolic_link_async", [
1517
2334
  {
@@ -1543,6 +2360,11 @@ export class File {
1543
2360
  },
1544
2361
  ], { type: "undefined" });
1545
2362
  }
2363
+ /**
2364
+ * Finishes an asynchronous symbolic link creation, started with
2365
+ * g_file_make_symbolic_link_async().
2366
+ * @param result - a #GAsyncResult
2367
+ */
1546
2368
  makeSymbolicLinkFinish(result) {
1547
2369
  const error = { value: null };
1548
2370
  const _result = call("libgio-2.0.so.0", "g_file_make_symbolic_link_finish", [
@@ -1571,6 +2393,33 @@ export class File {
1571
2393
  }
1572
2394
  return _result;
1573
2395
  }
2396
+ /**
2397
+ * Recursively measures the disk usage of @file.
2398
+ *
2399
+ * This is essentially an analog of the 'du' command, but it also
2400
+ * reports the number of directories and non-directory files encountered
2401
+ * (including things like symbolic links).
2402
+ *
2403
+ * By default, errors are only reported against the toplevel file
2404
+ * itself. Errors found while recursing are silently ignored, unless
2405
+ * %G_FILE_MEASURE_REPORT_ANY_ERROR is given in @flags.
2406
+ *
2407
+ * The returned size, @disk_usage, is in bytes and should be formatted
2408
+ * with g_format_size() in order to get something reasonable for showing
2409
+ * in a user interface.
2410
+ *
2411
+ * `progress_callback` and `progress_data` can be given to request
2412
+ * periodic progress updates while scanning. See the documentation for
2413
+ * #GFileMeasureProgressCallback for information about when and how the
2414
+ * callback will be invoked.
2415
+ * @param flags - #GFileMeasureFlags
2416
+ * @param cancellable - optional #GCancellable
2417
+ * @param progressCallback - a #GFileMeasureProgressCallback
2418
+ * @param progressData - user_data for @progress_callback
2419
+ * @param diskUsage - the number of bytes of disk space used
2420
+ * @param numDirs - the number of directories encountered
2421
+ * @param numFiles - the number of non-directories encountered
2422
+ */
1574
2423
  measureDiskUsage(flags, cancellable, progressCallback, progressData, diskUsage, numDirs, numFiles) {
1575
2424
  const error = { value: null };
1576
2425
  const result = call("libgio-2.0.so.0", "g_file_measure_disk_usage", [
@@ -1638,6 +2487,15 @@ export class File {
1638
2487
  }
1639
2488
  return result;
1640
2489
  }
2490
+ /**
2491
+ * Collects the results from an earlier call to
2492
+ * g_file_measure_disk_usage_async(). See g_file_measure_disk_usage() for
2493
+ * more information.
2494
+ * @param result - the #GAsyncResult passed to your #GAsyncReadyCallback
2495
+ * @param diskUsage - the number of bytes of disk space used
2496
+ * @param numDirs - the number of directories encountered
2497
+ * @param numFiles - the number of non-directories encountered
2498
+ */
1641
2499
  measureDiskUsageFinish(result, diskUsage, numDirs, numFiles) {
1642
2500
  const error = { value: null };
1643
2501
  const _result = call("libgio-2.0.so.0", "g_file_measure_disk_usage_finish", [
@@ -1690,6 +2548,16 @@ export class File {
1690
2548
  }
1691
2549
  return _result;
1692
2550
  }
2551
+ /**
2552
+ * Obtains a file or directory monitor for the given file,
2553
+ * depending on the type of the file.
2554
+ *
2555
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2556
+ * triggering the cancellable object from another thread. If the operation
2557
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2558
+ * @param flags - a set of #GFileMonitorFlags
2559
+ * @param cancellable - optional #GCancellable object,
2560
+ */
1693
2561
  monitor(flags, cancellable) {
1694
2562
  const error = { value: null };
1695
2563
  const ptr = call("libgio-2.0.so.0", "g_file_monitor", [
@@ -1723,6 +2591,22 @@ export class File {
1723
2591
  }
1724
2592
  return getObject(ptr, FileMonitor);
1725
2593
  }
2594
+ /**
2595
+ * Obtains a directory monitor for the given file.
2596
+ * This may fail if directory monitoring is not supported.
2597
+ *
2598
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2599
+ * triggering the cancellable object from another thread. If the operation
2600
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2601
+ *
2602
+ * It does not make sense for `flags` to contain
2603
+ * %G_FILE_MONITOR_WATCH_HARD_LINKS, since hard links can not be made to
2604
+ * directories. It is not possible to monitor all the files in a
2605
+ * directory for changes made via hard links; if you want to do this then
2606
+ * you must register individual watches with g_file_monitor().
2607
+ * @param flags - a set of #GFileMonitorFlags
2608
+ * @param cancellable - optional #GCancellable object,
2609
+ */
1726
2610
  monitorDirectory(flags, cancellable) {
1727
2611
  const error = { value: null };
1728
2612
  const ptr = call("libgio-2.0.so.0", "g_file_monitor_directory", [
@@ -1756,6 +2640,24 @@ export class File {
1756
2640
  }
1757
2641
  return getObject(ptr, FileMonitor);
1758
2642
  }
2643
+ /**
2644
+ * Obtains a file monitor for the given file. If no file notification
2645
+ * mechanism exists, then regular polling of the file is used.
2646
+ *
2647
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2648
+ * triggering the cancellable object from another thread. If the operation
2649
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2650
+ *
2651
+ * If `flags` contains %G_FILE_MONITOR_WATCH_HARD_LINKS then the monitor
2652
+ * will also attempt to report changes made to the file via another
2653
+ * filename (ie, a hard link). Without this flag, you can only rely on
2654
+ * changes made through the filename contained in `file` to be
2655
+ * reported. Using this flag may result in an increase in resource
2656
+ * usage, and may not have any effect depending on the #GFileMonitor
2657
+ * backend and/or filesystem type.
2658
+ * @param flags - a set of #GFileMonitorFlags
2659
+ * @param cancellable - optional #GCancellable object,
2660
+ */
1759
2661
  monitorFile(flags, cancellable) {
1760
2662
  const error = { value: null };
1761
2663
  const ptr = call("libgio-2.0.so.0", "g_file_monitor_file", [
@@ -1789,6 +2691,23 @@ export class File {
1789
2691
  }
1790
2692
  return getObject(ptr, FileMonitor);
1791
2693
  }
2694
+ /**
2695
+ * Starts a @mount_operation, mounting the volume that contains
2696
+ * the file @location.
2697
+ *
2698
+ * When this operation has completed, `callback` will be called with
2699
+ * `user_user` data, and the operation can be finalized with
2700
+ * g_file_mount_enclosing_volume_finish().
2701
+ *
2702
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2703
+ * triggering the cancellable object from another thread. If the operation
2704
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2705
+ * @param flags - flags affecting the operation
2706
+ * @param mountOperation - a #GMountOperation
2707
+ * @param cancellable - optional #GCancellable object,
2708
+ * @param callback - a #GAsyncReadyCallback to call
2709
+ * @param userData - the data to pass to callback function
2710
+ */
1792
2711
  mountEnclosingVolume(flags, mountOperation, cancellable, callback, userData) {
1793
2712
  call("libgio-2.0.so.0", "g_file_mount_enclosing_volume", [
1794
2713
  {
@@ -1821,6 +2740,10 @@ export class File {
1821
2740
  },
1822
2741
  ], { type: "undefined" });
1823
2742
  }
2743
+ /**
2744
+ * Finishes a mount operation started by g_file_mount_enclosing_volume().
2745
+ * @param result - a #GAsyncResult
2746
+ */
1824
2747
  mountEnclosingVolumeFinish(result) {
1825
2748
  const error = { value: null };
1826
2749
  const _result = call("libgio-2.0.so.0", "g_file_mount_enclosing_volume_finish", [
@@ -1849,6 +2772,24 @@ export class File {
1849
2772
  }
1850
2773
  return _result;
1851
2774
  }
2775
+ /**
2776
+ * Mounts a file of type G_FILE_TYPE_MOUNTABLE.
2777
+ * Using @mount_operation, you can request callbacks when, for instance,
2778
+ * passwords are needed during authentication.
2779
+ *
2780
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2781
+ * triggering the cancellable object from another thread. If the operation
2782
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2783
+ *
2784
+ * When the operation is finished, `callback` will be called.
2785
+ * You can then call g_file_mount_mountable_finish() to get
2786
+ * the result of the operation.
2787
+ * @param flags - flags affecting the operation
2788
+ * @param mountOperation - a #GMountOperation,
2789
+ * @param cancellable - optional #GCancellable object,
2790
+ * @param callback - a #GAsyncReadyCallback
2791
+ * @param userData - the data to pass to callback function
2792
+ */
1852
2793
  mountMountable(flags, mountOperation, cancellable, callback, userData) {
1853
2794
  call("libgio-2.0.so.0", "g_file_mount_mountable", [
1854
2795
  {
@@ -1881,6 +2822,13 @@ export class File {
1881
2822
  },
1882
2823
  ], { type: "undefined" });
1883
2824
  }
2825
+ /**
2826
+ * Finishes a mount operation. See g_file_mount_mountable() for details.
2827
+ *
2828
+ * Finish an asynchronous mount operation that was started
2829
+ * with g_file_mount_mountable().
2830
+ * @param result - a #GAsyncResult
2831
+ */
1884
2832
  mountMountableFinish(result) {
1885
2833
  const error = { value: null };
1886
2834
  const ptr = call("libgio-2.0.so.0", "g_file_mount_mountable_finish", [
@@ -1909,6 +2857,46 @@ export class File {
1909
2857
  }
1910
2858
  return getObject(ptr, File);
1911
2859
  }
2860
+ /**
2861
+ * Tries to move the file or directory `source` to the location specified
2862
+ * by @destination. If native move operations are supported then this is
2863
+ * used, otherwise a copy + delete fallback is used. The native
2864
+ * implementation may support moving directories (for instance on moves
2865
+ * inside the same filesystem), but the fallback code does not.
2866
+ *
2867
+ * If the flag %G_FILE_COPY_OVERWRITE is specified an already
2868
+ * existing `destination` file is overwritten.
2869
+ *
2870
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
2871
+ * triggering the cancellable object from another thread. If the operation
2872
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
2873
+ *
2874
+ * If `progress_callback` is not %NULL, then the operation can be monitored
2875
+ * by setting this to a #GFileProgressCallback function.
2876
+ * `progress_callback_data` will be passed to this function. It is
2877
+ * guaranteed that this callback will be called after all data has been
2878
+ * transferred with the total number of bytes copied during the operation.
2879
+ *
2880
+ * If the `source` file does not exist, then the %G_IO_ERROR_NOT_FOUND
2881
+ * error is returned, independent on the status of the @destination.
2882
+ *
2883
+ * If %G_FILE_COPY_OVERWRITE is not specified and the target exists,
2884
+ * then the error %G_IO_ERROR_EXISTS is returned.
2885
+ *
2886
+ * If trying to overwrite a file over a directory, the %G_IO_ERROR_IS_DIRECTORY
2887
+ * error is returned. If trying to overwrite a directory with a directory the
2888
+ * %G_IO_ERROR_WOULD_MERGE error is returned.
2889
+ *
2890
+ * If the source is a directory and the target does not exist, or
2891
+ * %G_FILE_COPY_OVERWRITE is specified and the target is a file, then
2892
+ * the %G_IO_ERROR_WOULD_RECURSE error may be returned (if the native
2893
+ * move operation isn't available).
2894
+ * @param destination - #GFile pointing to the destination location
2895
+ * @param flags - set of #GFileCopyFlags
2896
+ * @param cancellable - optional #GCancellable object,
2897
+ * @param progressCallback - #GFileProgressCallback
2898
+ * @param progressCallbackData - gpointer to user data for
2899
+ */
1912
2900
  move(destination, flags, cancellable, progressCallback, progressCallbackData) {
1913
2901
  const error = { value: null };
1914
2902
  const result = call("libgio-2.0.so.0", "g_file_move", [
@@ -1956,6 +2944,25 @@ export class File {
1956
2944
  }
1957
2945
  return result;
1958
2946
  }
2947
+ /**
2948
+ * Asynchronously moves a file `source` to the location of @destination. For details of the behaviour, see g_file_move().
2949
+ *
2950
+ * If `progress_callback` is not %NULL, then that function that will be called
2951
+ * just like in g_file_move(). The callback will run in the default main context
2952
+ * of the thread calling g_file_move_async() — the same context as `callback` is
2953
+ * run in.
2954
+ *
2955
+ * When the operation is finished, `callback` will be called. You can then call
2956
+ * g_file_move_finish() to get the result of the operation.
2957
+ * @param destination - #GFile pointing to the destination location
2958
+ * @param flags - set of #GFileCopyFlags
2959
+ * @param ioPriority - the I/O priority of the request
2960
+ * @param cancellable - optional #GCancellable object,
2961
+ * @param progressCallback - #GFileProgressCallback function for updates
2962
+ * @param progressCallbackData - gpointer to user data for the callback function
2963
+ * @param callback - a #GAsyncReadyCallback
2964
+ * @param userData - the data to pass to callback function
2965
+ */
1959
2966
  moveAsync(destination, flags, ioPriority, cancellable, progressCallback, progressCallbackData, callback, userData) {
1960
2967
  call("libgio-2.0.so.0", "g_file_move_async", [
1961
2968
  {
@@ -2001,6 +3008,16 @@ export class File {
2001
3008
  },
2002
3009
  ], { type: "undefined" });
2003
3010
  }
3011
+ /**
3012
+ * Version of [method@Gio.File.move_async] using closures instead of callbacks for
3013
+ * easier binding in other languages.
3014
+ * @param destination - destination [type@Gio.File]
3015
+ * @param flags - set of [flags@Gio.FileCopyFlags]
3016
+ * @param ioPriority - the I/O priority of the request
3017
+ * @param cancellable - optional [class@Gio.Cancellable] object,
3018
+ * @param progressCallbackClosure - [type@GObject.Closure] to invoke with progress
3019
+ * @param readyCallbackClosure - [type@GObject.Closure] to invoke when the request is satisfied
3020
+ */
2004
3021
  moveAsyncWithClosures(destination, flags, ioPriority, readyCallbackClosure, cancellable, progressCallbackClosure) {
2005
3022
  call("libgio-2.0.so.0", "g_file_move_async_with_closures", [
2006
3023
  {
@@ -2045,6 +3062,11 @@ export class File {
2045
3062
  },
2046
3063
  ], { type: "undefined" });
2047
3064
  }
3065
+ /**
3066
+ * Finishes an asynchronous file movement, started with
3067
+ * g_file_move_async().
3068
+ * @param result - a #GAsyncResult
3069
+ */
2048
3070
  moveFinish(result) {
2049
3071
  const error = { value: null };
2050
3072
  const _result = call("libgio-2.0.so.0", "g_file_move_finish", [
@@ -2073,6 +3095,25 @@ export class File {
2073
3095
  }
2074
3096
  return _result;
2075
3097
  }
3098
+ /**
3099
+ * Opens an existing file for reading and writing. The result is
3100
+ * a #GFileIOStream that can be used to read and write the contents
3101
+ * of the file.
3102
+ *
3103
+ * If `cancellable` is not %NULL, then the operation can be cancelled
3104
+ * by triggering the cancellable object from another thread. If the
3105
+ * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
3106
+ * returned.
3107
+ *
3108
+ * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will
3109
+ * be returned. If the file is a directory, the %G_IO_ERROR_IS_DIRECTORY
3110
+ * error will be returned. Other errors are possible too, and depend on
3111
+ * what kind of filesystem the file is on. Note that in many non-local
3112
+ * file cases read and write streams are not supported, so make sure you
3113
+ * really need to do read and write streaming, rather than just opening
3114
+ * for reading or writing.
3115
+ * @param cancellable - a #GCancellable
3116
+ */
2076
3117
  openReadwrite(cancellable) {
2077
3118
  const error = { value: null };
2078
3119
  const ptr = call("libgio-2.0.so.0", "g_file_open_readwrite", [
@@ -2102,6 +3143,20 @@ export class File {
2102
3143
  }
2103
3144
  return getObject(ptr, FileIOStream);
2104
3145
  }
3146
+ /**
3147
+ * Asynchronously opens `file` for reading and writing.
3148
+ *
3149
+ * For more details, see g_file_open_readwrite() which is
3150
+ * the synchronous version of this call.
3151
+ *
3152
+ * When the operation is finished, `callback` will be called.
3153
+ * You can then call g_file_open_readwrite_finish() to get
3154
+ * the result of the operation.
3155
+ * @param ioPriority - the I/O priority of the request
3156
+ * @param cancellable - optional #GCancellable object,
3157
+ * @param callback - a #GAsyncReadyCallback
3158
+ * @param userData - the data to pass to callback function
3159
+ */
2105
3160
  openReadwriteAsync(ioPriority, cancellable, callback, userData) {
2106
3161
  call("libgio-2.0.so.0", "g_file_open_readwrite_async", [
2107
3162
  {
@@ -2129,6 +3184,11 @@ export class File {
2129
3184
  },
2130
3185
  ], { type: "undefined" });
2131
3186
  }
3187
+ /**
3188
+ * Finishes an asynchronous file read operation started with
3189
+ * g_file_open_readwrite_async().
3190
+ * @param res - a #GAsyncResult
3191
+ */
2132
3192
  openReadwriteFinish(res) {
2133
3193
  const error = { value: null };
2134
3194
  const ptr = call("libgio-2.0.so.0", "g_file_open_readwrite_finish", [
@@ -2157,6 +3217,15 @@ export class File {
2157
3217
  }
2158
3218
  return getObject(ptr, FileIOStream);
2159
3219
  }
3220
+ /**
3221
+ * Exactly like g_file_get_path(), but caches the result via
3222
+ * g_object_set_qdata_full(). This is useful for example in C
3223
+ * applications which mix `g_file_*` APIs with native ones. It
3224
+ * also avoids an extra duplicated string when possible, so will be
3225
+ * generally more efficient.
3226
+ *
3227
+ * This call does no blocking I/O.
3228
+ */
2160
3229
  peekPath() {
2161
3230
  return call("libgio-2.0.so.0", "g_file_peek_path", [
2162
3231
  {
@@ -2165,6 +3234,20 @@ export class File {
2165
3234
  },
2166
3235
  ], { type: "string", borrowed: true });
2167
3236
  }
3237
+ /**
3238
+ * Polls a file of type %G_FILE_TYPE_MOUNTABLE.
3239
+ *
3240
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
3241
+ * triggering the cancellable object from another thread. If the operation
3242
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
3243
+ *
3244
+ * When the operation is finished, `callback` will be called.
3245
+ * You can then call g_file_mount_mountable_finish() to get
3246
+ * the result of the operation.
3247
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
3248
+ * @param callback - a #GAsyncReadyCallback to call
3249
+ * @param userData - the data to pass to callback function
3250
+ */
2168
3251
  pollMountable(cancellable, callback, userData) {
2169
3252
  call("libgio-2.0.so.0", "g_file_poll_mountable", [
2170
3253
  {
@@ -2188,6 +3271,13 @@ export class File {
2188
3271
  },
2189
3272
  ], { type: "undefined" });
2190
3273
  }
3274
+ /**
3275
+ * Finishes a poll operation. See g_file_poll_mountable() for details.
3276
+ *
3277
+ * Finish an asynchronous poll operation that was polled
3278
+ * with g_file_poll_mountable().
3279
+ * @param result - a #GAsyncResult
3280
+ */
2191
3281
  pollMountableFinish(result) {
2192
3282
  const error = { value: null };
2193
3283
  const _result = call("libgio-2.0.so.0", "g_file_poll_mountable_finish", [
@@ -2216,6 +3306,15 @@ export class File {
2216
3306
  }
2217
3307
  return _result;
2218
3308
  }
3309
+ /**
3310
+ * Returns the #GAppInfo that is registered as the default
3311
+ * application to handle the file specified by @file.
3312
+ *
3313
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
3314
+ * triggering the cancellable object from another thread. If the operation
3315
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
3316
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
3317
+ */
2219
3318
  queryDefaultHandler(cancellable) {
2220
3319
  const error = { value: null };
2221
3320
  const ptr = call("libgio-2.0.so.0", "g_file_query_default_handler", [
@@ -2245,6 +3344,13 @@ export class File {
2245
3344
  }
2246
3345
  return getObject(ptr, AppInfo);
2247
3346
  }
3347
+ /**
3348
+ * Async version of g_file_query_default_handler().
3349
+ * @param ioPriority - the I/O priority of the request
3350
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
3351
+ * @param callback - a #GAsyncReadyCallback to call when the request is done
3352
+ * @param userData - data to pass to @callback
3353
+ */
2248
3354
  queryDefaultHandlerAsync(ioPriority, cancellable, callback, userData) {
2249
3355
  call("libgio-2.0.so.0", "g_file_query_default_handler_async", [
2250
3356
  {
@@ -2272,6 +3378,10 @@ export class File {
2272
3378
  },
2273
3379
  ], { type: "undefined" });
2274
3380
  }
3381
+ /**
3382
+ * Finishes a g_file_query_default_handler_async() operation.
3383
+ * @param result - a #GAsyncResult
3384
+ */
2275
3385
  queryDefaultHandlerFinish(result) {
2276
3386
  const error = { value: null };
2277
3387
  const ptr = call("libgio-2.0.so.0", "g_file_query_default_handler_finish", [
@@ -2300,6 +3410,34 @@ export class File {
2300
3410
  }
2301
3411
  return getObject(ptr, AppInfo);
2302
3412
  }
3413
+ /**
3414
+ * Utility function to check if a particular file exists.
3415
+ *
3416
+ * The fallback implementation of this API is using [method@Gio.File.query_info]
3417
+ * and therefore may do blocking I/O. To asynchronously query the existence
3418
+ * of a file, use [method@Gio.File.query_info_async].
3419
+ *
3420
+ * Note that in many cases it is [racy to first check for file existence](https://en.wikipedia.org/wiki/Time_of_check_to_time_of_use)
3421
+ * and then execute something based on the outcome of that, because the
3422
+ * file might have been created or removed in between the operations. The
3423
+ * general approach to handling that is to not check, but just do the
3424
+ * operation and handle the errors as they come.
3425
+ *
3426
+ * As an example of race-free checking, take the case of reading a file,
3427
+ * and if it doesn't exist, creating it. There are two racy versions: read
3428
+ * it, and on error create it; and: check if it exists, if not create it.
3429
+ * These can both result in two processes creating the file (with perhaps
3430
+ * a partially written file as the result). The correct approach is to
3431
+ * always try to create the file with g_file_create() which will either
3432
+ * atomically create the file or fail with a %G_IO_ERROR_EXISTS error.
3433
+ *
3434
+ * However, in many cases an existence check is useful in a user interface,
3435
+ * for instance to make a menu item sensitive/insensitive, so that you don't
3436
+ * have to fool users that something is possible and then just show an error
3437
+ * dialog. If you do this, you should make sure to also handle the errors
3438
+ * that can happen due to races when you execute the operation.
3439
+ * @param cancellable - optional #GCancellable object,
3440
+ */
2303
3441
  queryExists(cancellable) {
2304
3442
  return call("libgio-2.0.so.0", "g_file_query_exists", [
2305
3443
  {
@@ -2313,6 +3451,15 @@ export class File {
2313
3451
  },
2314
3452
  ], { type: "boolean" });
2315
3453
  }
3454
+ /**
3455
+ * Utility function to inspect the #GFileType of a file. This is
3456
+ * implemented using g_file_query_info() and as such does blocking I/O.
3457
+ *
3458
+ * The primary use case of this method is to check if a file is
3459
+ * a regular file, directory, or symlink.
3460
+ * @param flags - a set of #GFileQueryInfoFlags passed to g_file_query_info()
3461
+ * @param cancellable - optional #GCancellable object,
3462
+ */
2316
3463
  queryFileType(flags, cancellable) {
2317
3464
  return call("libgio-2.0.so.0", "g_file_query_file_type", [
2318
3465
  {
@@ -2330,6 +3477,35 @@ export class File {
2330
3477
  },
2331
3478
  ], { type: "int", size: 32, unsigned: false });
2332
3479
  }
3480
+ /**
3481
+ * Similar to g_file_query_info(), but obtains information
3482
+ * about the filesystem the `file` is on, rather than the file itself.
3483
+ * For instance the amount of space available and the type of
3484
+ * the filesystem.
3485
+ *
3486
+ * The `attributes` value is a string that specifies the attributes
3487
+ * that should be gathered. It is not an error if it's not possible
3488
+ * to read a particular requested attribute from a file - it just
3489
+ * won't be set. `attributes` should be a comma-separated list of
3490
+ * attributes or attribute wildcards. The wildcard "*" means all
3491
+ * attributes, and a wildcard like "filesystem::*" means all attributes
3492
+ * in the filesystem namespace. The standard namespace for filesystem
3493
+ * attributes is "filesystem". Common attributes of interest are
3494
+ * %G_FILE_ATTRIBUTE_FILESYSTEM_SIZE (the total size of the filesystem
3495
+ * in bytes), %G_FILE_ATTRIBUTE_FILESYSTEM_FREE (number of bytes available),
3496
+ * and %G_FILE_ATTRIBUTE_FILESYSTEM_TYPE (type of the filesystem).
3497
+ *
3498
+ * If `cancellable` is not %NULL, then the operation can be cancelled
3499
+ * by triggering the cancellable object from another thread. If the
3500
+ * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
3501
+ * returned.
3502
+ *
3503
+ * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will
3504
+ * be returned. Other errors are possible too, and depend on what
3505
+ * kind of filesystem the file is on.
3506
+ * @param attributes - an attribute query string
3507
+ * @param cancellable - optional #GCancellable object,
3508
+ */
2333
3509
  queryFilesystemInfo(attributes, cancellable) {
2334
3510
  const error = { value: null };
2335
3511
  const ptr = call("libgio-2.0.so.0", "g_file_query_filesystem_info", [
@@ -2363,6 +3539,24 @@ export class File {
2363
3539
  }
2364
3540
  return getObject(ptr, FileInfo);
2365
3541
  }
3542
+ /**
3543
+ * Asynchronously gets the requested information about the filesystem
3544
+ * that the specified `file` is on. The result is a #GFileInfo object
3545
+ * that contains key-value attributes (such as type or size for the
3546
+ * file).
3547
+ *
3548
+ * For more details, see g_file_query_filesystem_info() which is the
3549
+ * synchronous version of this call.
3550
+ *
3551
+ * When the operation is finished, `callback` will be called. You can
3552
+ * then call g_file_query_info_finish() to get the result of the
3553
+ * operation.
3554
+ * @param attributes - an attribute query string
3555
+ * @param ioPriority - the I/O priority of the request
3556
+ * @param cancellable - optional #GCancellable object,
3557
+ * @param callback - a #GAsyncReadyCallback
3558
+ * @param userData - the data to pass to callback function
3559
+ */
2366
3560
  queryFilesystemInfoAsync(attributes, ioPriority, cancellable, callback, userData) {
2367
3561
  call("libgio-2.0.so.0", "g_file_query_filesystem_info_async", [
2368
3562
  {
@@ -2394,6 +3588,11 @@ export class File {
2394
3588
  },
2395
3589
  ], { type: "undefined" });
2396
3590
  }
3591
+ /**
3592
+ * Finishes an asynchronous filesystem info query.
3593
+ * See g_file_query_filesystem_info_async().
3594
+ * @param res - a #GAsyncResult
3595
+ */
2397
3596
  queryFilesystemInfoFinish(res) {
2398
3597
  const error = { value: null };
2399
3598
  const ptr = call("libgio-2.0.so.0", "g_file_query_filesystem_info_finish", [
@@ -2422,6 +3621,54 @@ export class File {
2422
3621
  }
2423
3622
  return getObject(ptr, FileInfo);
2424
3623
  }
3624
+ /**
3625
+ * Gets the requested information about specified @file.
3626
+ *
3627
+ * The result is a [class@Gio.FileInfo] object that contains key-value
3628
+ * attributes (such as the type or size of the file).
3629
+ *
3630
+ * The `attributes` value is a string that specifies the file
3631
+ * attributes that should be gathered. It is not an error if
3632
+ * it’s not possible to read a particular requested attribute
3633
+ * from a file — it just won't be set. In particular this means that if a file
3634
+ * is inaccessible (due to being in a folder with restrictive permissions), for
3635
+ * example, you can expect the returned [class@Gio.FileInfo] to have very few
3636
+ * attributes set. You should check whether an attribute is set using
3637
+ * [method@Gio.FileInfo.has_attribute] before trying to retrieve its value.
3638
+ *
3639
+ * It is guaranteed that if any of the following attributes are listed in
3640
+ * @attributes, they will always be set in the returned [class@Gio.FileInfo],
3641
+ * even if the user doesn’t have permissions to access the file:
3642
+ *
3643
+ * - [const@Gio.FILE_ATTRIBUTE_STANDARD_NAME]
3644
+ * - [const@Gio.FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME]
3645
+ *
3646
+ * `attributes` should be a comma-separated list of attributes or attribute
3647
+ * wildcards. The wildcard `"*"` means all attributes, and a wildcard like
3648
+ * `"standard::*"` means all attributes in the standard namespace.
3649
+ * An example attribute query might be `"standard::*,owner::user"`.
3650
+ * The standard attributes are available as defines, like
3651
+ * [const@Gio.FILE_ATTRIBUTE_STANDARD_NAME].
3652
+ *
3653
+ * If `cancellable` is not `NULL`, then the operation can be cancelled
3654
+ * by triggering the cancellable object from another thread. If the
3655
+ * operation was cancelled, the error [error@Gio.IOErrorEnum.CANCELLED] will be
3656
+ * returned.
3657
+ *
3658
+ * For symlinks, normally the information about the target of the
3659
+ * symlink is returned, rather than information about the symlink
3660
+ * itself. However if you pass [flags@Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS]
3661
+ * in `flags` the information about the symlink itself will be returned.
3662
+ * Also, for symlinks that point to non-existing files the information
3663
+ * about the symlink itself will be returned.
3664
+ *
3665
+ * If the file does not exist, the [error@Gio.IOErrorEnum.NOT_FOUND] error will be
3666
+ * returned. Other errors are possible too, and depend on what kind of
3667
+ * file system the file is on.
3668
+ * @param attributes - an attribute query string
3669
+ * @param flags - flags to affect the query operation
3670
+ * @param cancellable - optional cancellable object
3671
+ */
2425
3672
  queryInfo(attributes, flags, cancellable) {
2426
3673
  const error = { value: null };
2427
3674
  const ptr = call("libgio-2.0.so.0", "g_file_query_info", [
@@ -2459,6 +3706,23 @@ export class File {
2459
3706
  }
2460
3707
  return getObject(ptr, FileInfo);
2461
3708
  }
3709
+ /**
3710
+ * Asynchronously gets the requested information about specified @file.
3711
+ * The result is a #GFileInfo object that contains key-value attributes
3712
+ * (such as type or size for the file).
3713
+ *
3714
+ * For more details, see g_file_query_info() which is the synchronous
3715
+ * version of this call.
3716
+ *
3717
+ * When the operation is finished, `callback` will be called. You can
3718
+ * then call g_file_query_info_finish() to get the result of the operation.
3719
+ * @param attributes - an attribute query string
3720
+ * @param flags - a set of #GFileQueryInfoFlags
3721
+ * @param ioPriority - the I/O priority of the request
3722
+ * @param cancellable - optional #GCancellable object,
3723
+ * @param callback - a #GAsyncReadyCallback
3724
+ * @param userData - the data to pass to callback function
3725
+ */
2462
3726
  queryInfoAsync(attributes, flags, ioPriority, cancellable, callback, userData) {
2463
3727
  call("libgio-2.0.so.0", "g_file_query_info_async", [
2464
3728
  {
@@ -2494,6 +3758,11 @@ export class File {
2494
3758
  },
2495
3759
  ], { type: "undefined" });
2496
3760
  }
3761
+ /**
3762
+ * Finishes an asynchronous file info query.
3763
+ * See g_file_query_info_async().
3764
+ * @param res - a #GAsyncResult
3765
+ */
2497
3766
  queryInfoFinish(res) {
2498
3767
  const error = { value: null };
2499
3768
  const ptr = call("libgio-2.0.so.0", "g_file_query_info_finish", [
@@ -2522,6 +3791,19 @@ export class File {
2522
3791
  }
2523
3792
  return getObject(ptr, FileInfo);
2524
3793
  }
3794
+ /**
3795
+ * Obtain the list of settable attributes for the file.
3796
+ *
3797
+ * Returns the type and full attribute name of all the attributes
3798
+ * that can be set on this file. This doesn't mean setting it will
3799
+ * always succeed though, you might get an access failure, or some
3800
+ * specific file may not support a specific attribute.
3801
+ *
3802
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
3803
+ * triggering the cancellable object from another thread. If the operation
3804
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
3805
+ * @param cancellable - optional #GCancellable object,
3806
+ */
2525
3807
  querySettableAttributes(cancellable) {
2526
3808
  const error = { value: null };
2527
3809
  const ptr = call("libgio-2.0.so.0", "g_file_query_settable_attributes", [
@@ -2556,6 +3838,16 @@ export class File {
2556
3838
  }
2557
3839
  return getObject(ptr, FileAttributeInfoList);
2558
3840
  }
3841
+ /**
3842
+ * Obtain the list of attribute namespaces where new attributes
3843
+ * can be created by a user. An example of this is extended
3844
+ * attributes (in the "xattr" namespace).
3845
+ *
3846
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
3847
+ * triggering the cancellable object from another thread. If the operation
3848
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
3849
+ * @param cancellable - optional #GCancellable object,
3850
+ */
2559
3851
  queryWritableNamespaces(cancellable) {
2560
3852
  const error = { value: null };
2561
3853
  const ptr = call("libgio-2.0.so.0", "g_file_query_writable_namespaces", [
@@ -2590,6 +3882,20 @@ export class File {
2590
3882
  }
2591
3883
  return getObject(ptr, FileAttributeInfoList);
2592
3884
  }
3885
+ /**
3886
+ * Opens a file for reading. The result is a #GFileInputStream that
3887
+ * can be used to read the contents of the file.
3888
+ *
3889
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
3890
+ * triggering the cancellable object from another thread. If the operation
3891
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
3892
+ *
3893
+ * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will be
3894
+ * returned. If the file is a directory, the %G_IO_ERROR_IS_DIRECTORY
3895
+ * error will be returned. Other errors are possible too, and depend
3896
+ * on what kind of filesystem the file is on.
3897
+ * @param cancellable - a #GCancellable
3898
+ */
2593
3899
  read(cancellable) {
2594
3900
  const error = { value: null };
2595
3901
  const ptr = call("libgio-2.0.so.0", "g_file_read", [
@@ -2619,6 +3925,20 @@ export class File {
2619
3925
  }
2620
3926
  return getObject(ptr, FileInputStream);
2621
3927
  }
3928
+ /**
3929
+ * Asynchronously opens `file` for reading.
3930
+ *
3931
+ * For more details, see g_file_read() which is
3932
+ * the synchronous version of this call.
3933
+ *
3934
+ * When the operation is finished, `callback` will be called.
3935
+ * You can then call g_file_read_finish() to get the result
3936
+ * of the operation.
3937
+ * @param ioPriority - the I/O priority of the request
3938
+ * @param cancellable - optional #GCancellable object,
3939
+ * @param callback - a #GAsyncReadyCallback
3940
+ * @param userData - the data to pass to callback function
3941
+ */
2622
3942
  readAsync(ioPriority, cancellable, callback, userData) {
2623
3943
  call("libgio-2.0.so.0", "g_file_read_async", [
2624
3944
  {
@@ -2646,6 +3966,11 @@ export class File {
2646
3966
  },
2647
3967
  ], { type: "undefined" });
2648
3968
  }
3969
+ /**
3970
+ * Finishes an asynchronous file read operation started with
3971
+ * g_file_read_async().
3972
+ * @param res - a #GAsyncResult
3973
+ */
2649
3974
  readFinish(res) {
2650
3975
  const error = { value: null };
2651
3976
  const ptr = call("libgio-2.0.so.0", "g_file_read_finish", [
@@ -2674,6 +3999,53 @@ export class File {
2674
3999
  }
2675
4000
  return getObject(ptr, FileInputStream);
2676
4001
  }
4002
+ /**
4003
+ * Returns an output stream for overwriting the file, possibly
4004
+ * creating a backup copy of the file first. If the file doesn't exist,
4005
+ * it will be created.
4006
+ *
4007
+ * This will try to replace the file in the safest way possible so
4008
+ * that any errors during the writing will not affect an already
4009
+ * existing copy of the file. For instance, for local files it
4010
+ * may write to a temporary file and then atomically rename over
4011
+ * the destination when the stream is closed.
4012
+ *
4013
+ * By default files created are generally readable by everyone,
4014
+ * but if you pass %G_FILE_CREATE_PRIVATE in `flags` the file
4015
+ * will be made readable only to the current user, to the level that
4016
+ * is supported on the target filesystem.
4017
+ *
4018
+ * If `cancellable` is not %NULL, then the operation can be cancelled
4019
+ * by triggering the cancellable object from another thread. If the
4020
+ * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
4021
+ * returned.
4022
+ *
4023
+ * If you pass in a non-%NULL `etag` value and `file` already exists, then
4024
+ * this value is compared to the current entity tag of the file, and if
4025
+ * they differ an %G_IO_ERROR_WRONG_ETAG error is returned. This
4026
+ * generally means that the file has been changed since you last read
4027
+ * it. You can get the new etag from g_file_output_stream_get_etag()
4028
+ * after you've finished writing and closed the #GFileOutputStream. When
4029
+ * you load a new file you can use g_file_input_stream_query_info() to
4030
+ * get the etag of the file.
4031
+ *
4032
+ * If `make_backup` is %TRUE, this function will attempt to make a
4033
+ * backup of the current file before overwriting it. If this fails
4034
+ * a %G_IO_ERROR_CANT_CREATE_BACKUP error will be returned. If you
4035
+ * want to replace anyway, try again with `make_backup` set to %FALSE.
4036
+ *
4037
+ * If the file is a directory the %G_IO_ERROR_IS_DIRECTORY error will
4038
+ * be returned, and if the file is some other form of non-regular file
4039
+ * then a %G_IO_ERROR_NOT_REGULAR_FILE error will be returned. Some
4040
+ * file systems don't allow all file names, and may return an
4041
+ * %G_IO_ERROR_INVALID_FILENAME error, and if the name is to long
4042
+ * %G_IO_ERROR_FILENAME_TOO_LONG will be returned. Other errors are
4043
+ * possible too, and depend on what kind of filesystem the file is on.
4044
+ * @param etag - an optional [entity tag](#entity-tags)
4045
+ * @param makeBackup - %TRUE if a backup should be created
4046
+ * @param flags - a set of #GFileCreateFlags
4047
+ * @param cancellable - optional #GCancellable object,
4048
+ */
2677
4049
  replace(makeBackup, flags, etag, cancellable) {
2678
4050
  const error = { value: null };
2679
4051
  const ptr = call("libgio-2.0.so.0", "g_file_replace", [
@@ -2716,6 +4088,24 @@ export class File {
2716
4088
  }
2717
4089
  return getObject(ptr, FileOutputStream);
2718
4090
  }
4091
+ /**
4092
+ * Asynchronously overwrites the file, replacing the contents,
4093
+ * possibly creating a backup copy of the file first.
4094
+ *
4095
+ * For more details, see g_file_replace() which is
4096
+ * the synchronous version of this call.
4097
+ *
4098
+ * When the operation is finished, `callback` will be called.
4099
+ * You can then call g_file_replace_finish() to get the result
4100
+ * of the operation.
4101
+ * @param etag - an [entity tag](#entity-tags) for the current #GFile,
4102
+ * @param makeBackup - %TRUE if a backup should be created
4103
+ * @param flags - a set of #GFileCreateFlags
4104
+ * @param ioPriority - the I/O priority of the request
4105
+ * @param cancellable - optional #GCancellable object,
4106
+ * @param callback - a #GAsyncReadyCallback
4107
+ * @param userData - the data to pass to callback function
4108
+ */
2719
4109
  replaceAsync(makeBackup, flags, ioPriority, etag, cancellable, callback, userData) {
2720
4110
  call("libgio-2.0.so.0", "g_file_replace_async", [
2721
4111
  {
@@ -2756,6 +4146,31 @@ export class File {
2756
4146
  },
2757
4147
  ], { type: "undefined" });
2758
4148
  }
4149
+ /**
4150
+ * Replaces the contents of `file` with `contents` of `length` bytes.
4151
+ *
4152
+ * If `etag` is specified (not %NULL), any existing file must have that etag,
4153
+ * or the error %G_IO_ERROR_WRONG_ETAG will be returned.
4154
+ *
4155
+ * If `make_backup` is %TRUE, this function will attempt to make a backup
4156
+ * of @file. Internally, it uses g_file_replace(), so will try to replace the
4157
+ * file contents in the safest way possible. For example, atomic renames are
4158
+ * used when replacing local files’ contents.
4159
+ *
4160
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4161
+ * triggering the cancellable object from another thread. If the operation
4162
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4163
+ *
4164
+ * The returned `new_etag` can be used to verify that the file hasn't
4165
+ * changed the next time it is saved over.
4166
+ * @param contents - a string containing the new contents for @file
4167
+ * @param length - the length of `contents` in bytes
4168
+ * @param etag - the old [entity-tag](#entity-tags) for the document,
4169
+ * @param makeBackup - %TRUE if a backup should be created
4170
+ * @param flags - a set of #GFileCreateFlags
4171
+ * @param newEtag - a location to a new [entity tag](#entity-tags)
4172
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
4173
+ */
2759
4174
  replaceContents(contents, length, makeBackup, flags, etag, newEtag, cancellable) {
2760
4175
  const error = { value: null };
2761
4176
  const result = call("libgio-2.0.so.0", "g_file_replace_contents", [
@@ -2814,6 +4229,35 @@ export class File {
2814
4229
  }
2815
4230
  return result;
2816
4231
  }
4232
+ /**
4233
+ * Starts an asynchronous replacement of `file` with the given
4234
+ * `contents` of `length` bytes. `etag` will replace the document's
4235
+ * current entity tag.
4236
+ *
4237
+ * When this operation has completed, `callback` will be called with
4238
+ * `user_user` data, and the operation can be finalized with
4239
+ * g_file_replace_contents_finish().
4240
+ *
4241
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4242
+ * triggering the cancellable object from another thread. If the operation
4243
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4244
+ *
4245
+ * If `make_backup` is %TRUE, this function will attempt to
4246
+ * make a backup of @file.
4247
+ *
4248
+ * Note that no copy of `contents` will be made, so it must stay valid
4249
+ * until `callback` is called. See g_file_replace_contents_bytes_async()
4250
+ * for a #GBytes version that will automatically hold a reference to the
4251
+ * contents (without copying) for the duration of the call.
4252
+ * @param contents - string of contents to replace the file with
4253
+ * @param length - the length of `contents` in bytes
4254
+ * @param etag - a new [entity tag](#entity-tags) for the @file, or %NULL
4255
+ * @param makeBackup - %TRUE if a backup should be created
4256
+ * @param flags - a set of #GFileCreateFlags
4257
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
4258
+ * @param callback - a #GAsyncReadyCallback to call when the request is satisfied
4259
+ * @param userData - the data to pass to callback function
4260
+ */
2817
4261
  replaceContentsAsync(contents, length, makeBackup, flags, etag, cancellable, callback, userData) {
2818
4262
  call("libgio-2.0.so.0", "g_file_replace_contents_async", [
2819
4263
  {
@@ -2861,6 +4305,23 @@ export class File {
2861
4305
  },
2862
4306
  ], { type: "undefined" });
2863
4307
  }
4308
+ /**
4309
+ * Same as g_file_replace_contents_async() but takes a #GBytes input instead.
4310
+ * This function will keep a ref on `contents` until the operation is done.
4311
+ * Unlike g_file_replace_contents_async() this allows forgetting about the
4312
+ * content without waiting for the callback.
4313
+ *
4314
+ * When this operation has completed, `callback` will be called with
4315
+ * `user_user` data, and the operation can be finalized with
4316
+ * g_file_replace_contents_finish().
4317
+ * @param contents - a #GBytes
4318
+ * @param etag - a new [entity tag](#entity-tags) for the @file, or %NULL
4319
+ * @param makeBackup - %TRUE if a backup should be created
4320
+ * @param flags - a set of #GFileCreateFlags
4321
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
4322
+ * @param callback - a #GAsyncReadyCallback to call when the request is satisfied
4323
+ * @param userData - the data to pass to callback function
4324
+ */
2864
4325
  replaceContentsBytesAsync(contents, makeBackup, flags, etag, cancellable, callback, userData) {
2865
4326
  call("libgio-2.0.so.0", "g_file_replace_contents_bytes_async", [
2866
4327
  {
@@ -2906,6 +4367,13 @@ export class File {
2906
4367
  },
2907
4368
  ], { type: "undefined" });
2908
4369
  }
4370
+ /**
4371
+ * Finishes an asynchronous replace of the given @file. See
4372
+ * g_file_replace_contents_async(). Sets `new_etag` to the new entity
4373
+ * tag for the document, if present.
4374
+ * @param res - a #GAsyncResult
4375
+ * @param newEtag - a location of a new [entity tag](#entity-tags)
4376
+ */
2909
4377
  replaceContentsFinish(res, newEtag) {
2910
4378
  const error = { value: null };
2911
4379
  const result = call("libgio-2.0.so.0", "g_file_replace_contents_finish", [
@@ -2939,6 +4407,11 @@ export class File {
2939
4407
  }
2940
4408
  return result;
2941
4409
  }
4410
+ /**
4411
+ * Finishes an asynchronous file replace operation started with
4412
+ * g_file_replace_async().
4413
+ * @param res - a #GAsyncResult
4414
+ */
2942
4415
  replaceFinish(res) {
2943
4416
  const error = { value: null };
2944
4417
  const ptr = call("libgio-2.0.so.0", "g_file_replace_finish", [
@@ -2967,6 +4440,22 @@ export class File {
2967
4440
  }
2968
4441
  return getObject(ptr, FileOutputStream);
2969
4442
  }
4443
+ /**
4444
+ * Returns an output stream for overwriting the file in readwrite mode,
4445
+ * possibly creating a backup copy of the file first. If the file doesn't
4446
+ * exist, it will be created.
4447
+ *
4448
+ * For details about the behaviour, see g_file_replace() which does the
4449
+ * same thing but returns an output stream only.
4450
+ *
4451
+ * Note that in many non-local file cases read and write streams are not
4452
+ * supported, so make sure you really need to do read and write streaming,
4453
+ * rather than just opening for reading or writing.
4454
+ * @param etag - an optional [entity tag](#entity-tags)
4455
+ * @param makeBackup - %TRUE if a backup should be created
4456
+ * @param flags - a set of #GFileCreateFlags
4457
+ * @param cancellable - optional #GCancellable object,
4458
+ */
2970
4459
  replaceReadwrite(makeBackup, flags, etag, cancellable) {
2971
4460
  const error = { value: null };
2972
4461
  const ptr = call("libgio-2.0.so.0", "g_file_replace_readwrite", [
@@ -3009,6 +4498,25 @@ export class File {
3009
4498
  }
3010
4499
  return getObject(ptr, FileIOStream);
3011
4500
  }
4501
+ /**
4502
+ * Asynchronously overwrites the file in read-write mode,
4503
+ * replacing the contents, possibly creating a backup copy
4504
+ * of the file first.
4505
+ *
4506
+ * For more details, see g_file_replace_readwrite() which is
4507
+ * the synchronous version of this call.
4508
+ *
4509
+ * When the operation is finished, `callback` will be called.
4510
+ * You can then call g_file_replace_readwrite_finish() to get
4511
+ * the result of the operation.
4512
+ * @param etag - an [entity tag](#entity-tags) for the current #GFile,
4513
+ * @param makeBackup - %TRUE if a backup should be created
4514
+ * @param flags - a set of #GFileCreateFlags
4515
+ * @param ioPriority - the I/O priority of the request
4516
+ * @param cancellable - optional #GCancellable object,
4517
+ * @param callback - a #GAsyncReadyCallback
4518
+ * @param userData - the data to pass to callback function
4519
+ */
3012
4520
  replaceReadwriteAsync(makeBackup, flags, ioPriority, etag, cancellable, callback, userData) {
3013
4521
  call("libgio-2.0.so.0", "g_file_replace_readwrite_async", [
3014
4522
  {
@@ -3049,6 +4557,11 @@ export class File {
3049
4557
  },
3050
4558
  ], { type: "undefined" });
3051
4559
  }
4560
+ /**
4561
+ * Finishes an asynchronous file replace operation started with
4562
+ * g_file_replace_readwrite_async().
4563
+ * @param res - a #GAsyncResult
4564
+ */
3052
4565
  replaceReadwriteFinish(res) {
3053
4566
  const error = { value: null };
3054
4567
  const ptr = call("libgio-2.0.so.0", "g_file_replace_readwrite_finish", [
@@ -3077,6 +4590,15 @@ export class File {
3077
4590
  }
3078
4591
  return getObject(ptr, FileIOStream);
3079
4592
  }
4593
+ /**
4594
+ * Resolves a relative path for `file` to an absolute path.
4595
+ *
4596
+ * This call does no blocking I/O.
4597
+ *
4598
+ * If the `relative_path` is an absolute path name, the resolution
4599
+ * is done absolutely (without taking `file` path as base).
4600
+ * @param relativePath - a given relative path string
4601
+ */
3080
4602
  resolveRelativePath(relativePath) {
3081
4603
  const ptr = call("libgio-2.0.so.0", "g_file_resolve_relative_path", [
3082
4604
  {
@@ -3090,6 +4612,21 @@ export class File {
3090
4612
  ], { type: "gobject", borrowed: true });
3091
4613
  return getObject(ptr, File);
3092
4614
  }
4615
+ /**
4616
+ * Sets an attribute in the file with attribute name `attribute` to @value_p.
4617
+ *
4618
+ * Some attributes can be unset by setting `type` to
4619
+ * %G_FILE_ATTRIBUTE_TYPE_INVALID and `value_p` to %NULL.
4620
+ *
4621
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4622
+ * triggering the cancellable object from another thread. If the operation
4623
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4624
+ * @param attribute - a string containing the attribute's name
4625
+ * @param type - The type of the attribute
4626
+ * @param valueP - a pointer to the value (or the pointer
4627
+ * @param flags - a set of #GFileQueryInfoFlags
4628
+ * @param cancellable - optional #GCancellable object,
4629
+ */
3093
4630
  setAttribute(attribute, type, flags, valueP, cancellable) {
3094
4631
  const error = { value: null };
3095
4632
  const result = call("libgio-2.0.so.0", "g_file_set_attribute", [
@@ -3136,6 +4673,19 @@ export class File {
3136
4673
  }
3137
4674
  return result;
3138
4675
  }
4676
+ /**
4677
+ * Sets `attribute` of type %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING to @value.
4678
+ * If `attribute` is of a different type, this operation will fail,
4679
+ * returning %FALSE.
4680
+ *
4681
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4682
+ * triggering the cancellable object from another thread. If the operation
4683
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4684
+ * @param attribute - a string containing the attribute's name
4685
+ * @param value - a string containing the attribute's new value
4686
+ * @param flags - a #GFileQueryInfoFlags
4687
+ * @param cancellable - optional #GCancellable object,
4688
+ */
3139
4689
  setAttributeByteString(attribute, value, flags, cancellable) {
3140
4690
  const error = { value: null };
3141
4691
  const result = call("libgio-2.0.so.0", "g_file_set_attribute_byte_string", [
@@ -3177,6 +4727,18 @@ export class File {
3177
4727
  }
3178
4728
  return result;
3179
4729
  }
4730
+ /**
4731
+ * Sets `attribute` of type %G_FILE_ATTRIBUTE_TYPE_INT32 to @value.
4732
+ * If `attribute` is of a different type, this operation will fail.
4733
+ *
4734
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4735
+ * triggering the cancellable object from another thread. If the operation
4736
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4737
+ * @param attribute - a string containing the attribute's name
4738
+ * @param value - a #gint32 containing the attribute's new value
4739
+ * @param flags - a #GFileQueryInfoFlags
4740
+ * @param cancellable - optional #GCancellable object,
4741
+ */
3180
4742
  setAttributeInt32(attribute, value, flags, cancellable) {
3181
4743
  const error = { value: null };
3182
4744
  const result = call("libgio-2.0.so.0", "g_file_set_attribute_int32", [
@@ -3218,6 +4780,18 @@ export class File {
3218
4780
  }
3219
4781
  return result;
3220
4782
  }
4783
+ /**
4784
+ * Sets `attribute` of type %G_FILE_ATTRIBUTE_TYPE_INT64 to @value.
4785
+ * If `attribute` is of a different type, this operation will fail.
4786
+ *
4787
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4788
+ * triggering the cancellable object from another thread. If the operation
4789
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4790
+ * @param attribute - a string containing the attribute's name
4791
+ * @param value - a #guint64 containing the attribute's new value
4792
+ * @param flags - a #GFileQueryInfoFlags
4793
+ * @param cancellable - optional #GCancellable object,
4794
+ */
3221
4795
  setAttributeInt64(attribute, value, flags, cancellable) {
3222
4796
  const error = { value: null };
3223
4797
  const result = call("libgio-2.0.so.0", "g_file_set_attribute_int64", [
@@ -3259,6 +4833,18 @@ export class File {
3259
4833
  }
3260
4834
  return result;
3261
4835
  }
4836
+ /**
4837
+ * Sets `attribute` of type %G_FILE_ATTRIBUTE_TYPE_STRING to @value.
4838
+ * If `attribute` is of a different type, this operation will fail.
4839
+ *
4840
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4841
+ * triggering the cancellable object from another thread. If the operation
4842
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4843
+ * @param attribute - a string containing the attribute's name
4844
+ * @param value - a string containing the attribute's value
4845
+ * @param flags - #GFileQueryInfoFlags
4846
+ * @param cancellable - optional #GCancellable object,
4847
+ */
3262
4848
  setAttributeString(attribute, value, flags, cancellable) {
3263
4849
  const error = { value: null };
3264
4850
  const result = call("libgio-2.0.so.0", "g_file_set_attribute_string", [
@@ -3300,6 +4886,18 @@ export class File {
3300
4886
  }
3301
4887
  return result;
3302
4888
  }
4889
+ /**
4890
+ * Sets `attribute` of type %G_FILE_ATTRIBUTE_TYPE_UINT32 to @value.
4891
+ * If `attribute` is of a different type, this operation will fail.
4892
+ *
4893
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4894
+ * triggering the cancellable object from another thread. If the operation
4895
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4896
+ * @param attribute - a string containing the attribute's name
4897
+ * @param value - a #guint32 containing the attribute's new value
4898
+ * @param flags - a #GFileQueryInfoFlags
4899
+ * @param cancellable - optional #GCancellable object,
4900
+ */
3303
4901
  setAttributeUint32(attribute, value, flags, cancellable) {
3304
4902
  const error = { value: null };
3305
4903
  const result = call("libgio-2.0.so.0", "g_file_set_attribute_uint32", [
@@ -3341,6 +4939,18 @@ export class File {
3341
4939
  }
3342
4940
  return result;
3343
4941
  }
4942
+ /**
4943
+ * Sets `attribute` of type %G_FILE_ATTRIBUTE_TYPE_UINT64 to @value.
4944
+ * If `attribute` is of a different type, this operation will fail.
4945
+ *
4946
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
4947
+ * triggering the cancellable object from another thread. If the operation
4948
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
4949
+ * @param attribute - a string containing the attribute's name
4950
+ * @param value - a #guint64 containing the attribute's new value
4951
+ * @param flags - a #GFileQueryInfoFlags
4952
+ * @param cancellable - optional #GCancellable object,
4953
+ */
3344
4954
  setAttributeUint64(attribute, value, flags, cancellable) {
3345
4955
  const error = { value: null };
3346
4956
  const result = call("libgio-2.0.so.0", "g_file_set_attribute_uint64", [
@@ -3382,6 +4992,22 @@ export class File {
3382
4992
  }
3383
4993
  return result;
3384
4994
  }
4995
+ /**
4996
+ * Asynchronously sets the attributes of `file` with @info.
4997
+ *
4998
+ * For more details, see g_file_set_attributes_from_info(),
4999
+ * which is the synchronous version of this call.
5000
+ *
5001
+ * When the operation is finished, `callback` will be called.
5002
+ * You can then call g_file_set_attributes_finish() to get
5003
+ * the result of the operation.
5004
+ * @param info - a #GFileInfo
5005
+ * @param flags - a #GFileQueryInfoFlags
5006
+ * @param ioPriority - the I/O priority of the request
5007
+ * @param cancellable - optional #GCancellable object,
5008
+ * @param callback - a #GAsyncReadyCallback
5009
+ * @param userData - the data to pass to callback function
5010
+ */
3385
5011
  setAttributesAsync(info, flags, ioPriority, cancellable, callback, userData) {
3386
5012
  call("libgio-2.0.so.0", "g_file_set_attributes_async", [
3387
5013
  {
@@ -3417,6 +5043,11 @@ export class File {
3417
5043
  },
3418
5044
  ], { type: "undefined" });
3419
5045
  }
5046
+ /**
5047
+ * Finishes setting an attribute started in g_file_set_attributes_async().
5048
+ * @param result - a #GAsyncResult
5049
+ * @param info - a #GFileInfo
5050
+ */
3420
5051
  setAttributesFinish(result, info) {
3421
5052
  const error = { value: null };
3422
5053
  const _result = call("libgio-2.0.so.0", "g_file_set_attributes_finish", [
@@ -3449,6 +5080,23 @@ export class File {
3449
5080
  }
3450
5081
  return _result;
3451
5082
  }
5083
+ /**
5084
+ * Tries to set all attributes in the #GFileInfo on the target
5085
+ * values, not stopping on the first error.
5086
+ *
5087
+ * If there is any error during this operation then `error` will
5088
+ * be set to the first error. Error on particular fields are flagged
5089
+ * by setting the "status" field in the attribute value to
5090
+ * %G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can
5091
+ * also detect further errors.
5092
+ *
5093
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
5094
+ * triggering the cancellable object from another thread. If the operation
5095
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
5096
+ * @param info - a #GFileInfo
5097
+ * @param flags - #GFileQueryInfoFlags
5098
+ * @param cancellable - optional #GCancellable object,
5099
+ */
3452
5100
  setAttributesFromInfo(info, flags, cancellable) {
3453
5101
  const error = { value: null };
3454
5102
  const result = call("libgio-2.0.so.0", "g_file_set_attributes_from_info", [
@@ -3486,6 +5134,25 @@ export class File {
3486
5134
  }
3487
5135
  return result;
3488
5136
  }
5137
+ /**
5138
+ * Renames `file` to the specified display name.
5139
+ *
5140
+ * The display name is converted from UTF-8 to the correct encoding
5141
+ * for the target filesystem if possible and the `file` is renamed to this.
5142
+ *
5143
+ * If you want to implement a rename operation in the user interface the
5144
+ * edit name (%G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME) should be used as the
5145
+ * initial value in the rename widget, and then the result after editing
5146
+ * should be passed to g_file_set_display_name().
5147
+ *
5148
+ * On success the resulting converted filename is returned.
5149
+ *
5150
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
5151
+ * triggering the cancellable object from another thread. If the operation
5152
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
5153
+ * @param displayName - a string
5154
+ * @param cancellable - optional #GCancellable object,
5155
+ */
3489
5156
  setDisplayName(displayName, cancellable) {
3490
5157
  const error = { value: null };
3491
5158
  const ptr = call("libgio-2.0.so.0", "g_file_set_display_name", [
@@ -3519,6 +5186,21 @@ export class File {
3519
5186
  }
3520
5187
  return getObject(ptr, File);
3521
5188
  }
5189
+ /**
5190
+ * Asynchronously sets the display name for a given #GFile.
5191
+ *
5192
+ * For more details, see g_file_set_display_name() which is
5193
+ * the synchronous version of this call.
5194
+ *
5195
+ * When the operation is finished, `callback` will be called.
5196
+ * You can then call g_file_set_display_name_finish() to get
5197
+ * the result of the operation.
5198
+ * @param displayName - a string
5199
+ * @param ioPriority - the I/O priority of the request
5200
+ * @param cancellable - optional #GCancellable object,
5201
+ * @param callback - a #GAsyncReadyCallback
5202
+ * @param userData - the data to pass to callback function
5203
+ */
3522
5204
  setDisplayNameAsync(displayName, ioPriority, cancellable, callback, userData) {
3523
5205
  call("libgio-2.0.so.0", "g_file_set_display_name_async", [
3524
5206
  {
@@ -3550,6 +5232,11 @@ export class File {
3550
5232
  },
3551
5233
  ], { type: "undefined" });
3552
5234
  }
5235
+ /**
5236
+ * Finishes setting a display name started with
5237
+ * g_file_set_display_name_async().
5238
+ * @param res - a #GAsyncResult
5239
+ */
3553
5240
  setDisplayNameFinish(res) {
3554
5241
  const error = { value: null };
3555
5242
  const ptr = call("libgio-2.0.so.0", "g_file_set_display_name_finish", [
@@ -3578,6 +5265,24 @@ export class File {
3578
5265
  }
3579
5266
  return getObject(ptr, File);
3580
5267
  }
5268
+ /**
5269
+ * Starts a file of type %G_FILE_TYPE_MOUNTABLE.
5270
+ * Using @start_operation, you can request callbacks when, for instance,
5271
+ * passwords are needed during authentication.
5272
+ *
5273
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
5274
+ * triggering the cancellable object from another thread. If the operation
5275
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
5276
+ *
5277
+ * When the operation is finished, `callback` will be called.
5278
+ * You can then call g_file_mount_mountable_finish() to get
5279
+ * the result of the operation.
5280
+ * @param flags - flags affecting the operation
5281
+ * @param startOperation - a #GMountOperation, or %NULL to avoid user interaction
5282
+ * @param cancellable - optional #GCancellable object, %NULL to ignore
5283
+ * @param callback - a #GAsyncReadyCallback to call when the request is satisfied, or %NULL
5284
+ * @param userData - the data to pass to callback function
5285
+ */
3581
5286
  startMountable(flags, startOperation, cancellable, callback, userData) {
3582
5287
  call("libgio-2.0.so.0", "g_file_start_mountable", [
3583
5288
  {
@@ -3610,6 +5315,13 @@ export class File {
3610
5315
  },
3611
5316
  ], { type: "undefined" });
3612
5317
  }
5318
+ /**
5319
+ * Finishes a start operation. See g_file_start_mountable() for details.
5320
+ *
5321
+ * Finish an asynchronous start operation that was started
5322
+ * with g_file_start_mountable().
5323
+ * @param result - a #GAsyncResult
5324
+ */
3613
5325
  startMountableFinish(result) {
3614
5326
  const error = { value: null };
3615
5327
  const _result = call("libgio-2.0.so.0", "g_file_start_mountable_finish", [
@@ -3638,6 +5350,22 @@ export class File {
3638
5350
  }
3639
5351
  return _result;
3640
5352
  }
5353
+ /**
5354
+ * Stops a file of type %G_FILE_TYPE_MOUNTABLE.
5355
+ *
5356
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
5357
+ * triggering the cancellable object from another thread. If the operation
5358
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
5359
+ *
5360
+ * When the operation is finished, `callback` will be called.
5361
+ * You can then call g_file_stop_mountable_finish() to get
5362
+ * the result of the operation.
5363
+ * @param flags - flags affecting the operation
5364
+ * @param mountOperation - a #GMountOperation,
5365
+ * @param cancellable - optional #GCancellable object,
5366
+ * @param callback - a #GAsyncReadyCallback to call
5367
+ * @param userData - the data to pass to callback function
5368
+ */
3641
5369
  stopMountable(flags, mountOperation, cancellable, callback, userData) {
3642
5370
  call("libgio-2.0.so.0", "g_file_stop_mountable", [
3643
5371
  {
@@ -3670,6 +5398,13 @@ export class File {
3670
5398
  },
3671
5399
  ], { type: "undefined" });
3672
5400
  }
5401
+ /**
5402
+ * Finishes a stop operation, see g_file_stop_mountable() for details.
5403
+ *
5404
+ * Finish an asynchronous stop operation that was started
5405
+ * with g_file_stop_mountable().
5406
+ * @param result - a #GAsyncResult
5407
+ */
3673
5408
  stopMountableFinish(result) {
3674
5409
  const error = { value: null };
3675
5410
  const _result = call("libgio-2.0.so.0", "g_file_stop_mountable_finish", [
@@ -3698,6 +5433,12 @@ export class File {
3698
5433
  }
3699
5434
  return _result;
3700
5435
  }
5436
+ /**
5437
+ * Checks if `file` supports thread-default main contexts
5438
+ * (see [method@GLib.MainContext.push_thread_default])
5439
+ * If this returns %FALSE, you cannot perform asynchronous operations on
5440
+ * `file` in a thread that has a thread-default context.
5441
+ */
3701
5442
  supportsThreadContexts() {
3702
5443
  return call("libgio-2.0.so.0", "g_file_supports_thread_contexts", [
3703
5444
  {
@@ -3706,6 +5447,22 @@ export class File {
3706
5447
  },
3707
5448
  ], { type: "boolean" });
3708
5449
  }
5450
+ /**
5451
+ * Sends `file` to the "Trashcan", if possible. This is similar to
5452
+ * deleting it, but the user can recover it before emptying the trashcan.
5453
+ * Trashing is disabled for system mounts by default (see
5454
+ * g_unix_mount_entry_is_system_internal()), so this call can return the
5455
+ * %G_IO_ERROR_NOT_SUPPORTED error. Since GLib 2.66, the `x-gvfs-notrash` unix
5456
+ * mount option can be used to disable g_file_trash() support for particular
5457
+ * mounts, the %G_IO_ERROR_NOT_SUPPORTED error will be returned in that case.
5458
+ * Since 2.82, the `x-gvfs-trash` unix mount option can be used to enable
5459
+ * g_file_trash() support for particular system mounts.
5460
+ *
5461
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
5462
+ * triggering the cancellable object from another thread. If the operation
5463
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
5464
+ * @param cancellable - optional #GCancellable object,
5465
+ */
3709
5466
  trash(cancellable) {
3710
5467
  const error = { value: null };
3711
5468
  const result = call("libgio-2.0.so.0", "g_file_trash", [
@@ -3735,6 +5492,13 @@ export class File {
3735
5492
  }
3736
5493
  return result;
3737
5494
  }
5495
+ /**
5496
+ * Asynchronously sends `file` to the Trash location, if possible.
5497
+ * @param ioPriority - the I/O priority of the request
5498
+ * @param cancellable - optional #GCancellable object,
5499
+ * @param callback - a #GAsyncReadyCallback to call
5500
+ * @param userData - the data to pass to callback function
5501
+ */
3738
5502
  trashAsync(ioPriority, cancellable, callback, userData) {
3739
5503
  call("libgio-2.0.so.0", "g_file_trash_async", [
3740
5504
  {
@@ -3762,6 +5526,11 @@ export class File {
3762
5526
  },
3763
5527
  ], { type: "undefined" });
3764
5528
  }
5529
+ /**
5530
+ * Finishes an asynchronous file trashing operation, started with
5531
+ * g_file_trash_async().
5532
+ * @param result - a #GAsyncResult
5533
+ */
3765
5534
  trashFinish(result) {
3766
5535
  const error = { value: null };
3767
5536
  const _result = call("libgio-2.0.so.0", "g_file_trash_finish", [
@@ -3790,6 +5559,21 @@ export class File {
3790
5559
  }
3791
5560
  return _result;
3792
5561
  }
5562
+ /**
5563
+ * Unmounts a file of type G_FILE_TYPE_MOUNTABLE.
5564
+ *
5565
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
5566
+ * triggering the cancellable object from another thread. If the operation
5567
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
5568
+ *
5569
+ * When the operation is finished, `callback` will be called.
5570
+ * You can then call g_file_unmount_mountable_finish() to get
5571
+ * the result of the operation.
5572
+ * @param flags - flags affecting the operation
5573
+ * @param cancellable - optional #GCancellable object,
5574
+ * @param callback - a #GAsyncReadyCallback
5575
+ * @param userData - the data to pass to callback function
5576
+ */
3793
5577
  unmountMountable(flags, cancellable, callback, userData) {
3794
5578
  call("libgio-2.0.so.0", "g_file_unmount_mountable", [
3795
5579
  {
@@ -3817,6 +5601,13 @@ export class File {
3817
5601
  },
3818
5602
  ], { type: "undefined" });
3819
5603
  }
5604
+ /**
5605
+ * Finishes an unmount operation, see g_file_unmount_mountable() for details.
5606
+ *
5607
+ * Finish an asynchronous unmount operation that was started
5608
+ * with g_file_unmount_mountable().
5609
+ * @param result - a #GAsyncResult
5610
+ */
3820
5611
  unmountMountableFinish(result) {
3821
5612
  const error = { value: null };
3822
5613
  const _result = call("libgio-2.0.so.0", "g_file_unmount_mountable_finish", [
@@ -3845,6 +5636,22 @@ export class File {
3845
5636
  }
3846
5637
  return _result;
3847
5638
  }
5639
+ /**
5640
+ * Unmounts a file of type %G_FILE_TYPE_MOUNTABLE.
5641
+ *
5642
+ * If `cancellable` is not %NULL, then the operation can be cancelled by
5643
+ * triggering the cancellable object from another thread. If the operation
5644
+ * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
5645
+ *
5646
+ * When the operation is finished, `callback` will be called.
5647
+ * You can then call g_file_unmount_mountable_finish() to get
5648
+ * the result of the operation.
5649
+ * @param flags - flags affecting the operation
5650
+ * @param mountOperation - a #GMountOperation,
5651
+ * @param cancellable - optional #GCancellable object,
5652
+ * @param callback - a #GAsyncReadyCallback
5653
+ * @param userData - the data to pass to callback function
5654
+ */
3848
5655
  unmountMountableWithOperation(flags, mountOperation, cancellable, callback, userData) {
3849
5656
  call("libgio-2.0.so.0", "g_file_unmount_mountable_with_operation", [
3850
5657
  {
@@ -3877,6 +5684,14 @@ export class File {
3877
5684
  },
3878
5685
  ], { type: "undefined" });
3879
5686
  }
5687
+ /**
5688
+ * Finishes an unmount operation,
5689
+ * see g_file_unmount_mountable_with_operation() for details.
5690
+ *
5691
+ * Finish an asynchronous unmount operation that was started
5692
+ * with g_file_unmount_mountable_with_operation().
5693
+ * @param result - a #GAsyncResult
5694
+ */
3880
5695
  unmountMountableWithOperationFinish(result) {
3881
5696
  const error = { value: null };
3882
5697
  const _result = call("libgio-2.0.so.0", "g_file_unmount_mountable_with_operation_finish", [