@gtkx/ffi 0.1.45 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cairo/cairo.d.ts +103 -0
- package/dist/cairo/cairo.js +103 -0
- package/dist/cairo/index.d.ts +13 -0
- package/dist/cairo/index.js +13 -0
- package/dist/codegen/ffi-generator.d.ts +21 -0
- package/dist/codegen/ffi-generator.js +14 -0
- package/dist/generated/gdk/app-launch-context.d.ts +74 -0
- package/dist/generated/gdk/app-launch-context.js +74 -0
- package/dist/generated/gdk/button-event.d.ts +4 -0
- package/dist/generated/gdk/button-event.js +4 -0
- package/dist/generated/gdk/cairo-context.d.ts +17 -0
- package/dist/generated/gdk/cairo-context.js +17 -0
- package/dist/generated/gdk/cicp-params.d.ts +64 -0
- package/dist/generated/gdk/cicp-params.js +64 -0
- package/dist/generated/gdk/clipboard.d.ts +71 -0
- package/dist/generated/gdk/clipboard.js +89 -0
- package/dist/generated/gdk/color-state.d.ts +96 -0
- package/dist/generated/gdk/color-state.js +96 -0
- package/dist/generated/gdk/content-deserializer.d.ts +58 -0
- package/dist/generated/gdk/content-deserializer.js +58 -0
- package/dist/generated/gdk/content-formats-builder.d.ts +38 -0
- package/dist/generated/gdk/content-formats-builder.js +38 -0
- package/dist/generated/gdk/content-formats.d.ts +144 -0
- package/dist/generated/gdk/content-formats.js +144 -0
- package/dist/generated/gdk/content-provider.d.ts +59 -0
- package/dist/generated/gdk/content-provider.js +64 -0
- package/dist/generated/gdk/content-serializer.d.ts +59 -0
- package/dist/generated/gdk/content-serializer.js +59 -0
- package/dist/generated/gdk/crossing-event.d.ts +10 -0
- package/dist/generated/gdk/crossing-event.js +10 -0
- package/dist/generated/gdk/cursor.d.ts +139 -0
- package/dist/generated/gdk/cursor.js +129 -0
- package/dist/generated/gdk/delete-event.d.ts +1 -0
- package/dist/generated/gdk/delete-event.js +1 -0
- package/dist/generated/gdk/device-pad.d.ts +40 -0
- package/dist/generated/gdk/device-pad.js +40 -0
- package/dist/generated/gdk/device-tool.d.ts +26 -0
- package/dist/generated/gdk/device-tool.js +26 -0
- package/dist/generated/gdk/device.d.ts +123 -0
- package/dist/generated/gdk/device.js +129 -0
- package/dist/generated/gdk/display-manager.d.ts +25 -0
- package/dist/generated/gdk/display-manager.js +70 -0
- package/dist/generated/gdk/display.d.ts +256 -0
- package/dist/generated/gdk/display.js +272 -0
- package/dist/generated/gdk/dmabuf-formats.d.ts +55 -0
- package/dist/generated/gdk/dmabuf-formats.js +55 -0
- package/dist/generated/gdk/dmabuf-texture-builder.d.ts +217 -0
- package/dist/generated/gdk/dmabuf-texture-builder.js +217 -0
- package/dist/generated/gdk/dmabuf-texture.d.ts +8 -0
- package/dist/generated/gdk/dmabuf-texture.js +8 -0
- package/dist/generated/gdk/dndevent.d.ts +4 -0
- package/dist/generated/gdk/dndevent.js +4 -0
- package/dist/generated/gdk/drag-surface.d.ts +6 -0
- package/dist/generated/gdk/drag-surface.js +6 -0
- package/dist/generated/gdk/drag.d.ts +74 -0
- package/dist/generated/gdk/drag.js +86 -0
- package/dist/generated/gdk/draw-context.d.ts +70 -0
- package/dist/generated/gdk/draw-context.js +70 -0
- package/dist/generated/gdk/drop.d.ts +93 -0
- package/dist/generated/gdk/drop.js +93 -0
- package/dist/generated/gdk/enums.d.ts +1069 -0
- package/dist/generated/gdk/enums.js +1069 -0
- package/dist/generated/gdk/event-sequence.d.ts +1 -0
- package/dist/generated/gdk/event-sequence.js +1 -0
- package/dist/generated/gdk/event.d.ts +142 -0
- package/dist/generated/gdk/event.js +142 -0
- package/dist/generated/gdk/file-list.d.ts +20 -0
- package/dist/generated/gdk/file-list.js +20 -0
- package/dist/generated/gdk/focus-event.d.ts +5 -0
- package/dist/generated/gdk/focus-event.js +5 -0
- package/dist/generated/gdk/frame-clock.d.ts +79 -0
- package/dist/generated/gdk/frame-clock.js +113 -0
- package/dist/generated/gdk/frame-timings.d.ts +68 -0
- package/dist/generated/gdk/frame-timings.js +68 -0
- package/dist/generated/gdk/functions.d.ts +367 -0
- package/dist/generated/gdk/functions.js +367 -0
- package/dist/generated/gdk/glcontext.d.ts +203 -0
- package/dist/generated/gdk/glcontext.js +203 -0
- package/dist/generated/gdk/gltexture-builder.d.ts +157 -0
- package/dist/generated/gdk/gltexture-builder.js +157 -0
- package/dist/generated/gdk/gltexture.d.ts +21 -0
- package/dist/generated/gdk/gltexture.js +8 -0
- package/dist/generated/gdk/grab-broken-event.d.ts +7 -0
- package/dist/generated/gdk/grab-broken-event.js +7 -0
- package/dist/generated/gdk/key-event.d.ts +39 -0
- package/dist/generated/gdk/key-event.js +39 -0
- package/dist/generated/gdk/memory-texture-builder.d.ts +131 -0
- package/dist/generated/gdk/memory-texture-builder.js +131 -0
- package/dist/generated/gdk/memory-texture.d.ts +12 -0
- package/dist/generated/gdk/memory-texture.js +1 -0
- package/dist/generated/gdk/monitor.d.ts +77 -0
- package/dist/generated/gdk/monitor.js +85 -0
- package/dist/generated/gdk/motion-event.d.ts +1 -0
- package/dist/generated/gdk/motion-event.js +1 -0
- package/dist/generated/gdk/pad-event.d.ts +15 -0
- package/dist/generated/gdk/pad-event.js +15 -0
- package/dist/generated/gdk/paintable.d.ts +155 -0
- package/dist/generated/gdk/paintable.js +155 -0
- package/dist/generated/gdk/popup-layout.d.ts +126 -0
- package/dist/generated/gdk/popup-layout.js +110 -0
- package/dist/generated/gdk/popup.d.ts +53 -0
- package/dist/generated/gdk/popup.js +53 -0
- package/dist/generated/gdk/proximity-event.d.ts +1 -0
- package/dist/generated/gdk/proximity-event.js +1 -0
- package/dist/generated/gdk/rectangle.d.ts +53 -0
- package/dist/generated/gdk/rectangle.js +53 -0
- package/dist/generated/gdk/rgba.d.ts +82 -0
- package/dist/generated/gdk/rgba.js +82 -0
- package/dist/generated/gdk/scroll-event.d.ts +32 -0
- package/dist/generated/gdk/scroll-event.js +32 -0
- package/dist/generated/gdk/seat.d.ts +19 -0
- package/dist/generated/gdk/seat.js +20 -0
- package/dist/generated/gdk/snapshot.d.ts +5 -0
- package/dist/generated/gdk/snapshot.js +5 -0
- package/dist/generated/gdk/surface.d.ts +233 -0
- package/dist/generated/gdk/surface.js +236 -0
- package/dist/generated/gdk/texture-downloader.d.ts +81 -0
- package/dist/generated/gdk/texture-downloader.js +74 -0
- package/dist/generated/gdk/texture.d.ts +307 -0
- package/dist/generated/gdk/texture.js +299 -0
- package/dist/generated/gdk/toplevel-layout.d.ts +69 -0
- package/dist/generated/gdk/toplevel-layout.js +69 -0
- package/dist/generated/gdk/toplevel.d.ts +188 -0
- package/dist/generated/gdk/toplevel.js +188 -0
- package/dist/generated/gdk/touch-event.d.ts +4 -0
- package/dist/generated/gdk/touch-event.js +4 -0
- package/dist/generated/gdk/touchpad-event.d.ts +25 -0
- package/dist/generated/gdk/touchpad-event.js +25 -0
- package/dist/generated/gdk/vulkan-context.js +10 -0
- package/dist/generated/gdkpixbuf/enums.d.ts +106 -0
- package/dist/generated/gdkpixbuf/enums.js +106 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation-iter.d.ts +64 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation-iter.js +64 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation.d.ts +132 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation.js +121 -0
- package/dist/generated/gdkpixbuf/pixbuf-format.d.ts +80 -0
- package/dist/generated/gdkpixbuf/pixbuf-format.js +80 -0
- package/dist/generated/gdkpixbuf/pixbuf-loader.d.ts +107 -0
- package/dist/generated/gdkpixbuf/pixbuf-loader.js +154 -0
- package/dist/generated/gdkpixbuf/pixbuf-simple-anim.d.ts +20 -0
- package/dist/generated/gdkpixbuf/pixbuf-simple-anim.js +14 -0
- package/dist/generated/gdkpixbuf/pixbuf.d.ts +842 -0
- package/dist/generated/gdkpixbuf/pixbuf.js +829 -0
- package/dist/generated/gio/action-group.d.ts +243 -0
- package/dist/generated/gio/action-group.js +243 -0
- package/dist/generated/gio/action-map.d.ts +102 -0
- package/dist/generated/gio/action-map.js +102 -0
- package/dist/generated/gio/action.d.ts +118 -0
- package/dist/generated/gio/action.js +118 -0
- package/dist/generated/gio/app-info-monitor.d.ts +15 -0
- package/dist/generated/gio/app-info-monitor.js +56 -0
- package/dist/generated/gio/app-info.d.ts +221 -0
- package/dist/generated/gio/app-info.js +221 -0
- package/dist/generated/gio/app-launch-context.d.ts +53 -0
- package/dist/generated/gio/app-launch-context.js +58 -0
- package/dist/generated/gio/application-command-line.d.ts +339 -0
- package/dist/generated/gio/application-command-line.js +339 -0
- package/dist/generated/gio/application.d.ts +903 -0
- package/dist/generated/gio/application.js +1017 -0
- package/dist/generated/gio/async-initable.d.ts +155 -0
- package/dist/generated/gio/async-initable.js +155 -0
- package/dist/generated/gio/async-result.d.ts +110 -0
- package/dist/generated/gio/async-result.js +110 -0
- package/dist/generated/gio/buffered-input-stream.d.ts +154 -0
- package/dist/generated/gio/buffered-input-stream.js +149 -0
- package/dist/generated/gio/buffered-output-stream.d.ts +83 -0
- package/dist/generated/gio/buffered-output-stream.js +79 -0
- package/dist/generated/gio/bytes-icon.d.ts +67 -0
- package/dist/generated/gio/bytes-icon.js +60 -0
- package/dist/generated/gio/cancellable.d.ts +197 -0
- package/dist/generated/gio/cancellable.js +204 -0
- package/dist/generated/gio/charset-converter.d.ts +160 -0
- package/dist/generated/gio/charset-converter.js +155 -0
- package/dist/generated/gio/converter-input-stream.d.ts +70 -0
- package/dist/generated/gio/converter-input-stream.js +65 -0
- package/dist/generated/gio/converter-output-stream.d.ts +99 -0
- package/dist/generated/gio/converter-output-stream.js +94 -0
- package/dist/generated/gio/converter.d.ts +111 -0
- package/dist/generated/gio/converter.js +111 -0
- package/dist/generated/gio/credentials.d.ts +87 -0
- package/dist/generated/gio/credentials.js +87 -0
- package/dist/generated/gio/data-input-stream.d.ts +227 -0
- package/dist/generated/gio/data-input-stream.js +223 -0
- package/dist/generated/gio/data-output-stream.d.ts +97 -0
- package/dist/generated/gio/data-output-stream.js +93 -0
- package/dist/generated/gio/datagram-based.d.ts +224 -0
- package/dist/generated/gio/datagram-based.js +224 -0
- package/dist/generated/gio/dbus-action-group.d.ts +250 -0
- package/dist/generated/gio/dbus-action-group.js +250 -0
- package/dist/generated/gio/dbus-annotation-info.d.ts +23 -0
- package/dist/generated/gio/dbus-annotation-info.js +23 -0
- package/dist/generated/gio/dbus-arg-info.d.ts +16 -0
- package/dist/generated/gio/dbus-arg-info.js +16 -0
- package/dist/generated/gio/dbus-auth-observer.d.ts +12 -0
- package/dist/generated/gio/dbus-auth-observer.js +77 -0
- package/dist/generated/gio/dbus-connection.d.ts +948 -0
- package/dist/generated/gio/dbus-connection.js +998 -0
- package/dist/generated/gio/dbus-interface-info.d.ts +72 -0
- package/dist/generated/gio/dbus-interface-info.js +72 -0
- package/dist/generated/gio/dbus-interface-skeleton.d.ts +74 -0
- package/dist/generated/gio/dbus-interface-skeleton.js +75 -0
- package/dist/generated/gio/dbus-interface.d.ts +20 -0
- package/dist/generated/gio/dbus-interface.js +20 -0
- package/dist/generated/gio/dbus-menu-model.d.ts +18 -0
- package/dist/generated/gio/dbus-menu-model.js +18 -0
- package/dist/generated/gio/dbus-message.d.ts +271 -0
- package/dist/generated/gio/dbus-message.js +271 -0
- package/dist/generated/gio/dbus-method-info.d.ts +21 -0
- package/dist/generated/gio/dbus-method-info.js +21 -0
- package/dist/generated/gio/dbus-method-invocation.d.ts +148 -0
- package/dist/generated/gio/dbus-method-invocation.js +148 -0
- package/dist/generated/gio/dbus-node-info.d.ts +48 -0
- package/dist/generated/gio/dbus-node-info.js +37 -0
- package/dist/generated/gio/dbus-object-manager-client.d.ts +205 -0
- package/dist/generated/gio/dbus-object-manager-client.js +281 -0
- package/dist/generated/gio/dbus-object-manager-server.d.ts +89 -0
- package/dist/generated/gio/dbus-object-manager-server.js +79 -0
- package/dist/generated/gio/dbus-object-manager.d.ts +25 -0
- package/dist/generated/gio/dbus-object-manager.js +25 -0
- package/dist/generated/gio/dbus-object-proxy.d.ts +26 -0
- package/dist/generated/gio/dbus-object-proxy.js +20 -0
- package/dist/generated/gio/dbus-object-skeleton.d.ts +45 -0
- package/dist/generated/gio/dbus-object-skeleton.js +48 -0
- package/dist/generated/gio/dbus-object.d.ts +17 -0
- package/dist/generated/gio/dbus-object.js +17 -0
- package/dist/generated/gio/dbus-property-info.d.ts +17 -0
- package/dist/generated/gio/dbus-property-info.js +17 -0
- package/dist/generated/gio/dbus-proxy.d.ts +434 -0
- package/dist/generated/gio/dbus-proxy.js +480 -0
- package/dist/generated/gio/dbus-server.d.ts +90 -0
- package/dist/generated/gio/dbus-server.js +85 -0
- package/dist/generated/gio/dbus-signal-info.d.ts +18 -0
- package/dist/generated/gio/dbus-signal-info.js +18 -0
- package/dist/generated/gio/debug-controller-dbus.d.ts +77 -0
- package/dist/generated/gio/debug-controller-dbus.js +178 -0
- package/dist/generated/gio/debug-controller.d.ts +25 -0
- package/dist/generated/gio/debug-controller.js +25 -0
- package/dist/generated/gio/drive.d.ts +168 -0
- package/dist/generated/gio/drive.js +168 -0
- package/dist/generated/gio/dtls-client-connection.d.ts +40 -0
- package/dist/generated/gio/dtls-client-connection.js +40 -0
- package/dist/generated/gio/dtls-connection.d.ts +305 -0
- package/dist/generated/gio/dtls-connection.js +305 -0
- package/dist/generated/gio/dtls-server-connection.d.ts +4 -0
- package/dist/generated/gio/dtls-server-connection.js +4 -0
- package/dist/generated/gio/emblem.d.ts +55 -0
- package/dist/generated/gio/emblem.js +51 -0
- package/dist/generated/gio/emblemed-icon.d.ts +58 -0
- package/dist/generated/gio/emblemed-icon.js +53 -0
- package/dist/generated/gio/enums.d.ts +1294 -0
- package/dist/generated/gio/enums.js +1294 -0
- package/dist/generated/gio/file-attribute-info-list.d.ts +30 -0
- package/dist/generated/gio/file-attribute-info-list.js +30 -0
- package/dist/generated/gio/file-attribute-matcher.d.ts +70 -0
- package/dist/generated/gio/file-attribute-matcher.js +48 -0
- package/dist/generated/gio/file-enumerator.d.ts +222 -0
- package/dist/generated/gio/file-enumerator.js +222 -0
- package/dist/generated/gio/file-icon.d.ts +66 -0
- package/dist/generated/gio/file-icon.js +62 -0
- package/dist/generated/gio/file-info.d.ts +484 -0
- package/dist/generated/gio/file-info.js +484 -0
- package/dist/generated/gio/file-input-stream.d.ts +84 -0
- package/dist/generated/gio/file-input-stream.js +84 -0
- package/dist/generated/gio/file-iostream.d.ts +107 -0
- package/dist/generated/gio/file-iostream.js +107 -0
- package/dist/generated/gio/file-monitor.d.ts +23 -0
- package/dist/generated/gio/file-monitor.js +38 -0
- package/dist/generated/gio/file-output-stream.d.ts +102 -0
- package/dist/generated/gio/file-output-stream.js +102 -0
- package/dist/generated/gio/file.d.ts +1815 -0
- package/dist/generated/gio/file.js +1815 -0
- package/dist/generated/gio/filename-completer.d.ts +22 -0
- package/dist/generated/gio/filename-completer.js +27 -0
- package/dist/generated/gio/filter-input-stream.d.ts +17 -0
- package/dist/generated/gio/filter-input-stream.js +17 -0
- package/dist/generated/gio/filter-output-stream.d.ts +17 -0
- package/dist/generated/gio/filter-output-stream.js +17 -0
- package/dist/generated/gio/functions.d.ts +1432 -0
- package/dist/generated/gio/functions.js +1432 -0
- package/dist/generated/gio/icon.d.ts +64 -0
- package/dist/generated/gio/icon.js +64 -0
- package/dist/generated/gio/inet-address-mask.d.ts +80 -0
- package/dist/generated/gio/inet-address-mask.js +74 -0
- package/dist/generated/gio/inet-address.d.ts +100 -0
- package/dist/generated/gio/inet-address.js +95 -0
- package/dist/generated/gio/inet-socket-address.d.ts +39 -0
- package/dist/generated/gio/inet-socket-address.js +34 -0
- package/dist/generated/gio/initable.d.ts +67 -0
- package/dist/generated/gio/initable.js +67 -0
- package/dist/generated/gio/input-stream.d.ts +300 -0
- package/dist/generated/gio/input-stream.js +300 -0
- package/dist/generated/gio/iomodule.d.ts +43 -0
- package/dist/generated/gio/iomodule.js +38 -0
- package/dist/generated/gio/iostream.d.ts +147 -0
- package/dist/generated/gio/iostream.js +147 -0
- package/dist/generated/gio/list-model.d.ts +123 -0
- package/dist/generated/gio/list-model.js +123 -0
- package/dist/generated/gio/list-store.d.ts +170 -0
- package/dist/generated/gio/list-store.js +166 -0
- package/dist/generated/gio/loadable-icon.d.ts +25 -0
- package/dist/generated/gio/loadable-icon.js +25 -0
- package/dist/generated/gio/memory-input-stream.d.ts +127 -0
- package/dist/generated/gio/memory-input-stream.js +127 -0
- package/dist/generated/gio/memory-monitor.d.ts +50 -0
- package/dist/generated/gio/memory-monitor.js +50 -0
- package/dist/generated/gio/memory-output-stream.d.ts +176 -0
- package/dist/generated/gio/memory-output-stream.js +176 -0
- package/dist/generated/gio/menu-attribute-iter.d.ts +45 -0
- package/dist/generated/gio/menu-attribute-iter.js +45 -0
- package/dist/generated/gio/menu-item.d.ts +243 -0
- package/dist/generated/gio/menu-item.js +231 -0
- package/dist/generated/gio/menu-link-iter.d.ts +42 -0
- package/dist/generated/gio/menu-link-iter.js +42 -0
- package/dist/generated/gio/menu-model.d.ts +68 -0
- package/dist/generated/gio/menu-model.js +186 -0
- package/dist/generated/gio/menu.d.ts +140 -0
- package/dist/generated/gio/menu.js +140 -0
- package/dist/generated/gio/mount-operation.d.ts +73 -0
- package/dist/generated/gio/mount-operation.js +97 -0
- package/dist/generated/gio/mount.d.ts +217 -0
- package/dist/generated/gio/mount.js +217 -0
- package/dist/generated/gio/native-socket-address.d.ts +11 -0
- package/dist/generated/gio/native-socket-address.js +6 -0
- package/dist/generated/gio/network-address.d.ts +105 -0
- package/dist/generated/gio/network-address.js +93 -0
- package/dist/generated/gio/network-monitor.d.ts +79 -0
- package/dist/generated/gio/network-monitor.js +79 -0
- package/dist/generated/gio/network-service.d.ts +59 -0
- package/dist/generated/gio/network-service.js +51 -0
- package/dist/generated/gio/notification.d.ts +134 -0
- package/dist/generated/gio/notification.js +125 -0
- package/dist/generated/gio/output-stream.d.ts +452 -0
- package/dist/generated/gio/output-stream.js +452 -0
- package/dist/generated/gio/permission.d.ts +112 -0
- package/dist/generated/gio/permission.js +112 -0
- package/dist/generated/gio/pollable-input-stream.d.ts +66 -0
- package/dist/generated/gio/pollable-input-stream.js +66 -0
- package/dist/generated/gio/pollable-output-stream.d.ts +95 -0
- package/dist/generated/gio/pollable-output-stream.js +95 -0
- package/dist/generated/gio/power-profile-monitor.d.ts +33 -0
- package/dist/generated/gio/power-profile-monitor.js +33 -0
- package/dist/generated/gio/property-action.d.ts +154 -0
- package/dist/generated/gio/property-action.js +141 -0
- package/dist/generated/gio/proxy-address-enumerator.d.ts +12 -0
- package/dist/generated/gio/proxy-address-enumerator.js +12 -0
- package/dist/generated/gio/proxy-address.d.ts +42 -0
- package/dist/generated/gio/proxy-address.js +27 -0
- package/dist/generated/gio/proxy-resolver.d.ts +48 -0
- package/dist/generated/gio/proxy-resolver.js +48 -0
- package/dist/generated/gio/proxy.d.ts +38 -0
- package/dist/generated/gio/proxy.js +38 -0
- package/dist/generated/gio/remote-action-group.d.ts +51 -0
- package/dist/generated/gio/remote-action-group.js +51 -0
- package/dist/generated/gio/resolver.d.ts +214 -0
- package/dist/generated/gio/resolver.js +235 -0
- package/dist/generated/gio/resource.d.ts +278 -0
- package/dist/generated/gio/resource.js +262 -0
- package/dist/generated/gio/seekable.d.ts +58 -0
- package/dist/generated/gio/seekable.js +58 -0
- package/dist/generated/gio/settings-backend.d.ts +144 -0
- package/dist/generated/gio/settings-backend.js +144 -0
- package/dist/generated/gio/settings-schema-key.d.ts +99 -0
- package/dist/generated/gio/settings-schema-key.js +99 -0
- package/dist/generated/gio/settings-schema-source.d.ts +89 -0
- package/dist/generated/gio/settings-schema-source.js +53 -0
- package/dist/generated/gio/settings-schema.d.ts +136 -0
- package/dist/generated/gio/settings-schema.js +136 -0
- package/dist/generated/gio/settings.d.ts +582 -0
- package/dist/generated/gio/settings.js +949 -0
- package/dist/generated/gio/simple-action-group.d.ts +322 -0
- package/dist/generated/gio/simple-action-group.js +322 -0
- package/dist/generated/gio/simple-action.d.ts +136 -0
- package/dist/generated/gio/simple-action.js +133 -0
- package/dist/generated/gio/simple-async-result.d.ts +302 -0
- package/dist/generated/gio/simple-async-result.js +286 -0
- package/dist/generated/gio/simple-iostream.d.ts +18 -0
- package/dist/generated/gio/simple-iostream.js +12 -0
- package/dist/generated/gio/simple-permission.d.ts +13 -0
- package/dist/generated/gio/simple-permission.js +8 -0
- package/dist/generated/gio/simple-proxy-resolver.d.ts +85 -0
- package/dist/generated/gio/simple-proxy-resolver.js +85 -0
- package/dist/generated/gio/socket-address-enumerator.d.ts +49 -0
- package/dist/generated/gio/socket-address-enumerator.js +49 -0
- package/dist/generated/gio/socket-address.d.ts +51 -0
- package/dist/generated/gio/socket-address.js +45 -0
- package/dist/generated/gio/socket-client.d.ts +337 -0
- package/dist/generated/gio/socket-client.js +352 -0
- package/dist/generated/gio/socket-connectable.d.ts +80 -0
- package/dist/generated/gio/socket-connectable.js +80 -0
- package/dist/generated/gio/socket-connection.d.ts +84 -0
- package/dist/generated/gio/socket-connection.js +84 -0
- package/dist/generated/gio/socket-control-message.d.ts +56 -0
- package/dist/generated/gio/socket-control-message.js +56 -0
- package/dist/generated/gio/socket-listener.d.ts +174 -0
- package/dist/generated/gio/socket-listener.js +191 -0
- package/dist/generated/gio/socket-service.d.ts +41 -0
- package/dist/generated/gio/socket-service.js +69 -0
- package/dist/generated/gio/socket.d.ts +999 -0
- package/dist/generated/gio/socket.js +981 -0
- package/dist/generated/gio/srv-target.d.ts +53 -0
- package/dist/generated/gio/srv-target.js +43 -0
- package/dist/generated/gio/subprocess-launcher.d.ts +226 -0
- package/dist/generated/gio/subprocess-launcher.js +218 -0
- package/dist/generated/gio/subprocess.d.ts +345 -0
- package/dist/generated/gio/subprocess.js +338 -0
- package/dist/generated/gio/task.d.ts +890 -0
- package/dist/generated/gio/task.js +868 -0
- package/dist/generated/gio/tcp-connection.d.ts +20 -0
- package/dist/generated/gio/tcp-connection.js +20 -0
- package/dist/generated/gio/tcp-wrapper-connection.d.ts +16 -0
- package/dist/generated/gio/tcp-wrapper-connection.js +11 -0
- package/dist/generated/gio/test-dbus.d.ts +131 -0
- package/dist/generated/gio/test-dbus.js +127 -0
- package/dist/generated/gio/themed-icon.d.ts +87 -0
- package/dist/generated/gio/themed-icon.js +83 -0
- package/dist/generated/gio/threaded-resolver.d.ts +4 -0
- package/dist/generated/gio/threaded-resolver.js +4 -0
- package/dist/generated/gio/threaded-socket-service.d.ts +5 -0
- package/dist/generated/gio/threaded-socket-service.js +18 -0
- package/dist/generated/gio/tls-backend.d.ts +45 -0
- package/dist/generated/gio/tls-backend.js +45 -0
- package/dist/generated/gio/tls-certificate.d.ts +190 -0
- package/dist/generated/gio/tls-certificate.js +178 -0
- package/dist/generated/gio/tls-client-connection.d.ts +88 -0
- package/dist/generated/gio/tls-client-connection.js +88 -0
- package/dist/generated/gio/tls-connection.d.ts +234 -0
- package/dist/generated/gio/tls-connection.js +243 -0
- package/dist/generated/gio/tls-database.d.ts +223 -0
- package/dist/generated/gio/tls-database.js +223 -0
- package/dist/generated/gio/tls-file-database.d.ts +5 -0
- package/dist/generated/gio/tls-file-database.js +5 -0
- package/dist/generated/gio/tls-interaction.d.ts +169 -0
- package/dist/generated/gio/tls-interaction.js +169 -0
- package/dist/generated/gio/tls-password.d.ts +67 -0
- package/dist/generated/gio/tls-password.js +62 -0
- package/dist/generated/gio/tls-server-connection.d.ts +4 -0
- package/dist/generated/gio/tls-server-connection.js +4 -0
- package/dist/generated/gio/unix-connection.d.ts +112 -0
- package/dist/generated/gio/unix-connection.js +112 -0
- package/dist/generated/gio/unix-credentials-message.d.ts +34 -0
- package/dist/generated/gio/unix-credentials-message.js +34 -0
- package/dist/generated/gio/unix-fdlist.d.ts +102 -0
- package/dist/generated/gio/unix-fdlist.js +102 -0
- package/dist/generated/gio/unix-socket-address.d.ts +90 -0
- package/dist/generated/gio/unix-socket-address.js +83 -0
- package/dist/generated/gio/vfs.d.ts +65 -0
- package/dist/generated/gio/vfs.js +65 -0
- package/dist/generated/gio/volume-monitor.d.ts +60 -0
- package/dist/generated/gio/volume-monitor.js +73 -0
- package/dist/generated/gio/volume.d.ts +164 -0
- package/dist/generated/gio/volume.js +164 -0
- package/dist/generated/gio/zlib-compressor.d.ts +131 -0
- package/dist/generated/gio/zlib-compressor.js +126 -0
- package/dist/generated/gio/zlib-decompressor.d.ts +111 -0
- package/dist/generated/gio/zlib-decompressor.js +107 -0
- package/dist/generated/glib/array.d.ts +9 -0
- package/dist/generated/glib/array.js +9 -0
- package/dist/generated/glib/bookmark-file.d.ts +513 -0
- package/dist/generated/glib/bookmark-file.js +513 -0
- package/dist/generated/glib/byte-array.d.ts +128 -0
- package/dist/generated/glib/byte-array.js +128 -0
- package/dist/generated/glib/bytes.d.ts +176 -0
- package/dist/generated/glib/bytes.js +176 -0
- package/dist/generated/glib/checksum.d.ts +64 -0
- package/dist/generated/glib/checksum.js +48 -0
- package/dist/generated/glib/date-time.d.ts +631 -0
- package/dist/generated/glib/date-time.js +595 -0
- package/dist/generated/glib/date.d.ts +393 -0
- package/dist/generated/glib/date.js +393 -0
- package/dist/generated/glib/dir.d.ts +67 -0
- package/dist/generated/glib/dir.js +60 -0
- package/dist/generated/glib/enums.d.ts +1721 -0
- package/dist/generated/glib/enums.js +1721 -0
- package/dist/generated/glib/error.d.ts +70 -0
- package/dist/generated/glib/error.js +61 -0
- package/dist/generated/glib/functions.d.ts +7786 -0
- package/dist/generated/glib/functions.js +7786 -0
- package/dist/generated/glib/hash-table.d.ts +233 -0
- package/dist/generated/glib/hash-table.js +233 -0
- package/dist/generated/glib/iochannel.d.ts +299 -0
- package/dist/generated/glib/iochannel.js +290 -0
- package/dist/generated/glib/key-file.d.ts +606 -0
- package/dist/generated/glib/key-file.js +606 -0
- package/dist/generated/glib/main-context.d.ts +346 -0
- package/dist/generated/glib/main-context.js +346 -0
- package/dist/generated/glib/main-loop.d.ts +38 -0
- package/dist/generated/glib/main-loop.js +33 -0
- package/dist/generated/glib/mapped-file.d.ts +72 -0
- package/dist/generated/glib/mapped-file.js +52 -0
- package/dist/generated/glib/markup-parse-context.d.ts +220 -0
- package/dist/generated/glib/markup-parse-context.js +209 -0
- package/dist/generated/glib/match-info.d.ts +369 -0
- package/dist/generated/glib/match-info.js +369 -0
- package/dist/generated/glib/option-group.d.ts +54 -0
- package/dist/generated/glib/option-group.js +41 -0
- package/dist/generated/glib/pattern-spec.d.ts +65 -0
- package/dist/generated/glib/pattern-spec.js +61 -0
- package/dist/generated/glib/poll-fd.d.ts +15 -0
- package/dist/generated/glib/poll-fd.js +15 -0
- package/dist/generated/glib/ptr-array.d.ts +6 -0
- package/dist/generated/glib/ptr-array.js +6 -0
- package/dist/generated/glib/rand.d.ts +61 -0
- package/dist/generated/glib/rand.js +61 -0
- package/dist/generated/glib/regex.d.ts +575 -0
- package/dist/generated/glib/regex.js +568 -0
- package/dist/generated/glib/source.d.ts +506 -0
- package/dist/generated/glib/source.js +492 -0
- package/dist/generated/glib/string.d.ts +249 -0
- package/dist/generated/glib/string.js +245 -0
- package/dist/generated/glib/strv-builder.d.ts +72 -0
- package/dist/generated/glib/strv-builder.js +72 -0
- package/dist/generated/glib/thread.d.ts +124 -0
- package/dist/generated/glib/thread.js +92 -0
- package/dist/generated/glib/time-zone.d.ts +217 -0
- package/dist/generated/glib/time-zone.js +209 -0
- package/dist/generated/glib/tree.d.ts +216 -0
- package/dist/generated/glib/tree.js +207 -0
- package/dist/generated/glib/uri.d.ts +549 -0
- package/dist/generated/glib/uri.js +549 -0
- package/dist/generated/glib/variant-builder.d.ts +113 -0
- package/dist/generated/glib/variant-builder.js +101 -0
- package/dist/generated/glib/variant-dict.d.ts +174 -0
- package/dist/generated/glib/variant-dict.js +161 -0
- package/dist/generated/glib/variant-type.d.ts +420 -0
- package/dist/generated/glib/variant-type.js +410 -0
- package/dist/generated/glib/variant.d.ts +1132 -0
- package/dist/generated/glib/variant.js +1112 -0
- package/dist/generated/gmodule/enums.d.ts +19 -0
- package/dist/generated/gmodule/enums.js +19 -0
- package/dist/generated/gmodule/functions.d.ts +23 -0
- package/dist/generated/gmodule/functions.js +23 -0
- package/dist/generated/gobject/binding-group.d.ts +59 -0
- package/dist/generated/gobject/binding-group.js +68 -0
- package/dist/generated/gobject/binding.d.ts +60 -0
- package/dist/generated/gobject/binding.js +137 -0
- package/dist/generated/gobject/closure.d.ts +187 -0
- package/dist/generated/gobject/closure.js +179 -0
- package/dist/generated/gobject/enums.d.ts +183 -0
- package/dist/generated/gobject/enums.js +183 -0
- package/dist/generated/gobject/functions.d.ts +1431 -0
- package/dist/generated/gobject/functions.js +1431 -0
- package/dist/generated/gobject/initially-unowned.js +6 -0
- package/dist/generated/gobject/object.d.ts +357 -0
- package/dist/generated/gobject/object.js +372 -0
- package/dist/generated/gobject/param-spec-boolean.d.ts +3 -0
- package/dist/generated/gobject/param-spec-boolean.js +3 -0
- package/dist/generated/gobject/param-spec-boxed.d.ts +3 -0
- package/dist/generated/gobject/param-spec-boxed.js +3 -0
- package/dist/generated/gobject/param-spec-char.d.ts +3 -0
- package/dist/generated/gobject/param-spec-char.js +3 -0
- package/dist/generated/gobject/param-spec-double.d.ts +3 -0
- package/dist/generated/gobject/param-spec-double.js +3 -0
- package/dist/generated/gobject/param-spec-enum.d.ts +4 -0
- package/dist/generated/gobject/param-spec-enum.js +4 -0
- package/dist/generated/gobject/param-spec-flags.d.ts +4 -0
- package/dist/generated/gobject/param-spec-flags.js +4 -0
- package/dist/generated/gobject/param-spec-float.d.ts +3 -0
- package/dist/generated/gobject/param-spec-float.js +3 -0
- package/dist/generated/gobject/param-spec-gtype.d.ts +3 -0
- package/dist/generated/gobject/param-spec-gtype.js +3 -0
- package/dist/generated/gobject/param-spec-int.d.ts +3 -0
- package/dist/generated/gobject/param-spec-int.js +3 -0
- package/dist/generated/gobject/param-spec-int64.d.ts +3 -0
- package/dist/generated/gobject/param-spec-int64.js +3 -0
- package/dist/generated/gobject/param-spec-long.d.ts +3 -0
- package/dist/generated/gobject/param-spec-long.js +3 -0
- package/dist/generated/gobject/param-spec-object.d.ts +3 -0
- package/dist/generated/gobject/param-spec-object.js +3 -0
- package/dist/generated/gobject/param-spec-override.d.ts +13 -0
- package/dist/generated/gobject/param-spec-override.js +13 -0
- package/dist/generated/gobject/param-spec-param.d.ts +4 -0
- package/dist/generated/gobject/param-spec-param.js +4 -0
- package/dist/generated/gobject/param-spec-pointer.d.ts +3 -0
- package/dist/generated/gobject/param-spec-pointer.js +3 -0
- package/dist/generated/gobject/param-spec-string.d.ts +4 -0
- package/dist/generated/gobject/param-spec-string.js +4 -0
- package/dist/generated/gobject/param-spec-uchar.d.ts +3 -0
- package/dist/generated/gobject/param-spec-uchar.js +3 -0
- package/dist/generated/gobject/param-spec-uint.d.ts +3 -0
- package/dist/generated/gobject/param-spec-uint.js +3 -0
- package/dist/generated/gobject/param-spec-uint64.d.ts +3 -0
- package/dist/generated/gobject/param-spec-uint64.js +3 -0
- package/dist/generated/gobject/param-spec-ulong.d.ts +3 -0
- package/dist/generated/gobject/param-spec-ulong.js +3 -0
- package/dist/generated/gobject/param-spec-unichar.d.ts +3 -0
- package/dist/generated/gobject/param-spec-unichar.js +3 -0
- package/dist/generated/gobject/param-spec-value-array.d.ts +3 -0
- package/dist/generated/gobject/param-spec-value-array.js +3 -0
- package/dist/generated/gobject/param-spec-variant.d.ts +9 -0
- package/dist/generated/gobject/param-spec-variant.js +9 -0
- package/dist/generated/gobject/param-spec.d.ts +82 -0
- package/dist/generated/gobject/param-spec.js +82 -0
- package/dist/generated/gobject/signal-group.d.ts +57 -0
- package/dist/generated/gobject/signal-group.js +74 -0
- package/dist/generated/gobject/type-module.d.ts +95 -0
- package/dist/generated/gobject/type-module.js +128 -0
- package/dist/generated/gobject/type-plugin.d.ts +76 -0
- package/dist/generated/gobject/type-plugin.js +76 -0
- package/dist/generated/gobject/value-array.d.ts +77 -0
- package/dist/generated/gobject/value-array.js +71 -0
- package/dist/generated/gobject/value.d.ts +353 -0
- package/dist/generated/gobject/value.js +353 -0
- package/dist/generated/graphene/box.d.ts +161 -0
- package/dist/generated/graphene/box.js +161 -0
- package/dist/generated/graphene/enums.d.ts +68 -0
- package/dist/generated/graphene/enums.js +68 -0
- package/dist/generated/graphene/euler.d.ts +147 -0
- package/dist/generated/graphene/euler.js +147 -0
- package/dist/generated/graphene/frustum.d.ts +56 -0
- package/dist/generated/graphene/frustum.js +56 -0
- package/dist/generated/graphene/functions.d.ts +108 -0
- package/dist/generated/graphene/functions.js +108 -0
- package/dist/generated/graphene/matrix.d.ts +477 -0
- package/dist/generated/graphene/matrix.js +477 -0
- package/dist/generated/graphene/plane.d.ts +85 -0
- package/dist/generated/graphene/plane.js +85 -0
- package/dist/generated/graphene/point.d.ts +79 -0
- package/dist/generated/graphene/point.js +79 -0
- package/dist/generated/graphene/point3d.d.ts +91 -0
- package/dist/generated/graphene/point3d.js +91 -0
- package/dist/generated/graphene/quad.d.ts +42 -0
- package/dist/generated/graphene/quad.js +42 -0
- package/dist/generated/graphene/quaternion.d.ts +140 -0
- package/dist/generated/graphene/quaternion.js +140 -0
- package/dist/generated/graphene/ray.d.ts +108 -0
- package/dist/generated/graphene/ray.js +108 -0
- package/dist/generated/graphene/rect.d.ts +245 -0
- package/dist/generated/graphene/rect.js +245 -0
- package/dist/generated/graphene/size.d.ts +41 -0
- package/dist/generated/graphene/size.js +41 -0
- package/dist/generated/graphene/sphere.d.ts +68 -0
- package/dist/generated/graphene/sphere.js +68 -0
- package/dist/generated/graphene/triangle.d.ts +111 -0
- package/dist/generated/graphene/triangle.js +111 -0
- package/dist/generated/graphene/vec2.d.ts +127 -0
- package/dist/generated/graphene/vec2.js +127 -0
- package/dist/generated/graphene/vec3.d.ts +169 -0
- package/dist/generated/graphene/vec3.js +169 -0
- package/dist/generated/graphene/vec4.d.ts +170 -0
- package/dist/generated/graphene/vec4.js +170 -0
- package/dist/generated/gsk/blend-node.d.ts +16 -0
- package/dist/generated/gsk/blend-node.js +10 -0
- package/dist/generated/gsk/blur-node.d.ts +12 -0
- package/dist/generated/gsk/blur-node.js +7 -0
- package/dist/generated/gsk/border-node.d.ts +19 -0
- package/dist/generated/gsk/border-node.js +10 -0
- package/dist/generated/gsk/broadway-renderer.d.ts +15 -0
- package/dist/generated/gsk/broadway-renderer.js +15 -0
- package/dist/generated/gsk/cairo-node.d.ts +18 -0
- package/dist/generated/gsk/cairo-node.js +11 -0
- package/dist/generated/gsk/cairo-renderer.d.ts +16 -0
- package/dist/generated/gsk/cairo-renderer.js +16 -0
- package/dist/generated/gsk/clip-node.d.ts +13 -0
- package/dist/generated/gsk/clip-node.js +7 -0
- package/dist/generated/gsk/color-matrix-node.d.ts +24 -0
- package/dist/generated/gsk/color-matrix-node.js +10 -0
- package/dist/generated/gsk/color-node.d.ts +13 -0
- package/dist/generated/gsk/color-node.js +7 -0
- package/dist/generated/gsk/component-transfer-node.d.ts +16 -0
- package/dist/generated/gsk/component-transfer-node.js +7 -0
- package/dist/generated/gsk/component-transfer.d.ts +107 -0
- package/dist/generated/gsk/component-transfer.js +89 -0
- package/dist/generated/gsk/conic-gradient-node.d.ts +34 -0
- package/dist/generated/gsk/conic-gradient-node.js +22 -0
- package/dist/generated/gsk/container-node.d.ts +15 -0
- package/dist/generated/gsk/container-node.js +8 -0
- package/dist/generated/gsk/cross-fade-node.d.ts +16 -0
- package/dist/generated/gsk/cross-fade-node.js +10 -0
- package/dist/generated/gsk/debug-node.d.ts +18 -0
- package/dist/generated/gsk/debug-node.js +10 -0
- package/dist/generated/gsk/enums.d.ts +313 -0
- package/dist/generated/gsk/enums.js +313 -0
- package/dist/generated/gsk/fill-node.d.ts +21 -0
- package/dist/generated/gsk/fill-node.js +14 -0
- package/dist/generated/gsk/functions.d.ts +76 -0
- package/dist/generated/gsk/functions.js +76 -0
- package/dist/generated/gsk/glrenderer.d.ts +8 -0
- package/dist/generated/gsk/glrenderer.js +8 -0
- package/dist/generated/gsk/glshader-node.d.ts +38 -0
- package/dist/generated/gsk/glshader-node.js +14 -0
- package/dist/generated/gsk/glshader.d.ts +226 -0
- package/dist/generated/gsk/glshader.js +222 -0
- package/dist/generated/gsk/inset-shadow-node.d.ts +32 -0
- package/dist/generated/gsk/inset-shadow-node.js +22 -0
- package/dist/generated/gsk/linear-gradient-node.d.ts +23 -0
- package/dist/generated/gsk/linear-gradient-node.js +14 -0
- package/dist/generated/gsk/mask-node.d.ts +20 -0
- package/dist/generated/gsk/mask-node.js +10 -0
- package/dist/generated/gsk/ngl-renderer.d.ts +8 -0
- package/dist/generated/gsk/ngl-renderer.js +8 -0
- package/dist/generated/gsk/opacity-node.d.ts +13 -0
- package/dist/generated/gsk/opacity-node.js +7 -0
- package/dist/generated/gsk/outset-shadow-node.d.ts +32 -0
- package/dist/generated/gsk/outset-shadow-node.js +22 -0
- package/dist/generated/gsk/path-builder.d.ts +336 -0
- package/dist/generated/gsk/path-builder.js +336 -0
- package/dist/generated/gsk/path-measure.d.ts +47 -0
- package/dist/generated/gsk/path-measure.js +42 -0
- package/dist/generated/gsk/path-point.d.ts +93 -0
- package/dist/generated/gsk/path-point.js +93 -0
- package/dist/generated/gsk/path.d.ts +181 -0
- package/dist/generated/gsk/path.js +181 -0
- package/dist/generated/gsk/radial-gradient-node.d.ts +37 -0
- package/dist/generated/gsk/radial-gradient-node.js +23 -0
- package/dist/generated/gsk/render-node.d.ts +83 -0
- package/dist/generated/gsk/render-node.js +83 -0
- package/dist/generated/gsk/renderer.d.ts +79 -0
- package/dist/generated/gsk/renderer.js +69 -0
- package/dist/generated/gsk/repeat-node.d.ts +14 -0
- package/dist/generated/gsk/repeat-node.js +7 -0
- package/dist/generated/gsk/repeating-linear-gradient-node.d.ts +11 -0
- package/dist/generated/gsk/repeating-linear-gradient-node.js +1 -0
- package/dist/generated/gsk/repeating-radial-gradient-node.d.ts +15 -0
- package/dist/generated/gsk/repeating-radial-gradient-node.js +1 -0
- package/dist/generated/gsk/rounded-clip-node.d.ts +13 -0
- package/dist/generated/gsk/rounded-clip-node.js +7 -0
- package/dist/generated/gsk/shader-args-builder.d.ts +77 -0
- package/dist/generated/gsk/shader-args-builder.js +71 -0
- package/dist/generated/gsk/shadow-node.d.ts +18 -0
- package/dist/generated/gsk/shadow-node.js +11 -0
- package/dist/generated/gsk/stroke-node.d.ts +23 -0
- package/dist/generated/gsk/stroke-node.js +14 -0
- package/dist/generated/gsk/stroke.d.ts +110 -0
- package/dist/generated/gsk/stroke.js +106 -0
- package/dist/generated/gsk/subsurface-node.d.ts +6 -0
- package/dist/generated/gsk/subsurface-node.js +6 -0
- package/dist/generated/gsk/text-node.d.ts +33 -0
- package/dist/generated/gsk/text-node.js +23 -0
- package/dist/generated/gsk/texture-node.d.ts +14 -0
- package/dist/generated/gsk/texture-node.js +4 -0
- package/dist/generated/gsk/texture-scale-node.d.ts +24 -0
- package/dist/generated/gsk/texture-scale-node.js +7 -0
- package/dist/generated/gsk/transform-node.d.ts +12 -0
- package/dist/generated/gsk/transform-node.js +7 -0
- package/dist/generated/gsk/transform.d.ts +282 -0
- package/dist/generated/gsk/transform.js +282 -0
- package/dist/generated/gsk/vulkan-renderer.d.ts +14 -0
- package/dist/generated/gsk/vulkan-renderer.js +14 -0
- package/dist/generated/gtk/about-dialog.d.ts +166 -0
- package/dist/generated/gtk/about-dialog.js +220 -0
- package/dist/generated/gtk/accessible-list.d.ts +14 -0
- package/dist/generated/gtk/accessible-list.js +14 -0
- package/dist/generated/gtk/accessible-range.d.ts +27 -0
- package/dist/generated/gtk/accessible-range.js +27 -0
- package/dist/generated/gtk/accessible-text.d.ts +38 -0
- package/dist/generated/gtk/accessible-text.js +38 -0
- package/dist/generated/gtk/accessible.d.ts +154 -0
- package/dist/generated/gtk/accessible.js +154 -0
- package/dist/generated/gtk/action-bar.d.ts +75 -0
- package/dist/generated/gtk/action-bar.js +75 -0
- package/dist/generated/gtk/actionable.d.ts +65 -0
- package/dist/generated/gtk/actionable.js +65 -0
- package/dist/generated/gtk/activate-action.d.ts +11 -0
- package/dist/generated/gtk/activate-action.js +11 -0
- package/dist/generated/gtk/adjustment.d.ts +121 -0
- package/dist/generated/gtk/adjustment.js +125 -0
- package/dist/generated/gtk/alert-dialog.d.ts +76 -0
- package/dist/generated/gtk/alert-dialog.js +76 -0
- package/dist/generated/gtk/alternative-trigger.d.ts +30 -0
- package/dist/generated/gtk/alternative-trigger.js +21 -0
- package/dist/generated/gtk/any-filter.d.ts +14 -0
- package/dist/generated/gtk/any-filter.js +14 -0
- package/dist/generated/gtk/app-chooser-button.d.ts +76 -0
- package/dist/generated/gtk/app-chooser-button.js +100 -0
- package/dist/generated/gtk/app-chooser-dialog.d.ts +38 -0
- package/dist/generated/gtk/app-chooser-dialog.js +49 -0
- package/dist/generated/gtk/app-chooser-widget.d.ts +69 -0
- package/dist/generated/gtk/app-chooser-widget.js +89 -0
- package/dist/generated/gtk/app-chooser.d.ts +31 -0
- package/dist/generated/gtk/app-chooser.js +31 -0
- package/dist/generated/gtk/application-window.d.ts +32 -0
- package/dist/generated/gtk/application-window.js +99 -0
- package/dist/generated/gtk/application.d.ts +191 -0
- package/dist/generated/gtk/application.js +239 -0
- package/dist/generated/gtk/aspect-frame.d.ts +65 -0
- package/dist/generated/gtk/aspect-frame.js +58 -0
- package/dist/generated/gtk/assistant-page.d.ts +4 -0
- package/dist/generated/gtk/assistant-page.js +4 -0
- package/dist/generated/gtk/assistant.d.ts +141 -0
- package/dist/generated/gtk/assistant.js +179 -0
- package/dist/generated/gtk/atcontext.d.ts +16 -0
- package/dist/generated/gtk/atcontext.js +13 -0
- package/dist/generated/gtk/bin-layout.d.ts +11 -0
- package/dist/generated/gtk/bin-layout.js +11 -0
- package/dist/generated/gtk/bitset-iter.d.ts +60 -0
- package/dist/generated/gtk/bitset-iter.js +60 -0
- package/dist/generated/gtk/bitset.d.ts +196 -0
- package/dist/generated/gtk/bitset.js +196 -0
- package/dist/generated/gtk/bookmark-list.d.ts +45 -0
- package/dist/generated/gtk/bookmark-list.js +40 -0
- package/dist/generated/gtk/bool-filter.d.ts +23 -0
- package/dist/generated/gtk/bool-filter.js +19 -0
- package/dist/generated/gtk/border.d.ts +18 -0
- package/dist/generated/gtk/border.js +18 -0
- package/dist/generated/gtk/box-layout.d.ts +62 -0
- package/dist/generated/gtk/box-layout.js +58 -0
- package/dist/generated/gtk/box.d.ts +122 -0
- package/dist/generated/gtk/box.js +117 -0
- package/dist/generated/gtk/buildable.d.ts +20 -0
- package/dist/generated/gtk/buildable.js +20 -0
- package/dist/generated/gtk/builder-cscope.d.ts +36 -0
- package/dist/generated/gtk/builder-cscope.js +36 -0
- package/dist/generated/gtk/builder-list-item-factory.d.ts +55 -0
- package/dist/generated/gtk/builder-list-item-factory.js +49 -0
- package/dist/generated/gtk/builder-scope.d.ts +19 -0
- package/dist/generated/gtk/builder-scope.js +19 -0
- package/dist/generated/gtk/builder.d.ts +613 -0
- package/dist/generated/gtk/builder.js +613 -0
- package/dist/generated/gtk/button.d.ts +152 -0
- package/dist/generated/gtk/button.js +189 -0
- package/dist/generated/gtk/calendar.d.ts +97 -0
- package/dist/generated/gtk/calendar.js +152 -0
- package/dist/generated/gtk/callback-action.d.ts +8 -0
- package/dist/generated/gtk/callback-action.js +1 -0
- package/dist/generated/gtk/cclosure-expression.d.ts +15 -0
- package/dist/generated/gtk/cclosure-expression.js +1 -0
- package/dist/generated/gtk/cell-area-box.d.ts +38 -0
- package/dist/generated/gtk/cell-area-box.js +38 -0
- package/dist/generated/gtk/cell-area-context.d.ts +133 -0
- package/dist/generated/gtk/cell-area-context.js +133 -0
- package/dist/generated/gtk/cell-area.d.ts +399 -0
- package/dist/generated/gtk/cell-area.js +714 -0
- package/dist/generated/gtk/cell-editable.d.ts +26 -0
- package/dist/generated/gtk/cell-editable.js +26 -0
- package/dist/generated/gtk/cell-layout.d.ts +176 -0
- package/dist/generated/gtk/cell-layout.js +176 -0
- package/dist/generated/gtk/cell-renderer-accel.d.ts +3 -0
- package/dist/generated/gtk/cell-renderer-accel.js +10 -0
- package/dist/generated/gtk/cell-renderer-combo.d.ts +9 -0
- package/dist/generated/gtk/cell-renderer-combo.js +23 -0
- package/dist/generated/gtk/cell-renderer-pixbuf.d.ts +25 -0
- package/dist/generated/gtk/cell-renderer-pixbuf.js +25 -0
- package/dist/generated/gtk/cell-renderer-progress.d.ts +16 -0
- package/dist/generated/gtk/cell-renderer-progress.js +16 -0
- package/dist/generated/gtk/cell-renderer-spin.d.ts +3 -0
- package/dist/generated/gtk/cell-renderer-spin.js +18 -0
- package/dist/generated/gtk/cell-renderer-spinner.d.ts +18 -0
- package/dist/generated/gtk/cell-renderer-spinner.js +18 -0
- package/dist/generated/gtk/cell-renderer-text.d.ts +19 -0
- package/dist/generated/gtk/cell-renderer-text.js +29 -0
- package/dist/generated/gtk/cell-renderer-toggle.d.ts +38 -0
- package/dist/generated/gtk/cell-renderer-toggle.js +46 -0
- package/dist/generated/gtk/cell-renderer.d.ts +160 -0
- package/dist/generated/gtk/cell-renderer.js +199 -0
- package/dist/generated/gtk/cell-view.d.ts +171 -0
- package/dist/generated/gtk/cell-view.js +171 -0
- package/dist/generated/gtk/center-box.d.ts +103 -0
- package/dist/generated/gtk/center-box.js +103 -0
- package/dist/generated/gtk/center-layout.d.ts +67 -0
- package/dist/generated/gtk/center-layout.js +67 -0
- package/dist/generated/gtk/check-button.d.ts +132 -0
- package/dist/generated/gtk/check-button.js +197 -0
- package/dist/generated/gtk/closure-expression.d.ts +14 -0
- package/dist/generated/gtk/closure-expression.js +4 -0
- package/dist/generated/gtk/color-button.d.ts +65 -0
- package/dist/generated/gtk/color-button.js +85 -0
- package/dist/generated/gtk/color-chooser-dialog.d.ts +43 -0
- package/dist/generated/gtk/color-chooser-dialog.js +59 -0
- package/dist/generated/gtk/color-chooser-widget.d.ts +75 -0
- package/dist/generated/gtk/color-chooser-widget.js +75 -0
- package/dist/generated/gtk/color-chooser.d.ts +48 -0
- package/dist/generated/gtk/color-chooser.js +48 -0
- package/dist/generated/gtk/color-dialog-button.d.ts +28 -0
- package/dist/generated/gtk/color-dialog-button.js +39 -0
- package/dist/generated/gtk/color-dialog.d.ts +47 -0
- package/dist/generated/gtk/color-dialog.js +47 -0
- package/dist/generated/gtk/column-view-cell.d.ts +17 -0
- package/dist/generated/gtk/column-view-cell.js +17 -0
- package/dist/generated/gtk/column-view-column.d.ts +127 -0
- package/dist/generated/gtk/column-view-column.js +112 -0
- package/dist/generated/gtk/column-view-row.d.ts +89 -0
- package/dist/generated/gtk/column-view-row.js +89 -0
- package/dist/generated/gtk/column-view-sorter.d.ts +67 -0
- package/dist/generated/gtk/column-view-sorter.js +67 -0
- package/dist/generated/gtk/column-view.d.ts +204 -0
- package/dist/generated/gtk/column-view.js +263 -0
- package/dist/generated/gtk/combo-box-text.d.ts +76 -0
- package/dist/generated/gtk/combo-box-text.js +133 -0
- package/dist/generated/gtk/combo-box.d.ts +261 -0
- package/dist/generated/gtk/combo-box.js +323 -0
- package/dist/generated/gtk/constant-expression.d.ts +8 -0
- package/dist/generated/gtk/constant-expression.js +4 -0
- package/dist/generated/gtk/constraint-guide.d.ts +72 -0
- package/dist/generated/gtk/constraint-guide.js +72 -0
- package/dist/generated/gtk/constraint-layout-child.d.ts +1 -0
- package/dist/generated/gtk/constraint-layout-child.js +1 -0
- package/dist/generated/gtk/constraint-layout.d.ts +319 -0
- package/dist/generated/gtk/constraint-layout.js +319 -0
- package/dist/generated/gtk/constraint-target.d.ts +6 -0
- package/dist/generated/gtk/constraint-target.js +6 -0
- package/dist/generated/gtk/constraint.d.ts +83 -0
- package/dist/generated/gtk/constraint.js +71 -0
- package/dist/generated/gtk/css-provider.d.ts +59 -0
- package/dist/generated/gtk/css-provider.js +89 -0
- package/dist/generated/gtk/css-section.d.ts +66 -0
- package/dist/generated/gtk/css-section.js +58 -0
- package/dist/generated/gtk/custom-filter.d.ts +25 -0
- package/dist/generated/gtk/custom-filter.js +14 -0
- package/dist/generated/gtk/custom-layout.d.ts +18 -0
- package/dist/generated/gtk/custom-layout.js +8 -0
- package/dist/generated/gtk/custom-sorter.d.ts +24 -0
- package/dist/generated/gtk/custom-sorter.js +15 -0
- package/dist/generated/gtk/dialog.d.ts +69 -0
- package/dist/generated/gtk/dialog.js +192 -0
- package/dist/generated/gtk/directory-list.d.ts +101 -0
- package/dist/generated/gtk/directory-list.js +94 -0
- package/dist/generated/gtk/drag-icon.d.ts +84 -0
- package/dist/generated/gtk/drag-icon.js +77 -0
- package/dist/generated/gtk/drag-source.d.ts +55 -0
- package/dist/generated/gtk/drag-source.js +133 -0
- package/dist/generated/gtk/drawing-area.d.ts +50 -0
- package/dist/generated/gtk/drawing-area.js +130 -0
- package/dist/generated/gtk/drop-controller-motion.d.ts +16 -0
- package/dist/generated/gtk/drop-controller-motion.js +25 -0
- package/dist/generated/gtk/drop-down.d.ts +92 -0
- package/dist/generated/gtk/drop-down.js +141 -0
- package/dist/generated/gtk/drop-target-async.d.ts +29 -0
- package/dist/generated/gtk/drop-target-async.js +59 -0
- package/dist/generated/gtk/drop-target.d.ts +62 -0
- package/dist/generated/gtk/drop-target.js +126 -0
- package/dist/generated/gtk/editable-label.d.ts +257 -0
- package/dist/generated/gtk/editable-label.js +253 -0
- package/dist/generated/gtk/editable.d.ts +325 -0
- package/dist/generated/gtk/editable.js +325 -0
- package/dist/generated/gtk/emoji-chooser.d.ts +3 -0
- package/dist/generated/gtk/emoji-chooser.js +45 -0
- package/dist/generated/gtk/entry-buffer.d.ts +82 -0
- package/dist/generated/gtk/entry-buffer.js +87 -0
- package/dist/generated/gtk/entry-completion.d.ts +202 -0
- package/dist/generated/gtk/entry-completion.js +242 -0
- package/dist/generated/gtk/entry.d.ts +620 -0
- package/dist/generated/gtk/entry.js +709 -0
- package/dist/generated/gtk/enums.d.ts +2192 -0
- package/dist/generated/gtk/enums.js +2192 -0
- package/dist/generated/gtk/event-controller-focus.d.ts +9 -0
- package/dist/generated/gtk/event-controller-focus.js +19 -0
- package/dist/generated/gtk/event-controller-key.d.ts +24 -0
- package/dist/generated/gtk/event-controller-key.js +25 -0
- package/dist/generated/gtk/event-controller-legacy.d.ts +3 -0
- package/dist/generated/gtk/event-controller-legacy.js +9 -0
- package/dist/generated/gtk/event-controller-motion.d.ts +9 -0
- package/dist/generated/gtk/event-controller-motion.js +19 -0
- package/dist/generated/gtk/event-controller-scroll.d.ts +18 -0
- package/dist/generated/gtk/event-controller-scroll.js +49 -0
- package/dist/generated/gtk/event-controller.d.ts +75 -0
- package/dist/generated/gtk/event-controller.js +75 -0
- package/dist/generated/gtk/every-filter.d.ts +14 -0
- package/dist/generated/gtk/every-filter.js +14 -0
- package/dist/generated/gtk/expander.d.ts +82 -0
- package/dist/generated/gtk/expander.js +166 -0
- package/dist/generated/gtk/expression-watch.d.ts +29 -0
- package/dist/generated/gtk/expression-watch.js +29 -0
- package/dist/generated/gtk/expression.d.ts +238 -0
- package/dist/generated/gtk/expression.js +238 -0
- package/dist/generated/gtk/file-chooser-dialog.d.ts +206 -0
- package/dist/generated/gtk/file-chooser-dialog.js +380 -0
- package/dist/generated/gtk/file-chooser-native.d.ts +390 -0
- package/dist/generated/gtk/file-chooser-native.js +382 -0
- package/dist/generated/gtk/file-chooser-widget.d.ts +214 -0
- package/dist/generated/gtk/file-chooser-widget.js +238 -0
- package/dist/generated/gtk/file-chooser.d.ts +248 -0
- package/dist/generated/gtk/file-chooser.js +248 -0
- package/dist/generated/gtk/file-dialog.d.ts +147 -0
- package/dist/generated/gtk/file-dialog.js +147 -0
- package/dist/generated/gtk/file-filter.d.ts +133 -0
- package/dist/generated/gtk/file-filter.js +133 -0
- package/dist/generated/gtk/file-launcher.d.ts +53 -0
- package/dist/generated/gtk/file-launcher.js +49 -0
- package/dist/generated/gtk/filter-list-model.d.ts +123 -0
- package/dist/generated/gtk/filter-list-model.js +117 -0
- package/dist/generated/gtk/filter.d.ts +30 -0
- package/dist/generated/gtk/filter.js +49 -0
- package/dist/generated/gtk/fixed-layout-child.d.ts +8 -0
- package/dist/generated/gtk/fixed-layout-child.js +8 -0
- package/dist/generated/gtk/fixed-layout.d.ts +35 -0
- package/dist/generated/gtk/fixed-layout.js +35 -0
- package/dist/generated/gtk/fixed.d.ts +81 -0
- package/dist/generated/gtk/fixed.js +81 -0
- package/dist/generated/gtk/flatten-list-model.d.ts +50 -0
- package/dist/generated/gtk/flatten-list-model.js +46 -0
- package/dist/generated/gtk/flow-box-child.d.ts +40 -0
- package/dist/generated/gtk/flow-box-child.js +46 -0
- package/dist/generated/gtk/flow-box.d.ts +243 -0
- package/dist/generated/gtk/flow-box.js +302 -0
- package/dist/generated/gtk/font-button.d.ts +129 -0
- package/dist/generated/gtk/font-button.js +148 -0
- package/dist/generated/gtk/font-chooser-dialog.d.ts +97 -0
- package/dist/generated/gtk/font-chooser-dialog.js +113 -0
- package/dist/generated/gtk/font-chooser-widget.d.ts +114 -0
- package/dist/generated/gtk/font-chooser-widget.js +114 -0
- package/dist/generated/gtk/font-chooser.d.ts +132 -0
- package/dist/generated/gtk/font-chooser.js +132 -0
- package/dist/generated/gtk/font-dialog-button.d.ts +75 -0
- package/dist/generated/gtk/font-dialog-button.js +85 -0
- package/dist/generated/gtk/font-dialog.d.ts +85 -0
- package/dist/generated/gtk/font-dialog.js +85 -0
- package/dist/generated/gtk/frame.d.ts +86 -0
- package/dist/generated/gtk/frame.js +80 -0
- package/dist/generated/gtk/functions.d.ts +769 -0
- package/dist/generated/gtk/functions.js +769 -0
- package/dist/generated/gtk/gesture-click.d.ts +4 -0
- package/dist/generated/gtk/gesture-click.js +13 -0
- package/dist/generated/gtk/gesture-drag.d.ts +21 -0
- package/dist/generated/gtk/gesture-drag.js +32 -0
- package/dist/generated/gtk/gesture-long-press.d.ts +13 -0
- package/dist/generated/gtk/gesture-long-press.js +30 -0
- package/dist/generated/gtk/gesture-pan.d.ts +11 -0
- package/dist/generated/gtk/gesture-pan.js +23 -0
- package/dist/generated/gtk/gesture-rotate.d.ts +11 -0
- package/dist/generated/gtk/gesture-rotate.js +17 -0
- package/dist/generated/gtk/gesture-single.d.ts +47 -0
- package/dist/generated/gtk/gesture-single.js +62 -0
- package/dist/generated/gtk/gesture-stylus.d.ts +61 -0
- package/dist/generated/gtk/gesture-stylus.js +67 -0
- package/dist/generated/gtk/gesture-swipe.d.ts +12 -0
- package/dist/generated/gtk/gesture-swipe.js +26 -0
- package/dist/generated/gtk/gesture-zoom.d.ts +12 -0
- package/dist/generated/gtk/gesture-zoom.js +19 -0
- package/dist/generated/gtk/gesture.d.ts +197 -0
- package/dist/generated/gtk/gesture.js +288 -0
- package/dist/generated/gtk/glarea.d.ts +131 -0
- package/dist/generated/gtk/glarea.js +246 -0
- package/dist/generated/gtk/graphics-offload.d.ts +78 -0
- package/dist/generated/gtk/graphics-offload.js +74 -0
- package/dist/generated/gtk/grid-layout-child.d.ts +29 -0
- package/dist/generated/gtk/grid-layout-child.js +29 -0
- package/dist/generated/gtk/grid-layout.d.ts +72 -0
- package/dist/generated/gtk/grid-layout.js +72 -0
- package/dist/generated/gtk/grid-view.d.ts +86 -0
- package/dist/generated/gtk/grid-view.js +117 -0
- package/dist/generated/gtk/grid.d.ts +241 -0
- package/dist/generated/gtk/grid.js +241 -0
- package/dist/generated/gtk/header-bar.d.ts +157 -0
- package/dist/generated/gtk/header-bar.js +157 -0
- package/dist/generated/gtk/icon-paintable.d.ts +47 -0
- package/dist/generated/gtk/icon-paintable.js +39 -0
- package/dist/generated/gtk/icon-theme.d.ts +148 -0
- package/dist/generated/gtk/icon-theme.js +182 -0
- package/dist/generated/gtk/icon-view.d.ts +464 -0
- package/dist/generated/gtk/icon-view.js +491 -0
- package/dist/generated/gtk/image.d.ts +222 -0
- package/dist/generated/gtk/image.js +222 -0
- package/dist/generated/gtk/imcontext-simple.d.ts +47 -0
- package/dist/generated/gtk/imcontext-simple.js +47 -0
- package/dist/generated/gtk/imcontext.d.ts +162 -0
- package/dist/generated/gtk/imcontext.js +193 -0
- package/dist/generated/gtk/immulticontext.d.ts +24 -0
- package/dist/generated/gtk/immulticontext.js +24 -0
- package/dist/generated/gtk/info-bar.d.ts +93 -0
- package/dist/generated/gtk/info-bar.js +168 -0
- package/dist/generated/gtk/inscription.d.ts +154 -0
- package/dist/generated/gtk/inscription.js +150 -0
- package/dist/generated/gtk/keyval-trigger.d.ts +15 -0
- package/dist/generated/gtk/keyval-trigger.js +9 -0
- package/dist/generated/gtk/label.d.ts +418 -0
- package/dist/generated/gtk/label.js +627 -0
- package/dist/generated/gtk/layout-child.d.ts +17 -0
- package/dist/generated/gtk/layout-child.js +17 -0
- package/dist/generated/gtk/layout-manager.d.ts +95 -0
- package/dist/generated/gtk/layout-manager.js +95 -0
- package/dist/generated/gtk/level-bar.d.ts +80 -0
- package/dist/generated/gtk/level-bar.js +179 -0
- package/dist/generated/gtk/link-button.d.ts +32 -0
- package/dist/generated/gtk/link-button.js +69 -0
- package/dist/generated/gtk/list-base.d.ts +96 -0
- package/dist/generated/gtk/list-base.js +96 -0
- package/dist/generated/gtk/list-box-row.d.ts +119 -0
- package/dist/generated/gtk/list-box-row.js +125 -0
- package/dist/generated/gtk/list-box.d.ts +257 -0
- package/dist/generated/gtk/list-box.js +323 -0
- package/dist/generated/gtk/list-header.d.ts +43 -0
- package/dist/generated/gtk/list-header.js +43 -0
- package/dist/generated/gtk/list-item-factory.d.ts +49 -0
- package/dist/generated/gtk/list-item-factory.js +49 -0
- package/dist/generated/gtk/list-item.d.ts +115 -0
- package/dist/generated/gtk/list-item.js +115 -0
- package/dist/generated/gtk/list-store.d.ts +580 -0
- package/dist/generated/gtk/list-store.js +573 -0
- package/dist/generated/gtk/list-view.d.ts +86 -0
- package/dist/generated/gtk/list-view.js +179 -0
- package/dist/generated/gtk/lock-button.d.ts +11 -0
- package/dist/generated/gtk/lock-button.js +46 -0
- package/dist/generated/gtk/map-list-model.d.ts +97 -0
- package/dist/generated/gtk/map-list-model.js +90 -0
- package/dist/generated/gtk/media-controls.d.ts +18 -0
- package/dist/generated/gtk/media-controls.js +14 -0
- package/dist/generated/gtk/media-file.d.ts +78 -0
- package/dist/generated/gtk/media-file.js +78 -0
- package/dist/generated/gtk/media-stream.d.ts +253 -0
- package/dist/generated/gtk/media-stream.js +253 -0
- package/dist/generated/gtk/menu-button.d.ts +155 -0
- package/dist/generated/gtk/menu-button.js +219 -0
- package/dist/generated/gtk/message-dialog.d.ts +12 -0
- package/dist/generated/gtk/message-dialog.js +70 -0
- package/dist/generated/gtk/mnemonic-action.d.ts +11 -0
- package/dist/generated/gtk/mnemonic-action.js +11 -0
- package/dist/generated/gtk/mnemonic-trigger.d.ts +17 -0
- package/dist/generated/gtk/mnemonic-trigger.js +9 -0
- package/dist/generated/gtk/mount-operation.d.ts +39 -0
- package/dist/generated/gtk/mount-operation.js +35 -0
- package/dist/generated/gtk/multi-filter.d.ts +18 -0
- package/dist/generated/gtk/multi-filter.js +18 -0
- package/dist/generated/gtk/multi-selection.d.ts +135 -0
- package/dist/generated/gtk/multi-selection.js +131 -0
- package/dist/generated/gtk/multi-sorter.d.ts +34 -0
- package/dist/generated/gtk/multi-sorter.js +34 -0
- package/dist/generated/gtk/named-action.d.ts +20 -0
- package/dist/generated/gtk/named-action.js +10 -0
- package/dist/generated/gtk/native-dialog.d.ts +67 -0
- package/dist/generated/gtk/native-dialog.js +86 -0
- package/dist/generated/gtk/native.d.ts +40 -0
- package/dist/generated/gtk/native.js +40 -0
- package/dist/generated/gtk/never-trigger.d.ts +8 -0
- package/dist/generated/gtk/never-trigger.js +8 -0
- package/dist/generated/gtk/no-selection.d.ts +142 -0
- package/dist/generated/gtk/no-selection.js +138 -0
- package/dist/generated/gtk/notebook-page.d.ts +4 -0
- package/dist/generated/gtk/notebook-page.js +4 -0
- package/dist/generated/gtk/notebook.d.ts +283 -0
- package/dist/generated/gtk/notebook.js +401 -0
- package/dist/generated/gtk/nothing-action.d.ts +7 -0
- package/dist/generated/gtk/nothing-action.js +7 -0
- package/dist/generated/gtk/numeric-sorter.d.ts +33 -0
- package/dist/generated/gtk/numeric-sorter.js +26 -0
- package/dist/generated/gtk/object-expression.d.ts +14 -0
- package/dist/generated/gtk/object-expression.js +4 -0
- package/dist/generated/gtk/orientable.d.ts +19 -0
- package/dist/generated/gtk/orientable.js +19 -0
- package/dist/generated/gtk/overlay-layout-child.d.ts +15 -0
- package/dist/generated/gtk/overlay-layout-child.js +15 -0
- package/dist/generated/gtk/overlay-layout.d.ts +12 -0
- package/dist/generated/gtk/overlay-layout.js +12 -0
- package/dist/generated/gtk/overlay.d.ts +48 -0
- package/dist/generated/gtk/overlay.js +81 -0
- package/dist/generated/gtk/pad-controller.d.ts +97 -0
- package/dist/generated/gtk/pad-controller.js +79 -0
- package/dist/generated/gtk/page-setup-unix-dialog.d.ts +21 -0
- package/dist/generated/gtk/page-setup-unix-dialog.js +31 -0
- package/dist/generated/gtk/page-setup.d.ts +188 -0
- package/dist/generated/gtk/page-setup.js +188 -0
- package/dist/generated/gtk/paned.d.ts +71 -0
- package/dist/generated/gtk/paned.js +147 -0
- package/dist/generated/gtk/paper-size.d.ts +141 -0
- package/dist/generated/gtk/paper-size.js +132 -0
- package/dist/generated/gtk/param-spec-expression.d.ts +1 -0
- package/dist/generated/gtk/param-spec-expression.js +1 -0
- package/dist/generated/gtk/password-entry-buffer.d.ts +9 -0
- package/dist/generated/gtk/password-entry-buffer.js +9 -0
- package/dist/generated/gtk/password-entry.d.ts +217 -0
- package/dist/generated/gtk/password-entry.js +251 -0
- package/dist/generated/gtk/picture.d.ts +204 -0
- package/dist/generated/gtk/picture.js +204 -0
- package/dist/generated/gtk/popover-menu-bar.d.ts +55 -0
- package/dist/generated/gtk/popover-menu-bar.js +51 -0
- package/dist/generated/gtk/popover-menu.d.ts +61 -0
- package/dist/generated/gtk/popover-menu.js +163 -0
- package/dist/generated/gtk/popover.d.ts +137 -0
- package/dist/generated/gtk/popover.js +232 -0
- package/dist/generated/gtk/print-context.d.ts +124 -0
- package/dist/generated/gtk/print-context.js +124 -0
- package/dist/generated/gtk/print-dialog.d.ts +71 -0
- package/dist/generated/gtk/print-dialog.js +71 -0
- package/dist/generated/gtk/print-job.d.ts +143 -0
- package/dist/generated/gtk/print-job.js +148 -0
- package/dist/generated/gtk/print-operation-preview.d.ts +31 -0
- package/dist/generated/gtk/print-operation-preview.js +31 -0
- package/dist/generated/gtk/print-operation.d.ts +300 -0
- package/dist/generated/gtk/print-operation.js +364 -0
- package/dist/generated/gtk/print-settings.d.ts +361 -0
- package/dist/generated/gtk/print-settings.js +361 -0
- package/dist/generated/gtk/print-setup.d.ts +32 -0
- package/dist/generated/gtk/print-setup.js +32 -0
- package/dist/generated/gtk/print-unix-dialog.d.ts +75 -0
- package/dist/generated/gtk/print-unix-dialog.js +128 -0
- package/dist/generated/gtk/printer.d.ts +121 -0
- package/dist/generated/gtk/printer.js +126 -0
- package/dist/generated/gtk/progress-bar.d.ts +149 -0
- package/dist/generated/gtk/progress-bar.js +149 -0
- package/dist/generated/gtk/property-expression.d.ts +36 -0
- package/dist/generated/gtk/property-expression.js +21 -0
- package/dist/generated/gtk/range.d.ts +162 -0
- package/dist/generated/gtk/range.js +178 -0
- package/dist/generated/gtk/recent-info.d.ts +123 -0
- package/dist/generated/gtk/recent-info.js +123 -0
- package/dist/generated/gtk/recent-manager.d.ts +81 -0
- package/dist/generated/gtk/recent-manager.js +139 -0
- package/dist/generated/gtk/requisition.d.ts +19 -0
- package/dist/generated/gtk/requisition.js +19 -0
- package/dist/generated/gtk/revealer.d.ts +73 -0
- package/dist/generated/gtk/revealer.js +73 -0
- package/dist/generated/gtk/root.d.ts +37 -0
- package/dist/generated/gtk/root.js +37 -0
- package/dist/generated/gtk/scale-button.d.ts +68 -0
- package/dist/generated/gtk/scale-button.js +82 -0
- package/dist/generated/gtk/scale.d.ts +115 -0
- package/dist/generated/gtk/scale.js +201 -0
- package/dist/generated/gtk/scroll-info.d.ts +31 -0
- package/dist/generated/gtk/scroll-info.js +31 -0
- package/dist/generated/gtk/scrollable.d.ts +73 -0
- package/dist/generated/gtk/scrollable.js +73 -0
- package/dist/generated/gtk/scrollbar.d.ts +63 -0
- package/dist/generated/gtk/scrollbar.js +58 -0
- package/dist/generated/gtk/scrolled-window.d.ts +180 -0
- package/dist/generated/gtk/scrolled-window.js +259 -0
- package/dist/generated/gtk/search-bar.d.ts +110 -0
- package/dist/generated/gtk/search-bar.js +110 -0
- package/dist/generated/gtk/search-entry.d.ts +251 -0
- package/dist/generated/gtk/search-entry.js +305 -0
- package/dist/generated/gtk/section-model.d.ts +46 -0
- package/dist/generated/gtk/section-model.js +46 -0
- package/dist/generated/gtk/selection-filter-model.d.ts +18 -0
- package/dist/generated/gtk/selection-filter-model.js +13 -0
- package/dist/generated/gtk/selection-model.d.ts +131 -0
- package/dist/generated/gtk/selection-model.js +131 -0
- package/dist/generated/gtk/separator.d.ts +29 -0
- package/dist/generated/gtk/separator.js +25 -0
- package/dist/generated/gtk/settings.d.ts +47 -0
- package/dist/generated/gtk/settings.js +47 -0
- package/dist/generated/gtk/shortcut-action.d.ts +70 -0
- package/dist/generated/gtk/shortcut-action.js +55 -0
- package/dist/generated/gtk/shortcut-controller.d.ts +110 -0
- package/dist/generated/gtk/shortcut-controller.js +110 -0
- package/dist/generated/gtk/shortcut-label.d.ts +23 -0
- package/dist/generated/gtk/shortcut-label.js +19 -0
- package/dist/generated/gtk/shortcut-manager.d.ts +13 -0
- package/dist/generated/gtk/shortcut-manager.js +13 -0
- package/dist/generated/gtk/shortcut-trigger.d.ts +106 -0
- package/dist/generated/gtk/shortcut-trigger.js +87 -0
- package/dist/generated/gtk/shortcut.d.ts +44 -0
- package/dist/generated/gtk/shortcut.js +38 -0
- package/dist/generated/gtk/shortcuts-group.d.ts +26 -0
- package/dist/generated/gtk/shortcuts-group.js +26 -0
- package/dist/generated/gtk/shortcuts-section.d.ts +10 -0
- package/dist/generated/gtk/shortcuts-section.js +42 -0
- package/dist/generated/gtk/shortcuts-shortcut.d.ts +6 -0
- package/dist/generated/gtk/shortcuts-shortcut.js +6 -0
- package/dist/generated/gtk/shortcuts-window.d.ts +10 -0
- package/dist/generated/gtk/shortcuts-window.js +70 -0
- package/dist/generated/gtk/signal-action.d.ts +16 -0
- package/dist/generated/gtk/signal-action.js +9 -0
- package/dist/generated/gtk/signal-list-item-factory.d.ts +5 -0
- package/dist/generated/gtk/signal-list-item-factory.js +46 -0
- package/dist/generated/gtk/single-selection.d.ts +189 -0
- package/dist/generated/gtk/single-selection.js +185 -0
- package/dist/generated/gtk/size-group.d.ts +150 -0
- package/dist/generated/gtk/size-group.js +146 -0
- package/dist/generated/gtk/slice-list-model.d.ts +76 -0
- package/dist/generated/gtk/slice-list-model.js +68 -0
- package/dist/generated/gtk/snapshot.d.ts +477 -0
- package/dist/generated/gtk/snapshot.js +477 -0
- package/dist/generated/gtk/sort-list-model.d.ts +131 -0
- package/dist/generated/gtk/sort-list-model.js +126 -0
- package/dist/generated/gtk/sorter.d.ts +39 -0
- package/dist/generated/gtk/sorter.js +61 -0
- package/dist/generated/gtk/spin-button.d.ts +378 -0
- package/dist/generated/gtk/spin-button.js +491 -0
- package/dist/generated/gtk/spinner.d.ts +37 -0
- package/dist/generated/gtk/spinner.js +37 -0
- package/dist/generated/gtk/stack-page.d.ts +171 -0
- package/dist/generated/gtk/stack-page.js +171 -0
- package/dist/generated/gtk/stack-sidebar.d.ts +32 -0
- package/dist/generated/gtk/stack-sidebar.js +32 -0
- package/dist/generated/gtk/stack-switcher.d.ts +51 -0
- package/dist/generated/gtk/stack-switcher.js +51 -0
- package/dist/generated/gtk/stack.d.ts +200 -0
- package/dist/generated/gtk/stack.js +200 -0
- package/dist/generated/gtk/statusbar.d.ts +35 -0
- package/dist/generated/gtk/statusbar.js +73 -0
- package/dist/generated/gtk/string-filter.d.ts +53 -0
- package/dist/generated/gtk/string-filter.js +46 -0
- package/dist/generated/gtk/string-list.d.ts +96 -0
- package/dist/generated/gtk/string-list.js +92 -0
- package/dist/generated/gtk/string-object.d.ts +14 -0
- package/dist/generated/gtk/string-object.js +10 -0
- package/dist/generated/gtk/string-sorter.d.ts +41 -0
- package/dist/generated/gtk/string-sorter.js +33 -0
- package/dist/generated/gtk/style-context.d.ts +188 -0
- package/dist/generated/gtk/style-context.js +188 -0
- package/dist/generated/gtk/style-provider.d.ts +10 -0
- package/dist/generated/gtk/style-provider.js +10 -0
- package/dist/generated/gtk/switch.d.ts +73 -0
- package/dist/generated/gtk/switch.js +112 -0
- package/dist/generated/gtk/symbolic-paintable.d.ts +24 -0
- package/dist/generated/gtk/symbolic-paintable.js +24 -0
- package/dist/generated/gtk/text-buffer.d.ts +693 -0
- package/dist/generated/gtk/text-buffer.js +700 -0
- package/dist/generated/gtk/text-child-anchor.d.ts +36 -0
- package/dist/generated/gtk/text-child-anchor.js +36 -0
- package/dist/generated/gtk/text-iter.d.ts +764 -0
- package/dist/generated/gtk/text-iter.js +764 -0
- package/dist/generated/gtk/text-mark.d.ts +85 -0
- package/dist/generated/gtk/text-mark.js +70 -0
- package/dist/generated/gtk/text-tag-table.d.ts +44 -0
- package/dist/generated/gtk/text-tag-table.js +67 -0
- package/dist/generated/gtk/text-tag.d.ts +52 -0
- package/dist/generated/gtk/text-tag.js +48 -0
- package/dist/generated/gtk/text-view.d.ts +668 -0
- package/dist/generated/gtk/text-view.js +743 -0
- package/dist/generated/gtk/text.d.ts +437 -0
- package/dist/generated/gtk/text.js +549 -0
- package/dist/generated/gtk/toggle-button.d.ts +49 -0
- package/dist/generated/gtk/toggle-button.js +124 -0
- package/dist/generated/gtk/tooltip.d.ts +80 -0
- package/dist/generated/gtk/tooltip.js +80 -0
- package/dist/generated/gtk/tree-drag-dest.d.ts +20 -0
- package/dist/generated/gtk/tree-drag-dest.js +20 -0
- package/dist/generated/gtk/tree-drag-source.d.ts +21 -0
- package/dist/generated/gtk/tree-drag-source.js +21 -0
- package/dist/generated/gtk/tree-expander.d.ts +125 -0
- package/dist/generated/gtk/tree-expander.js +125 -0
- package/dist/generated/gtk/tree-iter.d.ts +23 -0
- package/dist/generated/gtk/tree-iter.js +23 -0
- package/dist/generated/gtk/tree-list-model.d.ts +69 -0
- package/dist/generated/gtk/tree-list-model.js +60 -0
- package/dist/generated/gtk/tree-list-row-sorter.d.ts +32 -0
- package/dist/generated/gtk/tree-list-row-sorter.js +24 -0
- package/dist/generated/gtk/tree-list-row.d.ts +79 -0
- package/dist/generated/gtk/tree-list-row.js +79 -0
- package/dist/generated/gtk/tree-model-filter.d.ts +409 -0
- package/dist/generated/gtk/tree-model-filter.js +409 -0
- package/dist/generated/gtk/tree-model-sort.d.ts +436 -0
- package/dist/generated/gtk/tree-model-sort.js +432 -0
- package/dist/generated/gtk/tree-model.d.ts +411 -0
- package/dist/generated/gtk/tree-model.js +411 -0
- package/dist/generated/gtk/tree-path.d.ts +91 -0
- package/dist/generated/gtk/tree-path.js +91 -0
- package/dist/generated/gtk/tree-row-reference.d.ts +74 -0
- package/dist/generated/gtk/tree-row-reference.js +64 -0
- package/dist/generated/gtk/tree-selection.d.ts +98 -0
- package/dist/generated/gtk/tree-selection.js +125 -0
- package/dist/generated/gtk/tree-sortable.d.ts +58 -0
- package/dist/generated/gtk/tree-sortable.js +58 -0
- package/dist/generated/gtk/tree-store.d.ts +528 -0
- package/dist/generated/gtk/tree-store.js +521 -0
- package/dist/generated/gtk/tree-view-column.d.ts +299 -0
- package/dist/generated/gtk/tree-view-column.js +311 -0
- package/dist/generated/gtk/tree-view.d.ts +659 -0
- package/dist/generated/gtk/tree-view.js +749 -0
- package/dist/generated/gtk/uri-launcher.d.ts +38 -0
- package/dist/generated/gtk/uri-launcher.js +34 -0
- package/dist/generated/gtk/video.d.ts +101 -0
- package/dist/generated/gtk/video.js +101 -0
- package/dist/generated/gtk/viewport.d.ts +95 -0
- package/dist/generated/gtk/viewport.js +87 -0
- package/dist/generated/gtk/volume-button.d.ts +7 -0
- package/dist/generated/gtk/volume-button.js +11 -0
- package/dist/generated/gtk/widget-paintable.d.ts +32 -0
- package/dist/generated/gtk/widget-paintable.js +28 -0
- package/dist/generated/gtk/widget.d.ts +1741 -0
- package/dist/generated/gtk/widget.js +2135 -0
- package/dist/generated/gtk/window-controls.d.ts +102 -0
- package/dist/generated/gtk/window-controls.js +98 -0
- package/dist/generated/gtk/window-group.d.ts +35 -0
- package/dist/generated/gtk/window-group.js +35 -0
- package/dist/generated/gtk/window-handle.d.ts +28 -0
- package/dist/generated/gtk/window-handle.js +28 -0
- package/dist/generated/gtk/window.d.ts +587 -0
- package/dist/generated/gtk/window.js +660 -0
- package/dist/generated/gtksource/annotation-provider.d.ts +15 -0
- package/dist/generated/gtksource/annotation-provider.js +23 -0
- package/dist/generated/gtksource/annotation.d.ts +14 -0
- package/dist/generated/gtksource/annotation.js +8 -0
- package/dist/generated/gtksource/annotations.d.ts +8 -0
- package/dist/generated/gtksource/annotations.js +15 -0
- package/dist/generated/gtksource/buffer.d.ts +234 -0
- package/dist/generated/gtksource/buffer.js +302 -0
- package/dist/generated/gtksource/completion-cell.d.ts +24 -0
- package/dist/generated/gtksource/completion-cell.js +24 -0
- package/dist/generated/gtksource/completion-context.d.ts +64 -0
- package/dist/generated/gtksource/completion-context.js +82 -0
- package/dist/generated/gtksource/completion-proposal.d.ts +17 -0
- package/dist/generated/gtksource/completion-proposal.js +17 -0
- package/dist/generated/gtksource/completion-provider.d.ts +98 -0
- package/dist/generated/gtksource/completion-provider.js +98 -0
- package/dist/generated/gtksource/completion-snippets.d.ts +96 -0
- package/dist/generated/gtksource/completion-snippets.js +96 -0
- package/dist/generated/gtksource/completion-words.d.ts +107 -0
- package/dist/generated/gtksource/completion-words.js +104 -0
- package/dist/generated/gtksource/completion.d.ts +46 -0
- package/dist/generated/gtksource/completion.js +77 -0
- package/dist/generated/gtksource/encoding.d.ts +42 -0
- package/dist/generated/gtksource/encoding.js +42 -0
- package/dist/generated/gtksource/enums.d.ts +113 -0
- package/dist/generated/gtksource/enums.js +113 -0
- package/dist/generated/gtksource/file-loader.d.ts +58 -0
- package/dist/generated/gtksource/file-loader.js +48 -0
- package/dist/generated/gtksource/file-saver.d.ts +61 -0
- package/dist/generated/gtksource/file-saver.js +53 -0
- package/dist/generated/gtksource/file.d.ts +55 -0
- package/dist/generated/gtksource/file.js +55 -0
- package/dist/generated/gtksource/functions.d.ts +129 -0
- package/dist/generated/gtksource/functions.js +129 -0
- package/dist/generated/gtksource/gutter-lines.d.ts +120 -0
- package/dist/generated/gtksource/gutter-lines.js +120 -0
- package/dist/generated/gtksource/gutter-renderer-pixbuf.d.ts +37 -0
- package/dist/generated/gtksource/gutter-renderer-pixbuf.js +37 -0
- package/dist/generated/gtksource/gutter-renderer-text.d.ts +23 -0
- package/dist/generated/gtksource/gutter-renderer-text.js +23 -0
- package/dist/generated/gtksource/gutter-renderer.d.ts +94 -0
- package/dist/generated/gtksource/gutter-renderer.js +128 -0
- package/dist/generated/gtksource/gutter.d.ts +31 -0
- package/dist/generated/gtksource/gutter.js +31 -0
- package/dist/generated/gtksource/hover-context.d.ts +31 -0
- package/dist/generated/gtksource/hover-context.js +31 -0
- package/dist/generated/gtksource/hover-display.d.ts +10 -0
- package/dist/generated/gtksource/hover-display.js +10 -0
- package/dist/generated/gtksource/hover-provider.d.ts +12 -0
- package/dist/generated/gtksource/hover-provider.js +12 -0
- package/dist/generated/gtksource/hover.d.ts +15 -0
- package/dist/generated/gtksource/hover.js +15 -0
- package/dist/generated/gtksource/indenter.d.ts +66 -0
- package/dist/generated/gtksource/indenter.js +66 -0
- package/dist/generated/gtksource/language-manager.d.ts +117 -0
- package/dist/generated/gtksource/language-manager.js +117 -0
- package/dist/generated/gtksource/language.d.ts +58 -0
- package/dist/generated/gtksource/language.js +58 -0
- package/dist/generated/gtksource/map.d.ts +35 -0
- package/dist/generated/gtksource/map.js +35 -0
- package/dist/generated/gtksource/mark-attributes.d.ts +63 -0
- package/dist/generated/gtksource/mark-attributes.js +96 -0
- package/dist/generated/gtksource/mark.d.ts +47 -0
- package/dist/generated/gtksource/mark.js +36 -0
- package/dist/generated/gtksource/print-compositor.d.ts +417 -0
- package/dist/generated/gtksource/print-compositor.js +413 -0
- package/dist/generated/gtksource/region.d.ts +119 -0
- package/dist/generated/gtksource/region.js +116 -0
- package/dist/generated/gtksource/search-context.d.ts +179 -0
- package/dist/generated/gtksource/search-context.js +170 -0
- package/dist/generated/gtksource/search-settings.d.ts +65 -0
- package/dist/generated/gtksource/search-settings.js +65 -0
- package/dist/generated/gtksource/snippet-chunk.d.ts +85 -0
- package/dist/generated/gtksource/snippet-chunk.js +85 -0
- package/dist/generated/gtksource/snippet-context.d.ts +31 -0
- package/dist/generated/gtksource/snippet-context.js +42 -0
- package/dist/generated/gtksource/snippet-manager.d.ts +65 -0
- package/dist/generated/gtksource/snippet-manager.js +65 -0
- package/dist/generated/gtksource/snippet.d.ts +86 -0
- package/dist/generated/gtksource/snippet.js +81 -0
- package/dist/generated/gtksource/space-drawer.d.ts +123 -0
- package/dist/generated/gtksource/space-drawer.js +123 -0
- package/dist/generated/gtksource/style-scheme-chooser-button.d.ts +21 -0
- package/dist/generated/gtksource/style-scheme-chooser-button.js +21 -0
- package/dist/generated/gtksource/style-scheme-chooser-widget.d.ts +22 -0
- package/dist/generated/gtksource/style-scheme-chooser-widget.js +22 -0
- package/dist/generated/gtksource/style-scheme-chooser.d.ts +16 -0
- package/dist/generated/gtksource/style-scheme-chooser.js +16 -0
- package/dist/generated/gtksource/style-scheme-manager.d.ts +53 -0
- package/dist/generated/gtksource/style-scheme-manager.js +53 -0
- package/dist/generated/gtksource/style-scheme-preview.d.ts +8 -0
- package/dist/generated/gtksource/style-scheme-preview.js +11 -0
- package/dist/generated/gtksource/style-scheme.d.ts +22 -0
- package/dist/generated/gtksource/style-scheme.js +22 -0
- package/dist/generated/gtksource/style.d.ts +20 -0
- package/dist/generated/gtksource/style.js +20 -0
- package/dist/generated/gtksource/tag.d.ts +18 -0
- package/dist/generated/gtksource/tag.js +9 -0
- package/dist/generated/gtksource/view.d.ts +248 -0
- package/dist/generated/gtksource/view.js +312 -0
- package/dist/generated/gtksource/vim-imcontext.d.ts +12 -0
- package/dist/generated/gtksource/vim-imcontext.js +85 -0
- package/dist/generated/harfbuzz/blob-t.d.ts +5 -0
- package/dist/generated/harfbuzz/blob-t.js +5 -0
- package/dist/generated/harfbuzz/buffer-t.d.ts +4 -0
- package/dist/generated/harfbuzz/buffer-t.js +4 -0
- package/dist/generated/harfbuzz/color-line-t.d.ts +1 -0
- package/dist/generated/harfbuzz/color-line-t.js +1 -0
- package/dist/generated/harfbuzz/color-stop-t.d.ts +14 -0
- package/dist/generated/harfbuzz/color-stop-t.js +14 -0
- package/dist/generated/harfbuzz/draw-funcs-t.d.ts +8 -0
- package/dist/generated/harfbuzz/draw-funcs-t.js +8 -0
- package/dist/generated/harfbuzz/draw-state-t.d.ts +6 -0
- package/dist/generated/harfbuzz/draw-state-t.js +6 -0
- package/dist/generated/harfbuzz/enums.d.ts +1241 -0
- package/dist/generated/harfbuzz/enums.js +1241 -0
- package/dist/generated/harfbuzz/face-t.d.ts +1 -0
- package/dist/generated/harfbuzz/face-t.js +1 -0
- package/dist/generated/harfbuzz/feature-t.d.ts +25 -0
- package/dist/generated/harfbuzz/feature-t.js +25 -0
- package/dist/generated/harfbuzz/font-funcs-t.d.ts +10 -0
- package/dist/generated/harfbuzz/font-funcs-t.js +10 -0
- package/dist/generated/harfbuzz/font-t.d.ts +1 -0
- package/dist/generated/harfbuzz/font-t.js +1 -0
- package/dist/generated/harfbuzz/functions.d.ts +3816 -0
- package/dist/generated/harfbuzz/functions.js +3816 -0
- package/dist/generated/harfbuzz/glyph-info-t.d.ts +21 -0
- package/dist/generated/harfbuzz/glyph-info-t.js +21 -0
- package/dist/generated/harfbuzz/glyph-position-t.d.ts +21 -0
- package/dist/generated/harfbuzz/glyph-position-t.js +21 -0
- package/dist/generated/harfbuzz/map-t.d.ts +1 -0
- package/dist/generated/harfbuzz/map-t.js +1 -0
- package/dist/generated/harfbuzz/ot-math-glyph-part-t.d.ts +10 -0
- package/dist/generated/harfbuzz/ot-math-glyph-part-t.js +10 -0
- package/dist/generated/harfbuzz/ot-math-glyph-variant-t.d.ts +3 -0
- package/dist/generated/harfbuzz/ot-math-glyph-variant-t.js +3 -0
- package/dist/generated/harfbuzz/ot-var-axis-info-t.d.ts +15 -0
- package/dist/generated/harfbuzz/ot-var-axis-info-t.js +15 -0
- package/dist/generated/harfbuzz/paint-funcs-t.d.ts +22 -0
- package/dist/generated/harfbuzz/paint-funcs-t.js +22 -0
- package/dist/generated/harfbuzz/segment-properties-t.d.ts +8 -0
- package/dist/generated/harfbuzz/segment-properties-t.js +8 -0
- package/dist/generated/harfbuzz/set-t.d.ts +6 -0
- package/dist/generated/harfbuzz/set-t.js +6 -0
- package/dist/generated/harfbuzz/shape-plan-t.d.ts +11 -0
- package/dist/generated/harfbuzz/shape-plan-t.js +11 -0
- package/dist/generated/harfbuzz/unicode-funcs-t.d.ts +10 -0
- package/dist/generated/harfbuzz/unicode-funcs-t.js +10 -0
- package/dist/generated/harfbuzz/user-data-key-t.d.ts +1 -0
- package/dist/generated/harfbuzz/user-data-key-t.js +1 -0
- package/dist/generated/pango/attr-iterator.d.ts +48 -0
- package/dist/generated/pango/attr-iterator.js +48 -0
- package/dist/generated/pango/attr-list.d.ts +168 -0
- package/dist/generated/pango/attr-list.js +168 -0
- package/dist/generated/pango/attribute.d.ts +82 -0
- package/dist/generated/pango/attribute.js +82 -0
- package/dist/generated/pango/color.d.ts +55 -0
- package/dist/generated/pango/color.js +55 -0
- package/dist/generated/pango/context.d.ts +188 -0
- package/dist/generated/pango/context.js +188 -0
- package/dist/generated/pango/coverage.d.ts +50 -0
- package/dist/generated/pango/coverage.js +50 -0
- package/dist/generated/pango/enums.d.ts +589 -0
- package/dist/generated/pango/enums.js +589 -0
- package/dist/generated/pango/font-description.d.ts +374 -0
- package/dist/generated/pango/font-description.js +374 -0
- package/dist/generated/pango/font-face.d.ts +38 -0
- package/dist/generated/pango/font-face.js +38 -0
- package/dist/generated/pango/font-family.d.ts +55 -0
- package/dist/generated/pango/font-family.js +55 -0
- package/dist/generated/pango/font-map.d.ts +88 -0
- package/dist/generated/pango/font-map.js +88 -0
- package/dist/generated/pango/font-metrics.d.ts +78 -0
- package/dist/generated/pango/font-metrics.js +78 -0
- package/dist/generated/pango/font.d.ts +119 -0
- package/dist/generated/pango/font.js +119 -0
- package/dist/generated/pango/fontset-simple.d.ts +20 -0
- package/dist/generated/pango/fontset-simple.js +16 -0
- package/dist/generated/pango/fontset.d.ts +24 -0
- package/dist/generated/pango/fontset.js +24 -0
- package/dist/generated/pango/functions.d.ts +1009 -0
- package/dist/generated/pango/functions.js +1009 -0
- package/dist/generated/pango/glyph-item-iter.d.ts +72 -0
- package/dist/generated/pango/glyph-item-iter.js +72 -0
- package/dist/generated/pango/glyph-item.d.ts +82 -0
- package/dist/generated/pango/glyph-item.js +82 -0
- package/dist/generated/pango/glyph-string.d.ts +114 -0
- package/dist/generated/pango/glyph-string.js +114 -0
- package/dist/generated/pango/item.d.ts +57 -0
- package/dist/generated/pango/item.js +57 -0
- package/dist/generated/pango/language.d.ts +145 -0
- package/dist/generated/pango/language.js +145 -0
- package/dist/generated/pango/layout-iter.d.ts +153 -0
- package/dist/generated/pango/layout-iter.js +153 -0
- package/dist/generated/pango/layout-line.d.ts +99 -0
- package/dist/generated/pango/layout-line.js +99 -0
- package/dist/generated/pango/layout.d.ts +662 -0
- package/dist/generated/pango/layout.js +657 -0
- package/dist/generated/pango/matrix.d.ts +136 -0
- package/dist/generated/pango/matrix.js +136 -0
- package/dist/generated/pango/renderer.d.ts +188 -0
- package/dist/generated/pango/renderer.js +188 -0
- package/dist/generated/pango/script-iter.d.ts +37 -0
- package/dist/generated/pango/script-iter.js +27 -0
- package/dist/generated/pango/tab-array.d.ts +114 -0
- package/dist/generated/pango/tab-array.js +106 -0
- package/dist/generated/pangocairo/font-map.d.ts +41 -0
- package/dist/generated/pangocairo/font-map.js +41 -0
- package/dist/generated/pangocairo/font.d.ts +12 -0
- package/dist/generated/pangocairo/font.js +12 -0
- package/dist/generated/pangocairo/functions.d.ts +227 -0
- package/dist/generated/pangocairo/functions.js +227 -0
- package/dist/gl/constants.d.ts +4 -0
- package/dist/gl/constants.js +4 -0
- package/dist/gl/gl.d.ts +144 -0
- package/dist/gl/gl.js +144 -0
- package/dist/gl/index.d.ts +12 -0
- package/dist/gl/index.js +12 -0
- package/dist/native-error.d.ts +11 -0
- package/dist/native-error.js +11 -0
- package/dist/native.d.ts +29 -0
- package/dist/native.js +29 -0
- package/dist/types.d.ts +5 -0
- package/package.json +3 -3
|
@@ -13,6 +13,400 @@ import * as Gdk from "../gdk/index.js";
|
|
|
13
13
|
import * as Gio from "../gio/index.js";
|
|
14
14
|
import * as Pango from "../pango/index.js";
|
|
15
15
|
import * as cairo from "../cairo/index.js";
|
|
16
|
+
/**
|
|
17
|
+
* The base class for all widgets.
|
|
18
|
+
*
|
|
19
|
+
* It manages the widget lifecycle, layout, states and style.
|
|
20
|
+
*
|
|
21
|
+
* ### Height-for-width Geometry Management
|
|
22
|
+
*
|
|
23
|
+
* GTK uses a height-for-width (and width-for-height) geometry management
|
|
24
|
+
* system. Height-for-width means that a widget can change how much
|
|
25
|
+
* vertical space it needs, depending on the amount of horizontal space
|
|
26
|
+
* that it is given (and similar for width-for-height). The most common
|
|
27
|
+
* example is a label that reflows to fill up the available width, wraps
|
|
28
|
+
* to fewer lines, and therefore needs less height.
|
|
29
|
+
*
|
|
30
|
+
* Height-for-width geometry management is implemented in GTK by way
|
|
31
|
+
* of two virtual methods:
|
|
32
|
+
*
|
|
33
|
+
* - [vfunc@Gtk.Widget.get_request_mode]
|
|
34
|
+
* - [vfunc@Gtk.Widget.measure]
|
|
35
|
+
*
|
|
36
|
+
* There are some important things to keep in mind when implementing
|
|
37
|
+
* height-for-width and when using it in widget implementations.
|
|
38
|
+
*
|
|
39
|
+
* If you implement a direct `GtkWidget` subclass that supports
|
|
40
|
+
* height-for-width or width-for-height geometry management for itself
|
|
41
|
+
* or its child widgets, the [vfunc@Gtk.Widget.get_request_mode] virtual
|
|
42
|
+
* function must be implemented as well and return the widget's preferred
|
|
43
|
+
* request mode. The default implementation of this virtual function
|
|
44
|
+
* returns %GTK_SIZE_REQUEST_CONSTANT_SIZE, which means that the widget will
|
|
45
|
+
* only ever get -1 passed as the for_size value to its
|
|
46
|
+
* [vfunc@Gtk.Widget.measure] implementation.
|
|
47
|
+
*
|
|
48
|
+
* The geometry management system will query a widget hierarchy in
|
|
49
|
+
* only one orientation at a time. When widgets are initially queried
|
|
50
|
+
* for their minimum sizes it is generally done in two initial passes
|
|
51
|
+
* in the [enum@Gtk.SizeRequestMode] chosen by the toplevel.
|
|
52
|
+
*
|
|
53
|
+
* For example, when queried in the normal %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH mode:
|
|
54
|
+
*
|
|
55
|
+
* First, the default minimum and natural width for each widget
|
|
56
|
+
* in the interface will be computed using [method@Gtk.Widget.measure] with an
|
|
57
|
+
* orientation of %GTK_ORIENTATION_HORIZONTAL and a for_size of -1.
|
|
58
|
+
* Because the preferred widths for each widget depend on the preferred
|
|
59
|
+
* widths of their children, this information propagates up the hierarchy,
|
|
60
|
+
* and finally a minimum and natural width is determined for the entire
|
|
61
|
+
* toplevel. Next, the toplevel will use the minimum width to query for the
|
|
62
|
+
* minimum height contextual to that width using [method@Gtk.Widget.measure] with an
|
|
63
|
+
* orientation of %GTK_ORIENTATION_VERTICAL and a for_size of the just computed
|
|
64
|
+
* width. This will also be a highly recursive operation. The minimum height
|
|
65
|
+
* for the minimum width is normally used to set the minimum size constraint
|
|
66
|
+
* on the toplevel.
|
|
67
|
+
*
|
|
68
|
+
* After the toplevel window has initially requested its size in both
|
|
69
|
+
* dimensions it can go on to allocate itself a reasonable size (or a size
|
|
70
|
+
* previously specified with [method@Gtk.Window.set_default_size]). During the
|
|
71
|
+
* recursive allocation process it’s important to note that request cycles
|
|
72
|
+
* will be recursively executed while widgets allocate their children.
|
|
73
|
+
* Each widget, once allocated a size, will go on to first share the
|
|
74
|
+
* space in one orientation among its children and then request each child's
|
|
75
|
+
* height for its target allocated width or its width for allocated height,
|
|
76
|
+
* depending. In this way a widget will typically be requested its size
|
|
77
|
+
* a number of times before actually being allocated a size. The size a
|
|
78
|
+
* widget is finally allocated can of course differ from the size it has
|
|
79
|
+
* requested. For this reason, `GtkWidget` caches a small number of results
|
|
80
|
+
* to avoid re-querying for the same sizes in one allocation cycle.
|
|
81
|
+
*
|
|
82
|
+
* If a widget does move content around to intelligently use up the
|
|
83
|
+
* allocated size then it must support the request in both
|
|
84
|
+
* `GtkSizeRequestMode`s even if the widget in question only
|
|
85
|
+
* trades sizes in a single orientation.
|
|
86
|
+
*
|
|
87
|
+
* For instance, a [class@Gtk.Label] that does height-for-width word wrapping
|
|
88
|
+
* will not expect to have [vfunc@Gtk.Widget.measure] with an orientation of
|
|
89
|
+
* %GTK_ORIENTATION_VERTICAL called because that call is specific to a
|
|
90
|
+
* width-for-height request. In this case the label must return the height
|
|
91
|
+
* required for its own minimum possible width. By following this rule any
|
|
92
|
+
* widget that handles height-for-width or width-for-height requests will
|
|
93
|
+
* always be allocated at least enough space to fit its own content.
|
|
94
|
+
*
|
|
95
|
+
* Here are some examples of how a %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH widget
|
|
96
|
+
* generally deals with width-for-height requests:
|
|
97
|
+
*
|
|
98
|
+
* ```c
|
|
99
|
+
* static void
|
|
100
|
+
* foo_widget_measure (GtkWidget *widget,
|
|
101
|
+
* GtkOrientation orientation,
|
|
102
|
+
* int for_size,
|
|
103
|
+
* int *minimum_size,
|
|
104
|
+
* int *natural_size,
|
|
105
|
+
* int *minimum_baseline,
|
|
106
|
+
* int *natural_baseline)
|
|
107
|
+
* {
|
|
108
|
+
* if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
|
109
|
+
* {
|
|
110
|
+
* // Calculate minimum and natural width
|
|
111
|
+
* }
|
|
112
|
+
* else // VERTICAL
|
|
113
|
+
* {
|
|
114
|
+
* if (i_am_in_height_for_width_mode)
|
|
115
|
+
* {
|
|
116
|
+
* int min_width, dummy;
|
|
117
|
+
*
|
|
118
|
+
* // First, get the minimum width of our widget
|
|
119
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_HORIZONTAL, -1,
|
|
120
|
+
* &min_width, &dummy, &dummy, &dummy);
|
|
121
|
+
*
|
|
122
|
+
* // Now use the minimum width to retrieve the minimum and natural height to display
|
|
123
|
+
* // that width.
|
|
124
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_VERTICAL, min_width,
|
|
125
|
+
* minimum_size, natural_size, &dummy, &dummy);
|
|
126
|
+
* }
|
|
127
|
+
* else
|
|
128
|
+
* {
|
|
129
|
+
* // ... some widgets do both.
|
|
130
|
+
* }
|
|
131
|
+
* }
|
|
132
|
+
* }
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* Often a widget needs to get its own request during size request or
|
|
136
|
+
* allocation. For example, when computing height it may need to also
|
|
137
|
+
* compute width. Or when deciding how to use an allocation, the widget
|
|
138
|
+
* may need to know its natural size. In these cases, the widget should
|
|
139
|
+
* be careful to call its virtual methods directly, like in the code
|
|
140
|
+
* example above.
|
|
141
|
+
*
|
|
142
|
+
* It will not work to use the wrapper function [method@Gtk.Widget.measure]
|
|
143
|
+
* inside your own [vfunc@Gtk.Widget.size_allocate] implementation.
|
|
144
|
+
* These return a request adjusted by [class@Gtk.SizeGroup], the widget's
|
|
145
|
+
* align and expand flags, as well as its CSS style.
|
|
146
|
+
*
|
|
147
|
+
* If a widget used the wrappers inside its virtual method implementations,
|
|
148
|
+
* then the adjustments (such as widget margins) would be applied
|
|
149
|
+
* twice. GTK therefore does not allow this and will warn if you try
|
|
150
|
+
* to do it.
|
|
151
|
+
*
|
|
152
|
+
* Of course if you are getting the size request for another widget, such
|
|
153
|
+
* as a child widget, you must use [method@Gtk.Widget.measure]; otherwise, you
|
|
154
|
+
* would not properly consider widget margins, [class@Gtk.SizeGroup], and
|
|
155
|
+
* so forth.
|
|
156
|
+
*
|
|
157
|
+
* GTK also supports baseline vertical alignment of widgets. This
|
|
158
|
+
* means that widgets are positioned such that the typographical baseline of
|
|
159
|
+
* widgets in the same row are aligned. This happens if a widget supports
|
|
160
|
+
* baselines, has a vertical alignment using baselines, and is inside
|
|
161
|
+
* a widget that supports baselines and has a natural “row” that it aligns to
|
|
162
|
+
* the baseline, or a baseline assigned to it by the grandparent.
|
|
163
|
+
*
|
|
164
|
+
* Baseline alignment support for a widget is also done by the
|
|
165
|
+
* [vfunc@Gtk.Widget.measure] virtual function. It allows you to report
|
|
166
|
+
* both a minimum and natural size.
|
|
167
|
+
*
|
|
168
|
+
* If a widget ends up baseline aligned it will be allocated all the space in
|
|
169
|
+
* the parent as if it was %GTK_ALIGN_FILL, but the selected baseline can be
|
|
170
|
+
* found via [method@Gtk.Widget.get_baseline]. If the baseline has a
|
|
171
|
+
* value other than -1 you need to align the widget such that the baseline
|
|
172
|
+
* appears at the position.
|
|
173
|
+
*
|
|
174
|
+
* ### GtkWidget as GtkBuildable
|
|
175
|
+
*
|
|
176
|
+
* The `GtkWidget` implementation of the `GtkBuildable` interface
|
|
177
|
+
* supports various custom elements to specify additional aspects of widgets
|
|
178
|
+
* that are not directly expressed as properties.
|
|
179
|
+
*
|
|
180
|
+
* If the widget uses a [class@Gtk.LayoutManager], `GtkWidget` supports
|
|
181
|
+
* a custom `<layout>` element, used to define layout properties:
|
|
182
|
+
*
|
|
183
|
+
* ```xml
|
|
184
|
+
* <object class="GtkGrid" id="my_grid">
|
|
185
|
+
* <child>
|
|
186
|
+
* <object class="GtkLabel" id="label1">
|
|
187
|
+
* <property name="label">Description</property>
|
|
188
|
+
* <layout>
|
|
189
|
+
* <property name="column">0</property>
|
|
190
|
+
* <property name="row">0</property>
|
|
191
|
+
* <property name="row-span">1</property>
|
|
192
|
+
* <property name="column-span">1</property>
|
|
193
|
+
* </layout>
|
|
194
|
+
* </object>
|
|
195
|
+
* </child>
|
|
196
|
+
* <child>
|
|
197
|
+
* <object class="GtkEntry" id="description_entry">
|
|
198
|
+
* <layout>
|
|
199
|
+
* <property name="column">1</property>
|
|
200
|
+
* <property name="row">0</property>
|
|
201
|
+
* <property name="row-span">1</property>
|
|
202
|
+
* <property name="column-span">1</property>
|
|
203
|
+
* </layout>
|
|
204
|
+
* </object>
|
|
205
|
+
* </child>
|
|
206
|
+
* </object>
|
|
207
|
+
* ```
|
|
208
|
+
*
|
|
209
|
+
* `GtkWidget` allows style information such as style classes to
|
|
210
|
+
* be associated with widgets, using the custom `<style>` element:
|
|
211
|
+
*
|
|
212
|
+
* ```xml
|
|
213
|
+
* <object class="GtkButton" id="button1">
|
|
214
|
+
* <style>
|
|
215
|
+
* <class name="my-special-button-class"/>
|
|
216
|
+
* <class name="dark-button"/>
|
|
217
|
+
* </style>
|
|
218
|
+
* </object>
|
|
219
|
+
* ```
|
|
220
|
+
*
|
|
221
|
+
* `GtkWidget` allows defining accessibility information, such as properties,
|
|
222
|
+
* relations, and states, using the custom `<accessibility>` element:
|
|
223
|
+
*
|
|
224
|
+
* ```xml
|
|
225
|
+
* <object class="GtkButton" id="button1">
|
|
226
|
+
* <accessibility>
|
|
227
|
+
* <property name="label">Download</property>
|
|
228
|
+
* <relation name="labelled-by">label1</relation>
|
|
229
|
+
* </accessibility>
|
|
230
|
+
* </object>
|
|
231
|
+
* ```
|
|
232
|
+
*
|
|
233
|
+
* ### Building composite widgets from template XML
|
|
234
|
+
*
|
|
235
|
+
* `GtkWidget `exposes some facilities to automate the procedure
|
|
236
|
+
* of creating composite widgets using "templates".
|
|
237
|
+
*
|
|
238
|
+
* To create composite widgets with `GtkBuilder` XML, one must associate
|
|
239
|
+
* the interface description with the widget class at class initialization
|
|
240
|
+
* time using [method@Gtk.WidgetClass.set_template].
|
|
241
|
+
*
|
|
242
|
+
* The interface description semantics expected in composite template descriptions
|
|
243
|
+
* is slightly different from regular [class@Gtk.Builder] XML.
|
|
244
|
+
*
|
|
245
|
+
* Unlike regular interface descriptions, [method@Gtk.WidgetClass.set_template]
|
|
246
|
+
* will expect a `<template>` tag as a direct child of the toplevel
|
|
247
|
+
* `<interface>` tag. The `<template>` tag must specify the “class” attribute
|
|
248
|
+
* which must be the type name of the widget. Optionally, the “parent”
|
|
249
|
+
* attribute may be specified to specify the direct parent type of the widget
|
|
250
|
+
* type; this is ignored by `GtkBuilder` but can be used by UI design tools to
|
|
251
|
+
* introspect what kind of properties and internal children exist for a given
|
|
252
|
+
* type when the actual type does not exist.
|
|
253
|
+
*
|
|
254
|
+
* The XML which is contained inside the `<template>` tag behaves as if it were
|
|
255
|
+
* added to the `<object>` tag defining the widget itself. You may set properties
|
|
256
|
+
* on a widget by inserting `<property>` tags into the `<template>` tag, and also
|
|
257
|
+
* add `<child>` tags to add children and extend a widget in the normal way you
|
|
258
|
+
* would with `<object>` tags.
|
|
259
|
+
*
|
|
260
|
+
* Additionally, `<object>` tags can also be added before and after the initial
|
|
261
|
+
* `<template>` tag in the normal way, allowing one to define auxiliary objects
|
|
262
|
+
* which might be referenced by other widgets declared as children of the
|
|
263
|
+
* `<template>` tag.
|
|
264
|
+
*
|
|
265
|
+
* Since, unlike the `<object>` tag, the `<template>` tag does not contain an
|
|
266
|
+
* “id” attribute, if you need to refer to the instance of the object itself that
|
|
267
|
+
* the template will create, simply refer to the template class name in an
|
|
268
|
+
* applicable element content.
|
|
269
|
+
*
|
|
270
|
+
* Here is an example of a template definition, which includes an example of
|
|
271
|
+
* this in the `<signal>` tag:
|
|
272
|
+
*
|
|
273
|
+
* ```xml
|
|
274
|
+
* <interface>
|
|
275
|
+
* <template class="FooWidget" parent="GtkBox">
|
|
276
|
+
* <property name="orientation">horizontal</property>
|
|
277
|
+
* <property name="spacing">4</property>
|
|
278
|
+
* <child>
|
|
279
|
+
* <object class="GtkButton" id="hello_button">
|
|
280
|
+
* <property name="label">Hello World</property>
|
|
281
|
+
* <signal name="clicked" handler="hello_button_clicked" object="FooWidget" swapped="yes"/>
|
|
282
|
+
* </object>
|
|
283
|
+
* </child>
|
|
284
|
+
* <child>
|
|
285
|
+
* <object class="GtkButton" id="goodbye_button">
|
|
286
|
+
* <property name="label">Goodbye World</property>
|
|
287
|
+
* </object>
|
|
288
|
+
* </child>
|
|
289
|
+
* </template>
|
|
290
|
+
* </interface>
|
|
291
|
+
* ```
|
|
292
|
+
*
|
|
293
|
+
* Typically, you'll place the template fragment into a file that is
|
|
294
|
+
* bundled with your project, using `GResource`. In order to load the
|
|
295
|
+
* template, you need to call [method@Gtk.WidgetClass.set_template_from_resource]
|
|
296
|
+
* from the class initialization of your `GtkWidget` type:
|
|
297
|
+
*
|
|
298
|
+
* ```c
|
|
299
|
+
* static void
|
|
300
|
+
* foo_widget_class_init (FooWidgetClass *klass)
|
|
301
|
+
* {
|
|
302
|
+
* // ...
|
|
303
|
+
*
|
|
304
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
305
|
+
* "/com/example/ui/foowidget.ui");
|
|
306
|
+
* }
|
|
307
|
+
* ```
|
|
308
|
+
*
|
|
309
|
+
* You will also need to call [method@Gtk.Widget.init_template] from the
|
|
310
|
+
* instance initialization function:
|
|
311
|
+
*
|
|
312
|
+
* ```c
|
|
313
|
+
* static void
|
|
314
|
+
* foo_widget_init (FooWidget *self)
|
|
315
|
+
* {
|
|
316
|
+
* gtk_widget_init_template (GTK_WIDGET (self));
|
|
317
|
+
*
|
|
318
|
+
* // Initialize the rest of the widget...
|
|
319
|
+
* }
|
|
320
|
+
* ```
|
|
321
|
+
*
|
|
322
|
+
* as well as calling [method@Gtk.Widget.dispose_template] from the dispose
|
|
323
|
+
* function:
|
|
324
|
+
*
|
|
325
|
+
* ```c
|
|
326
|
+
* static void
|
|
327
|
+
* foo_widget_dispose (GObject *gobject)
|
|
328
|
+
* {
|
|
329
|
+
* FooWidget *self = FOO_WIDGET (gobject);
|
|
330
|
+
*
|
|
331
|
+
* // Dispose objects for which you have a reference...
|
|
332
|
+
*
|
|
333
|
+
* // Clear the template children for this widget type
|
|
334
|
+
* gtk_widget_dispose_template (GTK_WIDGET (self), FOO_TYPE_WIDGET);
|
|
335
|
+
*
|
|
336
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
337
|
+
* }
|
|
338
|
+
* ```
|
|
339
|
+
*
|
|
340
|
+
* You can access widgets defined in the template using the
|
|
341
|
+
* [method@Gtk.Widget.get_template_child] function, but you will typically declare
|
|
342
|
+
* a pointer in the instance private data structure of your type using the same
|
|
343
|
+
* name as the widget in the template definition, and call
|
|
344
|
+
* [method@Gtk.WidgetClass.bind_template_child_full] (or one of its wrapper macros
|
|
345
|
+
* [func@Gtk.widget_class_bind_template_child] and [func@Gtk.widget_class_bind_template_child_private])
|
|
346
|
+
* with that name, e.g.
|
|
347
|
+
*
|
|
348
|
+
* ```c
|
|
349
|
+
* typedef struct {
|
|
350
|
+
* GtkWidget *hello_button;
|
|
351
|
+
* GtkWidget *goodbye_button;
|
|
352
|
+
* } FooWidgetPrivate;
|
|
353
|
+
*
|
|
354
|
+
* G_DEFINE_TYPE_WITH_PRIVATE (FooWidget, foo_widget, GTK_TYPE_BOX)
|
|
355
|
+
*
|
|
356
|
+
* static void
|
|
357
|
+
* foo_widget_dispose (GObject *gobject)
|
|
358
|
+
* {
|
|
359
|
+
* gtk_widget_dispose_template (GTK_WIDGET (gobject), FOO_TYPE_WIDGET);
|
|
360
|
+
*
|
|
361
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
362
|
+
* }
|
|
363
|
+
*
|
|
364
|
+
* static void
|
|
365
|
+
* foo_widget_class_init (FooWidgetClass *klass)
|
|
366
|
+
* {
|
|
367
|
+
* // ...
|
|
368
|
+
* G_OBJECT_CLASS (klass)->dispose = foo_widget_dispose;
|
|
369
|
+
*
|
|
370
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
371
|
+
* "/com/example/ui/foowidget.ui");
|
|
372
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
373
|
+
* FooWidget, hello_button);
|
|
374
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
375
|
+
* FooWidget, goodbye_button);
|
|
376
|
+
* }
|
|
377
|
+
*
|
|
378
|
+
* static void
|
|
379
|
+
* foo_widget_init (FooWidget *widget)
|
|
380
|
+
* {
|
|
381
|
+
* gtk_widget_init_template (GTK_WIDGET (widget));
|
|
382
|
+
* }
|
|
383
|
+
* ```
|
|
384
|
+
*
|
|
385
|
+
* You can also use [method@Gtk.WidgetClass.bind_template_callback_full] (or
|
|
386
|
+
* is wrapper macro [func@Gtk.widget_class_bind_template_callback]) to connect
|
|
387
|
+
* a signal callback defined in the template with a function visible in the
|
|
388
|
+
* scope of the class, e.g.
|
|
389
|
+
*
|
|
390
|
+
* ```c
|
|
391
|
+
* // the signal handler has the instance and user data swapped
|
|
392
|
+
* // because of the swapped="yes" attribute in the template XML
|
|
393
|
+
* static void
|
|
394
|
+
* hello_button_clicked (FooWidget *self,
|
|
395
|
+
* GtkButton *button)
|
|
396
|
+
* {
|
|
397
|
+
* g_print ("Hello, world!\n");
|
|
398
|
+
* }
|
|
399
|
+
*
|
|
400
|
+
* static void
|
|
401
|
+
* foo_widget_class_init (FooWidgetClass *klass)
|
|
402
|
+
* {
|
|
403
|
+
* // ...
|
|
404
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
405
|
+
* "/com/example/ui/foowidget.ui");
|
|
406
|
+
* gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), hello_button_clicked);
|
|
407
|
+
* }
|
|
408
|
+
* ```
|
|
409
|
+
*/
|
|
16
410
|
const SIGNAL_META = {
|
|
17
411
|
destroy: { params: [], returnType: { type: "undefined" } },
|
|
18
412
|
"direction-changed": {
|
|
@@ -66,6 +460,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
66
460
|
{ type: { type: "gobject" }, value: null },
|
|
67
461
|
], { type: "gobject", borrowed: true });
|
|
68
462
|
}
|
|
463
|
+
/**
|
|
464
|
+
* Obtains the default reading direction.
|
|
465
|
+
*
|
|
466
|
+
* See [func@Gtk.Widget.set_default_direction].
|
|
467
|
+
*/
|
|
69
468
|
static getDefaultDirection() {
|
|
70
469
|
return call("libgtk-4.so.1", "gtk_widget_get_default_direction", [], {
|
|
71
470
|
type: "int",
|
|
@@ -73,6 +472,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
73
472
|
unsigned: false,
|
|
74
473
|
});
|
|
75
474
|
}
|
|
475
|
+
/**
|
|
476
|
+
* Sets the default reading direction for widgets.
|
|
477
|
+
*
|
|
478
|
+
* See [method@Gtk.Widget.set_direction].
|
|
479
|
+
* @param dir - the new default direction, either [enum@Gtk.TextDirection.ltr]
|
|
480
|
+
*/
|
|
76
481
|
static setDefaultDirection(dir) {
|
|
77
482
|
call("libgtk-4.so.1", "gtk_widget_set_default_direction", [
|
|
78
483
|
{
|
|
@@ -81,6 +486,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
81
486
|
},
|
|
82
487
|
], { type: "undefined" });
|
|
83
488
|
}
|
|
489
|
+
/**
|
|
490
|
+
* Enables or disables an action installed with
|
|
491
|
+
* [method@Gtk.WidgetClass.install_action].
|
|
492
|
+
* @param actionName - action name, such as "clipboard.paste"
|
|
493
|
+
* @param enabled - whether the action is now enabled
|
|
494
|
+
*/
|
|
84
495
|
actionSetEnabled(actionName, enabled) {
|
|
85
496
|
call("libgtk-4.so.1", "gtk_widget_action_set_enabled", [
|
|
86
497
|
{
|
|
@@ -97,6 +508,22 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
97
508
|
},
|
|
98
509
|
], { type: "undefined" });
|
|
99
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* Activates the widget.
|
|
513
|
+
*
|
|
514
|
+
* The activation will emit the signal set using
|
|
515
|
+
* [method@Gtk.WidgetClass.set_activate_signal]
|
|
516
|
+
* during class initialization.
|
|
517
|
+
*
|
|
518
|
+
* Activation is what happens when you press `Enter`
|
|
519
|
+
* on a widget.
|
|
520
|
+
*
|
|
521
|
+
* If you wish to handle the activation keybinding yourself,
|
|
522
|
+
* it is recommended to use [method@Gtk.WidgetClass.add_shortcut]
|
|
523
|
+
* with an action created with [ctor@Gtk.SignalAction.new].
|
|
524
|
+
*
|
|
525
|
+
* If `widget` is not activatable, the function returns false.
|
|
526
|
+
*/
|
|
100
527
|
activate() {
|
|
101
528
|
return call("libgtk-4.so.1", "gtk_widget_activate", [
|
|
102
529
|
{
|
|
@@ -105,6 +532,22 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
105
532
|
},
|
|
106
533
|
], { type: "boolean" });
|
|
107
534
|
}
|
|
535
|
+
/**
|
|
536
|
+
* Activates an action for the widget.
|
|
537
|
+
*
|
|
538
|
+
* The action is looked up in the action groups associated with
|
|
539
|
+
* `widget` and its ancestors.
|
|
540
|
+
*
|
|
541
|
+
* If the action is in an action group added with
|
|
542
|
+
* [method@Gtk.Widget.insert_action_group], the `name` is expected
|
|
543
|
+
* to be prefixed with the prefix that was used when the group was
|
|
544
|
+
* inserted.
|
|
545
|
+
*
|
|
546
|
+
* The arguments must match the actions expected parameter type,
|
|
547
|
+
* as returned by [method@Gio.Action.get_parameter_type].
|
|
548
|
+
* @param name - the name of the action to activate
|
|
549
|
+
* @param args - parameters to use
|
|
550
|
+
*/
|
|
108
551
|
activateActionVariant(name, args) {
|
|
109
552
|
return call("libgtk-4.so.1", "gtk_widget_activate_action_variant", [
|
|
110
553
|
{
|
|
@@ -127,6 +570,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
127
570
|
},
|
|
128
571
|
], { type: "boolean" });
|
|
129
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* Activates the `default.activate` action for the widget.
|
|
575
|
+
*
|
|
576
|
+
* The action is looked up in the same was as for
|
|
577
|
+
* [method@Gtk.Widget.activate_action].
|
|
578
|
+
*/
|
|
130
579
|
activateDefault() {
|
|
131
580
|
call("libgtk-4.so.1", "gtk_widget_activate_default", [
|
|
132
581
|
{
|
|
@@ -135,6 +584,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
135
584
|
},
|
|
136
585
|
], { type: "undefined" });
|
|
137
586
|
}
|
|
587
|
+
/**
|
|
588
|
+
* Adds an event controller to the widget.
|
|
589
|
+
*
|
|
590
|
+
* The event controllers of a widget handle the events that are
|
|
591
|
+
* propagated to the widget.
|
|
592
|
+
*
|
|
593
|
+
* You will usually want to call this function right after
|
|
594
|
+
* creating any kind of [class@Gtk.EventController].
|
|
595
|
+
* @param controller - an event controller that hasn't been
|
|
596
|
+
*/
|
|
138
597
|
addController(controller) {
|
|
139
598
|
call("libgtk-4.so.1", "gtk_widget_add_controller", [
|
|
140
599
|
{
|
|
@@ -147,6 +606,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
147
606
|
},
|
|
148
607
|
], { type: "undefined" });
|
|
149
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* Adds a style class to the widget.
|
|
611
|
+
*
|
|
612
|
+
* After calling this function, the widget’s style will match
|
|
613
|
+
* for @css_class, according to CSS matching rules.
|
|
614
|
+
*
|
|
615
|
+
* Use [method@Gtk.Widget.remove_css_class] to remove the
|
|
616
|
+
* style again.
|
|
617
|
+
* @param cssClass - style class to add to @widget, without the leading period
|
|
618
|
+
*/
|
|
150
619
|
addCssClass(cssClass) {
|
|
151
620
|
call("libgtk-4.so.1", "gtk_widget_add_css_class", [
|
|
152
621
|
{
|
|
@@ -159,6 +628,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
159
628
|
},
|
|
160
629
|
], { type: "undefined" });
|
|
161
630
|
}
|
|
631
|
+
/**
|
|
632
|
+
* Adds a widget to the list of mnemonic labels for this widget.
|
|
633
|
+
*
|
|
634
|
+
* See [method@Gtk.Widget.list_mnemonic_labels].
|
|
635
|
+
*
|
|
636
|
+
* Note that the list of mnemonic labels for the widget is cleared
|
|
637
|
+
* when the widget is destroyed, so the caller must make sure
|
|
638
|
+
* to update its internal state at this point as well.
|
|
639
|
+
* @param label - a widget that acts as a mnemonic label for @widget
|
|
640
|
+
*/
|
|
162
641
|
addMnemonicLabel(label) {
|
|
163
642
|
call("libgtk-4.so.1", "gtk_widget_add_mnemonic_label", [
|
|
164
643
|
{
|
|
@@ -171,6 +650,37 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
171
650
|
},
|
|
172
651
|
], { type: "undefined" });
|
|
173
652
|
}
|
|
653
|
+
/**
|
|
654
|
+
* Queues an animation frame update and adds a callback to be called
|
|
655
|
+
* before each frame.
|
|
656
|
+
*
|
|
657
|
+
* Until the tick callback is removed, it will be called frequently
|
|
658
|
+
* (usually at the frame rate of the output device or as quickly as
|
|
659
|
+
* the application can be repainted, whichever is slower). For this
|
|
660
|
+
* reason, is most suitable for handling graphics that change every
|
|
661
|
+
* frame or every few frames.
|
|
662
|
+
*
|
|
663
|
+
* The tick callback does not automatically imply a relayout or repaint.
|
|
664
|
+
* If you want a repaint or relayout, and aren’t changing widget properties
|
|
665
|
+
* that would trigger that (for example, changing the text of a label),
|
|
666
|
+
* then you will have to call [method@Gtk.Widget.queue_resize] or
|
|
667
|
+
* [method@Gtk.Widget.queue_draw] yourself.
|
|
668
|
+
*
|
|
669
|
+
* [method@Gdk.FrameClock.get_frame_time] should generally be used
|
|
670
|
+
* for timing continuous animations and
|
|
671
|
+
* [method@Gdk.FrameTimings.get_predicted_presentation_time] should be
|
|
672
|
+
* used if you are trying to display isolated frames at particular times.
|
|
673
|
+
*
|
|
674
|
+
* This is a more convenient alternative to connecting directly to the
|
|
675
|
+
* [signal@Gdk.FrameClock::update] signal of the frame clock, since you
|
|
676
|
+
* don't have to worry about when a frame clock is assigned to a widget.
|
|
677
|
+
*
|
|
678
|
+
* To remove a tick callback, pass the ID that is returned by this function
|
|
679
|
+
* to [method@Gtk.Widget.remove_tick_callback].
|
|
680
|
+
* @param callback - function
|
|
681
|
+
* @param userData - data to pass to @callback
|
|
682
|
+
* @param notify - function to call to free @user_data
|
|
683
|
+
*/
|
|
174
684
|
addTickCallback(callback, notify, userData) {
|
|
175
685
|
return call("libgtk-4.so.1", "gtk_widget_add_tick_callback", [
|
|
176
686
|
{
|
|
@@ -192,6 +702,23 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
192
702
|
},
|
|
193
703
|
], { type: "int", size: 32, unsigned: true });
|
|
194
704
|
}
|
|
705
|
+
/**
|
|
706
|
+
* Assigns size, position, (optionally) a baseline and transform
|
|
707
|
+
* to a child widget.
|
|
708
|
+
*
|
|
709
|
+
* In this function, the allocation and baseline may be adjusted.
|
|
710
|
+
* The given allocation will be forced to be bigger than the
|
|
711
|
+
* widget's minimum size, as well as at least 0×0 in size.
|
|
712
|
+
*
|
|
713
|
+
* This function is only used by widget implementations.
|
|
714
|
+
*
|
|
715
|
+
* For a version that does not take a transform, see
|
|
716
|
+
* [method@Gtk.Widget.size_allocate].
|
|
717
|
+
* @param width - new width
|
|
718
|
+
* @param height - new height
|
|
719
|
+
* @param baseline - new baseline, or -1
|
|
720
|
+
* @param transform - transformation to be applied
|
|
721
|
+
*/
|
|
195
722
|
allocate(width, height, baseline, transform) {
|
|
196
723
|
call("libgtk-4.so.1", "gtk_widget_allocate", [
|
|
197
724
|
{
|
|
@@ -221,6 +748,29 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
221
748
|
},
|
|
222
749
|
], { type: "undefined" });
|
|
223
750
|
}
|
|
751
|
+
/**
|
|
752
|
+
* Called by widgets as the user moves around the window using
|
|
753
|
+
* keyboard shortcuts.
|
|
754
|
+
*
|
|
755
|
+
* The `direction` argument indicates what kind of motion is taking
|
|
756
|
+
* place (up, down, left, right, tab forward, tab backward).
|
|
757
|
+
*
|
|
758
|
+
* This function calls the [vfunc@Gtk.Widget.focus] virtual function;
|
|
759
|
+
* widgets can override the virtual function in order to implement
|
|
760
|
+
* appropriate focus behavior.
|
|
761
|
+
*
|
|
762
|
+
* The default `focus()` virtual function for a widget should return
|
|
763
|
+
* true if moving in `direction` left the focus on a focusable location
|
|
764
|
+
* inside that widget, and false if moving in `direction` moved the focus
|
|
765
|
+
* outside the widget. When returning true, widgets normally call
|
|
766
|
+
* [method@Gtk.Widget.grab_focus] to place the focus accordingly;
|
|
767
|
+
* when returning false, they don’t modify the current focus location.
|
|
768
|
+
*
|
|
769
|
+
* This function is used by custom widget implementations; if you're
|
|
770
|
+
* writing an app, you’d use [method@Gtk.Widget.grab_focus] to move
|
|
771
|
+
* the focus to a particular widget.
|
|
772
|
+
* @param direction - direction of focus movement
|
|
773
|
+
*/
|
|
224
774
|
childFocus(direction) {
|
|
225
775
|
return call("libgtk-4.so.1", "gtk_widget_child_focus", [
|
|
226
776
|
{
|
|
@@ -233,6 +783,22 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
233
783
|
},
|
|
234
784
|
], { type: "boolean" });
|
|
235
785
|
}
|
|
786
|
+
/**
|
|
787
|
+
* Computes the bounds for `widget` in the coordinate space of @target.
|
|
788
|
+
*
|
|
789
|
+
* The bounds of widget are (the bounding box of) the region that it is
|
|
790
|
+
* expected to draw in. See the coordinate system
|
|
791
|
+
* overview to learn more.
|
|
792
|
+
*
|
|
793
|
+
* If the operation is successful, true is returned. If `widget` has no
|
|
794
|
+
* bounds or the bounds cannot be expressed in @target's coordinate space
|
|
795
|
+
* (for example if both widgets are in different windows), false is
|
|
796
|
+
* returned and `bounds` is set to the zero rectangle.
|
|
797
|
+
*
|
|
798
|
+
* It is valid for `widget` and `target` to be the same widget.
|
|
799
|
+
* @param target - the target widget
|
|
800
|
+
* @param outBounds - the rectangle taking the bounds
|
|
801
|
+
*/
|
|
236
802
|
computeBounds(target, outBounds) {
|
|
237
803
|
return call("libgtk-4.so.1", "gtk_widget_compute_bounds", [
|
|
238
804
|
{
|
|
@@ -256,6 +822,22 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
256
822
|
},
|
|
257
823
|
], { type: "boolean" });
|
|
258
824
|
}
|
|
825
|
+
/**
|
|
826
|
+
* Computes whether a parent widget should give this widget
|
|
827
|
+
* extra space when possible.
|
|
828
|
+
*
|
|
829
|
+
* Widgets with children should check this, rather than looking at
|
|
830
|
+
* [method@Gtk.Widget.get_hexpand] or [method@Gtk.Widget.get_vexpand].
|
|
831
|
+
*
|
|
832
|
+
* This function already checks whether the widget is visible, so
|
|
833
|
+
* visibility does not need to be checked separately. Non-visible
|
|
834
|
+
* widgets are not expanded.
|
|
835
|
+
*
|
|
836
|
+
* The computed expand value uses either the expand setting explicitly
|
|
837
|
+
* set on the widget itself, or, if none has been explicitly set,
|
|
838
|
+
* the widget may expand if some of its children do.
|
|
839
|
+
* @param orientation - expand direction
|
|
840
|
+
*/
|
|
259
841
|
computeExpand(orientation) {
|
|
260
842
|
return call("libgtk-4.so.1", "gtk_widget_compute_expand", [
|
|
261
843
|
{
|
|
@@ -268,6 +850,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
268
850
|
},
|
|
269
851
|
], { type: "boolean" });
|
|
270
852
|
}
|
|
853
|
+
/**
|
|
854
|
+
* Translates the given `point` in @widget's coordinates to coordinates
|
|
855
|
+
* in @target’s coordinate system.
|
|
856
|
+
*
|
|
857
|
+
* In order to perform this operation, both widgets must share a
|
|
858
|
+
* a common ancestor. If that is not the case, `out_point` is set
|
|
859
|
+
* to (0, 0) and false is returned.
|
|
860
|
+
* @param target - the widget to transform into
|
|
861
|
+
* @param point - a point in @widget's coordinate system
|
|
862
|
+
* @param outPoint - set to the corresponding coordinates in
|
|
863
|
+
*/
|
|
271
864
|
computePoint(target, point, outPoint) {
|
|
272
865
|
return call("libgtk-4.so.1", "gtk_widget_compute_point", [
|
|
273
866
|
{
|
|
@@ -300,6 +893,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
300
893
|
},
|
|
301
894
|
], { type: "boolean" });
|
|
302
895
|
}
|
|
896
|
+
/**
|
|
897
|
+
* Computes a matrix suitable to describe a transformation from
|
|
898
|
+
* @widget's coordinate system into @target's coordinate system.
|
|
899
|
+
*
|
|
900
|
+
* The transform can not be computed in certain cases, for example
|
|
901
|
+
* when `widget` and `target` do not share a common ancestor. In that
|
|
902
|
+
* case `out_transform` gets set to the identity matrix.
|
|
903
|
+
*
|
|
904
|
+
* To learn more about widget coordinate systems, see the coordinate
|
|
905
|
+
* system overview.
|
|
906
|
+
* @param target - the target widget that the matrix will transform to
|
|
907
|
+
* @param outTransform - location to
|
|
908
|
+
*/
|
|
303
909
|
computeTransform(target, outTransform) {
|
|
304
910
|
return call("libgtk-4.so.1", "gtk_widget_compute_transform", [
|
|
305
911
|
{
|
|
@@ -323,6 +929,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
323
929
|
},
|
|
324
930
|
], { type: "boolean" });
|
|
325
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* Tests if a given point is contained in the widget.
|
|
934
|
+
*
|
|
935
|
+
* The coordinates for (x, y) must be in widget coordinates, so
|
|
936
|
+
* (0, 0) is assumed to be the top left of @widget's content area.
|
|
937
|
+
* @param x - X coordinate to test, relative to @widget's origin
|
|
938
|
+
* @param y - Y coordinate to test, relative to @widget's origin
|
|
939
|
+
*/
|
|
326
940
|
contains(x, y) {
|
|
327
941
|
return call("libgtk-4.so.1", "gtk_widget_contains", [
|
|
328
942
|
{
|
|
@@ -339,6 +953,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
339
953
|
},
|
|
340
954
|
], { type: "boolean" });
|
|
341
955
|
}
|
|
956
|
+
/**
|
|
957
|
+
* Creates a new `PangoContext` that is configured for the widget.
|
|
958
|
+
*
|
|
959
|
+
* The `PangoContext` will have the appropriate font map,
|
|
960
|
+
* font options, font description, and base direction set.
|
|
961
|
+
*
|
|
962
|
+
* See also [method@Gtk.Widget.get_pango_context].
|
|
963
|
+
*/
|
|
342
964
|
createPangoContext() {
|
|
343
965
|
const ptr = call("libgtk-4.so.1", "gtk_widget_create_pango_context", [
|
|
344
966
|
{
|
|
@@ -348,6 +970,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
348
970
|
], { type: "gobject", borrowed: true });
|
|
349
971
|
return getObject(ptr, Pango.Context);
|
|
350
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
* Creates a new `PangoLayout` that is configured for the widget.
|
|
975
|
+
*
|
|
976
|
+
* The `PangoLayout` will have the appropriate font map,
|
|
977
|
+
* font description, and base direction set.
|
|
978
|
+
*
|
|
979
|
+
* If you keep a `PangoLayout` created in this way around,
|
|
980
|
+
* you need to re-create it when the widgets `PangoContext`
|
|
981
|
+
* is replaced. This can be tracked by listening to changes
|
|
982
|
+
* of the [property@Gtk.Widget:root] property on the widget.
|
|
983
|
+
* @param text - text to set on the layout
|
|
984
|
+
*/
|
|
351
985
|
createPangoLayout(text) {
|
|
352
986
|
const ptr = call("libgtk-4.so.1", "gtk_widget_create_pango_layout", [
|
|
353
987
|
{
|
|
@@ -362,6 +996,34 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
362
996
|
], { type: "gobject", borrowed: true });
|
|
363
997
|
return getObject(ptr, Pango.Layout);
|
|
364
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* Clears the template children for the widget.
|
|
1001
|
+
*
|
|
1002
|
+
* This function is the opposite of [method@Gtk.Widget.init_template],
|
|
1003
|
+
* and it is used to clear all the template children from a widget
|
|
1004
|
+
* instance. If you bound a template child to a field in the instance
|
|
1005
|
+
* structure, or in the instance private data structure, the field will
|
|
1006
|
+
* be set to `NULL` after this function returns.
|
|
1007
|
+
*
|
|
1008
|
+
* You should call this function inside the `GObjectClass.dispose()`
|
|
1009
|
+
* implementation of any widget that called [method@Gtk.Widget.init_template].
|
|
1010
|
+
* Typically, you will want to call this function last, right before
|
|
1011
|
+
* chaining up to the parent type's dispose implementation, e.g.
|
|
1012
|
+
*
|
|
1013
|
+
* ```c
|
|
1014
|
+
* static void
|
|
1015
|
+
* some_widget_dispose (GObject *gobject)
|
|
1016
|
+
* {
|
|
1017
|
+
* SomeWidget *self = SOME_WIDGET (gobject);
|
|
1018
|
+
*
|
|
1019
|
+
* // Clear the template data for SomeWidget
|
|
1020
|
+
* gtk_widget_dispose_template (GTK_WIDGET (self), SOME_TYPE_WIDGET);
|
|
1021
|
+
*
|
|
1022
|
+
* G_OBJECT_CLASS (some_widget_parent_class)->dispose (gobject);
|
|
1023
|
+
* }
|
|
1024
|
+
* ```
|
|
1025
|
+
* @param widgetType - the type of the widget to finalize the template for
|
|
1026
|
+
*/
|
|
365
1027
|
disposeTemplate(widgetType) {
|
|
366
1028
|
call("libgtk-4.so.1", "gtk_widget_dispose_template", [
|
|
367
1029
|
{
|
|
@@ -374,6 +1036,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
374
1036
|
},
|
|
375
1037
|
], { type: "undefined" });
|
|
376
1038
|
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Checks to see if a drag movement has passed the GTK drag threshold.
|
|
1041
|
+
* @param startX - X coordinate of start of drag
|
|
1042
|
+
* @param startY - Y coordinate of start of drag
|
|
1043
|
+
* @param currentX - current X coordinate
|
|
1044
|
+
* @param currentY - current Y coordinate
|
|
1045
|
+
*/
|
|
377
1046
|
dragCheckThreshold(startX, startY, currentX, currentY) {
|
|
378
1047
|
return call("libgtk-4.so.1", "gtk_drag_check_threshold", [
|
|
379
1048
|
{
|
|
@@ -398,6 +1067,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
398
1067
|
},
|
|
399
1068
|
], { type: "boolean" });
|
|
400
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Notifies the user about an input-related error on the widget.
|
|
1072
|
+
*
|
|
1073
|
+
* If the [property@Gtk.Settings:gtk-error-bell] setting is true,
|
|
1074
|
+
* it calls [method@Gdk.Surface.beep], otherwise it does nothing.
|
|
1075
|
+
*
|
|
1076
|
+
* Note that the effect of [method@Gdk.Surface.beep] can be configured
|
|
1077
|
+
* in many ways, depending on the windowing backend and the desktop
|
|
1078
|
+
* environment or window manager that is used.
|
|
1079
|
+
*/
|
|
401
1080
|
errorBell() {
|
|
402
1081
|
call("libgtk-4.so.1", "gtk_widget_error_bell", [
|
|
403
1082
|
{
|
|
@@ -406,6 +1085,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
406
1085
|
},
|
|
407
1086
|
], { type: "undefined" });
|
|
408
1087
|
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Returns the baseline that has currently been allocated to the widget.
|
|
1090
|
+
*
|
|
1091
|
+
* This function is intended to be used when implementing handlers
|
|
1092
|
+
* for the `GtkWidget`Class.snapshot() function, and when allocating
|
|
1093
|
+
* child widgets in `GtkWidget`Class.size_allocate().
|
|
1094
|
+
*/
|
|
409
1095
|
getAllocatedBaseline() {
|
|
410
1096
|
return call("libgtk-4.so.1", "gtk_widget_get_allocated_baseline", [
|
|
411
1097
|
{
|
|
@@ -414,6 +1100,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
414
1100
|
},
|
|
415
1101
|
], { type: "int", size: 32, unsigned: false });
|
|
416
1102
|
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Returns the height that has currently been allocated to the widget.
|
|
1105
|
+
*
|
|
1106
|
+
* To learn more about widget sizes, see the coordinate
|
|
1107
|
+
* system overview.
|
|
1108
|
+
*/
|
|
417
1109
|
getAllocatedHeight() {
|
|
418
1110
|
return call("libgtk-4.so.1", "gtk_widget_get_allocated_height", [
|
|
419
1111
|
{
|
|
@@ -422,6 +1114,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
422
1114
|
},
|
|
423
1115
|
], { type: "int", size: 32, unsigned: false });
|
|
424
1116
|
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Returns the width that has currently been allocated to the widget.
|
|
1119
|
+
*
|
|
1120
|
+
* To learn more about widget sizes, see the coordinate
|
|
1121
|
+
* system overview.
|
|
1122
|
+
*/
|
|
425
1123
|
getAllocatedWidth() {
|
|
426
1124
|
return call("libgtk-4.so.1", "gtk_widget_get_allocated_width", [
|
|
427
1125
|
{
|
|
@@ -430,6 +1128,24 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
430
1128
|
},
|
|
431
1129
|
], { type: "int", size: 32, unsigned: false });
|
|
432
1130
|
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Retrieves the widget’s allocation.
|
|
1133
|
+
*
|
|
1134
|
+
* Note, when implementing a layout widget: a widget’s allocation
|
|
1135
|
+
* will be its “adjusted” allocation, that is, the widget’s parent
|
|
1136
|
+
* typically calls [method@Gtk.Widget.size_allocate] with an allocation,
|
|
1137
|
+
* and that allocation is then adjusted (to handle margin
|
|
1138
|
+
* and alignment for example) before assignment to the widget.
|
|
1139
|
+
* [method@Gtk.Widget.get_allocation] returns the adjusted allocation that
|
|
1140
|
+
* was actually assigned to the widget. The adjusted allocation is
|
|
1141
|
+
* guaranteed to be completely contained within the
|
|
1142
|
+
* [method@Gtk.Widget.size_allocate] allocation, however.
|
|
1143
|
+
*
|
|
1144
|
+
* So a layout widget is guaranteed that its children stay inside
|
|
1145
|
+
* the assigned bounds, but not that they have exactly the bounds the
|
|
1146
|
+
* widget assigned.
|
|
1147
|
+
* @param allocation - a pointer to a `GtkAllocation` to copy to
|
|
1148
|
+
*/
|
|
433
1149
|
getAllocation(allocation) {
|
|
434
1150
|
call("libgtk-4.so.1", "gtk_widget_get_allocation", [
|
|
435
1151
|
{
|
|
@@ -445,6 +1161,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
445
1161
|
},
|
|
446
1162
|
], { type: "undefined" });
|
|
447
1163
|
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Gets the first ancestor of the widget with type @widget_type.
|
|
1166
|
+
*
|
|
1167
|
+
* For example, `gtk_widget_get_ancestor (widget, GTK_TYPE_BOX)`
|
|
1168
|
+
* gets the first `GtkBox` that’s an ancestor of @widget. No
|
|
1169
|
+
* reference will be added to the returned widget; it should
|
|
1170
|
+
* not be unreferenced.
|
|
1171
|
+
*
|
|
1172
|
+
* Note that unlike [method@Gtk.Widget.is_ancestor], this function
|
|
1173
|
+
* considers `widget` to be an ancestor of itself.
|
|
1174
|
+
* @param widgetType - ancestor type
|
|
1175
|
+
*/
|
|
448
1176
|
getAncestor(widgetType) {
|
|
449
1177
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_ancestor", [
|
|
450
1178
|
{
|
|
@@ -460,6 +1188,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
460
1188
|
return null;
|
|
461
1189
|
return getObject(ptr, Widget);
|
|
462
1190
|
}
|
|
1191
|
+
/**
|
|
1192
|
+
* Returns the baseline that has currently been allocated to the widget.
|
|
1193
|
+
*
|
|
1194
|
+
* This function is intended to be used when implementing handlers
|
|
1195
|
+
* for the `GtkWidgetClass.snapshot()` function, and when allocating
|
|
1196
|
+
* child widgets in `GtkWidgetClass.size_allocate()`.
|
|
1197
|
+
*/
|
|
463
1198
|
getBaseline() {
|
|
464
1199
|
return call("libgtk-4.so.1", "gtk_widget_get_baseline", [
|
|
465
1200
|
{
|
|
@@ -468,6 +1203,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
468
1203
|
},
|
|
469
1204
|
], { type: "int", size: 32, unsigned: false });
|
|
470
1205
|
}
|
|
1206
|
+
/**
|
|
1207
|
+
* Determines whether the input focus can enter the widget or any
|
|
1208
|
+
* of its children.
|
|
1209
|
+
*
|
|
1210
|
+
* See [method@Gtk.Widget.set_can_focus].
|
|
1211
|
+
*/
|
|
471
1212
|
getCanFocus() {
|
|
472
1213
|
return call("libgtk-4.so.1", "gtk_widget_get_can_focus", [
|
|
473
1214
|
{
|
|
@@ -476,6 +1217,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
476
1217
|
},
|
|
477
1218
|
], { type: "boolean" });
|
|
478
1219
|
}
|
|
1220
|
+
/**
|
|
1221
|
+
* Queries whether the widget can be the target of pointer events.
|
|
1222
|
+
*/
|
|
479
1223
|
getCanTarget() {
|
|
480
1224
|
return call("libgtk-4.so.1", "gtk_widget_get_can_target", [
|
|
481
1225
|
{
|
|
@@ -484,6 +1228,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
484
1228
|
},
|
|
485
1229
|
], { type: "boolean" });
|
|
486
1230
|
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Gets the value set with [method@Gtk.Widget.set_child_visible].
|
|
1233
|
+
*
|
|
1234
|
+
* If you feel a need to use this function, your code probably
|
|
1235
|
+
* needs reorganization.
|
|
1236
|
+
*
|
|
1237
|
+
* This function is only useful for widget implementations
|
|
1238
|
+
* and should never be called by an application.
|
|
1239
|
+
*/
|
|
487
1240
|
getChildVisible() {
|
|
488
1241
|
return call("libgtk-4.so.1", "gtk_widget_get_child_visible", [
|
|
489
1242
|
{
|
|
@@ -492,6 +1245,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
492
1245
|
},
|
|
493
1246
|
], { type: "boolean" });
|
|
494
1247
|
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Gets the clipboard object for the widget.
|
|
1250
|
+
*
|
|
1251
|
+
* This is a utility function to get the clipboard object for the
|
|
1252
|
+
* display that `widget` is using.
|
|
1253
|
+
*
|
|
1254
|
+
* Note that this function always works, even when `widget` is not
|
|
1255
|
+
* realized yet.
|
|
1256
|
+
*/
|
|
495
1257
|
getClipboard() {
|
|
496
1258
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_clipboard", [
|
|
497
1259
|
{
|
|
@@ -501,6 +1263,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
501
1263
|
], { type: "gobject", borrowed: true });
|
|
502
1264
|
return getObject(ptr, Gdk.Clipboard);
|
|
503
1265
|
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Gets the current foreground color for the widget’s style.
|
|
1268
|
+
*
|
|
1269
|
+
* This function should only be used in snapshot
|
|
1270
|
+
* implementations that need to do custom drawing
|
|
1271
|
+
* with the foreground color.
|
|
1272
|
+
* @param color - return location for the color
|
|
1273
|
+
*/
|
|
504
1274
|
getColor(color) {
|
|
505
1275
|
call("libgtk-4.so.1", "gtk_widget_get_color", [
|
|
506
1276
|
{
|
|
@@ -520,6 +1290,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
520
1290
|
},
|
|
521
1291
|
], { type: "undefined" });
|
|
522
1292
|
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Returns the list of style classes applied to the widget.
|
|
1295
|
+
*/
|
|
523
1296
|
getCssClasses() {
|
|
524
1297
|
return call("libgtk-4.so.1", "gtk_widget_get_css_classes", [
|
|
525
1298
|
{
|
|
@@ -528,6 +1301,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
528
1301
|
},
|
|
529
1302
|
], { type: "array", itemType: { type: "string" } });
|
|
530
1303
|
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Returns the CSS name of the widget.
|
|
1306
|
+
*/
|
|
531
1307
|
getCssName() {
|
|
532
1308
|
return call("libgtk-4.so.1", "gtk_widget_get_css_name", [
|
|
533
1309
|
{
|
|
@@ -536,6 +1312,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
536
1312
|
},
|
|
537
1313
|
], { type: "string", borrowed: true });
|
|
538
1314
|
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Gets the cursor set on the widget.
|
|
1317
|
+
*
|
|
1318
|
+
* See [method@Gtk.Widget.set_cursor] for details.
|
|
1319
|
+
*/
|
|
539
1320
|
getCursor() {
|
|
540
1321
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_cursor", [
|
|
541
1322
|
{
|
|
@@ -547,6 +1328,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
547
1328
|
return null;
|
|
548
1329
|
return getObject(ptr, Gdk.Cursor);
|
|
549
1330
|
}
|
|
1331
|
+
/**
|
|
1332
|
+
* Gets the reading direction for the widget.
|
|
1333
|
+
*
|
|
1334
|
+
* See [method@Gtk.Widget.set_direction].
|
|
1335
|
+
*/
|
|
550
1336
|
getDirection() {
|
|
551
1337
|
return call("libgtk-4.so.1", "gtk_widget_get_direction", [
|
|
552
1338
|
{
|
|
@@ -555,6 +1341,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
555
1341
|
},
|
|
556
1342
|
], { type: "int", size: 32, unsigned: false });
|
|
557
1343
|
}
|
|
1344
|
+
/**
|
|
1345
|
+
* Get the display for the window that the widget belongs to.
|
|
1346
|
+
*
|
|
1347
|
+
* This function can only be called after the widget has been
|
|
1348
|
+
* added to a widget hierarchy with a `GtkRoot` at the top.
|
|
1349
|
+
*
|
|
1350
|
+
* In general, you should only create display-specific
|
|
1351
|
+
* resources when a widget has been realized, and you should
|
|
1352
|
+
* free those resources when the widget is unrealized.
|
|
1353
|
+
*/
|
|
558
1354
|
getDisplay() {
|
|
559
1355
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_display", [
|
|
560
1356
|
{
|
|
@@ -564,6 +1360,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
564
1360
|
], { type: "gobject", borrowed: true });
|
|
565
1361
|
return getObject(ptr, Gdk.Display);
|
|
566
1362
|
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Returns the widget’s first child.
|
|
1365
|
+
*
|
|
1366
|
+
* This function is primarily meant for widget implementations.
|
|
1367
|
+
*/
|
|
567
1368
|
getFirstChild() {
|
|
568
1369
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_first_child", [
|
|
569
1370
|
{
|
|
@@ -575,6 +1376,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
575
1376
|
return null;
|
|
576
1377
|
return getObject(ptr, Widget);
|
|
577
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Returns the focus child of the widget.
|
|
1381
|
+
*/
|
|
578
1382
|
getFocusChild() {
|
|
579
1383
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_focus_child", [
|
|
580
1384
|
{
|
|
@@ -586,6 +1390,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
586
1390
|
return null;
|
|
587
1391
|
return getObject(ptr, Widget);
|
|
588
1392
|
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Returns whether the widget should grab focus when it is clicked
|
|
1395
|
+
* with the mouse.
|
|
1396
|
+
*
|
|
1397
|
+
* See [method@Gtk.Widget.set_focus_on_click].
|
|
1398
|
+
*/
|
|
589
1399
|
getFocusOnClick() {
|
|
590
1400
|
return call("libgtk-4.so.1", "gtk_widget_get_focus_on_click", [
|
|
591
1401
|
{
|
|
@@ -594,6 +1404,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
594
1404
|
},
|
|
595
1405
|
], { type: "boolean" });
|
|
596
1406
|
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Determines whether the widget can own the input focus.
|
|
1409
|
+
*
|
|
1410
|
+
* See [method@Gtk.Widget.set_focusable].
|
|
1411
|
+
*/
|
|
597
1412
|
getFocusable() {
|
|
598
1413
|
return call("libgtk-4.so.1", "gtk_widget_get_focusable", [
|
|
599
1414
|
{
|
|
@@ -602,6 +1417,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
602
1417
|
},
|
|
603
1418
|
], { type: "boolean" });
|
|
604
1419
|
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Gets the font map of the widget.
|
|
1422
|
+
*
|
|
1423
|
+
* See [method@Gtk.Widget.set_font_map].
|
|
1424
|
+
*/
|
|
605
1425
|
getFontMap() {
|
|
606
1426
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_font_map", [
|
|
607
1427
|
{
|
|
@@ -613,6 +1433,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
613
1433
|
return null;
|
|
614
1434
|
return getObject(ptr, Pango.FontMap);
|
|
615
1435
|
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Returns the `cairo_font_options_t` of the widget.
|
|
1438
|
+
*
|
|
1439
|
+
* Seee [method@Gtk.Widget.set_font_options].
|
|
1440
|
+
*/
|
|
616
1441
|
getFontOptions() {
|
|
617
1442
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_font_options", [
|
|
618
1443
|
{
|
|
@@ -629,6 +1454,30 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
629
1454
|
return null;
|
|
630
1455
|
return getObject(ptr, cairo.FontOptions);
|
|
631
1456
|
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Obtains the frame clock for a widget.
|
|
1459
|
+
*
|
|
1460
|
+
* The frame clock is a global “ticker” that can be used to drive
|
|
1461
|
+
* animations and repaints. The most common reason to get the frame
|
|
1462
|
+
* clock is to call [method@Gdk.FrameClock.get_frame_time], in order
|
|
1463
|
+
* to get a time to use for animating. For example you might record
|
|
1464
|
+
* the start of the animation with an initial value from
|
|
1465
|
+
* [method@Gdk.FrameClock.get_frame_time], and then update the animation
|
|
1466
|
+
* by calling [method@Gdk.FrameClock.get_frame_time] again during each repaint.
|
|
1467
|
+
*
|
|
1468
|
+
* [method@Gdk.FrameClock.request_phase] will result in a new frame on the
|
|
1469
|
+
* clock, but won’t necessarily repaint any widgets. To repaint a widget,
|
|
1470
|
+
* you have to use [method@Gtk.Widget.queue_draw] which invalidates the
|
|
1471
|
+
* widget (thus scheduling it to receive a draw on the next frame).
|
|
1472
|
+
* [method@Gtk.Widget.queue_draw] will also end up requesting a frame
|
|
1473
|
+
* on the appropriate frame clock.
|
|
1474
|
+
*
|
|
1475
|
+
* A widget’s frame clock will not change while the widget is mapped.
|
|
1476
|
+
* Reparenting a widget (which implies a temporary unmap) can change
|
|
1477
|
+
* the widget’s frame clock.
|
|
1478
|
+
*
|
|
1479
|
+
* Unrealized widgets do not have a frame clock.
|
|
1480
|
+
*/
|
|
632
1481
|
getFrameClock() {
|
|
633
1482
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_frame_clock", [
|
|
634
1483
|
{
|
|
@@ -640,6 +1489,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
640
1489
|
return null;
|
|
641
1490
|
return getObject(ptr, Gdk.FrameClock);
|
|
642
1491
|
}
|
|
1492
|
+
/**
|
|
1493
|
+
* Gets the horizontal alignment of the widget.
|
|
1494
|
+
*
|
|
1495
|
+
* For backwards compatibility reasons this method will never return
|
|
1496
|
+
* one of the baseline alignments, but instead it will convert it to
|
|
1497
|
+
* [enum@Gtk.Align.fill] or [enum@Gtk.Align.center].
|
|
1498
|
+
*
|
|
1499
|
+
* Baselines are not supported for horizontal alignment.
|
|
1500
|
+
*/
|
|
643
1501
|
getHalign() {
|
|
644
1502
|
return call("libgtk-4.so.1", "gtk_widget_get_halign", [
|
|
645
1503
|
{
|
|
@@ -648,6 +1506,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
648
1506
|
},
|
|
649
1507
|
], { type: "int", size: 32, unsigned: false });
|
|
650
1508
|
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Returns the current value of the `has-tooltip` property.
|
|
1511
|
+
*/
|
|
651
1512
|
getHasTooltip() {
|
|
652
1513
|
return call("libgtk-4.so.1", "gtk_widget_get_has_tooltip", [
|
|
653
1514
|
{
|
|
@@ -656,6 +1517,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
656
1517
|
},
|
|
657
1518
|
], { type: "boolean" });
|
|
658
1519
|
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Returns the content height of the widget.
|
|
1522
|
+
*
|
|
1523
|
+
* This function returns the height passed to its
|
|
1524
|
+
* size-allocate implementation, which is the height you
|
|
1525
|
+
* should be using in [vfunc@Gtk.Widget.snapshot].
|
|
1526
|
+
*
|
|
1527
|
+
* For pointer events, see [method@Gtk.Widget.contains].
|
|
1528
|
+
*
|
|
1529
|
+
* To learn more about widget sizes, see the coordinate
|
|
1530
|
+
* system overview.
|
|
1531
|
+
*/
|
|
659
1532
|
getHeight() {
|
|
660
1533
|
return call("libgtk-4.so.1", "gtk_widget_get_height", [
|
|
661
1534
|
{
|
|
@@ -664,6 +1537,23 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
664
1537
|
},
|
|
665
1538
|
], { type: "int", size: 32, unsigned: false });
|
|
666
1539
|
}
|
|
1540
|
+
/**
|
|
1541
|
+
* Gets whether the widget would like any available extra horizontal
|
|
1542
|
+
* space.
|
|
1543
|
+
*
|
|
1544
|
+
* When a user resizes a window, widgets with expand set to true generally
|
|
1545
|
+
* receive the extra space. For example, a list or scrollable area
|
|
1546
|
+
* or document in your window would often be set to expand.
|
|
1547
|
+
*
|
|
1548
|
+
* Widgets with children should use [method@Gtk.Widget.compute_expand]
|
|
1549
|
+
* rather than this function, to see whether any of its children,
|
|
1550
|
+
* has the expand flag set. If any child of a widget wants to
|
|
1551
|
+
* expand, the parent may ask to expand also.
|
|
1552
|
+
*
|
|
1553
|
+
* This function only looks at the widget’s own hexpand flag, rather
|
|
1554
|
+
* than computing whether the entire widget tree rooted at this widget
|
|
1555
|
+
* wants to expand.
|
|
1556
|
+
*/
|
|
667
1557
|
getHexpand() {
|
|
668
1558
|
return call("libgtk-4.so.1", "gtk_widget_get_hexpand", [
|
|
669
1559
|
{
|
|
@@ -672,6 +1562,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
672
1562
|
},
|
|
673
1563
|
], { type: "boolean" });
|
|
674
1564
|
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Gets whether the `hexpand` flag has been explicitly set.
|
|
1567
|
+
*
|
|
1568
|
+
* If [property@Gtk.Widget:hexpand] property is set, then it
|
|
1569
|
+
* overrides any computed expand value based on child widgets.
|
|
1570
|
+
* If `hexpand` is not set, then the expand value depends on
|
|
1571
|
+
* whether any children of the widget would like to expand.
|
|
1572
|
+
*
|
|
1573
|
+
* There are few reasons to use this function, but it’s here
|
|
1574
|
+
* for completeness and consistency.
|
|
1575
|
+
*/
|
|
675
1576
|
getHexpandSet() {
|
|
676
1577
|
return call("libgtk-4.so.1", "gtk_widget_get_hexpand_set", [
|
|
677
1578
|
{
|
|
@@ -680,6 +1581,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
680
1581
|
},
|
|
681
1582
|
], { type: "boolean" });
|
|
682
1583
|
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Returns the widget’s last child.
|
|
1586
|
+
*
|
|
1587
|
+
* This function is primarily meant for widget implementations.
|
|
1588
|
+
*/
|
|
683
1589
|
getLastChild() {
|
|
684
1590
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_last_child", [
|
|
685
1591
|
{
|
|
@@ -691,6 +1597,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
691
1597
|
return null;
|
|
692
1598
|
return getObject(ptr, Widget);
|
|
693
1599
|
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Retrieves the layout manager of the widget.
|
|
1602
|
+
*
|
|
1603
|
+
* See [method@Gtk.Widget.set_layout_manager].
|
|
1604
|
+
*/
|
|
694
1605
|
getLayoutManager() {
|
|
695
1606
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_layout_manager", [
|
|
696
1607
|
{
|
|
@@ -702,6 +1613,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
702
1613
|
return null;
|
|
703
1614
|
return getObject(ptr, LayoutManager);
|
|
704
1615
|
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Gets the value of the [property@Gtk.Widget:limit-events] property.
|
|
1618
|
+
*/
|
|
705
1619
|
getLimitEvents() {
|
|
706
1620
|
return call("libgtk-4.so.1", "gtk_widget_get_limit_events", [
|
|
707
1621
|
{
|
|
@@ -710,6 +1624,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
710
1624
|
},
|
|
711
1625
|
], { type: "boolean" });
|
|
712
1626
|
}
|
|
1627
|
+
/**
|
|
1628
|
+
* Returns whether the widget is mapped.
|
|
1629
|
+
*/
|
|
713
1630
|
getMapped() {
|
|
714
1631
|
return call("libgtk-4.so.1", "gtk_widget_get_mapped", [
|
|
715
1632
|
{
|
|
@@ -718,6 +1635,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
718
1635
|
},
|
|
719
1636
|
], { type: "boolean" });
|
|
720
1637
|
}
|
|
1638
|
+
/**
|
|
1639
|
+
* Gets the bottom margin of the widget.
|
|
1640
|
+
*/
|
|
721
1641
|
getMarginBottom() {
|
|
722
1642
|
return call("libgtk-4.so.1", "gtk_widget_get_margin_bottom", [
|
|
723
1643
|
{
|
|
@@ -726,6 +1646,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
726
1646
|
},
|
|
727
1647
|
], { type: "int", size: 32, unsigned: false });
|
|
728
1648
|
}
|
|
1649
|
+
/**
|
|
1650
|
+
* Gets the end margin of the widget.
|
|
1651
|
+
*/
|
|
729
1652
|
getMarginEnd() {
|
|
730
1653
|
return call("libgtk-4.so.1", "gtk_widget_get_margin_end", [
|
|
731
1654
|
{
|
|
@@ -734,6 +1657,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
734
1657
|
},
|
|
735
1658
|
], { type: "int", size: 32, unsigned: false });
|
|
736
1659
|
}
|
|
1660
|
+
/**
|
|
1661
|
+
* Gets the start margin of the widget.
|
|
1662
|
+
*/
|
|
737
1663
|
getMarginStart() {
|
|
738
1664
|
return call("libgtk-4.so.1", "gtk_widget_get_margin_start", [
|
|
739
1665
|
{
|
|
@@ -742,6 +1668,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
742
1668
|
},
|
|
743
1669
|
], { type: "int", size: 32, unsigned: false });
|
|
744
1670
|
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Gets the top margin of the widget.
|
|
1673
|
+
*/
|
|
745
1674
|
getMarginTop() {
|
|
746
1675
|
return call("libgtk-4.so.1", "gtk_widget_get_margin_top", [
|
|
747
1676
|
{
|
|
@@ -750,6 +1679,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
750
1679
|
},
|
|
751
1680
|
], { type: "int", size: 32, unsigned: false });
|
|
752
1681
|
}
|
|
1682
|
+
/**
|
|
1683
|
+
* Retrieves the name of a widget.
|
|
1684
|
+
*
|
|
1685
|
+
* See [method@Gtk.Widget.set_name] for the significance of widget names.
|
|
1686
|
+
*/
|
|
753
1687
|
getName() {
|
|
754
1688
|
return call("libgtk-4.so.1", "gtk_widget_get_name", [
|
|
755
1689
|
{
|
|
@@ -758,6 +1692,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
758
1692
|
},
|
|
759
1693
|
], { type: "string", borrowed: true });
|
|
760
1694
|
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Returns the nearest `GtkNative` ancestor of the widget.
|
|
1697
|
+
*
|
|
1698
|
+
* This function will return `NULL` if the widget is not
|
|
1699
|
+
* contained inside a widget tree with a native ancestor.
|
|
1700
|
+
*
|
|
1701
|
+
* `GtkNative` widgets will return themselves here.
|
|
1702
|
+
*/
|
|
761
1703
|
getNative() {
|
|
762
1704
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_native", [
|
|
763
1705
|
{
|
|
@@ -769,6 +1711,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
769
1711
|
return null;
|
|
770
1712
|
return getObject(ptr, Native);
|
|
771
1713
|
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Returns the widget’s next sibling.
|
|
1716
|
+
*
|
|
1717
|
+
* This function is primarily meant for widget implementations.
|
|
1718
|
+
*/
|
|
772
1719
|
getNextSibling() {
|
|
773
1720
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_next_sibling", [
|
|
774
1721
|
{
|
|
@@ -780,6 +1727,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
780
1727
|
return null;
|
|
781
1728
|
return getObject(ptr, Widget);
|
|
782
1729
|
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Fetches the requested opacity for the widget.
|
|
1732
|
+
*
|
|
1733
|
+
* See [method@Gtk.Widget.set_opacity].
|
|
1734
|
+
*/
|
|
783
1735
|
getOpacity() {
|
|
784
1736
|
return call("libgtk-4.so.1", "gtk_widget_get_opacity", [
|
|
785
1737
|
{
|
|
@@ -788,6 +1740,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
788
1740
|
},
|
|
789
1741
|
], { type: "float", size: 64 });
|
|
790
1742
|
}
|
|
1743
|
+
/**
|
|
1744
|
+
* Returns the widget’s overflow value.
|
|
1745
|
+
*/
|
|
791
1746
|
getOverflow() {
|
|
792
1747
|
return call("libgtk-4.so.1", "gtk_widget_get_overflow", [
|
|
793
1748
|
{
|
|
@@ -796,6 +1751,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
796
1751
|
},
|
|
797
1752
|
], { type: "int", size: 32, unsigned: false });
|
|
798
1753
|
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Gets a `PangoContext` that is configured for the widget.
|
|
1756
|
+
*
|
|
1757
|
+
* The `PangoContext` will have the appropriate font map, font description,
|
|
1758
|
+
* and base direction set.
|
|
1759
|
+
*
|
|
1760
|
+
* Unlike the context returned by [method@Gtk.Widget.create_pango_context],
|
|
1761
|
+
* this context is owned by the widget (it can be used until the screen
|
|
1762
|
+
* for the widget changes or the widget is removed from its toplevel),
|
|
1763
|
+
* and will be updated to match any changes to the widget’s attributes.
|
|
1764
|
+
* This can be tracked by listening to changes of the
|
|
1765
|
+
* [property@Gtk.Widget:root] property on the widget.
|
|
1766
|
+
*/
|
|
799
1767
|
getPangoContext() {
|
|
800
1768
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_pango_context", [
|
|
801
1769
|
{
|
|
@@ -805,6 +1773,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
805
1773
|
], { type: "gobject", borrowed: true });
|
|
806
1774
|
return getObject(ptr, Pango.Context);
|
|
807
1775
|
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Returns the parent widget of the widget.
|
|
1778
|
+
*/
|
|
808
1779
|
getParent() {
|
|
809
1780
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_parent", [
|
|
810
1781
|
{
|
|
@@ -816,6 +1787,24 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
816
1787
|
return null;
|
|
817
1788
|
return getObject(ptr, Widget);
|
|
818
1789
|
}
|
|
1790
|
+
/**
|
|
1791
|
+
* Retrieves the minimum and natural size of a widget, taking
|
|
1792
|
+
* into account the widget’s preference for height-for-width management.
|
|
1793
|
+
*
|
|
1794
|
+
* This is used to retrieve a suitable size by container widgets which do
|
|
1795
|
+
* not impose any restrictions on the child placement. It can be used
|
|
1796
|
+
* to deduce toplevel window and menu sizes as well as child widgets in
|
|
1797
|
+
* free-form containers such as `GtkFixed`.
|
|
1798
|
+
*
|
|
1799
|
+
* Handle with care. Note that the natural height of a height-for-width
|
|
1800
|
+
* widget will generally be a smaller size than the minimum height, since
|
|
1801
|
+
* the required height for the natural width is generally smaller than the
|
|
1802
|
+
* required height for the minimum width.
|
|
1803
|
+
*
|
|
1804
|
+
* Use [method@Gtk.Widget.measure] if you want to support baseline alignment.
|
|
1805
|
+
* @param minimumSize - location for storing the minimum size
|
|
1806
|
+
* @param naturalSize - location for storing the natural size
|
|
1807
|
+
*/
|
|
819
1808
|
getPreferredSize(minimumSize, naturalSize) {
|
|
820
1809
|
call("libgtk-4.so.1", "gtk_widget_get_preferred_size", [
|
|
821
1810
|
{
|
|
@@ -848,6 +1837,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
848
1837
|
},
|
|
849
1838
|
], { type: "undefined" });
|
|
850
1839
|
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Returns the widget’s previous sibling.
|
|
1842
|
+
*
|
|
1843
|
+
* This function is primarily meant for widget implementations.
|
|
1844
|
+
*/
|
|
851
1845
|
getPrevSibling() {
|
|
852
1846
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_prev_sibling", [
|
|
853
1847
|
{
|
|
@@ -859,6 +1853,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
859
1853
|
return null;
|
|
860
1854
|
return getObject(ptr, Widget);
|
|
861
1855
|
}
|
|
1856
|
+
/**
|
|
1857
|
+
* Gets the primary clipboard of the widget.
|
|
1858
|
+
*
|
|
1859
|
+
* This is a utility function to get the primary clipboard object
|
|
1860
|
+
* for the display that `widget` is using.
|
|
1861
|
+
*
|
|
1862
|
+
* Note that this function always works, even when `widget` is not
|
|
1863
|
+
* realized yet.
|
|
1864
|
+
*/
|
|
862
1865
|
getPrimaryClipboard() {
|
|
863
1866
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_primary_clipboard", [
|
|
864
1867
|
{
|
|
@@ -868,6 +1871,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
868
1871
|
], { type: "gobject", borrowed: true });
|
|
869
1872
|
return getObject(ptr, Gdk.Clipboard);
|
|
870
1873
|
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Determines whether the widget is realized.
|
|
1876
|
+
*/
|
|
871
1877
|
getRealized() {
|
|
872
1878
|
return call("libgtk-4.so.1", "gtk_widget_get_realized", [
|
|
873
1879
|
{
|
|
@@ -876,6 +1882,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
876
1882
|
},
|
|
877
1883
|
], { type: "boolean" });
|
|
878
1884
|
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Determines whether the widget is always treated as the default widget
|
|
1887
|
+
* within its toplevel when it has the focus, even if another widget
|
|
1888
|
+
* is the default.
|
|
1889
|
+
*
|
|
1890
|
+
* See [method@Gtk.Widget.set_receives_default].
|
|
1891
|
+
*/
|
|
879
1892
|
getReceivesDefault() {
|
|
880
1893
|
return call("libgtk-4.so.1", "gtk_widget_get_receives_default", [
|
|
881
1894
|
{
|
|
@@ -884,6 +1897,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
884
1897
|
},
|
|
885
1898
|
], { type: "boolean" });
|
|
886
1899
|
}
|
|
1900
|
+
/**
|
|
1901
|
+
* Gets whether the widget prefers a height-for-width layout
|
|
1902
|
+
* or a width-for-height layout.
|
|
1903
|
+
*
|
|
1904
|
+
* Single-child widgets generally propagate the preference of
|
|
1905
|
+
* their child, more complex widgets need to request something
|
|
1906
|
+
* either in context of their children or in context of their
|
|
1907
|
+
* allocation capabilities.
|
|
1908
|
+
*/
|
|
887
1909
|
getRequestMode() {
|
|
888
1910
|
return call("libgtk-4.so.1", "gtk_widget_get_request_mode", [
|
|
889
1911
|
{
|
|
@@ -892,6 +1914,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
892
1914
|
},
|
|
893
1915
|
], { type: "int", size: 32, unsigned: false });
|
|
894
1916
|
}
|
|
1917
|
+
/**
|
|
1918
|
+
* Returns the `GtkRoot` widget of the widget.
|
|
1919
|
+
*
|
|
1920
|
+
* This function will return `NULL` if the widget is not contained
|
|
1921
|
+
* inside a widget tree with a root widget.
|
|
1922
|
+
*
|
|
1923
|
+
* `GtkRoot` widgets will return themselves here.
|
|
1924
|
+
*/
|
|
895
1925
|
getRoot() {
|
|
896
1926
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_root", [
|
|
897
1927
|
{
|
|
@@ -903,6 +1933,21 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
903
1933
|
return null;
|
|
904
1934
|
return getObject(ptr, Root);
|
|
905
1935
|
}
|
|
1936
|
+
/**
|
|
1937
|
+
* Retrieves the internal scale factor that maps from window
|
|
1938
|
+
* coordinates to the actual device pixels.
|
|
1939
|
+
*
|
|
1940
|
+
* On traditional systems this is 1, on high density outputs,
|
|
1941
|
+
* it can be a higher value (typically 2).
|
|
1942
|
+
*
|
|
1943
|
+
* See [method@Gdk.Surface.get_scale_factor].
|
|
1944
|
+
*
|
|
1945
|
+
* Note that modern systems may support *fractional* scaling,
|
|
1946
|
+
* where the scale factor is not an integer. On such systems,
|
|
1947
|
+
* this function will return the next higher integer value,
|
|
1948
|
+
* but you probably want to use [method@Gdk.Surface.get_scale]
|
|
1949
|
+
* to get the fractional scale value.
|
|
1950
|
+
*/
|
|
906
1951
|
getScaleFactor() {
|
|
907
1952
|
return call("libgtk-4.so.1", "gtk_widget_get_scale_factor", [
|
|
908
1953
|
{
|
|
@@ -911,6 +1956,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
911
1956
|
},
|
|
912
1957
|
], { type: "int", size: 32, unsigned: false });
|
|
913
1958
|
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Returns the widget’s sensitivity.
|
|
1961
|
+
*
|
|
1962
|
+
* This function returns the value that has been set using
|
|
1963
|
+
* [method@Gtk.Widget.set_sensitive]).
|
|
1964
|
+
*
|
|
1965
|
+
* The effective sensitivity of a widget is however determined
|
|
1966
|
+
* by both its own and its parent widget’s sensitivity.
|
|
1967
|
+
* See [method@Gtk.Widget.is_sensitive].
|
|
1968
|
+
*/
|
|
914
1969
|
getSensitive() {
|
|
915
1970
|
return call("libgtk-4.so.1", "gtk_widget_get_sensitive", [
|
|
916
1971
|
{
|
|
@@ -919,6 +1974,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
919
1974
|
},
|
|
920
1975
|
], { type: "boolean" });
|
|
921
1976
|
}
|
|
1977
|
+
/**
|
|
1978
|
+
* Gets the settings object holding the settings used for the widget.
|
|
1979
|
+
*
|
|
1980
|
+
* Note that this function can only be called when the `GtkWidget`
|
|
1981
|
+
* is attached to a toplevel, since the settings object is specific
|
|
1982
|
+
* to a particular display. If you want to monitor the widget for
|
|
1983
|
+
* changes in its settings, connect to the `notify::display` signal.
|
|
1984
|
+
*/
|
|
922
1985
|
getSettings() {
|
|
923
1986
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_settings", [
|
|
924
1987
|
{
|
|
@@ -928,6 +1991,21 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
928
1991
|
], { type: "gobject", borrowed: true });
|
|
929
1992
|
return getObject(ptr, Settings);
|
|
930
1993
|
}
|
|
1994
|
+
/**
|
|
1995
|
+
* Returns the content width or height of the widget.
|
|
1996
|
+
*
|
|
1997
|
+
* Which dimension is returned depends on @orientation.
|
|
1998
|
+
*
|
|
1999
|
+
* This is equivalent to calling [method@Gtk.Widget.get_width]
|
|
2000
|
+
* for [enum@Gtk.Orientation.horizontal] or [method@Gtk.Widget.get_height]
|
|
2001
|
+
* for [enum@Gtk.Orientation.vertical], but can be used when
|
|
2002
|
+
* writing orientation-independent code, such as when
|
|
2003
|
+
* implementing [iface@Gtk.Orientable] widgets.
|
|
2004
|
+
*
|
|
2005
|
+
* To learn more about widget sizes, see the coordinate
|
|
2006
|
+
* system overview.
|
|
2007
|
+
* @param orientation - the orientation to query
|
|
2008
|
+
*/
|
|
931
2009
|
getSize(orientation) {
|
|
932
2010
|
return call("libgtk-4.so.1", "gtk_widget_get_size", [
|
|
933
2011
|
{
|
|
@@ -940,6 +2018,20 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
940
2018
|
},
|
|
941
2019
|
], { type: "int", size: 32, unsigned: false });
|
|
942
2020
|
}
|
|
2021
|
+
/**
|
|
2022
|
+
* Gets the size request that was explicitly set for the widget.
|
|
2023
|
+
*
|
|
2024
|
+
* A value of -1 stored in `width` or `height` indicates that that
|
|
2025
|
+
* dimension has not been set explicitly and the natural requisition
|
|
2026
|
+
* of the widget will be used instead.
|
|
2027
|
+
*
|
|
2028
|
+
* See [method@Gtk.Widget.set_size_request].
|
|
2029
|
+
*
|
|
2030
|
+
* To get the size a widget will actually request, call
|
|
2031
|
+
* [method@Gtk.Widget.measure] instead of this function.
|
|
2032
|
+
* @param width - return location for width
|
|
2033
|
+
* @param height - return location for height
|
|
2034
|
+
*/
|
|
943
2035
|
getSizeRequest(width, height) {
|
|
944
2036
|
call("libgtk-4.so.1", "gtk_widget_get_size_request", [
|
|
945
2037
|
{
|
|
@@ -964,6 +2056,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
964
2056
|
},
|
|
965
2057
|
], { type: "undefined" });
|
|
966
2058
|
}
|
|
2059
|
+
/**
|
|
2060
|
+
* Returns the widget state as a flag set.
|
|
2061
|
+
*
|
|
2062
|
+
* It is worth mentioning that the effective [flags@Gtk.StateFlags.insensitive]
|
|
2063
|
+
* state will be returned, that is, also based on parent insensitivity,
|
|
2064
|
+
* even if `widget` itself is sensitive.
|
|
2065
|
+
*
|
|
2066
|
+
* Also note that if you are looking for a way to obtain the
|
|
2067
|
+
* [flags@Gtk.StateFlags] to pass to a [class@Gtk.StyleContext]
|
|
2068
|
+
* method, you should look at [method@Gtk.StyleContext.get_state].
|
|
2069
|
+
*/
|
|
967
2070
|
getStateFlags() {
|
|
968
2071
|
return call("libgtk-4.so.1", "gtk_widget_get_state_flags", [
|
|
969
2072
|
{
|
|
@@ -972,6 +2075,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
972
2075
|
},
|
|
973
2076
|
], { type: "int", size: 32, unsigned: false });
|
|
974
2077
|
}
|
|
2078
|
+
/**
|
|
2079
|
+
* Returns the style context associated to the widget.
|
|
2080
|
+
*
|
|
2081
|
+
* The returned object is guaranteed to be the same
|
|
2082
|
+
* for the lifetime of @widget.
|
|
2083
|
+
*/
|
|
975
2084
|
getStyleContext() {
|
|
976
2085
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_style_context", [
|
|
977
2086
|
{
|
|
@@ -981,6 +2090,20 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
981
2090
|
], { type: "gobject", borrowed: true });
|
|
982
2091
|
return getObject(ptr, StyleContext);
|
|
983
2092
|
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Fetches an object build from the template XML for `widget_type` in
|
|
2095
|
+
* the widget.
|
|
2096
|
+
*
|
|
2097
|
+
* This will only report children which were previously declared
|
|
2098
|
+
* with [method@Gtk.WidgetClass.bind_template_child_full] or one of its
|
|
2099
|
+
* variants.
|
|
2100
|
+
*
|
|
2101
|
+
* This function is only meant to be called for code which is private
|
|
2102
|
+
* to the `widget_type` which declared the child and is meant for language
|
|
2103
|
+
* bindings which cannot easily make use of the GObject structure offsets.
|
|
2104
|
+
* @param widgetType - The `GType` to get a template child for
|
|
2105
|
+
* @param name - ID of the child defined in the template XML
|
|
2106
|
+
*/
|
|
984
2107
|
getTemplateChild(widgetType, name) {
|
|
985
2108
|
const ptr = call("libgtk-4.so.1", "gtk_widget_get_template_child", [
|
|
986
2109
|
{
|
|
@@ -998,6 +2121,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
998
2121
|
], { type: "gobject", borrowed: true });
|
|
999
2122
|
return getObject(ptr, GObject.GObject);
|
|
1000
2123
|
}
|
|
2124
|
+
/**
|
|
2125
|
+
* Gets the contents of the tooltip for the widget.
|
|
2126
|
+
*
|
|
2127
|
+
* If the tooltip has not been set using
|
|
2128
|
+
* [method@Gtk.Widget.set_tooltip_markup], this
|
|
2129
|
+
* function returns `NULL`.
|
|
2130
|
+
*/
|
|
1001
2131
|
getTooltipMarkup() {
|
|
1002
2132
|
return call("libgtk-4.so.1", "gtk_widget_get_tooltip_markup", [
|
|
1003
2133
|
{
|
|
@@ -1006,6 +2136,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1006
2136
|
},
|
|
1007
2137
|
], { type: "string", borrowed: true });
|
|
1008
2138
|
}
|
|
2139
|
+
/**
|
|
2140
|
+
* Gets the contents of the tooltip for the widget.
|
|
2141
|
+
*
|
|
2142
|
+
* If the @widget's tooltip was set using
|
|
2143
|
+
* [method@Gtk.Widget.set_tooltip_markup],
|
|
2144
|
+
* this function will return the escaped text.
|
|
2145
|
+
*/
|
|
1009
2146
|
getTooltipText() {
|
|
1010
2147
|
return call("libgtk-4.so.1", "gtk_widget_get_tooltip_text", [
|
|
1011
2148
|
{
|
|
@@ -1014,6 +2151,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1014
2151
|
},
|
|
1015
2152
|
], { type: "string", borrowed: true });
|
|
1016
2153
|
}
|
|
2154
|
+
/**
|
|
2155
|
+
* Gets the vertical alignment of the widget.
|
|
2156
|
+
*/
|
|
1017
2157
|
getValign() {
|
|
1018
2158
|
return call("libgtk-4.so.1", "gtk_widget_get_valign", [
|
|
1019
2159
|
{
|
|
@@ -1022,6 +2162,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1022
2162
|
},
|
|
1023
2163
|
], { type: "int", size: 32, unsigned: false });
|
|
1024
2164
|
}
|
|
2165
|
+
/**
|
|
2166
|
+
* Gets whether the widget would like any available extra vertical
|
|
2167
|
+
* space.
|
|
2168
|
+
*
|
|
2169
|
+
* See [method@Gtk.Widget.get_hexpand] for more detail.
|
|
2170
|
+
*/
|
|
1025
2171
|
getVexpand() {
|
|
1026
2172
|
return call("libgtk-4.so.1", "gtk_widget_get_vexpand", [
|
|
1027
2173
|
{
|
|
@@ -1030,6 +2176,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1030
2176
|
},
|
|
1031
2177
|
], { type: "boolean" });
|
|
1032
2178
|
}
|
|
2179
|
+
/**
|
|
2180
|
+
* Gets whether the `vexpand` flag has been explicitly set.
|
|
2181
|
+
*
|
|
2182
|
+
* See [method@Gtk.Widget.get_hexpand_set] for more detail.
|
|
2183
|
+
*/
|
|
1033
2184
|
getVexpandSet() {
|
|
1034
2185
|
return call("libgtk-4.so.1", "gtk_widget_get_vexpand_set", [
|
|
1035
2186
|
{
|
|
@@ -1038,6 +2189,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1038
2189
|
},
|
|
1039
2190
|
], { type: "boolean" });
|
|
1040
2191
|
}
|
|
2192
|
+
/**
|
|
2193
|
+
* Determines whether the widget is visible.
|
|
2194
|
+
*
|
|
2195
|
+
* If you want to take into account whether the widget’s
|
|
2196
|
+
* parent is also marked as visible, use
|
|
2197
|
+
* [method@Gtk.Widget.is_visible] instead.
|
|
2198
|
+
*
|
|
2199
|
+
* This function does not check if the widget is
|
|
2200
|
+
* obscured in any way.
|
|
2201
|
+
*
|
|
2202
|
+
* See [method@Gtk.Widget.set_visible].
|
|
2203
|
+
*/
|
|
1041
2204
|
getVisible() {
|
|
1042
2205
|
return call("libgtk-4.so.1", "gtk_widget_get_visible", [
|
|
1043
2206
|
{
|
|
@@ -1046,6 +2209,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1046
2209
|
},
|
|
1047
2210
|
], { type: "boolean" });
|
|
1048
2211
|
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Returns the content width of the widget.
|
|
2214
|
+
*
|
|
2215
|
+
* This function returns the width passed to its
|
|
2216
|
+
* size-allocate implementation, which is the width you
|
|
2217
|
+
* should be using in [vfunc@Gtk.Widget.snapshot].
|
|
2218
|
+
*
|
|
2219
|
+
* For pointer events, see [method@Gtk.Widget.contains].
|
|
2220
|
+
*
|
|
2221
|
+
* To learn more about widget sizes, see the coordinate
|
|
2222
|
+
* system overview.
|
|
2223
|
+
*/
|
|
1049
2224
|
getWidth() {
|
|
1050
2225
|
return call("libgtk-4.so.1", "gtk_widget_get_width", [
|
|
1051
2226
|
{
|
|
@@ -1054,6 +2229,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1054
2229
|
},
|
|
1055
2230
|
], { type: "int", size: 32, unsigned: false });
|
|
1056
2231
|
}
|
|
2232
|
+
/**
|
|
2233
|
+
* Causes `widget` to have the keyboard focus for the window
|
|
2234
|
+
* that it belongs to.
|
|
2235
|
+
*
|
|
2236
|
+
* If `widget` is not focusable, or its [vfunc@Gtk.Widget.grab_focus]
|
|
2237
|
+
* implementation cannot transfer the focus to a descendant of `widget` that is focusable, it will not take focus and false will be returned.
|
|
2238
|
+
*
|
|
2239
|
+
* Calling [method@Gtk.Widget.grab_focus] on an already focused widget
|
|
2240
|
+
* is allowed, should not have an effect, and return true.
|
|
2241
|
+
*/
|
|
1057
2242
|
grabFocus() {
|
|
1058
2243
|
return call("libgtk-4.so.1", "gtk_widget_grab_focus", [
|
|
1059
2244
|
{
|
|
@@ -1062,6 +2247,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1062
2247
|
},
|
|
1063
2248
|
], { type: "boolean" });
|
|
1064
2249
|
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Returns whether a style class is currently applied to the widget.
|
|
2252
|
+
* @param cssClass - style class, without the leading period
|
|
2253
|
+
*/
|
|
1065
2254
|
hasCssClass(cssClass) {
|
|
1066
2255
|
return call("libgtk-4.so.1", "gtk_widget_has_css_class", [
|
|
1067
2256
|
{
|
|
@@ -1074,6 +2263,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1074
2263
|
},
|
|
1075
2264
|
], { type: "boolean" });
|
|
1076
2265
|
}
|
|
2266
|
+
/**
|
|
2267
|
+
* Determines whether the widget is the current default widget
|
|
2268
|
+
* within its toplevel.
|
|
2269
|
+
*/
|
|
1077
2270
|
hasDefault() {
|
|
1078
2271
|
return call("libgtk-4.so.1", "gtk_widget_has_default", [
|
|
1079
2272
|
{
|
|
@@ -1082,6 +2275,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1082
2275
|
},
|
|
1083
2276
|
], { type: "boolean" });
|
|
1084
2277
|
}
|
|
2278
|
+
/**
|
|
2279
|
+
* Determines if the widget has the global input focus.
|
|
2280
|
+
*
|
|
2281
|
+
* See [method@Gtk.Widget.is_focus] for the difference between
|
|
2282
|
+
* having the global input focus, and only having the focus
|
|
2283
|
+
* within a toplevel.
|
|
2284
|
+
*/
|
|
1085
2285
|
hasFocus() {
|
|
1086
2286
|
return call("libgtk-4.so.1", "gtk_widget_has_focus", [
|
|
1087
2287
|
{
|
|
@@ -1090,6 +2290,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1090
2290
|
},
|
|
1091
2291
|
], { type: "boolean" });
|
|
1092
2292
|
}
|
|
2293
|
+
/**
|
|
2294
|
+
* Determines if the widget should show a visible indication that
|
|
2295
|
+
* it has the global input focus.
|
|
2296
|
+
*
|
|
2297
|
+
* This is a convenience function that takes into account whether
|
|
2298
|
+
* focus indication should currently be shown in the toplevel window
|
|
2299
|
+
* of @widget. See [method@Gtk.Window.get_focus_visible] for more
|
|
2300
|
+
* information about focus indication.
|
|
2301
|
+
*
|
|
2302
|
+
* To find out if the widget has the global input focus, use
|
|
2303
|
+
* [method@Gtk.Widget.has_focus].
|
|
2304
|
+
*/
|
|
1093
2305
|
hasVisibleFocus() {
|
|
1094
2306
|
return call("libgtk-4.so.1", "gtk_widget_has_visible_focus", [
|
|
1095
2307
|
{
|
|
@@ -1098,6 +2310,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1098
2310
|
},
|
|
1099
2311
|
], { type: "boolean" });
|
|
1100
2312
|
}
|
|
2313
|
+
/**
|
|
2314
|
+
* Reverses the effects of [method.Gtk.Widget.show].
|
|
2315
|
+
*
|
|
2316
|
+
* This is causing the widget to be hidden (invisible to the user).
|
|
2317
|
+
*/
|
|
1101
2318
|
hide() {
|
|
1102
2319
|
call("libgtk-4.so.1", "gtk_widget_hide", [
|
|
1103
2320
|
{
|
|
@@ -1106,6 +2323,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1106
2323
|
},
|
|
1107
2324
|
], { type: "undefined" });
|
|
1108
2325
|
}
|
|
2326
|
+
/**
|
|
2327
|
+
* Returns whether the widget is currently being destroyed.
|
|
2328
|
+
*
|
|
2329
|
+
* This information can sometimes be used to avoid doing
|
|
2330
|
+
* unnecessary work.
|
|
2331
|
+
*/
|
|
1109
2332
|
inDestruction() {
|
|
1110
2333
|
return call("libgtk-4.so.1", "gtk_widget_in_destruction", [
|
|
1111
2334
|
{
|
|
@@ -1114,6 +2337,28 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1114
2337
|
},
|
|
1115
2338
|
], { type: "boolean" });
|
|
1116
2339
|
}
|
|
2340
|
+
/**
|
|
2341
|
+
* Creates and initializes child widgets defined in templates.
|
|
2342
|
+
*
|
|
2343
|
+
* This function must be called in the instance initializer
|
|
2344
|
+
* for any class which assigned itself a template using
|
|
2345
|
+
* [method@Gtk.WidgetClass.set_template].
|
|
2346
|
+
*
|
|
2347
|
+
* It is important to call this function in the instance initializer
|
|
2348
|
+
* of a widget subclass and not in `GObject.constructed()` or
|
|
2349
|
+
* `GObject.constructor()` for two reasons:
|
|
2350
|
+
*
|
|
2351
|
+
* - derived widgets will assume that the composite widgets
|
|
2352
|
+
* defined by its parent classes have been created in their
|
|
2353
|
+
* relative instance initializers
|
|
2354
|
+
* - when calling `g_object_new()` on a widget with composite templates,
|
|
2355
|
+
* it’s important to build the composite widgets before the construct
|
|
2356
|
+
* properties are set. Properties passed to `g_object_new()` should
|
|
2357
|
+
* take precedence over properties set in the private template XML
|
|
2358
|
+
*
|
|
2359
|
+
* A good rule of thumb is to call this function as the first thing in
|
|
2360
|
+
* an instance initialization function.
|
|
2361
|
+
*/
|
|
1117
2362
|
initTemplate() {
|
|
1118
2363
|
call("libgtk-4.so.1", "gtk_widget_init_template", [
|
|
1119
2364
|
{
|
|
@@ -1122,6 +2367,23 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1122
2367
|
},
|
|
1123
2368
|
], { type: "undefined" });
|
|
1124
2369
|
}
|
|
2370
|
+
/**
|
|
2371
|
+
* Inserts an action group into the widget's actions.
|
|
2372
|
+
*
|
|
2373
|
+
* Children of `widget` that implement [iface@Gtk.Actionable] can
|
|
2374
|
+
* then be associated with actions in `group` by setting their
|
|
2375
|
+
* “action-name” to @prefix.`action-name`.
|
|
2376
|
+
*
|
|
2377
|
+
* Note that inheritance is defined for individual actions. I.e.
|
|
2378
|
+
* even if you insert a group with prefix @prefix, actions with
|
|
2379
|
+
* the same prefix will still be inherited from the parent, unless
|
|
2380
|
+
* the group contains an action with the same name.
|
|
2381
|
+
*
|
|
2382
|
+
* If `group` is `NULL`, a previously inserted group for `name` is
|
|
2383
|
+
* removed from @widget.
|
|
2384
|
+
* @param name - the prefix for actions in @group
|
|
2385
|
+
* @param group - an action group
|
|
2386
|
+
*/
|
|
1125
2387
|
insertActionGroup(name, group) {
|
|
1126
2388
|
call("libgtk-4.so.1", "gtk_widget_insert_action_group", [
|
|
1127
2389
|
{
|
|
@@ -1139,6 +2401,28 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1139
2401
|
},
|
|
1140
2402
|
], { type: "undefined" });
|
|
1141
2403
|
}
|
|
2404
|
+
/**
|
|
2405
|
+
* Sets the parent widget of the widget.
|
|
2406
|
+
*
|
|
2407
|
+
* In contrast to [method@Gtk.Widget.set_parent], this function
|
|
2408
|
+
* inserts `widget` at a specific position into the list of children
|
|
2409
|
+
* of the `parent` widget.
|
|
2410
|
+
*
|
|
2411
|
+
* It will be placed after @previous_sibling, or at the beginning if
|
|
2412
|
+
* `previous_sibling` is `NULL`.
|
|
2413
|
+
*
|
|
2414
|
+
* After calling this function, `gtk_widget_get_prev_sibling (widget)`
|
|
2415
|
+
* will return @previous_sibling.
|
|
2416
|
+
*
|
|
2417
|
+
* If `parent` is already set as the parent widget of @widget, this
|
|
2418
|
+
* function can also be used to reorder `widget` in the child widget
|
|
2419
|
+
* list of @parent.
|
|
2420
|
+
*
|
|
2421
|
+
* This function is primarily meant for widget implementations; if you are
|
|
2422
|
+
* just using a widget, you *must* use its own API for adding children.
|
|
2423
|
+
* @param parent - the parent widget to insert `widget` into
|
|
2424
|
+
* @param previousSibling - the new previous sibling of @widget
|
|
2425
|
+
*/
|
|
1142
2426
|
insertAfter(parent, previousSibling) {
|
|
1143
2427
|
call("libgtk-4.so.1", "gtk_widget_insert_after", [
|
|
1144
2428
|
{
|
|
@@ -1156,6 +2440,27 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1156
2440
|
},
|
|
1157
2441
|
], { type: "undefined" });
|
|
1158
2442
|
}
|
|
2443
|
+
/**
|
|
2444
|
+
* Sets the parent widget of the widget.
|
|
2445
|
+
*
|
|
2446
|
+
* In contrast to [method@Gtk.Widget.set_parent], this function
|
|
2447
|
+
* inserts `widget` at a specific position into the list of children
|
|
2448
|
+
* of the `parent` widget.
|
|
2449
|
+
*
|
|
2450
|
+
* It will be placed before @next_sibling, or at the end if
|
|
2451
|
+
* `next_sibling` is `NULL`.
|
|
2452
|
+
*
|
|
2453
|
+
* After calling this function, `gtk_widget_get_next_sibling (widget)`
|
|
2454
|
+
* will return @next_sibling.
|
|
2455
|
+
*
|
|
2456
|
+
* If `parent` is already set as the parent widget of @widget, this function
|
|
2457
|
+
* can also be used to reorder `widget` in the child widget list of @parent.
|
|
2458
|
+
*
|
|
2459
|
+
* This function is primarily meant for widget implementations; if you are
|
|
2460
|
+
* just using a widget, you *must* use its own API for adding children.
|
|
2461
|
+
* @param parent - the parent widget to insert `widget` into
|
|
2462
|
+
* @param nextSibling - the new next sibling of @widget
|
|
2463
|
+
*/
|
|
1159
2464
|
insertBefore(parent, nextSibling) {
|
|
1160
2465
|
call("libgtk-4.so.1", "gtk_widget_insert_before", [
|
|
1161
2466
|
{
|
|
@@ -1173,6 +2478,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1173
2478
|
},
|
|
1174
2479
|
], { type: "undefined" });
|
|
1175
2480
|
}
|
|
2481
|
+
/**
|
|
2482
|
+
* Determines whether the widget is a descendent of @ancestor.
|
|
2483
|
+
* @param ancestor - another `GtkWidget`
|
|
2484
|
+
*/
|
|
1176
2485
|
isAncestor(ancestor) {
|
|
1177
2486
|
return call("libgtk-4.so.1", "gtk_widget_is_ancestor", [
|
|
1178
2487
|
{
|
|
@@ -1185,6 +2494,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1185
2494
|
},
|
|
1186
2495
|
], { type: "boolean" });
|
|
1187
2496
|
}
|
|
2497
|
+
/**
|
|
2498
|
+
* Determines whether the widget can be drawn to.
|
|
2499
|
+
*
|
|
2500
|
+
* A widget can be drawn if it is mapped and visible.
|
|
2501
|
+
*/
|
|
1188
2502
|
isDrawable() {
|
|
1189
2503
|
return call("libgtk-4.so.1", "gtk_widget_is_drawable", [
|
|
1190
2504
|
{
|
|
@@ -1193,6 +2507,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1193
2507
|
},
|
|
1194
2508
|
], { type: "boolean" });
|
|
1195
2509
|
}
|
|
2510
|
+
/**
|
|
2511
|
+
* Determines if the widget is the focus widget within its
|
|
2512
|
+
* toplevel.
|
|
2513
|
+
*
|
|
2514
|
+
* This does not mean that the [property@Gtk.Widget:has-focus]
|
|
2515
|
+
* property is necessarily set; [property@Gtk.Widget:has-focus]
|
|
2516
|
+
* will only be set if the toplevel widget additionally has the
|
|
2517
|
+
* global input focus.
|
|
2518
|
+
*/
|
|
1196
2519
|
isFocus() {
|
|
1197
2520
|
return call("libgtk-4.so.1", "gtk_widget_is_focus", [
|
|
1198
2521
|
{
|
|
@@ -1201,6 +2524,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1201
2524
|
},
|
|
1202
2525
|
], { type: "boolean" });
|
|
1203
2526
|
}
|
|
2527
|
+
/**
|
|
2528
|
+
* Returns the widget’s effective sensitivity.
|
|
2529
|
+
*
|
|
2530
|
+
* This means it is sensitive itself and also its
|
|
2531
|
+
* parent widget is sensitive.
|
|
2532
|
+
*/
|
|
1204
2533
|
isSensitive() {
|
|
1205
2534
|
return call("libgtk-4.so.1", "gtk_widget_is_sensitive", [
|
|
1206
2535
|
{
|
|
@@ -1209,6 +2538,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1209
2538
|
},
|
|
1210
2539
|
], { type: "boolean" });
|
|
1211
2540
|
}
|
|
2541
|
+
/**
|
|
2542
|
+
* Determines whether the widget and all its parents are marked as
|
|
2543
|
+
* visible.
|
|
2544
|
+
*
|
|
2545
|
+
* This function does not check if the widget is obscured in any way.
|
|
2546
|
+
*
|
|
2547
|
+
* See also [method@Gtk.Widget.get_visible] and
|
|
2548
|
+
* [method@Gtk.Widget.set_visible].
|
|
2549
|
+
*/
|
|
1212
2550
|
isVisible() {
|
|
1213
2551
|
return call("libgtk-4.so.1", "gtk_widget_is_visible", [
|
|
1214
2552
|
{
|
|
@@ -1217,6 +2555,37 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1217
2555
|
},
|
|
1218
2556
|
], { type: "boolean" });
|
|
1219
2557
|
}
|
|
2558
|
+
/**
|
|
2559
|
+
* Emits the [signal@Gtk.Widget::keynav-failed] signal on the widget.
|
|
2560
|
+
*
|
|
2561
|
+
* This function should be called whenever keyboard navigation
|
|
2562
|
+
* within a single widget hits a boundary.
|
|
2563
|
+
*
|
|
2564
|
+
* The return value of this function should be interpreted
|
|
2565
|
+
* in a way similar to the return value of
|
|
2566
|
+
* [method@Gtk.Widget.child_focus]. When true is returned,
|
|
2567
|
+
* stay in the widget, the failed keyboard navigation is ok
|
|
2568
|
+
* and/or there is nowhere we can/should move the focus to.
|
|
2569
|
+
* When false is returned, the caller should continue with
|
|
2570
|
+
* keyboard navigation outside the widget, e.g. by calling
|
|
2571
|
+
* [method@Gtk.Widget.child_focus] on the widget’s toplevel.
|
|
2572
|
+
*
|
|
2573
|
+
* The default [signal@Gtk.Widget::keynav-failed] handler returns
|
|
2574
|
+
* false for [enum@Gtk.DirectionType.tab-forward] and
|
|
2575
|
+
* [enum@Gtk.DirectionType.tab-backward]. For the other values
|
|
2576
|
+
* of [enum@Gtk.DirectionType] it returns true.
|
|
2577
|
+
*
|
|
2578
|
+
* Whenever the default handler returns true, it also calls
|
|
2579
|
+
* [method@Gtk.Widget.error_bell] to notify the user of the
|
|
2580
|
+
* failed keyboard navigation.
|
|
2581
|
+
*
|
|
2582
|
+
* A use case for providing an own implementation of `::keynav-failed`
|
|
2583
|
+
* (either by connecting to it or by overriding it) would be a row of
|
|
2584
|
+
* [class@Gtk.Entry] widgets where the user should be able to navigate
|
|
2585
|
+
* the entire row with the cursor keys, as e.g. known from user
|
|
2586
|
+
* interfaces that require entering license keys.
|
|
2587
|
+
* @param direction - direction of focus movement
|
|
2588
|
+
*/
|
|
1220
2589
|
keynavFailed(direction) {
|
|
1221
2590
|
return call("libgtk-4.so.1", "gtk_widget_keynav_failed", [
|
|
1222
2591
|
{
|
|
@@ -1229,6 +2598,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1229
2598
|
},
|
|
1230
2599
|
], { type: "boolean" });
|
|
1231
2600
|
}
|
|
2601
|
+
/**
|
|
2602
|
+
* Returns the widgets for which this widget is the target of a
|
|
2603
|
+
* mnemonic.
|
|
2604
|
+
*
|
|
2605
|
+
* Typically, these widgets will be labels. See, for example,
|
|
2606
|
+
* [method@Gtk.Label.set_mnemonic_widget].
|
|
2607
|
+
*
|
|
2608
|
+
* The widgets in the list are not individually referenced.
|
|
2609
|
+
* If you want to iterate through the list and perform actions
|
|
2610
|
+
* involving callbacks that might destroy the widgets, you
|
|
2611
|
+
* must call `g_list_foreach (result, (GFunc)g_object_ref, NULL)`
|
|
2612
|
+
* first, and then unref all the widgets afterwards.
|
|
2613
|
+
*/
|
|
1232
2614
|
listMnemonicLabels() {
|
|
1233
2615
|
const ptrs = call("libgtk-4.so.1", "gtk_widget_list_mnemonic_labels", [
|
|
1234
2616
|
{
|
|
@@ -1243,6 +2625,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1243
2625
|
});
|
|
1244
2626
|
return ptrs.map((ptr) => getObject(ptr, Widget));
|
|
1245
2627
|
}
|
|
2628
|
+
/**
|
|
2629
|
+
* Causes a widget to be mapped if it isn’t already.
|
|
2630
|
+
*
|
|
2631
|
+
* This function is only for use in widget implementations.
|
|
2632
|
+
*/
|
|
1246
2633
|
map() {
|
|
1247
2634
|
call("libgtk-4.so.1", "gtk_widget_map", [
|
|
1248
2635
|
{
|
|
@@ -1251,6 +2638,20 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1251
2638
|
},
|
|
1252
2639
|
], { type: "undefined" });
|
|
1253
2640
|
}
|
|
2641
|
+
/**
|
|
2642
|
+
* Measures `widget` in the orientation `orientation` and for the given @for_size.
|
|
2643
|
+
*
|
|
2644
|
+
* As an example, if `orientation` is %GTK_ORIENTATION_HORIZONTAL and `for_size` is 300, this functions will compute the minimum and natural width of `widget` if it is allocated at a height of 300 pixels.
|
|
2645
|
+
*
|
|
2646
|
+
* See GtkWidget’s geometry management section for
|
|
2647
|
+
* a more details on implementing `GtkWidgetClass.measure()`.
|
|
2648
|
+
* @param orientation - the orientation to measure
|
|
2649
|
+
* @param forSize - Size for the opposite of @orientation, i.e.
|
|
2650
|
+
* @param minimum - location to store the minimum size
|
|
2651
|
+
* @param natural - location to store the natural size
|
|
2652
|
+
* @param minimumBaseline - location to store the baseline
|
|
2653
|
+
* @param naturalBaseline - location to store the baseline
|
|
2654
|
+
*/
|
|
1254
2655
|
measure(orientation, forSize, minimum, natural, minimumBaseline, naturalBaseline) {
|
|
1255
2656
|
call("libgtk-4.so.1", "gtk_widget_measure", [
|
|
1256
2657
|
{
|
|
@@ -1299,6 +2700,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1299
2700
|
},
|
|
1300
2701
|
], { type: "undefined" });
|
|
1301
2702
|
}
|
|
2703
|
+
/**
|
|
2704
|
+
* Emits the [signal@Gtk.Widget::mnemonic-activate] signal.
|
|
2705
|
+
* @param groupCycling - true if there are other widgets with the same mnemonic
|
|
2706
|
+
*/
|
|
1302
2707
|
mnemonicActivate(groupCycling) {
|
|
1303
2708
|
return call("libgtk-4.so.1", "gtk_widget_mnemonic_activate", [
|
|
1304
2709
|
{
|
|
@@ -1311,6 +2716,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1311
2716
|
},
|
|
1312
2717
|
], { type: "boolean" });
|
|
1313
2718
|
}
|
|
2719
|
+
/**
|
|
2720
|
+
* Returns a list model to track the children of the widget.
|
|
2721
|
+
*
|
|
2722
|
+
* Calling this function will enable extra internal bookkeeping
|
|
2723
|
+
* to track children and emit signals on the returned listmodel.
|
|
2724
|
+
* It may slow down operations a lot.
|
|
2725
|
+
*
|
|
2726
|
+
* Applications should try hard to avoid calling this function
|
|
2727
|
+
* because of the slowdowns.
|
|
2728
|
+
*/
|
|
1314
2729
|
observeChildren() {
|
|
1315
2730
|
const ptr = call("libgtk-4.so.1", "gtk_widget_observe_children", [
|
|
1316
2731
|
{
|
|
@@ -1320,6 +2735,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1320
2735
|
], { type: "gobject", borrowed: true });
|
|
1321
2736
|
return getObject(ptr, Gio.ListModel);
|
|
1322
2737
|
}
|
|
2738
|
+
/**
|
|
2739
|
+
* Returns a list model to track the event controllers of the widget.
|
|
2740
|
+
*
|
|
2741
|
+
* Calling this function will enable extra internal bookkeeping
|
|
2742
|
+
* to track controllers and emit signals on the returned listmodel.
|
|
2743
|
+
* It may slow down operations a lot.
|
|
2744
|
+
*
|
|
2745
|
+
* Applications should try hard to avoid calling this function
|
|
2746
|
+
* because of the slowdowns.
|
|
2747
|
+
*/
|
|
1323
2748
|
observeControllers() {
|
|
1324
2749
|
const ptr = call("libgtk-4.so.1", "gtk_widget_observe_controllers", [
|
|
1325
2750
|
{
|
|
@@ -1329,6 +2754,25 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1329
2754
|
], { type: "gobject", borrowed: true });
|
|
1330
2755
|
return getObject(ptr, Gio.ListModel);
|
|
1331
2756
|
}
|
|
2757
|
+
/**
|
|
2758
|
+
* Finds the descendant of the widget closest to a point.
|
|
2759
|
+
*
|
|
2760
|
+
* The point (x, y) must be given in widget coordinates, so (0, 0)
|
|
2761
|
+
* is assumed to be the top left of @widget's content area.
|
|
2762
|
+
*
|
|
2763
|
+
* Usually widgets will return `NULL` if the given coordinate is not
|
|
2764
|
+
* contained in `widget` checked via [method@Gtk.Widget.contains].
|
|
2765
|
+
* Otherwise they will recursively try to find a child that does
|
|
2766
|
+
* not return `NULL`. Widgets are however free to customize their
|
|
2767
|
+
* picking algorithm.
|
|
2768
|
+
*
|
|
2769
|
+
* This function is used on the toplevel to determine the widget
|
|
2770
|
+
* below the mouse cursor for purposes of hover highlighting and
|
|
2771
|
+
* delivering events.
|
|
2772
|
+
* @param x - x coordinate to test, relative to @widget's origin
|
|
2773
|
+
* @param y - y coordinate to test, relative to @widget's origin
|
|
2774
|
+
* @param flags - flags to influence what is picked
|
|
2775
|
+
*/
|
|
1332
2776
|
pick(x, y, flags) {
|
|
1333
2777
|
const ptr = call("libgtk-4.so.1", "gtk_widget_pick", [
|
|
1334
2778
|
{
|
|
@@ -1352,6 +2796,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1352
2796
|
return null;
|
|
1353
2797
|
return getObject(ptr, Widget);
|
|
1354
2798
|
}
|
|
2799
|
+
/**
|
|
2800
|
+
* Flags the widget for a rerun of the [vfunc@Gtk.Widget.size_allocate]
|
|
2801
|
+
* function.
|
|
2802
|
+
*
|
|
2803
|
+
* Use this function instead of [method@Gtk.Widget.queue_resize]
|
|
2804
|
+
* when the @widget's size request didn't change but it wants to
|
|
2805
|
+
* reposition its contents.
|
|
2806
|
+
*
|
|
2807
|
+
* An example user of this function is [method@Gtk.Widget.set_halign].
|
|
2808
|
+
*
|
|
2809
|
+
* This function is only for use in widget implementations.
|
|
2810
|
+
*/
|
|
1355
2811
|
queueAllocate() {
|
|
1356
2812
|
call("libgtk-4.so.1", "gtk_widget_queue_allocate", [
|
|
1357
2813
|
{
|
|
@@ -1360,6 +2816,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1360
2816
|
},
|
|
1361
2817
|
], { type: "undefined" });
|
|
1362
2818
|
}
|
|
2819
|
+
/**
|
|
2820
|
+
* Schedules this widget to be redrawn.
|
|
2821
|
+
*
|
|
2822
|
+
* The redraw will happen in the paint phase
|
|
2823
|
+
* of the current or the next frame.
|
|
2824
|
+
*
|
|
2825
|
+
* This means @widget's [vfunc@Gtk.Widget.snapshot]
|
|
2826
|
+
* implementation will be called.
|
|
2827
|
+
*/
|
|
1363
2828
|
queueDraw() {
|
|
1364
2829
|
call("libgtk-4.so.1", "gtk_widget_queue_draw", [
|
|
1365
2830
|
{
|
|
@@ -1368,6 +2833,21 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1368
2833
|
},
|
|
1369
2834
|
], { type: "undefined" });
|
|
1370
2835
|
}
|
|
2836
|
+
/**
|
|
2837
|
+
* Flags a widget to have its size renegotiated.
|
|
2838
|
+
*
|
|
2839
|
+
* This should be called when a widget for some reason has a new
|
|
2840
|
+
* size request. For example, when you change the text in a
|
|
2841
|
+
* [class@Gtk.Label], the label queues a resize to ensure there’s
|
|
2842
|
+
* enough space for the new text.
|
|
2843
|
+
*
|
|
2844
|
+
* Note that you cannot call gtk_widget_queue_resize() on a widget
|
|
2845
|
+
* from inside its implementation of the [vfunc@Gtk.Widget.size_allocate]
|
|
2846
|
+
* virtual method. Calls to gtk_widget_queue_resize() from inside
|
|
2847
|
+
* [vfunc@Gtk.Widget.size_allocate] will be silently ignored.
|
|
2848
|
+
*
|
|
2849
|
+
* This function is only for use in widget implementations.
|
|
2850
|
+
*/
|
|
1371
2851
|
queueResize() {
|
|
1372
2852
|
call("libgtk-4.so.1", "gtk_widget_queue_resize", [
|
|
1373
2853
|
{
|
|
@@ -1376,6 +2856,24 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1376
2856
|
},
|
|
1377
2857
|
], { type: "undefined" });
|
|
1378
2858
|
}
|
|
2859
|
+
/**
|
|
2860
|
+
* Creates the GDK resources associated with a widget.
|
|
2861
|
+
*
|
|
2862
|
+
* Normally realization happens implicitly; if you show a widget
|
|
2863
|
+
* and all its parent containers, then the widget will be realized
|
|
2864
|
+
* and mapped automatically.
|
|
2865
|
+
*
|
|
2866
|
+
* Realizing a widget requires all the widget’s parent widgets to be
|
|
2867
|
+
* realized; calling this function realizes the widget’s parents
|
|
2868
|
+
* in addition to `widget` itself. If a widget is not yet inside a
|
|
2869
|
+
* toplevel window when you realize it, bad things will happen.
|
|
2870
|
+
*
|
|
2871
|
+
* This function is primarily used in widget implementations, and
|
|
2872
|
+
* isn’t very useful otherwise. Many times when you think you might
|
|
2873
|
+
* need it, a better approach is to connect to a signal that will be
|
|
2874
|
+
* called after the widget is realized automatically, such as
|
|
2875
|
+
* [signal@Gtk.Widget::realize].
|
|
2876
|
+
*/
|
|
1379
2877
|
realize() {
|
|
1380
2878
|
call("libgtk-4.so.1", "gtk_widget_realize", [
|
|
1381
2879
|
{
|
|
@@ -1384,6 +2882,16 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1384
2882
|
},
|
|
1385
2883
|
], { type: "undefined" });
|
|
1386
2884
|
}
|
|
2885
|
+
/**
|
|
2886
|
+
* Removes an event controller from the widget.
|
|
2887
|
+
*
|
|
2888
|
+
* The removed event controller will not receive any more events,
|
|
2889
|
+
* and should not be used again.
|
|
2890
|
+
*
|
|
2891
|
+
* Widgets will remove all event controllers automatically when they
|
|
2892
|
+
* are destroyed, there is normally no need to call this function.
|
|
2893
|
+
* @param controller - an event controller
|
|
2894
|
+
*/
|
|
1387
2895
|
removeController(controller) {
|
|
1388
2896
|
call("libgtk-4.so.1", "gtk_widget_remove_controller", [
|
|
1389
2897
|
{
|
|
@@ -1396,6 +2904,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1396
2904
|
},
|
|
1397
2905
|
], { type: "undefined" });
|
|
1398
2906
|
}
|
|
2907
|
+
/**
|
|
2908
|
+
* Removes a style from the widget.
|
|
2909
|
+
*
|
|
2910
|
+
* After this, the style of `widget` will stop matching for @css_class.
|
|
2911
|
+
* @param cssClass - style class to remove from @widget, without the leading period
|
|
2912
|
+
*/
|
|
1399
2913
|
removeCssClass(cssClass) {
|
|
1400
2914
|
call("libgtk-4.so.1", "gtk_widget_remove_css_class", [
|
|
1401
2915
|
{
|
|
@@ -1408,6 +2922,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1408
2922
|
},
|
|
1409
2923
|
], { type: "undefined" });
|
|
1410
2924
|
}
|
|
2925
|
+
/**
|
|
2926
|
+
* Removes a widget from the list of mnemonic labels for this widget.
|
|
2927
|
+
*
|
|
2928
|
+
* See [method@Gtk.Widget.list_mnemonic_labels].
|
|
2929
|
+
*
|
|
2930
|
+
* The widget must have previously been added to the list with
|
|
2931
|
+
* [method@Gtk.Widget.add_mnemonic_label].
|
|
2932
|
+
* @param label - a widget that is a mnemonic label for @widget
|
|
2933
|
+
*/
|
|
1411
2934
|
removeMnemonicLabel(label) {
|
|
1412
2935
|
call("libgtk-4.so.1", "gtk_widget_remove_mnemonic_label", [
|
|
1413
2936
|
{
|
|
@@ -1420,6 +2943,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1420
2943
|
},
|
|
1421
2944
|
], { type: "undefined" });
|
|
1422
2945
|
}
|
|
2946
|
+
/**
|
|
2947
|
+
* Removes a tick callback previously registered with
|
|
2948
|
+
* [method@Gtk.Widget.add_tick_callback].
|
|
2949
|
+
* @param id - an ID returned by [method@Gtk.Widget.add_tick_callback]
|
|
2950
|
+
*/
|
|
1423
2951
|
removeTickCallback(id) {
|
|
1424
2952
|
call("libgtk-4.so.1", "gtk_widget_remove_tick_callback", [
|
|
1425
2953
|
{
|
|
@@ -1432,6 +2960,23 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1432
2960
|
},
|
|
1433
2961
|
], { type: "undefined" });
|
|
1434
2962
|
}
|
|
2963
|
+
/**
|
|
2964
|
+
* Sets whether the input focus can enter the widget or
|
|
2965
|
+
* any of its children.
|
|
2966
|
+
*
|
|
2967
|
+
* Applications should set `can_focus` to false to mark a
|
|
2968
|
+
* widget as for pointer/touch use only.
|
|
2969
|
+
*
|
|
2970
|
+
* Note that having `can_focus` be true is only one of the
|
|
2971
|
+
* necessary conditions for being focusable. A widget must
|
|
2972
|
+
* also be sensitive and focusable and not have an ancestor
|
|
2973
|
+
* that is marked as not can-focus in order to receive input
|
|
2974
|
+
* focus.
|
|
2975
|
+
*
|
|
2976
|
+
* See [method@Gtk.Widget.grab_focus] for actually setting
|
|
2977
|
+
* the input focus on a widget.
|
|
2978
|
+
* @param canFocus - whether the input focus can enter
|
|
2979
|
+
*/
|
|
1435
2980
|
setCanFocus(canFocus) {
|
|
1436
2981
|
call("libgtk-4.so.1", "gtk_widget_set_can_focus", [
|
|
1437
2982
|
{
|
|
@@ -1444,6 +2989,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1444
2989
|
},
|
|
1445
2990
|
], { type: "undefined" });
|
|
1446
2991
|
}
|
|
2992
|
+
/**
|
|
2993
|
+
* Sets whether the widget can be the target of pointer events.
|
|
2994
|
+
* @param canTarget - whether this widget should be able to
|
|
2995
|
+
*/
|
|
1447
2996
|
setCanTarget(canTarget) {
|
|
1448
2997
|
call("libgtk-4.so.1", "gtk_widget_set_can_target", [
|
|
1449
2998
|
{
|
|
@@ -1456,6 +3005,25 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1456
3005
|
},
|
|
1457
3006
|
], { type: "undefined" });
|
|
1458
3007
|
}
|
|
3008
|
+
/**
|
|
3009
|
+
* Sets whether the widget should be mapped along with its parent.
|
|
3010
|
+
*
|
|
3011
|
+
* The child visibility can be set for widget before it is added
|
|
3012
|
+
* to a container with [method@Gtk.Widget.set_parent], to avoid
|
|
3013
|
+
* mapping children unnecessary before immediately unmapping them.
|
|
3014
|
+
* However it will be reset to its default state of true when the
|
|
3015
|
+
* widget is removed from a container.
|
|
3016
|
+
*
|
|
3017
|
+
* Note that changing the child visibility of a widget does not
|
|
3018
|
+
* queue a resize on the widget. Most of the time, the size of
|
|
3019
|
+
* a widget is computed from all visible children, whether or
|
|
3020
|
+
* not they are mapped. If this is not the case, the container
|
|
3021
|
+
* can queue a resize itself.
|
|
3022
|
+
*
|
|
3023
|
+
* This function is only useful for widget implementations
|
|
3024
|
+
* and should never be called by an application.
|
|
3025
|
+
* @param childVisible - whether `widget` should be mapped along
|
|
3026
|
+
*/
|
|
1459
3027
|
setChildVisible(childVisible) {
|
|
1460
3028
|
call("libgtk-4.so.1", "gtk_widget_set_child_visible", [
|
|
1461
3029
|
{
|
|
@@ -1468,6 +3036,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1468
3036
|
},
|
|
1469
3037
|
], { type: "undefined" });
|
|
1470
3038
|
}
|
|
3039
|
+
/**
|
|
3040
|
+
* Replaces the current style classes of the widget with @classes.
|
|
3041
|
+
* @param classes - `NULL`-terminated list of style classes
|
|
3042
|
+
*/
|
|
1471
3043
|
setCssClasses(classes) {
|
|
1472
3044
|
call("libgtk-4.so.1", "gtk_widget_set_css_classes", [
|
|
1473
3045
|
{
|
|
@@ -1480,6 +3052,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1480
3052
|
},
|
|
1481
3053
|
], { type: "undefined" });
|
|
1482
3054
|
}
|
|
3055
|
+
/**
|
|
3056
|
+
* Sets the cursor to be shown when the pointer hovers over
|
|
3057
|
+
* the widget.
|
|
3058
|
+
*
|
|
3059
|
+
* If the `cursor` is `NULL`, `widget` will use the cursor
|
|
3060
|
+
* inherited from its parent.
|
|
3061
|
+
* @param cursor - the new cursor
|
|
3062
|
+
*/
|
|
1483
3063
|
setCursor(cursor) {
|
|
1484
3064
|
call("libgtk-4.so.1", "gtk_widget_set_cursor", [
|
|
1485
3065
|
{
|
|
@@ -1493,6 +3073,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1493
3073
|
},
|
|
1494
3074
|
], { type: "undefined" });
|
|
1495
3075
|
}
|
|
3076
|
+
/**
|
|
3077
|
+
* Sets the cursor to be shown when the pointer hovers over
|
|
3078
|
+
* the widget.
|
|
3079
|
+
*
|
|
3080
|
+
* This is a utility function that creates a cursor via
|
|
3081
|
+
* [ctor@Gdk.Cursor.new_from_name] and then sets it on `widget` with [method@Gtk.Widget.set_cursor]. See those functions for
|
|
3082
|
+
* details.
|
|
3083
|
+
*
|
|
3084
|
+
* On top of that, this function allows `name` to be `NULL`, which
|
|
3085
|
+
* will do the same as calling [method@Gtk.Widget.set_cursor]
|
|
3086
|
+
* with a `NULL` cursor.
|
|
3087
|
+
* @param name - the name of the cursor
|
|
3088
|
+
*/
|
|
1496
3089
|
setCursorFromName(name) {
|
|
1497
3090
|
call("libgtk-4.so.1", "gtk_widget_set_cursor_from_name", [
|
|
1498
3091
|
{
|
|
@@ -1506,6 +3099,24 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1506
3099
|
},
|
|
1507
3100
|
], { type: "undefined" });
|
|
1508
3101
|
}
|
|
3102
|
+
/**
|
|
3103
|
+
* Sets the reading direction on the widget.
|
|
3104
|
+
*
|
|
3105
|
+
* This direction controls the primary direction for widgets
|
|
3106
|
+
* containing text, and also the direction in which the children
|
|
3107
|
+
* of a container are packed. The ability to set the direction is
|
|
3108
|
+
* present in order so that correct localization into languages with
|
|
3109
|
+
* right-to-left reading directions can be done.
|
|
3110
|
+
*
|
|
3111
|
+
* Generally, applications will let the default reading direction
|
|
3112
|
+
* prevail, except for widgets where the children are arranged in
|
|
3113
|
+
* an order that is explicitly visual rather than logical (such as
|
|
3114
|
+
* buttons for text justification).
|
|
3115
|
+
*
|
|
3116
|
+
* If the direction is set to [enum@Gtk.TextDirection.none], then
|
|
3117
|
+
* the value set by [func@Gtk.Widget.set_default_direction] will be used.
|
|
3118
|
+
* @param dir - the new direction
|
|
3119
|
+
*/
|
|
1509
3120
|
setDirection(dir) {
|
|
1510
3121
|
call("libgtk-4.so.1", "gtk_widget_set_direction", [
|
|
1511
3122
|
{
|
|
@@ -1518,6 +3129,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1518
3129
|
},
|
|
1519
3130
|
], { type: "undefined" });
|
|
1520
3131
|
}
|
|
3132
|
+
/**
|
|
3133
|
+
* Set the focus child of the widget.
|
|
3134
|
+
*
|
|
3135
|
+
* This function is only suitable for widget implementations.
|
|
3136
|
+
* If you want a certain widget to get the input focus, call
|
|
3137
|
+
* [method@Gtk.Widget.grab_focus] on it.
|
|
3138
|
+
* @param child - a direct child widget of `widget` or `NULL` to unset the focus child
|
|
3139
|
+
*/
|
|
1521
3140
|
setFocusChild(child) {
|
|
1522
3141
|
call("libgtk-4.so.1", "gtk_widget_set_focus_child", [
|
|
1523
3142
|
{
|
|
@@ -1531,6 +3150,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1531
3150
|
},
|
|
1532
3151
|
], { type: "undefined" });
|
|
1533
3152
|
}
|
|
3153
|
+
/**
|
|
3154
|
+
* Sets whether the widget should grab focus when it is clicked
|
|
3155
|
+
* with the mouse.
|
|
3156
|
+
*
|
|
3157
|
+
* Making mouse clicks not grab focus is useful in places like
|
|
3158
|
+
* toolbars where you don’t want the keyboard focus removed from
|
|
3159
|
+
* the main area of the application.
|
|
3160
|
+
* @param focusOnClick - whether the widget should grab focus when clicked
|
|
3161
|
+
*/
|
|
1534
3162
|
setFocusOnClick(focusOnClick) {
|
|
1535
3163
|
call("libgtk-4.so.1", "gtk_widget_set_focus_on_click", [
|
|
1536
3164
|
{
|
|
@@ -1543,6 +3171,22 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1543
3171
|
},
|
|
1544
3172
|
], { type: "undefined" });
|
|
1545
3173
|
}
|
|
3174
|
+
/**
|
|
3175
|
+
* Sets whether the widget can own the input focus.
|
|
3176
|
+
*
|
|
3177
|
+
* Widget implementations should set `focusable` to true in
|
|
3178
|
+
* their init() function if they want to receive keyboard input.
|
|
3179
|
+
*
|
|
3180
|
+
* Note that having `focusable` be true is only one of the
|
|
3181
|
+
* necessary conditions for being focusable. A widget must
|
|
3182
|
+
* also be sensitive and can-focus and not have an ancestor
|
|
3183
|
+
* that is marked as not can-focus in order to receive input
|
|
3184
|
+
* focus.
|
|
3185
|
+
*
|
|
3186
|
+
* See [method@Gtk.Widget.grab_focus] for actually setting
|
|
3187
|
+
* the input focus on a widget.
|
|
3188
|
+
* @param focusable - whether or not `widget` can own the input focus
|
|
3189
|
+
*/
|
|
1546
3190
|
setFocusable(focusable) {
|
|
1547
3191
|
call("libgtk-4.so.1", "gtk_widget_set_focusable", [
|
|
1548
3192
|
{
|
|
@@ -1555,6 +3199,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1555
3199
|
},
|
|
1556
3200
|
], { type: "undefined" });
|
|
1557
3201
|
}
|
|
3202
|
+
/**
|
|
3203
|
+
* Sets the font map to use for text rendering in the widget.
|
|
3204
|
+
*
|
|
3205
|
+
* The font map is the object that is used to look up fonts.
|
|
3206
|
+
* Setting a custom font map can be useful in special situations,
|
|
3207
|
+
* e.g. when you need to add application-specific fonts to the set
|
|
3208
|
+
* of available fonts.
|
|
3209
|
+
*
|
|
3210
|
+
* When not set, the widget will inherit the font map from its parent.
|
|
3211
|
+
* @param fontMap - a `PangoFontMap`
|
|
3212
|
+
*/
|
|
1558
3213
|
setFontMap(fontMap) {
|
|
1559
3214
|
call("libgtk-4.so.1", "gtk_widget_set_font_map", [
|
|
1560
3215
|
{
|
|
@@ -1568,6 +3223,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1568
3223
|
},
|
|
1569
3224
|
], { type: "undefined" });
|
|
1570
3225
|
}
|
|
3226
|
+
/**
|
|
3227
|
+
* Sets the `cairo_font_options_t` used for text rendering
|
|
3228
|
+
* in the widget.
|
|
3229
|
+
*
|
|
3230
|
+
* When not set, the default font options for the `GdkDisplay`
|
|
3231
|
+
* will be used.
|
|
3232
|
+
* @param options - a `cairo_font_options_t` struct
|
|
3233
|
+
*/
|
|
1571
3234
|
setFontOptions(options) {
|
|
1572
3235
|
call("libgtk-4.so.1", "gtk_widget_set_font_options", [
|
|
1573
3236
|
{
|
|
@@ -1586,6 +3249,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1586
3249
|
},
|
|
1587
3250
|
], { type: "undefined" });
|
|
1588
3251
|
}
|
|
3252
|
+
/**
|
|
3253
|
+
* Sets the horizontal alignment of the widget.
|
|
3254
|
+
* @param align - the horizontal alignment
|
|
3255
|
+
*/
|
|
1589
3256
|
setHalign(align) {
|
|
1590
3257
|
call("libgtk-4.so.1", "gtk_widget_set_halign", [
|
|
1591
3258
|
{
|
|
@@ -1598,6 +3265,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1598
3265
|
},
|
|
1599
3266
|
], { type: "undefined" });
|
|
1600
3267
|
}
|
|
3268
|
+
/**
|
|
3269
|
+
* Sets the `has-tooltip` property on the widget.
|
|
3270
|
+
* @param hasTooltip - whether or not `widget` has a tooltip
|
|
3271
|
+
*/
|
|
1601
3272
|
setHasTooltip(hasTooltip) {
|
|
1602
3273
|
call("libgtk-4.so.1", "gtk_widget_set_has_tooltip", [
|
|
1603
3274
|
{
|
|
@@ -1610,6 +3281,35 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1610
3281
|
},
|
|
1611
3282
|
], { type: "undefined" });
|
|
1612
3283
|
}
|
|
3284
|
+
/**
|
|
3285
|
+
* Sets whether the widget would like any available extra horizontal
|
|
3286
|
+
* space.
|
|
3287
|
+
*
|
|
3288
|
+
* When a user resizes a window, widgets with expand set to true generally
|
|
3289
|
+
* receive the extra space. For example, a list or scrollable area
|
|
3290
|
+
* or document in your window would often be set to expand.
|
|
3291
|
+
*
|
|
3292
|
+
* Call this function to set the expand flag if you would like your
|
|
3293
|
+
* widget to become larger horizontally when the window has extra
|
|
3294
|
+
* room.
|
|
3295
|
+
*
|
|
3296
|
+
* By default, widgets automatically expand if any of their children
|
|
3297
|
+
* want to expand. (To see if a widget will automatically expand given
|
|
3298
|
+
* its current children and state, call [method@Gtk.Widget.compute_expand].
|
|
3299
|
+
* A widget can decide how the expandability of children affects its
|
|
3300
|
+
* own expansion by overriding the `compute_expand` virtual method on
|
|
3301
|
+
* `GtkWidget`.).
|
|
3302
|
+
*
|
|
3303
|
+
* Setting hexpand explicitly with this function will override the
|
|
3304
|
+
* automatic expand behavior.
|
|
3305
|
+
*
|
|
3306
|
+
* This function forces the widget to expand or not to expand,
|
|
3307
|
+
* regardless of children. The override occurs because
|
|
3308
|
+
* [method@Gtk.Widget.set_hexpand] sets the hexpand-set property (see
|
|
3309
|
+
* [method@Gtk.Widget.set_hexpand_set]) which causes the widget’s hexpand
|
|
3310
|
+
* value to be used, rather than looking at children and widget state.
|
|
3311
|
+
* @param expand - whether to expand
|
|
3312
|
+
*/
|
|
1613
3313
|
setHexpand(expand) {
|
|
1614
3314
|
call("libgtk-4.so.1", "gtk_widget_set_hexpand", [
|
|
1615
3315
|
{
|
|
@@ -1622,6 +3322,23 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1622
3322
|
},
|
|
1623
3323
|
], { type: "undefined" });
|
|
1624
3324
|
}
|
|
3325
|
+
/**
|
|
3326
|
+
* Sets whether the hexpand flag will be used.
|
|
3327
|
+
*
|
|
3328
|
+
* The [property@Gtk.Widget:hexpand-set] property will be set
|
|
3329
|
+
* automatically when you call [method@Gtk.Widget.set_hexpand]
|
|
3330
|
+
* to set hexpand, so the most likely reason to use this function
|
|
3331
|
+
* would be to unset an explicit expand flag.
|
|
3332
|
+
*
|
|
3333
|
+
* If hexpand is set, then it overrides any computed
|
|
3334
|
+
* expand value based on child widgets. If hexpand is not
|
|
3335
|
+
* set, then the expand value depends on whether any
|
|
3336
|
+
* children of the widget would like to expand.
|
|
3337
|
+
*
|
|
3338
|
+
* There are few reasons to use this function, but it’s here
|
|
3339
|
+
* for completeness and consistency.
|
|
3340
|
+
* @param set - value for hexpand-set property
|
|
3341
|
+
*/
|
|
1625
3342
|
setHexpandSet(set) {
|
|
1626
3343
|
call("libgtk-4.so.1", "gtk_widget_set_hexpand_set", [
|
|
1627
3344
|
{
|
|
@@ -1634,6 +3351,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1634
3351
|
},
|
|
1635
3352
|
], { type: "undefined" });
|
|
1636
3353
|
}
|
|
3354
|
+
/**
|
|
3355
|
+
* Sets the layout manager to use for measuring and allocating children
|
|
3356
|
+
* of the widget.
|
|
3357
|
+
* @param layoutManager - a layout manager
|
|
3358
|
+
*/
|
|
1637
3359
|
setLayoutManager(layoutManager) {
|
|
1638
3360
|
call("libgtk-4.so.1", "gtk_widget_set_layout_manager", [
|
|
1639
3361
|
{
|
|
@@ -1647,6 +3369,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1647
3369
|
},
|
|
1648
3370
|
], { type: "undefined" });
|
|
1649
3371
|
}
|
|
3372
|
+
/**
|
|
3373
|
+
* Sets whether the widget acts like a modal dialog,
|
|
3374
|
+
* with respect to event delivery.
|
|
3375
|
+
* @param limitEvents - whether to limit events
|
|
3376
|
+
*/
|
|
1650
3377
|
setLimitEvents(limitEvents) {
|
|
1651
3378
|
call("libgtk-4.so.1", "gtk_widget_set_limit_events", [
|
|
1652
3379
|
{
|
|
@@ -1659,6 +3386,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1659
3386
|
},
|
|
1660
3387
|
], { type: "undefined" });
|
|
1661
3388
|
}
|
|
3389
|
+
/**
|
|
3390
|
+
* Sets the bottom margin of the widget.
|
|
3391
|
+
* @param margin - the bottom margin
|
|
3392
|
+
*/
|
|
1662
3393
|
setMarginBottom(margin) {
|
|
1663
3394
|
call("libgtk-4.so.1", "gtk_widget_set_margin_bottom", [
|
|
1664
3395
|
{
|
|
@@ -1671,6 +3402,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1671
3402
|
},
|
|
1672
3403
|
], { type: "undefined" });
|
|
1673
3404
|
}
|
|
3405
|
+
/**
|
|
3406
|
+
* Sets the end margin of the widget.
|
|
3407
|
+
* @param margin - the end margin
|
|
3408
|
+
*/
|
|
1674
3409
|
setMarginEnd(margin) {
|
|
1675
3410
|
call("libgtk-4.so.1", "gtk_widget_set_margin_end", [
|
|
1676
3411
|
{
|
|
@@ -1683,6 +3418,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1683
3418
|
},
|
|
1684
3419
|
], { type: "undefined" });
|
|
1685
3420
|
}
|
|
3421
|
+
/**
|
|
3422
|
+
* Sets the start margin of the widget.
|
|
3423
|
+
* @param margin - the start margin
|
|
3424
|
+
*/
|
|
1686
3425
|
setMarginStart(margin) {
|
|
1687
3426
|
call("libgtk-4.so.1", "gtk_widget_set_margin_start", [
|
|
1688
3427
|
{
|
|
@@ -1695,6 +3434,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1695
3434
|
},
|
|
1696
3435
|
], { type: "undefined" });
|
|
1697
3436
|
}
|
|
3437
|
+
/**
|
|
3438
|
+
* Sets the top margin of the widget.
|
|
3439
|
+
* @param margin - the top margin
|
|
3440
|
+
*/
|
|
1698
3441
|
setMarginTop(margin) {
|
|
1699
3442
|
call("libgtk-4.so.1", "gtk_widget_set_margin_top", [
|
|
1700
3443
|
{
|
|
@@ -1707,6 +3450,20 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1707
3450
|
},
|
|
1708
3451
|
], { type: "undefined" });
|
|
1709
3452
|
}
|
|
3453
|
+
/**
|
|
3454
|
+
* Sets a widgets name.
|
|
3455
|
+
*
|
|
3456
|
+
* Setting a name allows you to refer to the widget from a
|
|
3457
|
+
* CSS file. You can apply a style to widgets with a particular name
|
|
3458
|
+
* in the CSS file. See the documentation for the CSS syntax (on the
|
|
3459
|
+
* same page as the docs for [class@Gtk.StyleContext].
|
|
3460
|
+
*
|
|
3461
|
+
* Note that the CSS syntax has certain special characters to delimit
|
|
3462
|
+
* and represent elements in a selector (period, #, >, *...), so using
|
|
3463
|
+
* these will make your widget impossible to match by name. Any combination
|
|
3464
|
+
* of alphanumeric symbols, dashes and underscores will suffice.
|
|
3465
|
+
* @param name - name for the widget
|
|
3466
|
+
*/
|
|
1710
3467
|
setName(name) {
|
|
1711
3468
|
call("libgtk-4.so.1", "gtk_widget_set_name", [
|
|
1712
3469
|
{
|
|
@@ -1719,6 +3476,32 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1719
3476
|
},
|
|
1720
3477
|
], { type: "undefined" });
|
|
1721
3478
|
}
|
|
3479
|
+
/**
|
|
3480
|
+
* Requests the widget to be rendered partially transparent.
|
|
3481
|
+
*
|
|
3482
|
+
* An opacity of 0 is fully transparent and an opacity of 1
|
|
3483
|
+
* is fully opaque.
|
|
3484
|
+
*
|
|
3485
|
+
* Opacity works on both toplevel widgets and child widgets, although
|
|
3486
|
+
* there are some limitations: For toplevel widgets, applying opacity
|
|
3487
|
+
* depends on the capabilities of the windowing system. On X11, this
|
|
3488
|
+
* has any effect only on X displays with a compositing manager, see
|
|
3489
|
+
* [method@Gdk.Display.is_composited]. On Windows and Wayland it will
|
|
3490
|
+
* always work, although setting a window’s opacity after the window
|
|
3491
|
+
* has been shown may cause some flicker.
|
|
3492
|
+
*
|
|
3493
|
+
* Note that the opacity is inherited through inclusion — if you set
|
|
3494
|
+
* a toplevel to be partially translucent, all of its content will
|
|
3495
|
+
* appear translucent, since it is ultimatively rendered on that
|
|
3496
|
+
* toplevel. The opacity value itself is not inherited by child
|
|
3497
|
+
* widgets (since that would make widgets deeper in the hierarchy
|
|
3498
|
+
* progressively more translucent). As a consequence, [class@Gtk.Popover]
|
|
3499
|
+
* instances and other [iface@Gtk.Native] widgets with their own surface
|
|
3500
|
+
* will use their own opacity value, and thus by default appear
|
|
3501
|
+
* non-translucent, even if they are attached to a toplevel that
|
|
3502
|
+
* is translucent.
|
|
3503
|
+
* @param opacity - desired opacity, between 0 and 1
|
|
3504
|
+
*/
|
|
1722
3505
|
setOpacity(opacity) {
|
|
1723
3506
|
call("libgtk-4.so.1", "gtk_widget_set_opacity", [
|
|
1724
3507
|
{
|
|
@@ -1731,6 +3514,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1731
3514
|
},
|
|
1732
3515
|
], { type: "undefined" });
|
|
1733
3516
|
}
|
|
3517
|
+
/**
|
|
3518
|
+
* Sets how the widget treats content that is drawn outside the
|
|
3519
|
+
* it's content area.
|
|
3520
|
+
*
|
|
3521
|
+
* See the definition of [enum@Gtk.Overflow] for details.
|
|
3522
|
+
*
|
|
3523
|
+
* This setting is provided for widget implementations and
|
|
3524
|
+
* should not be used by application code.
|
|
3525
|
+
*
|
|
3526
|
+
* The default value is [enum@Gtk.Overflow.visible].
|
|
3527
|
+
* @param overflow - desired overflow value
|
|
3528
|
+
*/
|
|
1734
3529
|
setOverflow(overflow) {
|
|
1735
3530
|
call("libgtk-4.so.1", "gtk_widget_set_overflow", [
|
|
1736
3531
|
{
|
|
@@ -1743,6 +3538,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1743
3538
|
},
|
|
1744
3539
|
], { type: "undefined" });
|
|
1745
3540
|
}
|
|
3541
|
+
/**
|
|
3542
|
+
* Sets the parent widget of the widget.
|
|
3543
|
+
*
|
|
3544
|
+
* This takes care of details such as updating the state and style
|
|
3545
|
+
* of the child to reflect its new location and resizing the parent.
|
|
3546
|
+
* The opposite function is [method@Gtk.Widget.unparent].
|
|
3547
|
+
*
|
|
3548
|
+
* This function is useful only when implementing subclasses of
|
|
3549
|
+
* `GtkWidget`.
|
|
3550
|
+
* @param parent - parent widget
|
|
3551
|
+
*/
|
|
1746
3552
|
setParent(parent) {
|
|
1747
3553
|
call("libgtk-4.so.1", "gtk_widget_set_parent", [
|
|
1748
3554
|
{
|
|
@@ -1755,6 +3561,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1755
3561
|
},
|
|
1756
3562
|
], { type: "undefined" });
|
|
1757
3563
|
}
|
|
3564
|
+
/**
|
|
3565
|
+
* Sets whether the widget will be treated as the default
|
|
3566
|
+
* widget within its toplevel when it has the focus, even if
|
|
3567
|
+
* another widget is the default.
|
|
3568
|
+
* @param receivesDefault - whether or not `widget` can be a default widget
|
|
3569
|
+
*/
|
|
1758
3570
|
setReceivesDefault(receivesDefault) {
|
|
1759
3571
|
call("libgtk-4.so.1", "gtk_widget_set_receives_default", [
|
|
1760
3572
|
{
|
|
@@ -1767,6 +3579,15 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1767
3579
|
},
|
|
1768
3580
|
], { type: "undefined" });
|
|
1769
3581
|
}
|
|
3582
|
+
/**
|
|
3583
|
+
* Sets the sensitivity of the widget.
|
|
3584
|
+
*
|
|
3585
|
+
* A widget is sensitive if the user can interact with it.
|
|
3586
|
+
* Insensitive widgets are “grayed out” and the user can’t
|
|
3587
|
+
* interact with them. Insensitive widgets are known as
|
|
3588
|
+
* “inactive”, “disabled”, or “ghosted” in some other toolkits.
|
|
3589
|
+
* @param sensitive - true to make the widget sensitive
|
|
3590
|
+
*/
|
|
1770
3591
|
setSensitive(sensitive) {
|
|
1771
3592
|
call("libgtk-4.so.1", "gtk_widget_set_sensitive", [
|
|
1772
3593
|
{
|
|
@@ -1779,6 +3600,43 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1779
3600
|
},
|
|
1780
3601
|
], { type: "undefined" });
|
|
1781
3602
|
}
|
|
3603
|
+
/**
|
|
3604
|
+
* Sets the minimum size of the widget.
|
|
3605
|
+
*
|
|
3606
|
+
* That is, the widget’s size request will be at least `width` by @height. You can use this function to force a widget to
|
|
3607
|
+
* be larger than it normally would be.
|
|
3608
|
+
*
|
|
3609
|
+
* In most cases, [method@Gtk.Window.set_default_size] is a better
|
|
3610
|
+
* choice for toplevel windows than this function; setting the default
|
|
3611
|
+
* size will still allow users to shrink the window. Setting the size
|
|
3612
|
+
* request will force them to leave the window at least as large as
|
|
3613
|
+
* the size request.
|
|
3614
|
+
*
|
|
3615
|
+
* Note the inherent danger of setting any fixed size - themes,
|
|
3616
|
+
* translations into other languages, different fonts, and user action
|
|
3617
|
+
* can all change the appropriate size for a given widget. So, it is
|
|
3618
|
+
* basically impossible to hardcode a size that will always work.
|
|
3619
|
+
*
|
|
3620
|
+
* The size request of a widget is the smallest size a widget can
|
|
3621
|
+
* accept while still functioning well and drawing itself correctly.
|
|
3622
|
+
* However in some strange cases a widget may be allocated less than
|
|
3623
|
+
* its requested size, and in many cases a widget may be allocated more
|
|
3624
|
+
* space than it requested.
|
|
3625
|
+
*
|
|
3626
|
+
* If the size request in a given direction is -1 (unset), then
|
|
3627
|
+
* the “natural” size request of the widget will be used instead.
|
|
3628
|
+
*
|
|
3629
|
+
* The size request set here does not include any margin from the
|
|
3630
|
+
* properties
|
|
3631
|
+
* [property@Gtk.Widget:margin-start],
|
|
3632
|
+
* [property@Gtk.Widget:margin-end],
|
|
3633
|
+
* [property@Gtk.Widget:margin-top], and
|
|
3634
|
+
* [property@Gtk.Widget:margin-bottom], but it does include pretty
|
|
3635
|
+
* much all other padding or border properties set by any subclass
|
|
3636
|
+
* of `GtkWidget`.
|
|
3637
|
+
* @param width - width `widget` should request, or -1 to unset
|
|
3638
|
+
* @param height - height `widget` should request, or -1 to unset
|
|
3639
|
+
*/
|
|
1782
3640
|
setSizeRequest(width, height) {
|
|
1783
3641
|
call("libgtk-4.so.1", "gtk_widget_set_size_request", [
|
|
1784
3642
|
{
|
|
@@ -1795,6 +3653,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1795
3653
|
},
|
|
1796
3654
|
], { type: "undefined" });
|
|
1797
3655
|
}
|
|
3656
|
+
/**
|
|
3657
|
+
* Turns on flag values in the current widget state.
|
|
3658
|
+
*
|
|
3659
|
+
* Typical widget states are insensitive, prelighted, etc.
|
|
3660
|
+
*
|
|
3661
|
+
* This function accepts the values [flags@Gtk.StateFlags.dir-ltr] and
|
|
3662
|
+
* [flags@Gtk.StateFlags.dir-rtl] but ignores them. If you want to set
|
|
3663
|
+
* the widget's direction, use [method@Gtk.Widget.set_direction].
|
|
3664
|
+
*
|
|
3665
|
+
* This function is for use in widget implementations.
|
|
3666
|
+
* @param flags - state flags to turn on
|
|
3667
|
+
* @param clear - whether to clear state before turning on @flags
|
|
3668
|
+
*/
|
|
1798
3669
|
setStateFlags(flags, clear) {
|
|
1799
3670
|
call("libgtk-4.so.1", "gtk_widget_set_state_flags", [
|
|
1800
3671
|
{
|
|
@@ -1811,6 +3682,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1811
3682
|
},
|
|
1812
3683
|
], { type: "undefined" });
|
|
1813
3684
|
}
|
|
3685
|
+
/**
|
|
3686
|
+
* Sets the contents of the tooltip for widget.
|
|
3687
|
+
*
|
|
3688
|
+
* `markup` must contain Pango markup.
|
|
3689
|
+
*
|
|
3690
|
+
* This function will take care of setting the
|
|
3691
|
+
* [property@Gtk.Widget:has-tooltip] as a side effect, and of the
|
|
3692
|
+
* default handler for the [signal@Gtk.Widget::query-tooltip] signal.
|
|
3693
|
+
*
|
|
3694
|
+
* See also [method@Gtk.Tooltip.set_markup].
|
|
3695
|
+
* @param markup - the contents of the tooltip for @widget
|
|
3696
|
+
*/
|
|
1814
3697
|
setTooltipMarkup(markup) {
|
|
1815
3698
|
call("libgtk-4.so.1", "gtk_widget_set_tooltip_markup", [
|
|
1816
3699
|
{
|
|
@@ -1824,6 +3707,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1824
3707
|
},
|
|
1825
3708
|
], { type: "undefined" });
|
|
1826
3709
|
}
|
|
3710
|
+
/**
|
|
3711
|
+
* Sets the contents of the tooltip for the widget.
|
|
3712
|
+
*
|
|
3713
|
+
* If `text` contains any markup, it will be escaped.
|
|
3714
|
+
*
|
|
3715
|
+
* This function will take care of setting
|
|
3716
|
+
* [property@Gtk.Widget:has-tooltip] as a side effect,
|
|
3717
|
+
* and of the default handler for the
|
|
3718
|
+
* [signal@Gtk.Widget::query-tooltip] signal.
|
|
3719
|
+
*
|
|
3720
|
+
* See also [method@Gtk.Tooltip.set_text].
|
|
3721
|
+
* @param text - the contents of the tooltip for @widget
|
|
3722
|
+
*/
|
|
1827
3723
|
setTooltipText(text) {
|
|
1828
3724
|
call("libgtk-4.so.1", "gtk_widget_set_tooltip_text", [
|
|
1829
3725
|
{
|
|
@@ -1837,6 +3733,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1837
3733
|
},
|
|
1838
3734
|
], { type: "undefined" });
|
|
1839
3735
|
}
|
|
3736
|
+
/**
|
|
3737
|
+
* Sets the vertical alignment of the widget.
|
|
3738
|
+
* @param align - the vertical alignment
|
|
3739
|
+
*/
|
|
1840
3740
|
setValign(align) {
|
|
1841
3741
|
call("libgtk-4.so.1", "gtk_widget_set_valign", [
|
|
1842
3742
|
{
|
|
@@ -1849,6 +3749,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1849
3749
|
},
|
|
1850
3750
|
], { type: "undefined" });
|
|
1851
3751
|
}
|
|
3752
|
+
/**
|
|
3753
|
+
* Sets whether the widget would like any available extra vertical
|
|
3754
|
+
* space.
|
|
3755
|
+
*
|
|
3756
|
+
* See [method@Gtk.Widget.set_hexpand] for more detail.
|
|
3757
|
+
* @param expand - whether to expand
|
|
3758
|
+
*/
|
|
1852
3759
|
setVexpand(expand) {
|
|
1853
3760
|
call("libgtk-4.so.1", "gtk_widget_set_vexpand", [
|
|
1854
3761
|
{
|
|
@@ -1861,6 +3768,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1861
3768
|
},
|
|
1862
3769
|
], { type: "undefined" });
|
|
1863
3770
|
}
|
|
3771
|
+
/**
|
|
3772
|
+
* Sets whether the vexpand flag will be used.
|
|
3773
|
+
*
|
|
3774
|
+
* See [method@Gtk.Widget.set_hexpand_set] for more detail.
|
|
3775
|
+
* @param set - value for vexpand-set property
|
|
3776
|
+
*/
|
|
1864
3777
|
setVexpandSet(set) {
|
|
1865
3778
|
call("libgtk-4.so.1", "gtk_widget_set_vexpand_set", [
|
|
1866
3779
|
{
|
|
@@ -1873,6 +3786,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1873
3786
|
},
|
|
1874
3787
|
], { type: "undefined" });
|
|
1875
3788
|
}
|
|
3789
|
+
/**
|
|
3790
|
+
* Sets the visibility state of @widget.
|
|
3791
|
+
*
|
|
3792
|
+
* Note that setting this to true doesn’t mean the widget is
|
|
3793
|
+
* actually viewable, see [method@Gtk.Widget.get_visible].
|
|
3794
|
+
* @param visible - whether the widget should be shown or not
|
|
3795
|
+
*/
|
|
1876
3796
|
setVisible(visible) {
|
|
1877
3797
|
call("libgtk-4.so.1", "gtk_widget_set_visible", [
|
|
1878
3798
|
{
|
|
@@ -1885,6 +3805,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1885
3805
|
},
|
|
1886
3806
|
], { type: "undefined" });
|
|
1887
3807
|
}
|
|
3808
|
+
/**
|
|
3809
|
+
* Returns whether the widget should contribute to
|
|
3810
|
+
* the measuring and allocation of its parent.
|
|
3811
|
+
*
|
|
3812
|
+
* This is false for invisible children, but also
|
|
3813
|
+
* for children that have their own surface, such
|
|
3814
|
+
* as [class@Gtk.Popover] instances.
|
|
3815
|
+
*/
|
|
1888
3816
|
shouldLayout() {
|
|
1889
3817
|
return call("libgtk-4.so.1", "gtk_widget_should_layout", [
|
|
1890
3818
|
{
|
|
@@ -1893,6 +3821,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1893
3821
|
},
|
|
1894
3822
|
], { type: "boolean" });
|
|
1895
3823
|
}
|
|
3824
|
+
/**
|
|
3825
|
+
* Flags a widget to be displayed.
|
|
3826
|
+
*
|
|
3827
|
+
* Any widget that isn’t shown will not appear on the screen.
|
|
3828
|
+
*
|
|
3829
|
+
* Remember that you have to show the containers containing a widget,
|
|
3830
|
+
* in addition to the widget itself, before it will appear onscreen.
|
|
3831
|
+
*
|
|
3832
|
+
* When a toplevel widget is shown, it is immediately realized and
|
|
3833
|
+
* mapped; other shown widgets are realized and mapped when their
|
|
3834
|
+
* toplevel widget is realized and mapped.
|
|
3835
|
+
*/
|
|
1896
3836
|
show() {
|
|
1897
3837
|
call("libgtk-4.so.1", "gtk_widget_show", [
|
|
1898
3838
|
{
|
|
@@ -1901,6 +3841,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1901
3841
|
},
|
|
1902
3842
|
], { type: "undefined" });
|
|
1903
3843
|
}
|
|
3844
|
+
/**
|
|
3845
|
+
* Allocates widget with a transformation that translates
|
|
3846
|
+
* the origin to the position in @allocation.
|
|
3847
|
+
*
|
|
3848
|
+
* This is a simple form of [method@Gtk.Widget.allocate].
|
|
3849
|
+
* @param allocation - position and size to be allocated to @widget
|
|
3850
|
+
* @param baseline - the baseline of the child, or -1
|
|
3851
|
+
*/
|
|
1904
3852
|
sizeAllocate(allocation, baseline) {
|
|
1905
3853
|
call("libgtk-4.so.1", "gtk_widget_size_allocate", [
|
|
1906
3854
|
{
|
|
@@ -1917,6 +3865,24 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1917
3865
|
},
|
|
1918
3866
|
], { type: "undefined" });
|
|
1919
3867
|
}
|
|
3868
|
+
/**
|
|
3869
|
+
* Snapshots a child of the widget.
|
|
3870
|
+
*
|
|
3871
|
+
* When a widget receives a call to the snapshot function,
|
|
3872
|
+
* it must send synthetic [vfunc@Gtk.Widget.snapshot] calls
|
|
3873
|
+
* to all children. This function provides a convenient way
|
|
3874
|
+
* of doing this. A widget, when it receives a call to its
|
|
3875
|
+
* [vfunc@Gtk.Widget.snapshot] function, calls
|
|
3876
|
+
* gtk_widget_snapshot_child() once for each child, passing in
|
|
3877
|
+
* the `snapshot` the widget received.
|
|
3878
|
+
*
|
|
3879
|
+
* This function takes care of translating the origin of @snapshot,
|
|
3880
|
+
* and deciding whether the child needs to be snapshot.
|
|
3881
|
+
*
|
|
3882
|
+
* It does nothing for children that implement `GtkNative`.
|
|
3883
|
+
* @param child - a child of @widget
|
|
3884
|
+
* @param snapshot - snapshot as passed to the widget. In particular, no
|
|
3885
|
+
*/
|
|
1920
3886
|
snapshotChild(child, snapshot) {
|
|
1921
3887
|
call("libgtk-4.so.1", "gtk_widget_snapshot_child", [
|
|
1922
3888
|
{
|
|
@@ -1933,6 +3899,18 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1933
3899
|
},
|
|
1934
3900
|
], { type: "undefined" });
|
|
1935
3901
|
}
|
|
3902
|
+
/**
|
|
3903
|
+
* Translates coordinates relative to @src_widget’s allocation
|
|
3904
|
+
* to coordinates relative to @dest_widget’s allocations.
|
|
3905
|
+
*
|
|
3906
|
+
* In order to perform this operation, both widget must share
|
|
3907
|
+
* a common ancestor. If that is not the case, `dest_x` and `dest_y` are set to 0 and false is returned.
|
|
3908
|
+
* @param destWidget - another widget
|
|
3909
|
+
* @param srcX - X position in widget coordinates of @src_widget
|
|
3910
|
+
* @param srcY - Y position in widget coordinates of @src_widget
|
|
3911
|
+
* @param destX - location to store X position in widget coordinates of @dest_widget
|
|
3912
|
+
* @param destY - location to store Y position in widget coordinates of @dest_widget
|
|
3913
|
+
*/
|
|
1936
3914
|
translateCoordinates(destWidget, srcX, srcY, destX, destY) {
|
|
1937
3915
|
return call("libgtk-4.so.1", "gtk_widget_translate_coordinates", [
|
|
1938
3916
|
{
|
|
@@ -1963,6 +3941,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1963
3941
|
},
|
|
1964
3942
|
], { type: "boolean" });
|
|
1965
3943
|
}
|
|
3944
|
+
/**
|
|
3945
|
+
* Triggers a tooltip query on the display of the widget.
|
|
3946
|
+
*/
|
|
1966
3947
|
triggerTooltipQuery() {
|
|
1967
3948
|
call("libgtk-4.so.1", "gtk_widget_trigger_tooltip_query", [
|
|
1968
3949
|
{
|
|
@@ -1971,6 +3952,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1971
3952
|
},
|
|
1972
3953
|
], { type: "undefined" });
|
|
1973
3954
|
}
|
|
3955
|
+
/**
|
|
3956
|
+
* Causes a widget to be unmapped if it’s currently mapped.
|
|
3957
|
+
*
|
|
3958
|
+
* This function is only for use in widget implementations.
|
|
3959
|
+
*/
|
|
1974
3960
|
unmap() {
|
|
1975
3961
|
call("libgtk-4.so.1", "gtk_widget_unmap", [
|
|
1976
3962
|
{
|
|
@@ -1979,6 +3965,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1979
3965
|
},
|
|
1980
3966
|
], { type: "undefined" });
|
|
1981
3967
|
}
|
|
3968
|
+
/**
|
|
3969
|
+
* Removes `widget` from its parent.
|
|
3970
|
+
*
|
|
3971
|
+
* This function is only for use in widget implementations,
|
|
3972
|
+
* typically in dispose.
|
|
3973
|
+
*/
|
|
1982
3974
|
unparent() {
|
|
1983
3975
|
call("libgtk-4.so.1", "gtk_widget_unparent", [
|
|
1984
3976
|
{
|
|
@@ -1987,6 +3979,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1987
3979
|
},
|
|
1988
3980
|
], { type: "undefined" });
|
|
1989
3981
|
}
|
|
3982
|
+
/**
|
|
3983
|
+
* Causes a widget to be unrealized.
|
|
3984
|
+
*
|
|
3985
|
+
* This frees all GDK resources associated with the widget.
|
|
3986
|
+
*
|
|
3987
|
+
* This function is only useful in widget implementations.
|
|
3988
|
+
*/
|
|
1990
3989
|
unrealize() {
|
|
1991
3990
|
call("libgtk-4.so.1", "gtk_widget_unrealize", [
|
|
1992
3991
|
{
|
|
@@ -1995,6 +3994,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
1995
3994
|
},
|
|
1996
3995
|
], { type: "undefined" });
|
|
1997
3996
|
}
|
|
3997
|
+
/**
|
|
3998
|
+
* Turns off flag values for the current widget state.
|
|
3999
|
+
*
|
|
4000
|
+
* See [method@Gtk.Widget.set_state_flags].
|
|
4001
|
+
*
|
|
4002
|
+
* This function is for use in widget implementations.
|
|
4003
|
+
* @param flags - state flags to turn off
|
|
4004
|
+
*/
|
|
1998
4005
|
unsetStateFlags(flags) {
|
|
1999
4006
|
call("libgtk-4.so.1", "gtk_widget_unset_state_flags", [
|
|
2000
4007
|
{
|
|
@@ -2007,6 +4014,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2007
4014
|
},
|
|
2008
4015
|
], { type: "undefined" });
|
|
2009
4016
|
}
|
|
4017
|
+
/**
|
|
4018
|
+
* Requests the user's screen reader to announce the given message.
|
|
4019
|
+
*
|
|
4020
|
+
* This kind of notification is useful for messages that
|
|
4021
|
+
* either have only a visual representation or that are not
|
|
4022
|
+
* exposed visually at all, e.g. a notification about a
|
|
4023
|
+
* successful operation.
|
|
4024
|
+
*
|
|
4025
|
+
* Also, by using this API, you can ensure that the message
|
|
4026
|
+
* does not interrupts the user's current screen reader output.
|
|
4027
|
+
* @param message - the string to announce
|
|
4028
|
+
* @param priority - the priority of the announcement
|
|
4029
|
+
*/
|
|
2010
4030
|
announce(message, priority) {
|
|
2011
4031
|
call("libgtk-4.so.1", "gtk_accessible_announce", [
|
|
2012
4032
|
{
|
|
@@ -2023,6 +4043,11 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2023
4043
|
},
|
|
2024
4044
|
], { type: "undefined" });
|
|
2025
4045
|
}
|
|
4046
|
+
/**
|
|
4047
|
+
* Retrieves the accessible parent for an accessible object.
|
|
4048
|
+
*
|
|
4049
|
+
* This function returns `NULL` for top level widgets.
|
|
4050
|
+
*/
|
|
2026
4051
|
getAccessibleParent() {
|
|
2027
4052
|
const ptr = call("libgtk-4.so.1", "gtk_accessible_get_accessible_parent", [
|
|
2028
4053
|
{
|
|
@@ -2034,6 +4059,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2034
4059
|
return null;
|
|
2035
4060
|
return getObject(ptr, Accessible);
|
|
2036
4061
|
}
|
|
4062
|
+
/**
|
|
4063
|
+
* Retrieves the accessible role of an accessible object.
|
|
4064
|
+
*/
|
|
2037
4065
|
getAccessibleRole() {
|
|
2038
4066
|
return call("libgtk-4.so.1", "gtk_accessible_get_accessible_role", [
|
|
2039
4067
|
{
|
|
@@ -2042,6 +4070,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2042
4070
|
},
|
|
2043
4071
|
], { type: "int", size: 32, unsigned: false });
|
|
2044
4072
|
}
|
|
4073
|
+
/**
|
|
4074
|
+
* Retrieves the implementation for the given accessible object.
|
|
4075
|
+
*/
|
|
2045
4076
|
getAtContext() {
|
|
2046
4077
|
const ptr = call("libgtk-4.so.1", "gtk_accessible_get_at_context", [
|
|
2047
4078
|
{
|
|
@@ -2051,6 +4082,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2051
4082
|
], { type: "gobject", borrowed: true });
|
|
2052
4083
|
return getObject(ptr, ATContext);
|
|
2053
4084
|
}
|
|
4085
|
+
/**
|
|
4086
|
+
* Queries the coordinates and dimensions of this accessible
|
|
4087
|
+
*
|
|
4088
|
+
* This functionality can be overridden by `GtkAccessible`
|
|
4089
|
+
* implementations, e.g. to get the bounds from an ignored
|
|
4090
|
+
* child widget.
|
|
4091
|
+
* @param x - the x coordinate of the top left corner of the accessible
|
|
4092
|
+
* @param y - the y coordinate of the top left corner of the widget
|
|
4093
|
+
* @param width - the width of the accessible object
|
|
4094
|
+
* @param height - the height of the accessible object
|
|
4095
|
+
*/
|
|
2054
4096
|
getBounds(x, y, width, height) {
|
|
2055
4097
|
return call("libgtk-4.so.1", "gtk_accessible_get_bounds", [
|
|
2056
4098
|
{
|
|
@@ -2087,6 +4129,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2087
4129
|
},
|
|
2088
4130
|
], { type: "boolean" });
|
|
2089
4131
|
}
|
|
4132
|
+
/**
|
|
4133
|
+
* Retrieves the first accessible child of an accessible object.
|
|
4134
|
+
*/
|
|
2090
4135
|
getFirstAccessibleChild() {
|
|
2091
4136
|
const ptr = call("libgtk-4.so.1", "gtk_accessible_get_first_accessible_child", [
|
|
2092
4137
|
{
|
|
@@ -2098,6 +4143,9 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2098
4143
|
return null;
|
|
2099
4144
|
return getObject(ptr, Accessible);
|
|
2100
4145
|
}
|
|
4146
|
+
/**
|
|
4147
|
+
* Retrieves the next accessible sibling of an accessible object
|
|
4148
|
+
*/
|
|
2101
4149
|
getNextAccessibleSibling() {
|
|
2102
4150
|
const ptr = call("libgtk-4.so.1", "gtk_accessible_get_next_accessible_sibling", [
|
|
2103
4151
|
{
|
|
@@ -2109,6 +4157,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2109
4157
|
return null;
|
|
2110
4158
|
return getObject(ptr, Accessible);
|
|
2111
4159
|
}
|
|
4160
|
+
/**
|
|
4161
|
+
* Queries a platform state, such as focus.
|
|
4162
|
+
*
|
|
4163
|
+
* This functionality can be overridden by `GtkAccessible`
|
|
4164
|
+
* implementations, e.g. to get platform state from an ignored
|
|
4165
|
+
* child widget, as is the case for `GtkText` wrappers.
|
|
4166
|
+
* @param state - platform state to query
|
|
4167
|
+
*/
|
|
2112
4168
|
getPlatformState(state) {
|
|
2113
4169
|
return call("libgtk-4.so.1", "gtk_accessible_get_platform_state", [
|
|
2114
4170
|
{
|
|
@@ -2121,6 +4177,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2121
4177
|
},
|
|
2122
4178
|
], { type: "boolean" });
|
|
2123
4179
|
}
|
|
4180
|
+
/**
|
|
4181
|
+
* Resets the accessible property to its default value.
|
|
4182
|
+
* @param property - the accessible property
|
|
4183
|
+
*/
|
|
2124
4184
|
resetProperty(property) {
|
|
2125
4185
|
call("libgtk-4.so.1", "gtk_accessible_reset_property", [
|
|
2126
4186
|
{
|
|
@@ -2133,6 +4193,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2133
4193
|
},
|
|
2134
4194
|
], { type: "undefined" });
|
|
2135
4195
|
}
|
|
4196
|
+
/**
|
|
4197
|
+
* Resets the accessible relation to its default value.
|
|
4198
|
+
* @param relation - the accessible relation
|
|
4199
|
+
*/
|
|
2136
4200
|
resetRelation(relation) {
|
|
2137
4201
|
call("libgtk-4.so.1", "gtk_accessible_reset_relation", [
|
|
2138
4202
|
{
|
|
@@ -2145,6 +4209,10 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2145
4209
|
},
|
|
2146
4210
|
], { type: "undefined" });
|
|
2147
4211
|
}
|
|
4212
|
+
/**
|
|
4213
|
+
* Resets the accessible state to its default value.
|
|
4214
|
+
* @param state - the accessible state
|
|
4215
|
+
*/
|
|
2148
4216
|
resetState(state) {
|
|
2149
4217
|
call("libgtk-4.so.1", "gtk_accessible_reset_state", [
|
|
2150
4218
|
{
|
|
@@ -2157,6 +4225,19 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2157
4225
|
},
|
|
2158
4226
|
], { type: "undefined" });
|
|
2159
4227
|
}
|
|
4228
|
+
/**
|
|
4229
|
+
* Sets the parent and sibling of an accessible object.
|
|
4230
|
+
*
|
|
4231
|
+
* This function is meant to be used by accessible implementations that are
|
|
4232
|
+
* not part of the widget hierarchy, and but act as a logical bridge between
|
|
4233
|
+
* widgets. For instance, if a widget creates an object that holds metadata
|
|
4234
|
+
* for each child, and you want that object to implement the `GtkAccessible`
|
|
4235
|
+
* interface, you will use this function to ensure that the parent of each
|
|
4236
|
+
* child widget is the metadata object, and the parent of each metadata
|
|
4237
|
+
* object is the container widget.
|
|
4238
|
+
* @param parent - the parent accessible object
|
|
4239
|
+
* @param nextSibling - the sibling accessible object
|
|
4240
|
+
*/
|
|
2160
4241
|
setAccessibleParent(parent, nextSibling) {
|
|
2161
4242
|
call("libgtk-4.so.1", "gtk_accessible_set_accessible_parent", [
|
|
2162
4243
|
{
|
|
@@ -2175,6 +4256,13 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2175
4256
|
},
|
|
2176
4257
|
], { type: "undefined" });
|
|
2177
4258
|
}
|
|
4259
|
+
/**
|
|
4260
|
+
* Updates the next accessible sibling.
|
|
4261
|
+
*
|
|
4262
|
+
* That might be useful when a new child of a custom accessible
|
|
4263
|
+
* is created, and it needs to be linked to a previous child.
|
|
4264
|
+
* @param newSibling - the new next accessible sibling to set
|
|
4265
|
+
*/
|
|
2178
4266
|
updateNextAccessibleSibling(newSibling) {
|
|
2179
4267
|
call("libgtk-4.so.1", "gtk_accessible_update_next_accessible_sibling", [
|
|
2180
4268
|
{
|
|
@@ -2188,6 +4276,14 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2188
4276
|
},
|
|
2189
4277
|
], { type: "undefined" });
|
|
2190
4278
|
}
|
|
4279
|
+
/**
|
|
4280
|
+
* Informs ATs that the platform state has changed.
|
|
4281
|
+
*
|
|
4282
|
+
* This function should be used by `GtkAccessible` implementations that
|
|
4283
|
+
* have a platform state but are not widgets. Widgets handle platform
|
|
4284
|
+
* states automatically.
|
|
4285
|
+
* @param state - the platform state to update
|
|
4286
|
+
*/
|
|
2191
4287
|
updatePlatformState(state) {
|
|
2192
4288
|
call("libgtk-4.so.1", "gtk_accessible_update_platform_state", [
|
|
2193
4289
|
{
|
|
@@ -2200,6 +4296,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2200
4296
|
},
|
|
2201
4297
|
], { type: "undefined" });
|
|
2202
4298
|
}
|
|
4299
|
+
/**
|
|
4300
|
+
* Updates an array of accessible properties.
|
|
4301
|
+
*
|
|
4302
|
+
* This function should be called by `GtkWidget` types whenever an accessible
|
|
4303
|
+
* property change must be communicated to assistive technologies.
|
|
4304
|
+
*
|
|
4305
|
+
* This function is meant to be used by language bindings.
|
|
4306
|
+
* @param nProperties - the number of accessible properties to set
|
|
4307
|
+
* @param properties - an array of accessible properties
|
|
4308
|
+
* @param values - an array of `GValues`, one for each property
|
|
4309
|
+
*/
|
|
2203
4310
|
updatePropertyValue(nProperties, properties, values) {
|
|
2204
4311
|
call("libgtk-4.so.1", "gtk_accessible_update_property_value", [
|
|
2205
4312
|
{
|
|
@@ -2230,6 +4337,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2230
4337
|
},
|
|
2231
4338
|
], { type: "undefined" });
|
|
2232
4339
|
}
|
|
4340
|
+
/**
|
|
4341
|
+
* Updates an array of accessible relations.
|
|
4342
|
+
*
|
|
4343
|
+
* This function should be called by `GtkWidget` types whenever an accessible
|
|
4344
|
+
* relation change must be communicated to assistive technologies.
|
|
4345
|
+
*
|
|
4346
|
+
* This function is meant to be used by language bindings.
|
|
4347
|
+
* @param nRelations - the number of accessible relations to set
|
|
4348
|
+
* @param relations - an array of accessible relations
|
|
4349
|
+
* @param values - an array of `GValues`, one for each relation
|
|
4350
|
+
*/
|
|
2233
4351
|
updateRelationValue(nRelations, relations, values) {
|
|
2234
4352
|
call("libgtk-4.so.1", "gtk_accessible_update_relation_value", [
|
|
2235
4353
|
{
|
|
@@ -2260,6 +4378,17 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2260
4378
|
},
|
|
2261
4379
|
], { type: "undefined" });
|
|
2262
4380
|
}
|
|
4381
|
+
/**
|
|
4382
|
+
* Updates an array of accessible states.
|
|
4383
|
+
*
|
|
4384
|
+
* This function should be called by `GtkWidget` types whenever an accessible
|
|
4385
|
+
* state change must be communicated to assistive technologies.
|
|
4386
|
+
*
|
|
4387
|
+
* This function is meant to be used by language bindings.
|
|
4388
|
+
* @param nStates - the number of accessible states to set
|
|
4389
|
+
* @param states - an array of accessible states
|
|
4390
|
+
* @param values - an array of `GValues`, one for each state
|
|
4391
|
+
*/
|
|
2263
4392
|
updateStateValue(nStates, states, values) {
|
|
2264
4393
|
call("libgtk-4.so.1", "gtk_accessible_update_state_value", [
|
|
2265
4394
|
{
|
|
@@ -2290,6 +4419,12 @@ export class Widget extends GObject.InitiallyUnowned {
|
|
|
2290
4419
|
},
|
|
2291
4420
|
], { type: "undefined" });
|
|
2292
4421
|
}
|
|
4422
|
+
/**
|
|
4423
|
+
* Gets the ID of the `buildable` object.
|
|
4424
|
+
*
|
|
4425
|
+
* `GtkBuilder` sets the name based on the ID attribute
|
|
4426
|
+
* of the `<object>` tag used to construct the @buildable.
|
|
4427
|
+
*/
|
|
2293
4428
|
getBuildableId() {
|
|
2294
4429
|
return call("libgtk-4.so.1", "gtk_buildable_get_buildable_id", [
|
|
2295
4430
|
{
|