Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -27,7 +28,6 @@ type ColorState struct { | |||
| 27 | 28 | var xColorStateGLibType func() types.GType | |
| 28 | 29 | ||
| 29 | 30 | func ColorStateGLibType() types.GType { | |
| 30 | - | core.LazyRegister(&xColorStateGLibType, "GDK", "gdk_color_state_get_type", false) | |
| 31 | 31 | return xColorStateGLibType() | |
| 32 | 32 | } | |
| 33 | 33 | ||
| @@ -51,7 +51,6 @@ var xColorStateCreateCicpParams func(uintptr) uintptr | |||
| 51 | 51 | // represented with Cicp parameters. If that is the case, | |
| 52 | 52 | // this function returns `NULL`. | |
| 53 | 53 | func (x *ColorState) CreateCicpParams() *CicpParams { | |
| 54 | - | core.LazyRegister(&xColorStateCreateCicpParams, "GDK", "gdk_color_state_create_cicp_params", false) | |
| 55 | 54 | var cls *CicpParams | |
| 56 | 55 | ||
| 57 | 56 | cret := xColorStateCreateCicpParams(x.GoPointer()) | |
| @@ -72,8 +71,6 @@ var xColorStateEqual func(uintptr, *ColorState) bool | |||
| 72 | 71 | // describing the same color state may compare not equal. However, different | |
| 73 | 72 | // color states will never compare equal. | |
| 74 | 73 | func (x *ColorState) Equal(OtherVar *ColorState) bool { | |
| 75 | - | core.LazyRegister(&xColorStateEqual, "GDK", "gdk_color_state_equal", false) | |
| 76 | - | ||
| 77 | 74 | cret := xColorStateEqual(x.GoPointer(), OtherVar) | |
| 78 | 75 | return cret | |
| 79 | 76 | } | |
| @@ -85,8 +82,6 @@ var xColorStateEquivalent func(uintptr, *ColorState) bool | |||
| 85 | 82 | // Two objects that represent the same color state should be equivalent, | |
| 86 | 83 | // even though they may not be equal in the sense of [method@Gdk.ColorState.equal]. | |
| 87 | 84 | func (x *ColorState) Equivalent(OtherVar *ColorState) bool { | |
| 88 | - | core.LazyRegister(&xColorStateEquivalent, "GDK", "gdk_color_state_equivalent", false) | |
| 89 | - | ||
| 90 | 85 | cret := xColorStateEquivalent(x.GoPointer(), OtherVar) | |
| 91 | 86 | return cret | |
| 92 | 87 | } | |
| @@ -95,8 +90,6 @@ var xColorStateRef func(uintptr) uintptr | |||
| 95 | 90 | ||
| 96 | 91 | // Increase the reference count of @self. | |
| 97 | 92 | func (x *ColorState) Ref() *ColorState { | |
| 98 | - | core.LazyRegister(&xColorStateRef, "GDK", "gdk_color_state_ref", false) | |
| 99 | - | ||
| 100 | 93 | cret := xColorStateRef(x.GoPointer()) | |
| 101 | 94 | if cret == 0 { | |
| 102 | 95 | return nil | |
| @@ -111,8 +104,6 @@ var xColorStateUnref func(uintptr) | |||
| 111 | 104 | // Unless @self is static, it will be freed | |
| 112 | 105 | // when the reference count reaches zero. | |
| 113 | 106 | func (x *ColorState) Unref() { | |
| 114 | - | core.LazyRegister(&xColorStateUnref, "GDK", "gdk_color_state_unref", false) | |
| 115 | - | ||
| 116 | 107 | xColorStateUnref(x.GoPointer()) | |
| 117 | 108 | } | |
| 118 | 109 | ||
| @@ -154,7 +145,6 @@ type ContentFormats struct { | |||
| 154 | 145 | var xContentFormatsGLibType func() types.GType | |
| 155 | 146 | ||
| 156 | 147 | func ContentFormatsGLibType() types.GType { | |
| 157 | - | core.LazyRegister(&xContentFormatsGLibType, "GDK", "gdk_content_formats_get_type", false) | |
| 158 | 148 | return xContentFormatsGLibType() | |
| 159 | 149 | } | |
| 160 | 150 | ||
| @@ -178,8 +168,6 @@ var xNewContentFormats func([]string, uint) uintptr | |||
| 178 | 168 | // behavior of the return value is undefined. If you cannot guarantee | |
| 179 | 169 | // this, use [struct@Gdk.ContentFormatsBuilder] instead. | |
| 180 | 170 | func NewContentFormats(MimeTypesVar []string, NMimeTypesVar uint) *ContentFormats { | |
| 181 | - | core.LazyRegister(&xNewContentFormats, "GDK", "gdk_content_formats_new", false) | |
| 182 | - | ||
| 183 | 171 | cret := xNewContentFormats(MimeTypesVar, NMimeTypesVar) | |
| 184 | 172 | if cret == 0 { | |
| 185 | 173 | return nil | |
| @@ -191,8 +179,6 @@ var xNewContentFormatsForGtype func(types.GType) uintptr | |||
| 191 | 179 | ||
| 192 | 180 | // Creates a new `GdkContentFormats` for a given `GType`. | |
| 193 | 181 | func NewContentFormatsForGtype(TypeVar types.GType) *ContentFormats { | |
| 194 | - | core.LazyRegister(&xNewContentFormatsForGtype, "GDK", "gdk_content_formats_new_for_gtype", false) | |
| 195 | - | ||
| 196 | 182 | cret := xNewContentFormatsForGtype(TypeVar) | |
| 197 | 183 | if cret == 0 { | |
| 198 | 184 | return nil | |
| @@ -204,8 +190,6 @@ var xContentFormatsContainGtype func(uintptr, types.GType) bool | |||
| 204 | 190 | ||
| 205 | 191 | // Checks if a given `GType` is part of the given @formats. | |
| 206 | 192 | func (x *ContentFormats) ContainGtype(TypeVar types.GType) bool { | |
| 207 | - | core.LazyRegister(&xContentFormatsContainGtype, "GDK", "gdk_content_formats_contain_gtype", false) | |
| 208 | - | ||
| 209 | 193 | cret := xContentFormatsContainGtype(x.GoPointer(), TypeVar) | |
| 210 | 194 | return cret | |
| 211 | 195 | } | |
| @@ -214,8 +198,6 @@ var xContentFormatsContainMimeType func(uintptr, string) bool | |||
| 214 | 198 | ||
| 215 | 199 | // Checks if a given mime type is part of the given @formats. | |
| 216 | 200 | func (x *ContentFormats) ContainMimeType(MimeTypeVar string) bool { | |
| 217 | - | core.LazyRegister(&xContentFormatsContainMimeType, "GDK", "gdk_content_formats_contain_mime_type", false) | |
| 218 | - | ||
| 219 | 201 | cret := xContentFormatsContainMimeType(x.GoPointer(), MimeTypeVar) | |
| 220 | 202 | return cret | |
| 221 | 203 | } | |
| @@ -227,8 +209,6 @@ var xContentFormatsGetGtypes func(uintptr, *uint) uintptr | |||
| 227 | 209 | // Note that @formats may not contain any `GType`s, in particular when | |
| 228 | 210 | // they are empty. In that case %NULL will be returned. | |
| 229 | 211 | func (x *ContentFormats) GetGtypes(NGtypesVar *uint) uintptr { | |
| 230 | - | core.LazyRegister(&xContentFormatsGetGtypes, "GDK", "gdk_content_formats_get_gtypes", false) | |
| 231 | - | ||
| 232 | 212 | cret := xContentFormatsGetGtypes(x.GoPointer(), NGtypesVar) | |
| 233 | 213 | return cret | |
| 234 | 214 | } | |
| @@ -240,8 +220,6 @@ var xContentFormatsGetMimeTypes func(uintptr, *uint) []string | |||
| 240 | 220 | // Note that @formats may not contain any mime types, in particular | |
| 241 | 221 | // when they are empty. In that case %NULL will be returned. | |
| 242 | 222 | func (x *ContentFormats) GetMimeTypes(NMimeTypesVar *uint) []string { | |
| 243 | - | core.LazyRegister(&xContentFormatsGetMimeTypes, "GDK", "gdk_content_formats_get_mime_types", false) | |
| 244 | - | ||
| 245 | 223 | cret := xContentFormatsGetMimeTypes(x.GoPointer(), NMimeTypesVar) | |
| 246 | 224 | return cret | |
| 247 | 225 | } | |
| @@ -250,8 +228,6 @@ var xContentFormatsIsEmpty func(uintptr) bool | |||
| 250 | 228 | ||
| 251 | 229 | // Returns whether the content formats contain any formats. | |
| 252 | 230 | func (x *ContentFormats) IsEmpty() bool { | |
| 253 | - | core.LazyRegister(&xContentFormatsIsEmpty, "GDK", "gdk_content_formats_is_empty", false) | |
| 254 | - | ||
| 255 | 231 | cret := xContentFormatsIsEmpty(x.GoPointer()) | |
| 256 | 232 | return cret | |
| 257 | 233 | } | |
| @@ -260,8 +236,6 @@ var xContentFormatsMatch func(uintptr, *ContentFormats) bool | |||
| 260 | 236 | ||
| 261 | 237 | // Checks if @first and @second have any matching formats. | |
| 262 | 238 | func (x *ContentFormats) Match(SecondVar *ContentFormats) bool { | |
| 263 | - | core.LazyRegister(&xContentFormatsMatch, "GDK", "gdk_content_formats_match", false) | |
| 264 | - | ||
| 265 | 239 | cret := xContentFormatsMatch(x.GoPointer(), SecondVar) | |
| 266 | 240 | return cret | |
| 267 | 241 | } | |
| @@ -273,8 +247,6 @@ var xContentFormatsMatchGtype func(uintptr, *ContentFormats) types.GType | |||
| 273 | 247 | // | |
| 274 | 248 | // If no matching `GType` is found, %G_TYPE_INVALID is returned. | |
| 275 | 249 | func (x *ContentFormats) MatchGtype(SecondVar *ContentFormats) types.GType { | |
| 276 | - | core.LazyRegister(&xContentFormatsMatchGtype, "GDK", "gdk_content_formats_match_gtype", false) | |
| 277 | - | ||
| 278 | 250 | cret := xContentFormatsMatchGtype(x.GoPointer(), SecondVar) | |
| 279 | 251 | return cret | |
| 280 | 252 | } | |
| @@ -286,8 +258,6 @@ var xContentFormatsMatchMimeType func(uintptr, *ContentFormats) string | |||
| 286 | 258 | // | |
| 287 | 259 | // If no matching mime type is found, %NULL is returned. | |
| 288 | 260 | func (x *ContentFormats) MatchMimeType(SecondVar *ContentFormats) string { | |
| 289 | - | core.LazyRegister(&xContentFormatsMatchMimeType, "GDK", "gdk_content_formats_match_mime_type", false) | |
| 290 | - | ||
| 291 | 261 | cret := xContentFormatsMatchMimeType(x.GoPointer(), SecondVar) | |
| 292 | 262 | return cret | |
| 293 | 263 | } | |
| @@ -299,8 +269,6 @@ var xContentFormatsPrint func(uintptr, *glib.String) | |||
| 299 | 269 | // The result of this function can later be parsed with | |
| 300 | 270 | // [func@Gdk.ContentFormats.parse]. | |
| 301 | 271 | func (x *ContentFormats) Print(StringVar *glib.String) { | |
| 302 | - | core.LazyRegister(&xContentFormatsPrint, "GDK", "gdk_content_formats_print", false) | |
| 303 | - | ||
| 304 | 272 | xContentFormatsPrint(x.GoPointer(), StringVar) | |
| 305 | 273 | } | |
| 306 | 274 | ||
| @@ -308,8 +276,6 @@ var xContentFormatsRef func(uintptr) uintptr | |||
| 308 | 276 | ||
| 309 | 277 | // Increases the reference count of a `GdkContentFormats` by one. | |
| 310 | 278 | func (x *ContentFormats) Ref() *ContentFormats { | |
| 311 | - | core.LazyRegister(&xContentFormatsRef, "GDK", "gdk_content_formats_ref", false) | |
| 312 | - | ||
| 313 | 279 | cret := xContentFormatsRef(x.GoPointer()) | |
| 314 | 280 | if cret == 0 { | |
| 315 | 281 | return nil | |
| @@ -326,8 +292,6 @@ var xContentFormatsToString func(uintptr) string | |||
| 326 | 292 | // This is a small wrapper around [method@Gdk.ContentFormats.print] | |
| 327 | 293 | // to help when debugging. | |
| 328 | 294 | func (x *ContentFormats) ToString() string { | |
| 329 | - | core.LazyRegister(&xContentFormatsToString, "GDK", "gdk_content_formats_to_string", false) | |
| 330 | - | ||
| 331 | 295 | cret := xContentFormatsToString(x.GoPointer()) | |
| 332 | 296 | return cret | |
| 333 | 297 | } | |
| @@ -337,8 +301,6 @@ var xContentFormatsUnion func(uintptr, *ContentFormats) uintptr | |||
| 337 | 301 | // Append all missing types from @second to @first, in the order | |
| 338 | 302 | // they had in @second. | |
| 339 | 303 | func (x *ContentFormats) Union(SecondVar *ContentFormats) *ContentFormats { | |
| 340 | - | core.LazyRegister(&xContentFormatsUnion, "GDK", "gdk_content_formats_union", false) | |
| 341 | - | ||
| 342 | 304 | cret := xContentFormatsUnion(x.GoPointer(), SecondVar) | |
| 343 | 305 | if cret == 0 { | |
| 344 | 306 | return nil | |
| @@ -351,8 +313,6 @@ var xContentFormatsUnionDeserializeGtypes func(uintptr) uintptr | |||
| 351 | 313 | // Add GTypes for mime types in @formats for which deserializers are | |
| 352 | 314 | // registered. | |
| 353 | 315 | func (x *ContentFormats) UnionDeserializeGtypes() *ContentFormats { | |
| 354 | - | core.LazyRegister(&xContentFormatsUnionDeserializeGtypes, "GDK", "gdk_content_formats_union_deserialize_gtypes", false) | |
| 355 | - | ||
| 356 | 316 | cret := xContentFormatsUnionDeserializeGtypes(x.GoPointer()) | |
| 357 | 317 | if cret == 0 { | |
| 358 | 318 | return nil | |
| @@ -365,8 +325,6 @@ var xContentFormatsUnionDeserializeMimeTypes func(uintptr) uintptr | |||
| 365 | 325 | // Add mime types for GTypes in @formats for which deserializers are | |
| 366 | 326 | // registered. | |
| 367 | 327 | func (x *ContentFormats) UnionDeserializeMimeTypes() *ContentFormats { | |
| 368 | - | core.LazyRegister(&xContentFormatsUnionDeserializeMimeTypes, "GDK", "gdk_content_formats_union_deserialize_mime_types", false) | |
| 369 | - | ||
| 370 | 328 | cret := xContentFormatsUnionDeserializeMimeTypes(x.GoPointer()) | |
| 371 | 329 | if cret == 0 { | |
| 372 | 330 | return nil | |
| @@ -379,8 +337,6 @@ var xContentFormatsUnionSerializeGtypes func(uintptr) uintptr | |||
| 379 | 337 | // Add GTypes for the mime types in @formats for which serializers are | |
| 380 | 338 | // registered. | |
| 381 | 339 | func (x *ContentFormats) UnionSerializeGtypes() *ContentFormats { | |
| 382 | - | core.LazyRegister(&xContentFormatsUnionSerializeGtypes, "GDK", "gdk_content_formats_union_serialize_gtypes", false) | |
| 383 | - | ||
| 384 | 340 | cret := xContentFormatsUnionSerializeGtypes(x.GoPointer()) | |
| 385 | 341 | if cret == 0 { | |
| 386 | 342 | return nil | |
| @@ -393,8 +349,6 @@ var xContentFormatsUnionSerializeMimeTypes func(uintptr) uintptr | |||
| 393 | 349 | // Add mime types for GTypes in @formats for which serializers are | |
| 394 | 350 | // registered. | |
| 395 | 351 | func (x *ContentFormats) UnionSerializeMimeTypes() *ContentFormats { | |
| 396 | - | core.LazyRegister(&xContentFormatsUnionSerializeMimeTypes, "GDK", "gdk_content_formats_union_serialize_mime_types", false) | |
| 397 | - | ||
| 398 | 352 | cret := xContentFormatsUnionSerializeMimeTypes(x.GoPointer()) | |
| 399 | 353 | if cret == 0 { | |
| 400 | 354 | return nil | |
| @@ -408,8 +362,6 @@ var xContentFormatsUnref func(uintptr) | |||
| 408 | 362 | // | |
| 409 | 363 | // If the resulting reference count is zero, frees the formats. | |
| 410 | 364 | func (x *ContentFormats) Unref() { | |
| 411 | - | core.LazyRegister(&xContentFormatsUnref, "GDK", "gdk_content_formats_unref", false) | |
| 412 | - | ||
| 413 | 365 | xContentFormatsUnref(x.GoPointer()) | |
| 414 | 366 | } | |
| 415 | 367 | ||
| @@ -439,7 +391,6 @@ type DmabufFormats struct { | |||
| 439 | 391 | var xDmabufFormatsGLibType func() types.GType | |
| 440 | 392 | ||
| 441 | 393 | func DmabufFormatsGLibType() types.GType { | |
| 442 | - | core.LazyRegister(&xDmabufFormatsGLibType, "GDK", "gdk_dmabuf_formats_get_type", false) | |
| 443 | 394 | return xDmabufFormatsGLibType() | |
| 444 | 395 | } | |
| 445 | 396 | ||
| @@ -459,8 +410,6 @@ var xDmabufFormatsContains func(uintptr, uint32, uint64) bool | |||
| 459 | 410 | ||
| 460 | 411 | // Returns whether a given format is contained in @formats. | |
| 461 | 412 | func (x *DmabufFormats) Contains(FourccVar uint32, ModifierVar uint64) bool { | |
| 462 | - | core.LazyRegister(&xDmabufFormatsContains, "GDK", "gdk_dmabuf_formats_contains", false) | |
| 463 | - | ||
| 464 | 413 | cret := xDmabufFormatsContains(x.GoPointer(), FourccVar, ModifierVar) | |
| 465 | 414 | return cret | |
| 466 | 415 | } | |
| @@ -470,8 +419,6 @@ var xDmabufFormatsEqual func(uintptr, *DmabufFormats) bool | |||
| 470 | 419 | // Returns whether @formats1 and @formats2 contain the | |
| 471 | 420 | // same dmabuf formats, in the same order. | |
| 472 | 421 | func (x *DmabufFormats) Equal(Formats2Var *DmabufFormats) bool { | |
| 473 | - | core.LazyRegister(&xDmabufFormatsEqual, "GDK", "gdk_dmabuf_formats_equal", false) | |
| 474 | - | ||
| 475 | 422 | cret := xDmabufFormatsEqual(x.GoPointer(), Formats2Var) | |
| 476 | 423 | return cret | |
| 477 | 424 | } | |
| @@ -481,8 +428,6 @@ var xDmabufFormatsGetFormat func(uintptr, uint, *uint32, *uint64) | |||
| 481 | 428 | // Gets the fourcc code and modifier for a format | |
| 482 | 429 | // that is contained in @formats. | |
| 483 | 430 | func (x *DmabufFormats) GetFormat(IdxVar uint, FourccVar *uint32, ModifierVar *uint64) { | |
| 484 | - | core.LazyRegister(&xDmabufFormatsGetFormat, "GDK", "gdk_dmabuf_formats_get_format", false) | |
| 485 | - | ||
| 486 | 431 | xDmabufFormatsGetFormat(x.GoPointer(), IdxVar, FourccVar, ModifierVar) | |
| 487 | 432 | } | |
| 488 | 433 | ||
| @@ -495,8 +440,6 @@ var xDmabufFormatsGetNFormats func(uintptr) uint | |||
| 495 | 440 | // platforms, [method@Gdk.DmabufFormats.get_n_formats] will | |
| 496 | 441 | // always return zero. | |
| 497 | 442 | func (x *DmabufFormats) GetNFormats() uint { | |
| 498 | - | core.LazyRegister(&xDmabufFormatsGetNFormats, "GDK", "gdk_dmabuf_formats_get_n_formats", false) | |
| 499 | - | ||
| 500 | 443 | cret := xDmabufFormatsGetNFormats(x.GoPointer()) | |
| 501 | 444 | return cret | |
| 502 | 445 | } | |
| @@ -505,8 +448,6 @@ var xDmabufFormatsRef func(uintptr) uintptr | |||
| 505 | 448 | ||
| 506 | 449 | // Increases the reference count of @formats. | |
| 507 | 450 | func (x *DmabufFormats) Ref() *DmabufFormats { | |
| 508 | - | core.LazyRegister(&xDmabufFormatsRef, "GDK", "gdk_dmabuf_formats_ref", false) | |
| 509 | - | ||
| 510 | 451 | cret := xDmabufFormatsRef(x.GoPointer()) | |
| 511 | 452 | if cret == 0 { | |
| 512 | 453 | return nil | |
| @@ -521,8 +462,6 @@ var xDmabufFormatsUnref func(uintptr) | |||
| 521 | 462 | // When the reference count reaches zero, | |
| 522 | 463 | // the object is freed. | |
| 523 | 464 | func (x *DmabufFormats) Unref() { | |
| 524 | - | core.LazyRegister(&xDmabufFormatsUnref, "GDK", "gdk_dmabuf_formats_unref", false) | |
| 525 | - | ||
| 526 | 465 | xDmabufFormatsUnref(x.GoPointer()) | |
| 527 | 466 | } | |
| 528 | 467 | ||
| @@ -579,7 +518,6 @@ type Rectangle struct { | |||
| 579 | 518 | var xRectangleGLibType func() types.GType | |
| 580 | 519 | ||
| 581 | 520 | func RectangleGLibType() types.GType { | |
| 582 | - | core.LazyRegister(&xRectangleGLibType, "GDK", "gdk_rectangle_get_type", false) | |
| 583 | 521 | return xRectangleGLibType() | |
| 584 | 522 | } | |
| 585 | 523 | ||
| @@ -599,8 +537,6 @@ var xRectangleContainsPoint func(uintptr, int, int) bool | |||
| 599 | 537 | ||
| 600 | 538 | // Returns %TRUE if @rect contains the point described by @x and @y. | |
| 601 | 539 | func (x *Rectangle) ContainsPoint(XVar int, YVar int) bool { | |
| 602 | - | core.LazyRegister(&xRectangleContainsPoint, "GDK", "gdk_rectangle_contains_point", false) | |
| 603 | - | ||
| 604 | 540 | cret := xRectangleContainsPoint(x.GoPointer(), XVar, YVar) | |
| 605 | 541 | return cret | |
| 606 | 542 | } | |
| @@ -609,8 +545,6 @@ var xRectangleEqual func(uintptr, *Rectangle) bool | |||
| 609 | 545 | ||
| 610 | 546 | // Checks if the two given rectangles are equal. | |
| 611 | 547 | func (x *Rectangle) Equal(Rect2Var *Rectangle) bool { | |
| 612 | - | core.LazyRegister(&xRectangleEqual, "GDK", "gdk_rectangle_equal", false) | |
| 613 | - | ||
| 614 | 548 | cret := xRectangleEqual(x.GoPointer(), Rect2Var) | |
| 615 | 549 | return cret | |
| 616 | 550 | } | |
| @@ -625,8 +559,6 @@ var xRectangleIntersect func(uintptr, *Rectangle, *Rectangle) bool | |||
| 625 | 559 | // in whether the rectangles intersect, but not in the intersecting area | |
| 626 | 560 | // itself, pass %NULL for @dest. | |
| 627 | 561 | func (x *Rectangle) Intersect(Src2Var *Rectangle, DestVar *Rectangle) bool { | |
| 628 | - | core.LazyRegister(&xRectangleIntersect, "GDK", "gdk_rectangle_intersect", false) | |
| 629 | - | ||
| 630 | 562 | cret := xRectangleIntersect(x.GoPointer(), Src2Var, DestVar) | |
| 631 | 563 | return cret | |
| 632 | 564 | } | |
| @@ -642,8 +574,6 @@ var xRectangleUnion func(uintptr, *Rectangle, *Rectangle) | |||
| 642 | 574 | // Note that this function does not ignore 'empty' rectangles (ie. with | |
| 643 | 575 | // zero width or height). | |
| 644 | 576 | func (x *Rectangle) Union(Src2Var *Rectangle, DestVar *Rectangle) { | |
| 645 | - | core.LazyRegister(&xRectangleUnion, "GDK", "gdk_rectangle_union", false) | |
| 646 | - | ||
| 647 | 577 | xRectangleUnion(x.GoPointer(), Src2Var, DestVar) | |
| 648 | 578 | } | |
| 649 | 579 | ||
| @@ -663,7 +593,6 @@ type TextureDownloader struct { | |||
| 663 | 593 | var xTextureDownloaderGLibType func() types.GType | |
| 664 | 594 | ||
| 665 | 595 | func TextureDownloaderGLibType() types.GType { | |
| 666 | - | core.LazyRegister(&xTextureDownloaderGLibType, "GDK", "gdk_texture_downloader_get_type", false) | |
| 667 | 596 | return xTextureDownloaderGLibType() | |
| 668 | 597 | } | |
| 669 | 598 | ||
| @@ -686,8 +615,6 @@ var xNewTextureDownloader func(uintptr) uintptr | |||
| 686 | 615 | // By default, the downloader will convert the data to | |
| 687 | 616 | // the default memory format, and to the sRGB color state. | |
| 688 | 617 | func NewTextureDownloader(TextureVar *Texture) *TextureDownloader { | |
| 689 | - | core.LazyRegister(&xNewTextureDownloader, "GDK", "gdk_texture_downloader_new", false) | |
| 690 | - | ||
| 691 | 618 | cret := xNewTextureDownloader(TextureVar.GoPointer()) | |
| 692 | 619 | if cret == 0 { | |
| 693 | 620 | return nil | |
| @@ -701,8 +628,6 @@ var xTextureDownloaderCopy func(uintptr) uintptr | |||
| 701 | 628 | // | |
| 702 | 629 | // This function is meant for language bindings. | |
| 703 | 630 | func (x *TextureDownloader) Copy() *TextureDownloader { | |
| 704 | - | core.LazyRegister(&xTextureDownloaderCopy, "GDK", "gdk_texture_downloader_copy", false) | |
| 705 | - | ||
| 706 | 631 | cret := xTextureDownloaderCopy(x.GoPointer()) | |
| 707 | 632 | if cret == 0 { | |
| 708 | 633 | return nil | |
| @@ -723,8 +648,6 @@ var xTextureDownloaderDownloadBytes func(uintptr, *uint) uintptr | |||
| 723 | 648 | // This function cannot be used with a multiplanar format. Use | |
| 724 | 649 | // [method@Gdk.TextureDownloader.download_bytes_with_planes] for that purpose. | |
| 725 | 650 | func (x *TextureDownloader) DownloadBytes(OutStrideVar *uint) *glib.Bytes { | |
| 726 | - | core.LazyRegister(&xTextureDownloaderDownloadBytes, "GDK", "gdk_texture_downloader_download_bytes", false) | |
| 727 | - | ||
| 728 | 651 | cret := xTextureDownloaderDownloadBytes(x.GoPointer(), OutStrideVar) | |
| 729 | 652 | if cret == 0 { | |
| 730 | 653 | return nil | |
| @@ -740,8 +663,6 @@ var xTextureDownloaderDownloadBytesWithPlanes func(uintptr, *[4]uint, *[4]uint) | |||
| 740 | 663 | // If the format does have less than 4 planes, the remaining offsets and strides will be | |
| 741 | 664 | // set to `0`. | |
| 742 | 665 | func (x *TextureDownloader) DownloadBytesWithPlanes(OutOffsetsVar *[4]uint, OutStridesVar *[4]uint) *glib.Bytes { | |
| 743 | - | core.LazyRegister(&xTextureDownloaderDownloadBytesWithPlanes, "GDK", "gdk_texture_downloader_download_bytes_with_planes", false) | |
| 744 | - | ||
| 745 | 666 | cret := xTextureDownloaderDownloadBytesWithPlanes(x.GoPointer(), OutOffsetsVar, OutStridesVar) | |
| 746 | 667 | if cret == 0 { | |
| 747 | 668 | return nil | |
| @@ -755,8 +676,6 @@ var xTextureDownloaderDownloadInto func(uintptr, []byte, uint) | |||
| 755 | 676 | // | |
| 756 | 677 | // This function cannot be used with a multiplanar format. | |
| 757 | 678 | func (x *TextureDownloader) DownloadInto(DataVar []byte, StrideVar uint) { | |
| 758 | - | core.LazyRegister(&xTextureDownloaderDownloadInto, "GDK", "gdk_texture_downloader_download_into", false) | |
| 759 | - | ||
| 760 | 679 | xTextureDownloaderDownloadInto(x.GoPointer(), DataVar, StrideVar) | |
| 761 | 680 | } | |
| 762 | 681 | ||
| @@ -764,8 +683,6 @@ var xTextureDownloaderFree func(uintptr) | |||
| 764 | 683 | ||
| 765 | 684 | // Frees the given downloader and all its associated resources. | |
| 766 | 685 | func (x *TextureDownloader) Free() { | |
| 767 | - | core.LazyRegister(&xTextureDownloaderFree, "GDK", "gdk_texture_downloader_free", false) | |
| 768 | - | ||
| 769 | 686 | xTextureDownloaderFree(x.GoPointer()) | |
| 770 | 687 | } | |
| 771 | 688 | ||
| @@ -773,8 +690,6 @@ var xTextureDownloaderGetColorState func(uintptr) uintptr | |||
| 773 | 690 | ||
| 774 | 691 | // Gets the color state that the data will be downloaded in. | |
| 775 | 692 | func (x *TextureDownloader) GetColorState() *ColorState { | |
| 776 | - | core.LazyRegister(&xTextureDownloaderGetColorState, "GDK", "gdk_texture_downloader_get_color_state", false) | |
| 777 | - | ||
| 778 | 693 | cret := xTextureDownloaderGetColorState(x.GoPointer()) | |
| 779 | 694 | if cret == 0 { | |
| 780 | 695 | return nil | |
| @@ -786,8 +701,6 @@ var xTextureDownloaderGetFormat func(uintptr) MemoryFormat | |||
| 786 | 701 | ||
| 787 | 702 | // Gets the format that the data will be downloaded in. | |
| 788 | 703 | func (x *TextureDownloader) GetFormat() MemoryFormat { | |
| 789 | - | core.LazyRegister(&xTextureDownloaderGetFormat, "GDK", "gdk_texture_downloader_get_format", false) | |
| 790 | - | ||
| 791 | 704 | cret := xTextureDownloaderGetFormat(x.GoPointer()) | |
| 792 | 705 | return cret | |
| 793 | 706 | } | |
| @@ -796,7 +709,6 @@ var xTextureDownloaderGetTexture func(uintptr) uintptr | |||
| 796 | 709 | ||
| 797 | 710 | // Gets the texture that the downloader will download. | |
| 798 | 711 | func (x *TextureDownloader) GetTexture() *Texture { | |
| 799 | - | core.LazyRegister(&xTextureDownloaderGetTexture, "GDK", "gdk_texture_downloader_get_texture", false) | |
| 800 | 712 | var cls *Texture | |
| 801 | 713 | ||
| 802 | 714 | cret := xTextureDownloaderGetTexture(x.GoPointer()) | |
| @@ -817,8 +729,6 @@ var xTextureDownloaderSetColorState func(uintptr, *ColorState) | |||
| 817 | 729 | // By default, the sRGB colorstate returned by [func@ColorState.get_srgb] | |
| 818 | 730 | // is used. | |
| 819 | 731 | func (x *TextureDownloader) SetColorState(ColorStateVar *ColorState) { | |
| 820 | - | core.LazyRegister(&xTextureDownloaderSetColorState, "GDK", "gdk_texture_downloader_set_color_state", false) | |
| 821 | - | ||
| 822 | 732 | xTextureDownloaderSetColorState(x.GoPointer(), ColorStateVar) | |
| 823 | 733 | } | |
| 824 | 734 | ||
| @@ -828,8 +738,6 @@ var xTextureDownloaderSetFormat func(uintptr, MemoryFormat) | |||
| 828 | 738 | // | |
| 829 | 739 | // By default, GDK_MEMORY_DEFAULT is set. | |
| 830 | 740 | func (x *TextureDownloader) SetFormat(FormatVar MemoryFormat) { | |
| 831 | - | core.LazyRegister(&xTextureDownloaderSetFormat, "GDK", "gdk_texture_downloader_set_format", false) | |
| 832 | - | ||
| 833 | 741 | xTextureDownloaderSetFormat(x.GoPointer(), FormatVar) | |
| 834 | 742 | } | |
| 835 | 743 | ||
| @@ -837,8 +745,6 @@ var xTextureDownloaderSetTexture func(uintptr, uintptr) | |||
| 837 | 745 | ||
| 838 | 746 | // Changes the texture the downloader will download. | |
| 839 | 747 | func (x *TextureDownloader) SetTexture(TextureVar *Texture) { | |
| 840 | - | core.LazyRegister(&xTextureDownloaderSetTexture, "GDK", "gdk_texture_downloader_set_texture", false) | |
| 841 | - | ||
| 842 | 748 | xTextureDownloaderSetTexture(x.GoPointer(), TextureVar.GoPointer()) | |
| 843 | 749 | } | |
| 844 | 750 | ||
| @@ -850,4 +756,75 @@ const ( | |||
| 850 | 756 | func init() { | |
| 851 | 757 | core.SetPackageName("GDK", "gtk4") | |
| 852 | 758 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | |
| 759 | + | var libs []uintptr | |
| 760 | + | for _, libPath := range core.GetPaths("GDK") { | |
| 761 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 762 | + | if err != nil { | |
| 763 | + | panic(err) | |
| 764 | + | } | |
| 765 | + | libs = append(libs, lib) | |
| 766 | + | } | |
| 767 | + | ||
| 768 | + | core.PuregoSafeRegister(&xColorStateGLibType, libs, "gdk_color_state_get_type") | |
| 769 | + | ||
| 770 | + | core.PuregoSafeRegister(&xColorStateCreateCicpParams, libs, "gdk_color_state_create_cicp_params") | |
| 771 | + | core.PuregoSafeRegister(&xColorStateEqual, libs, "gdk_color_state_equal") | |
| 772 | + | core.PuregoSafeRegister(&xColorStateEquivalent, libs, "gdk_color_state_equivalent") | |
| 773 | + | core.PuregoSafeRegister(&xColorStateRef, libs, "gdk_color_state_ref") | |
| 774 | + | core.PuregoSafeRegister(&xColorStateUnref, libs, "gdk_color_state_unref") | |
| 775 | + | ||
| 776 | + | core.PuregoSafeRegister(&xContentFormatsGLibType, libs, "gdk_content_formats_get_type") | |
| 777 | + | ||
| 778 | + | core.PuregoSafeRegister(&xNewContentFormats, libs, "gdk_content_formats_new") | |
| 779 | + | core.PuregoSafeRegister(&xNewContentFormatsForGtype, libs, "gdk_content_formats_new_for_gtype") | |
| 780 | + | ||
| 781 | + | core.PuregoSafeRegister(&xContentFormatsContainGtype, libs, "gdk_content_formats_contain_gtype") | |
| 782 | + | core.PuregoSafeRegister(&xContentFormatsContainMimeType, libs, "gdk_content_formats_contain_mime_type") | |
| 783 | + | core.PuregoSafeRegister(&xContentFormatsGetGtypes, libs, "gdk_content_formats_get_gtypes") | |
| 784 | + | core.PuregoSafeRegister(&xContentFormatsGetMimeTypes, libs, "gdk_content_formats_get_mime_types") | |
| 785 | + | core.PuregoSafeRegister(&xContentFormatsIsEmpty, libs, "gdk_content_formats_is_empty") | |
| 786 | + | core.PuregoSafeRegister(&xContentFormatsMatch, libs, "gdk_content_formats_match") | |
| 787 | + | core.PuregoSafeRegister(&xContentFormatsMatchGtype, libs, "gdk_content_formats_match_gtype") | |
| 788 | + | core.PuregoSafeRegister(&xContentFormatsMatchMimeType, libs, "gdk_content_formats_match_mime_type") | |
| 789 | + | core.PuregoSafeRegister(&xContentFormatsPrint, libs, "gdk_content_formats_print") | |
| 790 | + | core.PuregoSafeRegister(&xContentFormatsRef, libs, "gdk_content_formats_ref") | |
| 791 | + | core.PuregoSafeRegister(&xContentFormatsToString, libs, "gdk_content_formats_to_string") | |
| 792 | + | core.PuregoSafeRegister(&xContentFormatsUnion, libs, "gdk_content_formats_union") | |
| 793 | + | core.PuregoSafeRegister(&xContentFormatsUnionDeserializeGtypes, libs, "gdk_content_formats_union_deserialize_gtypes") | |
| 794 | + | core.PuregoSafeRegister(&xContentFormatsUnionDeserializeMimeTypes, libs, "gdk_content_formats_union_deserialize_mime_types") | |
| 795 | + | core.PuregoSafeRegister(&xContentFormatsUnionSerializeGtypes, libs, "gdk_content_formats_union_serialize_gtypes") | |
| 796 | + | core.PuregoSafeRegister(&xContentFormatsUnionSerializeMimeTypes, libs, "gdk_content_formats_union_serialize_mime_types") | |
| 797 | + | core.PuregoSafeRegister(&xContentFormatsUnref, libs, "gdk_content_formats_unref") | |
| 798 | + | ||
| 799 | + | core.PuregoSafeRegister(&xDmabufFormatsGLibType, libs, "gdk_dmabuf_formats_get_type") | |
| 800 | + | ||
| 801 | + | core.PuregoSafeRegister(&xDmabufFormatsContains, libs, "gdk_dmabuf_formats_contains") | |
| 802 | + | core.PuregoSafeRegister(&xDmabufFormatsEqual, libs, "gdk_dmabuf_formats_equal") | |
| 803 | + | core.PuregoSafeRegister(&xDmabufFormatsGetFormat, libs, "gdk_dmabuf_formats_get_format") | |
| 804 | + | core.PuregoSafeRegister(&xDmabufFormatsGetNFormats, libs, "gdk_dmabuf_formats_get_n_formats") | |
| 805 | + | core.PuregoSafeRegister(&xDmabufFormatsRef, libs, "gdk_dmabuf_formats_ref") | |
| 806 | + | core.PuregoSafeRegister(&xDmabufFormatsUnref, libs, "gdk_dmabuf_formats_unref") | |
| 807 | + | ||
| 808 | + | core.PuregoSafeRegister(&xRectangleGLibType, libs, "gdk_rectangle_get_type") | |
| 809 | + | ||
| 810 | + | core.PuregoSafeRegister(&xRectangleContainsPoint, libs, "gdk_rectangle_contains_point") | |
| 811 | + | core.PuregoSafeRegister(&xRectangleEqual, libs, "gdk_rectangle_equal") | |
| 812 | + | core.PuregoSafeRegister(&xRectangleIntersect, libs, "gdk_rectangle_intersect") | |
| 813 | + | core.PuregoSafeRegister(&xRectangleUnion, libs, "gdk_rectangle_union") | |
| 814 | + | ||
| 815 | + | core.PuregoSafeRegister(&xTextureDownloaderGLibType, libs, "gdk_texture_downloader_get_type") | |
| 816 | + | ||
| 817 | + | core.PuregoSafeRegister(&xNewTextureDownloader, libs, "gdk_texture_downloader_new") | |
| 818 | + | ||
| 819 | + | core.PuregoSafeRegister(&xTextureDownloaderCopy, libs, "gdk_texture_downloader_copy") | |
| 820 | + | core.PuregoSafeRegister(&xTextureDownloaderDownloadBytes, libs, "gdk_texture_downloader_download_bytes") | |
| 821 | + | core.PuregoSafeRegister(&xTextureDownloaderDownloadBytesWithPlanes, libs, "gdk_texture_downloader_download_bytes_with_planes") | |
| 822 | + | core.PuregoSafeRegister(&xTextureDownloaderDownloadInto, libs, "gdk_texture_downloader_download_into") | |
| 823 | + | core.PuregoSafeRegister(&xTextureDownloaderFree, libs, "gdk_texture_downloader_free") | |
| 824 | + | core.PuregoSafeRegister(&xTextureDownloaderGetColorState, libs, "gdk_texture_downloader_get_color_state") | |
| 825 | + | core.PuregoSafeRegister(&xTextureDownloaderGetFormat, libs, "gdk_texture_downloader_get_format") | |
| 826 | + | core.PuregoSafeRegister(&xTextureDownloaderGetTexture, libs, "gdk_texture_downloader_get_texture") | |
| 827 | + | core.PuregoSafeRegister(&xTextureDownloaderSetColorState, libs, "gdk_texture_downloader_set_color_state") | |
| 828 | + | core.PuregoSafeRegister(&xTextureDownloaderSetFormat, libs, "gdk_texture_downloader_set_format") | |
| 829 | + | core.PuregoSafeRegister(&xTextureDownloaderSetTexture, libs, "gdk_texture_downloader_set_texture") | |
| 853 | 830 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject" | 11 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -27,7 +28,6 @@ type ColorState struct { | |||||
| 27 | var xColorStateGLibType func() types.GType | 28 | var xColorStateGLibType func() types.GType | ||
| 28 | 29 | ||||
| 29 | func ColorStateGLibType() types.GType { | 30 | func ColorStateGLibType() types.GType { | ||
| 30 | - | core.LazyRegister(&xColorStateGLibType, "GDK", "gdk_color_state_get_type", false) | |||
| 31 | return xColorStateGLibType() | 31 | return xColorStateGLibType() | ||
| 32 | } | 32 | } | ||
| 33 | 33 | ||||
| @@ -51,7 +51,6 @@ var xColorStateCreateCicpParams func(uintptr) uintptr | |||||
| 51 | // represented with Cicp parameters. If that is the case, | 51 | // represented with Cicp parameters. If that is the case, | ||
| 52 | // this function returns `NULL`. | 52 | // this function returns `NULL`. | ||
| 53 | func (x *ColorState) CreateCicpParams() *CicpParams { | 53 | func (x *ColorState) CreateCicpParams() *CicpParams { | ||
| 54 | - | core.LazyRegister(&xColorStateCreateCicpParams, "GDK", "gdk_color_state_create_cicp_params", false) | |||
| 55 | var cls *CicpParams | 54 | var cls *CicpParams | ||
| 56 | 55 | ||||
| 57 | cret := xColorStateCreateCicpParams(x.GoPointer()) | 56 | cret := xColorStateCreateCicpParams(x.GoPointer()) | ||
| @@ -72,8 +71,6 @@ var xColorStateEqual func(uintptr, *ColorState) bool | |||||
| 72 | // describing the same color state may compare not equal. However, different | 71 | // describing the same color state may compare not equal. However, different | ||
| 73 | // color states will never compare equal. | 72 | // color states will never compare equal. | ||
| 74 | func (x *ColorState) Equal(OtherVar *ColorState) bool { | 73 | func (x *ColorState) Equal(OtherVar *ColorState) bool { | ||
| 75 | - | core.LazyRegister(&xColorStateEqual, "GDK", "gdk_color_state_equal", false) | |||
| 76 | - | ||||
| 77 | cret := xColorStateEqual(x.GoPointer(), OtherVar) | 74 | cret := xColorStateEqual(x.GoPointer(), OtherVar) | ||
| 78 | return cret | 75 | return cret | ||
| 79 | } | 76 | } | ||
| @@ -85,8 +82,6 @@ var xColorStateEquivalent func(uintptr, *ColorState) bool | |||||
| 85 | // Two objects that represent the same color state should be equivalent, | 82 | // Two objects that represent the same color state should be equivalent, | ||
| 86 | // even though they may not be equal in the sense of [method@Gdk.ColorState.equal]. | 83 | // even though they may not be equal in the sense of [method@Gdk.ColorState.equal]. | ||
| 87 | func (x *ColorState) Equivalent(OtherVar *ColorState) bool { | 84 | func (x *ColorState) Equivalent(OtherVar *ColorState) bool { | ||
| 88 | - | core.LazyRegister(&xColorStateEquivalent, "GDK", "gdk_color_state_equivalent", false) | |||
| 89 | - | ||||
| 90 | cret := xColorStateEquivalent(x.GoPointer(), OtherVar) | 85 | cret := xColorStateEquivalent(x.GoPointer(), OtherVar) | ||
| 91 | return cret | 86 | return cret | ||
| 92 | } | 87 | } | ||
| @@ -95,8 +90,6 @@ var xColorStateRef func(uintptr) uintptr | |||||
| 95 | 90 | ||||
| 96 | // Increase the reference count of @self. | 91 | // Increase the reference count of @self. | ||
| 97 | func (x *ColorState) Ref() *ColorState { | 92 | func (x *ColorState) Ref() *ColorState { | ||
| 98 | - | core.LazyRegister(&xColorStateRef, "GDK", "gdk_color_state_ref", false) | |||
| 99 | - | ||||
| 100 | cret := xColorStateRef(x.GoPointer()) | 93 | cret := xColorStateRef(x.GoPointer()) | ||
| 101 | if cret == 0 { | 94 | if cret == 0 { | ||
| 102 | return nil | 95 | return nil | ||
| @@ -111,8 +104,6 @@ var xColorStateUnref func(uintptr) | |||||
| 111 | // Unless @self is static, it will be freed | 104 | // Unless @self is static, it will be freed | ||
| 112 | // when the reference count reaches zero. | 105 | // when the reference count reaches zero. | ||
| 113 | func (x *ColorState) Unref() { | 106 | func (x *ColorState) Unref() { | ||
| 114 | - | core.LazyRegister(&xColorStateUnref, "GDK", "gdk_color_state_unref", false) | |||
| 115 | - | ||||
| 116 | xColorStateUnref(x.GoPointer()) | 107 | xColorStateUnref(x.GoPointer()) | ||
| 117 | } | 108 | } | ||
| 118 | 109 | ||||
| @@ -154,7 +145,6 @@ type ContentFormats struct { | |||||
| 154 | var xContentFormatsGLibType func() types.GType | 145 | var xContentFormatsGLibType func() types.GType | ||
| 155 | 146 | ||||
| 156 | func ContentFormatsGLibType() types.GType { | 147 | func ContentFormatsGLibType() types.GType { | ||
| 157 | - | core.LazyRegister(&xContentFormatsGLibType, "GDK", "gdk_content_formats_get_type", false) | |||
| 158 | return xContentFormatsGLibType() | 148 | return xContentFormatsGLibType() | ||
| 159 | } | 149 | } | ||
| 160 | 150 | ||||
| @@ -178,8 +168,6 @@ var xNewContentFormats func([]string, uint) uintptr | |||||
| 178 | // behavior of the return value is undefined. If you cannot guarantee | 168 | // behavior of the return value is undefined. If you cannot guarantee | ||
| 179 | // this, use [struct@Gdk.ContentFormatsBuilder] instead. | 169 | // this, use [struct@Gdk.ContentFormatsBuilder] instead. | ||
| 180 | func NewContentFormats(MimeTypesVar []string, NMimeTypesVar uint) *ContentFormats { | 170 | func NewContentFormats(MimeTypesVar []string, NMimeTypesVar uint) *ContentFormats { | ||
| 181 | - | core.LazyRegister(&xNewContentFormats, "GDK", "gdk_content_formats_new", false) | |||
| 182 | - | ||||
| 183 | cret := xNewContentFormats(MimeTypesVar, NMimeTypesVar) | 171 | cret := xNewContentFormats(MimeTypesVar, NMimeTypesVar) | ||
| 184 | if cret == 0 { | 172 | if cret == 0 { | ||
| 185 | return nil | 173 | return nil | ||
| @@ -191,8 +179,6 @@ var xNewContentFormatsForGtype func(types.GType) uintptr | |||||
| 191 | 179 | ||||
| 192 | // Creates a new `GdkContentFormats` for a given `GType`. | 180 | // Creates a new `GdkContentFormats` for a given `GType`. | ||
| 193 | func NewContentFormatsForGtype(TypeVar types.GType) *ContentFormats { | 181 | func NewContentFormatsForGtype(TypeVar types.GType) *ContentFormats { | ||
| 194 | - | core.LazyRegister(&xNewContentFormatsForGtype, "GDK", "gdk_content_formats_new_for_gtype", false) | |||
| 195 | - | ||||
| 196 | cret := xNewContentFormatsForGtype(TypeVar) | 182 | cret := xNewContentFormatsForGtype(TypeVar) | ||
| 197 | if cret == 0 { | 183 | if cret == 0 { | ||
| 198 | return nil | 184 | return nil | ||
| @@ -204,8 +190,6 @@ var xContentFormatsContainGtype func(uintptr, types.GType) bool | |||||
| 204 | 190 | ||||
| 205 | // Checks if a given `GType` is part of the given @formats. | 191 | // Checks if a given `GType` is part of the given @formats. | ||
| 206 | func (x *ContentFormats) ContainGtype(TypeVar types.GType) bool { | 192 | func (x *ContentFormats) ContainGtype(TypeVar types.GType) bool { | ||
| 207 | - | core.LazyRegister(&xContentFormatsContainGtype, "GDK", "gdk_content_formats_contain_gtype", false) | |||
| 208 | - | ||||
| 209 | cret := xContentFormatsContainGtype(x.GoPointer(), TypeVar) | 193 | cret := xContentFormatsContainGtype(x.GoPointer(), TypeVar) | ||
| 210 | return cret | 194 | return cret | ||
| 211 | } | 195 | } | ||
| @@ -214,8 +198,6 @@ var xContentFormatsContainMimeType func(uintptr, string) bool | |||||
| 214 | 198 | ||||
| 215 | // Checks if a given mime type is part of the given @formats. | 199 | // Checks if a given mime type is part of the given @formats. | ||
| 216 | func (x *ContentFormats) ContainMimeType(MimeTypeVar string) bool { | 200 | func (x *ContentFormats) ContainMimeType(MimeTypeVar string) bool { | ||
| 217 | - | core.LazyRegister(&xContentFormatsContainMimeType, "GDK", "gdk_content_formats_contain_mime_type", false) | |||
| 218 | - | ||||
| 219 | cret := xContentFormatsContainMimeType(x.GoPointer(), MimeTypeVar) | 201 | cret := xContentFormatsContainMimeType(x.GoPointer(), MimeTypeVar) | ||
| 220 | return cret | 202 | return cret | ||
| 221 | } | 203 | } | ||
| @@ -227,8 +209,6 @@ var xContentFormatsGetGtypes func(uintptr, *uint) uintptr | |||||
| 227 | // Note that @formats may not contain any `GType`s, in particular when | 209 | // Note that @formats may not contain any `GType`s, in particular when | ||
| 228 | // they are empty. In that case %NULL will be returned. | 210 | // they are empty. In that case %NULL will be returned. | ||
| 229 | func (x *ContentFormats) GetGtypes(NGtypesVar *uint) uintptr { | 211 | func (x *ContentFormats) GetGtypes(NGtypesVar *uint) uintptr { | ||
| 230 | - | core.LazyRegister(&xContentFormatsGetGtypes, "GDK", "gdk_content_formats_get_gtypes", false) | |||
| 231 | - | ||||
| 232 | cret := xContentFormatsGetGtypes(x.GoPointer(), NGtypesVar) | 212 | cret := xContentFormatsGetGtypes(x.GoPointer(), NGtypesVar) | ||
| 233 | return cret | 213 | return cret | ||
| 234 | } | 214 | } | ||
| @@ -240,8 +220,6 @@ var xContentFormatsGetMimeTypes func(uintptr, *uint) []string | |||||
| 240 | // Note that @formats may not contain any mime types, in particular | 220 | // Note that @formats may not contain any mime types, in particular | ||
| 241 | // when they are empty. In that case %NULL will be returned. | 221 | // when they are empty. In that case %NULL will be returned. | ||
| 242 | func (x *ContentFormats) GetMimeTypes(NMimeTypesVar *uint) []string { | 222 | func (x *ContentFormats) GetMimeTypes(NMimeTypesVar *uint) []string { | ||
| 243 | - | core.LazyRegister(&xContentFormatsGetMimeTypes, "GDK", "gdk_content_formats_get_mime_types", false) | |||
| 244 | - | ||||
| 245 | cret := xContentFormatsGetMimeTypes(x.GoPointer(), NMimeTypesVar) | 223 | cret := xContentFormatsGetMimeTypes(x.GoPointer(), NMimeTypesVar) | ||
| 246 | return cret | 224 | return cret | ||
| 247 | } | 225 | } | ||
| @@ -250,8 +228,6 @@ var xContentFormatsIsEmpty func(uintptr) bool | |||||
| 250 | 228 | ||||
| 251 | // Returns whether the content formats contain any formats. | 229 | // Returns whether the content formats contain any formats. | ||
| 252 | func (x *ContentFormats) IsEmpty() bool { | 230 | func (x *ContentFormats) IsEmpty() bool { | ||
| 253 | - | core.LazyRegister(&xContentFormatsIsEmpty, "GDK", "gdk_content_formats_is_empty", false) | |||
| 254 | - | ||||
| 255 | cret := xContentFormatsIsEmpty(x.GoPointer()) | 231 | cret := xContentFormatsIsEmpty(x.GoPointer()) | ||
| 256 | return cret | 232 | return cret | ||
| 257 | } | 233 | } | ||
| @@ -260,8 +236,6 @@ var xContentFormatsMatch func(uintptr, *ContentFormats) bool | |||||
| 260 | 236 | ||||
| 261 | // Checks if @first and @second have any matching formats. | 237 | // Checks if @first and @second have any matching formats. | ||
| 262 | func (x *ContentFormats) Match(SecondVar *ContentFormats) bool { | 238 | func (x *ContentFormats) Match(SecondVar *ContentFormats) bool { | ||
| 263 | - | core.LazyRegister(&xContentFormatsMatch, "GDK", "gdk_content_formats_match", false) | |||
| 264 | - | ||||
| 265 | cret := xContentFormatsMatch(x.GoPointer(), SecondVar) | 239 | cret := xContentFormatsMatch(x.GoPointer(), SecondVar) | ||
| 266 | return cret | 240 | return cret | ||
| 267 | } | 241 | } | ||
| @@ -273,8 +247,6 @@ var xContentFormatsMatchGtype func(uintptr, *ContentFormats) types.GType | |||||
| 273 | // | 247 | // | ||
| 274 | // If no matching `GType` is found, %G_TYPE_INVALID is returned. | 248 | // If no matching `GType` is found, %G_TYPE_INVALID is returned. | ||
| 275 | func (x *ContentFormats) MatchGtype(SecondVar *ContentFormats) types.GType { | 249 | func (x *ContentFormats) MatchGtype(SecondVar *ContentFormats) types.GType { | ||
| 276 | - | core.LazyRegister(&xContentFormatsMatchGtype, "GDK", "gdk_content_formats_match_gtype", false) | |||
| 277 | - | ||||
| 278 | cret := xContentFormatsMatchGtype(x.GoPointer(), SecondVar) | 250 | cret := xContentFormatsMatchGtype(x.GoPointer(), SecondVar) | ||
| 279 | return cret | 251 | return cret | ||
| 280 | } | 252 | } | ||
| @@ -286,8 +258,6 @@ var xContentFormatsMatchMimeType func(uintptr, *ContentFormats) string | |||||
| 286 | // | 258 | // | ||
| 287 | // If no matching mime type is found, %NULL is returned. | 259 | // If no matching mime type is found, %NULL is returned. | ||
| 288 | func (x *ContentFormats) MatchMimeType(SecondVar *ContentFormats) string { | 260 | func (x *ContentFormats) MatchMimeType(SecondVar *ContentFormats) string { | ||
| 289 | - | core.LazyRegister(&xContentFormatsMatchMimeType, "GDK", "gdk_content_formats_match_mime_type", false) | |||
| 290 | - | ||||
| 291 | cret := xContentFormatsMatchMimeType(x.GoPointer(), SecondVar) | 261 | cret := xContentFormatsMatchMimeType(x.GoPointer(), SecondVar) | ||
| 292 | return cret | 262 | return cret | ||
| 293 | } | 263 | } | ||
| @@ -299,8 +269,6 @@ var xContentFormatsPrint func(uintptr, *glib.String) | |||||
| 299 | // The result of this function can later be parsed with | 269 | // The result of this function can later be parsed with | ||
| 300 | // [func@Gdk.ContentFormats.parse]. | 270 | // [func@Gdk.ContentFormats.parse]. | ||
| 301 | func (x *ContentFormats) Print(StringVar *glib.String) { | 271 | func (x *ContentFormats) Print(StringVar *glib.String) { | ||
| 302 | - | core.LazyRegister(&xContentFormatsPrint, "GDK", "gdk_content_formats_print", false) | |||
| 303 | - | ||||
| 304 | xContentFormatsPrint(x.GoPointer(), StringVar) | 272 | xContentFormatsPrint(x.GoPointer(), StringVar) | ||
| 305 | } | 273 | } | ||
| 306 | 274 | ||||
| @@ -308,8 +276,6 @@ var xContentFormatsRef func(uintptr) uintptr | |||||
| 308 | 276 | ||||
| 309 | // Increases the reference count of a `GdkContentFormats` by one. | 277 | // Increases the reference count of a `GdkContentFormats` by one. | ||
| 310 | func (x *ContentFormats) Ref() *ContentFormats { | 278 | func (x *ContentFormats) Ref() *ContentFormats { | ||
| 311 | - | core.LazyRegister(&xContentFormatsRef, "GDK", "gdk_content_formats_ref", false) | |||
| 312 | - | ||||
| 313 | cret := xContentFormatsRef(x.GoPointer()) | 279 | cret := xContentFormatsRef(x.GoPointer()) | ||
| 314 | if cret == 0 { | 280 | if cret == 0 { | ||
| 315 | return nil | 281 | return nil | ||
| @@ -326,8 +292,6 @@ var xContentFormatsToString func(uintptr) string | |||||
| 326 | // This is a small wrapper around [method@Gdk.ContentFormats.print] | 292 | // This is a small wrapper around [method@Gdk.ContentFormats.print] | ||
| 327 | // to help when debugging. | 293 | // to help when debugging. | ||
| 328 | func (x *ContentFormats) ToString() string { | 294 | func (x *ContentFormats) ToString() string { | ||
| 329 | - | core.LazyRegister(&xContentFormatsToString, "GDK", "gdk_content_formats_to_string", false) | |||
| 330 | - | ||||
| 331 | cret := xContentFormatsToString(x.GoPointer()) | 295 | cret := xContentFormatsToString(x.GoPointer()) | ||
| 332 | return cret | 296 | return cret | ||
| 333 | } | 297 | } | ||
| @@ -337,8 +301,6 @@ var xContentFormatsUnion func(uintptr, *ContentFormats) uintptr | |||||
| 337 | // Append all missing types from @second to @first, in the order | 301 | // Append all missing types from @second to @first, in the order | ||
| 338 | // they had in @second. | 302 | // they had in @second. | ||
| 339 | func (x *ContentFormats) Union(SecondVar *ContentFormats) *ContentFormats { | 303 | func (x *ContentFormats) Union(SecondVar *ContentFormats) *ContentFormats { | ||
| 340 | - | core.LazyRegister(&xContentFormatsUnion, "GDK", "gdk_content_formats_union", false) | |||
| 341 | - | ||||
| 342 | cret := xContentFormatsUnion(x.GoPointer(), SecondVar) | 304 | cret := xContentFormatsUnion(x.GoPointer(), SecondVar) | ||
| 343 | if cret == 0 { | 305 | if cret == 0 { | ||
| 344 | return nil | 306 | return nil | ||
| @@ -351,8 +313,6 @@ var xContentFormatsUnionDeserializeGtypes func(uintptr) uintptr | |||||
| 351 | // Add GTypes for mime types in @formats for which deserializers are | 313 | // Add GTypes for mime types in @formats for which deserializers are | ||
| 352 | // registered. | 314 | // registered. | ||
| 353 | func (x *ContentFormats) UnionDeserializeGtypes() *ContentFormats { | 315 | func (x *ContentFormats) UnionDeserializeGtypes() *ContentFormats { | ||
| 354 | - | core.LazyRegister(&xContentFormatsUnionDeserializeGtypes, "GDK", "gdk_content_formats_union_deserialize_gtypes", false) | |||
| 355 | - | ||||
| 356 | cret := xContentFormatsUnionDeserializeGtypes(x.GoPointer()) | 316 | cret := xContentFormatsUnionDeserializeGtypes(x.GoPointer()) | ||
| 357 | if cret == 0 { | 317 | if cret == 0 { | ||
| 358 | return nil | 318 | return nil | ||
| @@ -365,8 +325,6 @@ var xContentFormatsUnionDeserializeMimeTypes func(uintptr) uintptr | |||||
| 365 | // Add mime types for GTypes in @formats for which deserializers are | 325 | // Add mime types for GTypes in @formats for which deserializers are | ||
| 366 | // registered. | 326 | // registered. | ||
| 367 | func (x *ContentFormats) UnionDeserializeMimeTypes() *ContentFormats { | 327 | func (x *ContentFormats) UnionDeserializeMimeTypes() *ContentFormats { | ||
| 368 | - | core.LazyRegister(&xContentFormatsUnionDeserializeMimeTypes, "GDK", "gdk_content_formats_union_deserialize_mime_types", false) | |||
| 369 | - | ||||
| 370 | cret := xContentFormatsUnionDeserializeMimeTypes(x.GoPointer()) | 328 | cret := xContentFormatsUnionDeserializeMimeTypes(x.GoPointer()) | ||
| 371 | if cret == 0 { | 329 | if cret == 0 { | ||
| 372 | return nil | 330 | return nil | ||
| @@ -379,8 +337,6 @@ var xContentFormatsUnionSerializeGtypes func(uintptr) uintptr | |||||
| 379 | // Add GTypes for the mime types in @formats for which serializers are | 337 | // Add GTypes for the mime types in @formats for which serializers are | ||
| 380 | // registered. | 338 | // registered. | ||
| 381 | func (x *ContentFormats) UnionSerializeGtypes() *ContentFormats { | 339 | func (x *ContentFormats) UnionSerializeGtypes() *ContentFormats { | ||
| 382 | - | core.LazyRegister(&xContentFormatsUnionSerializeGtypes, "GDK", "gdk_content_formats_union_serialize_gtypes", false) | |||
| 383 | - | ||||
| 384 | cret := xContentFormatsUnionSerializeGtypes(x.GoPointer()) | 340 | cret := xContentFormatsUnionSerializeGtypes(x.GoPointer()) | ||
| 385 | if cret == 0 { | 341 | if cret == 0 { | ||
| 386 | return nil | 342 | return nil | ||
| @@ -393,8 +349,6 @@ var xContentFormatsUnionSerializeMimeTypes func(uintptr) uintptr | |||||
| 393 | // Add mime types for GTypes in @formats for which serializers are | 349 | // Add mime types for GTypes in @formats for which serializers are | ||
| 394 | // registered. | 350 | // registered. | ||
| 395 | func (x *ContentFormats) UnionSerializeMimeTypes() *ContentFormats { | 351 | func (x *ContentFormats) UnionSerializeMimeTypes() *ContentFormats { | ||
| 396 | - | core.LazyRegister(&xContentFormatsUnionSerializeMimeTypes, "GDK", "gdk_content_formats_union_serialize_mime_types", false) | |||
| 397 | - | ||||
| 398 | cret := xContentFormatsUnionSerializeMimeTypes(x.GoPointer()) | 352 | cret := xContentFormatsUnionSerializeMimeTypes(x.GoPointer()) | ||
| 399 | if cret == 0 { | 353 | if cret == 0 { | ||
| 400 | return nil | 354 | return nil | ||
| @@ -408,8 +362,6 @@ var xContentFormatsUnref func(uintptr) | |||||
| 408 | // | 362 | // | ||
| 409 | // If the resulting reference count is zero, frees the formats. | 363 | // If the resulting reference count is zero, frees the formats. | ||
| 410 | func (x *ContentFormats) Unref() { | 364 | func (x *ContentFormats) Unref() { | ||
| 411 | - | core.LazyRegister(&xContentFormatsUnref, "GDK", "gdk_content_formats_unref", false) | |||
| 412 | - | ||||
| 413 | xContentFormatsUnref(x.GoPointer()) | 365 | xContentFormatsUnref(x.GoPointer()) | ||
| 414 | } | 366 | } | ||
| 415 | 367 | ||||
| @@ -439,7 +391,6 @@ type DmabufFormats struct { | |||||
| 439 | var xDmabufFormatsGLibType func() types.GType | 391 | var xDmabufFormatsGLibType func() types.GType | ||
| 440 | 392 | ||||
| 441 | func DmabufFormatsGLibType() types.GType { | 393 | func DmabufFormatsGLibType() types.GType { | ||
| 442 | - | core.LazyRegister(&xDmabufFormatsGLibType, "GDK", "gdk_dmabuf_formats_get_type", false) | |||
| 443 | return xDmabufFormatsGLibType() | 394 | return xDmabufFormatsGLibType() | ||
| 444 | } | 395 | } | ||
| 445 | 396 | ||||
| @@ -459,8 +410,6 @@ var xDmabufFormatsContains func(uintptr, uint32, uint64) bool | |||||
| 459 | 410 | ||||
| 460 | // Returns whether a given format is contained in @formats. | 411 | // Returns whether a given format is contained in @formats. | ||
| 461 | func (x *DmabufFormats) Contains(FourccVar uint32, ModifierVar uint64) bool { | 412 | func (x *DmabufFormats) Contains(FourccVar uint32, ModifierVar uint64) bool { | ||
| 462 | - | core.LazyRegister(&xDmabufFormatsContains, "GDK", "gdk_dmabuf_formats_contains", false) | |||
| 463 | - | ||||
| 464 | cret := xDmabufFormatsContains(x.GoPointer(), FourccVar, ModifierVar) | 413 | cret := xDmabufFormatsContains(x.GoPointer(), FourccVar, ModifierVar) | ||
| 465 | return cret | 414 | return cret | ||
| 466 | } | 415 | } | ||
| @@ -470,8 +419,6 @@ var xDmabufFormatsEqual func(uintptr, *DmabufFormats) bool | |||||
| 470 | // Returns whether @formats1 and @formats2 contain the | 419 | // Returns whether @formats1 and @formats2 contain the | ||
| 471 | // same dmabuf formats, in the same order. | 420 | // same dmabuf formats, in the same order. | ||
| 472 | func (x *DmabufFormats) Equal(Formats2Var *DmabufFormats) bool { | 421 | func (x *DmabufFormats) Equal(Formats2Var *DmabufFormats) bool { | ||
| 473 | - | core.LazyRegister(&xDmabufFormatsEqual, "GDK", "gdk_dmabuf_formats_equal", false) | |||
| 474 | - | ||||
| 475 | cret := xDmabufFormatsEqual(x.GoPointer(), Formats2Var) | 422 | cret := xDmabufFormatsEqual(x.GoPointer(), Formats2Var) | ||
| 476 | return cret | 423 | return cret | ||
| 477 | } | 424 | } | ||
| @@ -481,8 +428,6 @@ var xDmabufFormatsGetFormat func(uintptr, uint, *uint32, *uint64) | |||||
| 481 | // Gets the fourcc code and modifier for a format | 428 | // Gets the fourcc code and modifier for a format | ||
| 482 | // that is contained in @formats. | 429 | // that is contained in @formats. | ||
| 483 | func (x *DmabufFormats) GetFormat(IdxVar uint, FourccVar *uint32, ModifierVar *uint64) { | 430 | func (x *DmabufFormats) GetFormat(IdxVar uint, FourccVar *uint32, ModifierVar *uint64) { | ||
| 484 | - | core.LazyRegister(&xDmabufFormatsGetFormat, "GDK", "gdk_dmabuf_formats_get_format", false) | |||
| 485 | - | ||||
| 486 | xDmabufFormatsGetFormat(x.GoPointer(), IdxVar, FourccVar, ModifierVar) | 431 | xDmabufFormatsGetFormat(x.GoPointer(), IdxVar, FourccVar, ModifierVar) | ||
| 487 | } | 432 | } | ||
| 488 | 433 | ||||
| @@ -495,8 +440,6 @@ var xDmabufFormatsGetNFormats func(uintptr) uint | |||||
| 495 | // platforms, [method@Gdk.DmabufFormats.get_n_formats] will | 440 | // platforms, [method@Gdk.DmabufFormats.get_n_formats] will | ||
| 496 | // always return zero. | 441 | // always return zero. | ||
| 497 | func (x *DmabufFormats) GetNFormats() uint { | 442 | func (x *DmabufFormats) GetNFormats() uint { | ||
| 498 | - | core.LazyRegister(&xDmabufFormatsGetNFormats, "GDK", "gdk_dmabuf_formats_get_n_formats", false) | |||
| 499 | - | ||||
| 500 | cret := xDmabufFormatsGetNFormats(x.GoPointer()) | 443 | cret := xDmabufFormatsGetNFormats(x.GoPointer()) | ||
| 501 | return cret | 444 | return cret | ||
| 502 | } | 445 | } | ||
| @@ -505,8 +448,6 @@ var xDmabufFormatsRef func(uintptr) uintptr | |||||
| 505 | 448 | ||||
| 506 | // Increases the reference count of @formats. | 449 | // Increases the reference count of @formats. | ||
| 507 | func (x *DmabufFormats) Ref() *DmabufFormats { | 450 | func (x *DmabufFormats) Ref() *DmabufFormats { | ||
| 508 | - | core.LazyRegister(&xDmabufFormatsRef, "GDK", "gdk_dmabuf_formats_ref", false) | |||
| 509 | - | ||||
| 510 | cret := xDmabufFormatsRef(x.GoPointer()) | 451 | cret := xDmabufFormatsRef(x.GoPointer()) | ||
| 511 | if cret == 0 { | 452 | if cret == 0 { | ||
| 512 | return nil | 453 | return nil | ||
| @@ -521,8 +462,6 @@ var xDmabufFormatsUnref func(uintptr) | |||||
| 521 | // When the reference count reaches zero, | 462 | // When the reference count reaches zero, | ||
| 522 | // the object is freed. | 463 | // the object is freed. | ||
| 523 | func (x *DmabufFormats) Unref() { | 464 | func (x *DmabufFormats) Unref() { | ||
| 524 | - | core.LazyRegister(&xDmabufFormatsUnref, "GDK", "gdk_dmabuf_formats_unref", false) | |||
| 525 | - | ||||
| 526 | xDmabufFormatsUnref(x.GoPointer()) | 465 | xDmabufFormatsUnref(x.GoPointer()) | ||
| 527 | } | 466 | } | ||
| 528 | 467 | ||||
| @@ -579,7 +518,6 @@ type Rectangle struct { | |||||
| 579 | var xRectangleGLibType func() types.GType | 518 | var xRectangleGLibType func() types.GType | ||
| 580 | 519 | ||||
| 581 | func RectangleGLibType() types.GType { | 520 | func RectangleGLibType() types.GType { | ||
| 582 | - | core.LazyRegister(&xRectangleGLibType, "GDK", "gdk_rectangle_get_type", false) | |||
| 583 | return xRectangleGLibType() | 521 | return xRectangleGLibType() | ||
| 584 | } | 522 | } | ||
| 585 | 523 | ||||
| @@ -599,8 +537,6 @@ var xRectangleContainsPoint func(uintptr, int, int) bool | |||||
| 599 | 537 | ||||
| 600 | // Returns %TRUE if @rect contains the point described by @x and @y. | 538 | // Returns %TRUE if @rect contains the point described by @x and @y. | ||
| 601 | func (x *Rectangle) ContainsPoint(XVar int, YVar int) bool { | 539 | func (x *Rectangle) ContainsPoint(XVar int, YVar int) bool { | ||
| 602 | - | core.LazyRegister(&xRectangleContainsPoint, "GDK", "gdk_rectangle_contains_point", false) | |||
| 603 | - | ||||
| 604 | cret := xRectangleContainsPoint(x.GoPointer(), XVar, YVar) | 540 | cret := xRectangleContainsPoint(x.GoPointer(), XVar, YVar) | ||
| 605 | return cret | 541 | return cret | ||
| 606 | } | 542 | } | ||
| @@ -609,8 +545,6 @@ var xRectangleEqual func(uintptr, *Rectangle) bool | |||||
| 609 | 545 | ||||
| 610 | // Checks if the two given rectangles are equal. | 546 | // Checks if the two given rectangles are equal. | ||
| 611 | func (x *Rectangle) Equal(Rect2Var *Rectangle) bool { | 547 | func (x *Rectangle) Equal(Rect2Var *Rectangle) bool { | ||
| 612 | - | core.LazyRegister(&xRectangleEqual, "GDK", "gdk_rectangle_equal", false) | |||
| 613 | - | ||||
| 614 | cret := xRectangleEqual(x.GoPointer(), Rect2Var) | 548 | cret := xRectangleEqual(x.GoPointer(), Rect2Var) | ||
| 615 | return cret | 549 | return cret | ||
| 616 | } | 550 | } | ||
| @@ -625,8 +559,6 @@ var xRectangleIntersect func(uintptr, *Rectangle, *Rectangle) bool | |||||
| 625 | // in whether the rectangles intersect, but not in the intersecting area | 559 | // in whether the rectangles intersect, but not in the intersecting area | ||
| 626 | // itself, pass %NULL for @dest. | 560 | // itself, pass %NULL for @dest. | ||
| 627 | func (x *Rectangle) Intersect(Src2Var *Rectangle, DestVar *Rectangle) bool { | 561 | func (x *Rectangle) Intersect(Src2Var *Rectangle, DestVar *Rectangle) bool { | ||
| 628 | - | core.LazyRegister(&xRectangleIntersect, "GDK", "gdk_rectangle_intersect", false) | |||
| 629 | - | ||||
| 630 | cret := xRectangleIntersect(x.GoPointer(), Src2Var, DestVar) | 562 | cret := xRectangleIntersect(x.GoPointer(), Src2Var, DestVar) | ||
| 631 | return cret | 563 | return cret | ||
| 632 | } | 564 | } | ||
| @@ -642,8 +574,6 @@ var xRectangleUnion func(uintptr, *Rectangle, *Rectangle) | |||||
| 642 | // Note that this function does not ignore 'empty' rectangles (ie. with | 574 | // Note that this function does not ignore 'empty' rectangles (ie. with | ||
| 643 | // zero width or height). | 575 | // zero width or height). | ||
| 644 | func (x *Rectangle) Union(Src2Var *Rectangle, DestVar *Rectangle) { | 576 | func (x *Rectangle) Union(Src2Var *Rectangle, DestVar *Rectangle) { | ||
| 645 | - | core.LazyRegister(&xRectangleUnion, "GDK", "gdk_rectangle_union", false) | |||
| 646 | - | ||||
| 647 | xRectangleUnion(x.GoPointer(), Src2Var, DestVar) | 577 | xRectangleUnion(x.GoPointer(), Src2Var, DestVar) | ||
| 648 | } | 578 | } | ||
| 649 | 579 | ||||
| @@ -663,7 +593,6 @@ type TextureDownloader struct { | |||||
| 663 | var xTextureDownloaderGLibType func() types.GType | 593 | var xTextureDownloaderGLibType func() types.GType | ||
| 664 | 594 | ||||
| 665 | func TextureDownloaderGLibType() types.GType { | 595 | func TextureDownloaderGLibType() types.GType { | ||
| 666 | - | core.LazyRegister(&xTextureDownloaderGLibType, "GDK", "gdk_texture_downloader_get_type", false) | |||
| 667 | return xTextureDownloaderGLibType() | 596 | return xTextureDownloaderGLibType() | ||
| 668 | } | 597 | } | ||
| 669 | 598 | ||||
| @@ -686,8 +615,6 @@ var xNewTextureDownloader func(uintptr) uintptr | |||||
| 686 | // By default, the downloader will convert the data to | 615 | // By default, the downloader will convert the data to | ||
| 687 | // the default memory format, and to the sRGB color state. | 616 | // the default memory format, and to the sRGB color state. | ||
| 688 | func NewTextureDownloader(TextureVar *Texture) *TextureDownloader { | 617 | func NewTextureDownloader(TextureVar *Texture) *TextureDownloader { | ||
| 689 | - | core.LazyRegister(&xNewTextureDownloader, "GDK", "gdk_texture_downloader_new", false) | |||
| 690 | - | ||||
| 691 | cret := xNewTextureDownloader(TextureVar.GoPointer()) | 618 | cret := xNewTextureDownloader(TextureVar.GoPointer()) | ||
| 692 | if cret == 0 { | 619 | if cret == 0 { | ||
| 693 | return nil | 620 | return nil | ||
| @@ -701,8 +628,6 @@ var xTextureDownloaderCopy func(uintptr) uintptr | |||||
| 701 | // | 628 | // | ||
| 702 | // This function is meant for language bindings. | 629 | // This function is meant for language bindings. | ||
| 703 | func (x *TextureDownloader) Copy() *TextureDownloader { | 630 | func (x *TextureDownloader) Copy() *TextureDownloader { | ||
| 704 | - | core.LazyRegister(&xTextureDownloaderCopy, "GDK", "gdk_texture_downloader_copy", false) | |||
| 705 | - | ||||
| 706 | cret := xTextureDownloaderCopy(x.GoPointer()) | 631 | cret := xTextureDownloaderCopy(x.GoPointer()) | ||
| 707 | if cret == 0 { | 632 | if cret == 0 { | ||
| 708 | return nil | 633 | return nil | ||
| @@ -723,8 +648,6 @@ var xTextureDownloaderDownloadBytes func(uintptr, *uint) uintptr | |||||
| 723 | // This function cannot be used with a multiplanar format. Use | 648 | // This function cannot be used with a multiplanar format. Use | ||
| 724 | // [method@Gdk.TextureDownloader.download_bytes_with_planes] for that purpose. | 649 | // [method@Gdk.TextureDownloader.download_bytes_with_planes] for that purpose. | ||
| 725 | func (x *TextureDownloader) DownloadBytes(OutStrideVar *uint) *glib.Bytes { | 650 | func (x *TextureDownloader) DownloadBytes(OutStrideVar *uint) *glib.Bytes { | ||
| 726 | - | core.LazyRegister(&xTextureDownloaderDownloadBytes, "GDK", "gdk_texture_downloader_download_bytes", false) | |||
| 727 | - | ||||
| 728 | cret := xTextureDownloaderDownloadBytes(x.GoPointer(), OutStrideVar) | 651 | cret := xTextureDownloaderDownloadBytes(x.GoPointer(), OutStrideVar) | ||
| 729 | if cret == 0 { | 652 | if cret == 0 { | ||
| 730 | return nil | 653 | return nil | ||
| @@ -740,8 +663,6 @@ var xTextureDownloaderDownloadBytesWithPlanes func(uintptr, *[4]uint, *[4]uint) | |||||
| 740 | // If the format does have less than 4 planes, the remaining offsets and strides will be | 663 | // If the format does have less than 4 planes, the remaining offsets and strides will be | ||
| 741 | // set to `0`. | 664 | // set to `0`. | ||
| 742 | func (x *TextureDownloader) DownloadBytesWithPlanes(OutOffsetsVar *[4]uint, OutStridesVar *[4]uint) *glib.Bytes { | 665 | func (x *TextureDownloader) DownloadBytesWithPlanes(OutOffsetsVar *[4]uint, OutStridesVar *[4]uint) *glib.Bytes { | ||
| 743 | - | core.LazyRegister(&xTextureDownloaderDownloadBytesWithPlanes, "GDK", "gdk_texture_downloader_download_bytes_with_planes", false) | |||
| 744 | - | ||||
| 745 | cret := xTextureDownloaderDownloadBytesWithPlanes(x.GoPointer(), OutOffsetsVar, OutStridesVar) | 666 | cret := xTextureDownloaderDownloadBytesWithPlanes(x.GoPointer(), OutOffsetsVar, OutStridesVar) | ||
| 746 | if cret == 0 { | 667 | if cret == 0 { | ||
| 747 | return nil | 668 | return nil | ||
| @@ -755,8 +676,6 @@ var xTextureDownloaderDownloadInto func(uintptr, []byte, uint) | |||||
| 755 | // | 676 | // | ||
| 756 | // This function cannot be used with a multiplanar format. | 677 | // This function cannot be used with a multiplanar format. | ||
| 757 | func (x *TextureDownloader) DownloadInto(DataVar []byte, StrideVar uint) { | 678 | func (x *TextureDownloader) DownloadInto(DataVar []byte, StrideVar uint) { | ||
| 758 | - | core.LazyRegister(&xTextureDownloaderDownloadInto, "GDK", "gdk_texture_downloader_download_into", false) | |||
| 759 | - | ||||
| 760 | xTextureDownloaderDownloadInto(x.GoPointer(), DataVar, StrideVar) | 679 | xTextureDownloaderDownloadInto(x.GoPointer(), DataVar, StrideVar) | ||
| 761 | } | 680 | } | ||
| 762 | 681 | ||||
| @@ -764,8 +683,6 @@ var xTextureDownloaderFree func(uintptr) | |||||
| 764 | 683 | ||||
| 765 | // Frees the given downloader and all its associated resources. | 684 | // Frees the given downloader and all its associated resources. | ||
| 766 | func (x *TextureDownloader) Free() { | 685 | func (x *TextureDownloader) Free() { | ||
| 767 | - | core.LazyRegister(&xTextureDownloaderFree, "GDK", "gdk_texture_downloader_free", false) | |||
| 768 | - | ||||
| 769 | xTextureDownloaderFree(x.GoPointer()) | 686 | xTextureDownloaderFree(x.GoPointer()) | ||
| 770 | } | 687 | } | ||
| 771 | 688 | ||||
| @@ -773,8 +690,6 @@ var xTextureDownloaderGetColorState func(uintptr) uintptr | |||||
| 773 | 690 | ||||
| 774 | // Gets the color state that the data will be downloaded in. | 691 | // Gets the color state that the data will be downloaded in. | ||
| 775 | func (x *TextureDownloader) GetColorState() *ColorState { | 692 | func (x *TextureDownloader) GetColorState() *ColorState { | ||
| 776 | - | core.LazyRegister(&xTextureDownloaderGetColorState, "GDK", "gdk_texture_downloader_get_color_state", false) | |||
| 777 | - | ||||
| 778 | cret := xTextureDownloaderGetColorState(x.GoPointer()) | 693 | cret := xTextureDownloaderGetColorState(x.GoPointer()) | ||
| 779 | if cret == 0 { | 694 | if cret == 0 { | ||
| 780 | return nil | 695 | return nil | ||
| @@ -786,8 +701,6 @@ var xTextureDownloaderGetFormat func(uintptr) MemoryFormat | |||||
| 786 | 701 | ||||
| 787 | // Gets the format that the data will be downloaded in. | 702 | // Gets the format that the data will be downloaded in. | ||
| 788 | func (x *TextureDownloader) GetFormat() MemoryFormat { | 703 | func (x *TextureDownloader) GetFormat() MemoryFormat { | ||
| 789 | - | core.LazyRegister(&xTextureDownloaderGetFormat, "GDK", "gdk_texture_downloader_get_format", false) | |||
| 790 | - | ||||
| 791 | cret := xTextureDownloaderGetFormat(x.GoPointer()) | 704 | cret := xTextureDownloaderGetFormat(x.GoPointer()) | ||
| 792 | return cret | 705 | return cret | ||
| 793 | } | 706 | } | ||
| @@ -796,7 +709,6 @@ var xTextureDownloaderGetTexture func(uintptr) uintptr | |||||
| 796 | 709 | ||||
| 797 | // Gets the texture that the downloader will download. | 710 | // Gets the texture that the downloader will download. | ||
| 798 | func (x *TextureDownloader) GetTexture() *Texture { | 711 | func (x *TextureDownloader) GetTexture() *Texture { | ||
| 799 | - | core.LazyRegister(&xTextureDownloaderGetTexture, "GDK", "gdk_texture_downloader_get_texture", false) | |||
| 800 | var cls *Texture | 712 | var cls *Texture | ||
| 801 | 713 | ||||
| 802 | cret := xTextureDownloaderGetTexture(x.GoPointer()) | 714 | cret := xTextureDownloaderGetTexture(x.GoPointer()) | ||
| @@ -817,8 +729,6 @@ var xTextureDownloaderSetColorState func(uintptr, *ColorState) | |||||
| 817 | // By default, the sRGB colorstate returned by [func@ColorState.get_srgb] | 729 | // By default, the sRGB colorstate returned by [func@ColorState.get_srgb] | ||
| 818 | // is used. | 730 | // is used. | ||
| 819 | func (x *TextureDownloader) SetColorState(ColorStateVar *ColorState) { | 731 | func (x *TextureDownloader) SetColorState(ColorStateVar *ColorState) { | ||
| 820 | - | core.LazyRegister(&xTextureDownloaderSetColorState, "GDK", "gdk_texture_downloader_set_color_state", false) | |||
| 821 | - | ||||
| 822 | xTextureDownloaderSetColorState(x.GoPointer(), ColorStateVar) | 732 | xTextureDownloaderSetColorState(x.GoPointer(), ColorStateVar) | ||
| 823 | } | 733 | } | ||
| 824 | 734 | ||||
| @@ -828,8 +738,6 @@ var xTextureDownloaderSetFormat func(uintptr, MemoryFormat) | |||||
| 828 | // | 738 | // | ||
| 829 | // By default, GDK_MEMORY_DEFAULT is set. | 739 | // By default, GDK_MEMORY_DEFAULT is set. | ||
| 830 | func (x *TextureDownloader) SetFormat(FormatVar MemoryFormat) { | 740 | func (x *TextureDownloader) SetFormat(FormatVar MemoryFormat) { | ||
| 831 | - | core.LazyRegister(&xTextureDownloaderSetFormat, "GDK", "gdk_texture_downloader_set_format", false) | |||
| 832 | - | ||||
| 833 | xTextureDownloaderSetFormat(x.GoPointer(), FormatVar) | 741 | xTextureDownloaderSetFormat(x.GoPointer(), FormatVar) | ||
| 834 | } | 742 | } | ||
| 835 | 743 | ||||
| @@ -837,8 +745,6 @@ var xTextureDownloaderSetTexture func(uintptr, uintptr) | |||||
| 837 | 745 | ||||
| 838 | // Changes the texture the downloader will download. | 746 | // Changes the texture the downloader will download. | ||
| 839 | func (x *TextureDownloader) SetTexture(TextureVar *Texture) { | 747 | func (x *TextureDownloader) SetTexture(TextureVar *Texture) { | ||
| 840 | - | core.LazyRegister(&xTextureDownloaderSetTexture, "GDK", "gdk_texture_downloader_set_texture", false) | |||
| 841 | - | ||||
| 842 | xTextureDownloaderSetTexture(x.GoPointer(), TextureVar.GoPointer()) | 748 | xTextureDownloaderSetTexture(x.GoPointer(), TextureVar.GoPointer()) | ||
| 843 | } | 749 | } | ||
| 844 | 750 | ||||
| @@ -850,4 +756,75 @@ const ( | |||||
| 850 | func init() { | 756 | func init() { | ||
| 851 | core.SetPackageName("GDK", "gtk4") | 757 | core.SetPackageName("GDK", "gtk4") | ||
| 852 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | 758 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | ||
| 759 | + | var libs []uintptr | |||
| 760 | + | for _, libPath := range core.GetPaths("GDK") { | |||
| 761 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 762 | + | if err != nil { | |||
| 763 | + | panic(err) | |||
| 764 | + | } | |||
| 765 | + | libs = append(libs, lib) | |||
| 766 | + | } | |||
| 767 | + | ||||
| 768 | + | core.PuregoSafeRegister(&xColorStateGLibType, libs, "gdk_color_state_get_type") | |||
| 769 | + | ||||
| 770 | + | core.PuregoSafeRegister(&xColorStateCreateCicpParams, libs, "gdk_color_state_create_cicp_params") | |||
| 771 | + | core.PuregoSafeRegister(&xColorStateEqual, libs, "gdk_color_state_equal") | |||
| 772 | + | core.PuregoSafeRegister(&xColorStateEquivalent, libs, "gdk_color_state_equivalent") | |||
| 773 | + | core.PuregoSafeRegister(&xColorStateRef, libs, "gdk_color_state_ref") | |||
| 774 | + | core.PuregoSafeRegister(&xColorStateUnref, libs, "gdk_color_state_unref") | |||
| 775 | + | ||||
| 776 | + | core.PuregoSafeRegister(&xContentFormatsGLibType, libs, "gdk_content_formats_get_type") | |||
| 777 | + | ||||
| 778 | + | core.PuregoSafeRegister(&xNewContentFormats, libs, "gdk_content_formats_new") | |||
| 779 | + | core.PuregoSafeRegister(&xNewContentFormatsForGtype, libs, "gdk_content_formats_new_for_gtype") | |||
| 780 | + | ||||
| 781 | + | core.PuregoSafeRegister(&xContentFormatsContainGtype, libs, "gdk_content_formats_contain_gtype") | |||
| 782 | + | core.PuregoSafeRegister(&xContentFormatsContainMimeType, libs, "gdk_content_formats_contain_mime_type") | |||
| 783 | + | core.PuregoSafeRegister(&xContentFormatsGetGtypes, libs, "gdk_content_formats_get_gtypes") | |||
| 784 | + | core.PuregoSafeRegister(&xContentFormatsGetMimeTypes, libs, "gdk_content_formats_get_mime_types") | |||
| 785 | + | core.PuregoSafeRegister(&xContentFormatsIsEmpty, libs, "gdk_content_formats_is_empty") | |||
| 786 | + | core.PuregoSafeRegister(&xContentFormatsMatch, libs, "gdk_content_formats_match") | |||
| 787 | + | core.PuregoSafeRegister(&xContentFormatsMatchGtype, libs, "gdk_content_formats_match_gtype") | |||
| 788 | + | core.PuregoSafeRegister(&xContentFormatsMatchMimeType, libs, "gdk_content_formats_match_mime_type") | |||
| 789 | + | core.PuregoSafeRegister(&xContentFormatsPrint, libs, "gdk_content_formats_print") | |||
| 790 | + | core.PuregoSafeRegister(&xContentFormatsRef, libs, "gdk_content_formats_ref") | |||
| 791 | + | core.PuregoSafeRegister(&xContentFormatsToString, libs, "gdk_content_formats_to_string") | |||
| 792 | + | core.PuregoSafeRegister(&xContentFormatsUnion, libs, "gdk_content_formats_union") | |||
| 793 | + | core.PuregoSafeRegister(&xContentFormatsUnionDeserializeGtypes, libs, "gdk_content_formats_union_deserialize_gtypes") | |||
| 794 | + | core.PuregoSafeRegister(&xContentFormatsUnionDeserializeMimeTypes, libs, "gdk_content_formats_union_deserialize_mime_types") | |||
| 795 | + | core.PuregoSafeRegister(&xContentFormatsUnionSerializeGtypes, libs, "gdk_content_formats_union_serialize_gtypes") | |||
| 796 | + | core.PuregoSafeRegister(&xContentFormatsUnionSerializeMimeTypes, libs, "gdk_content_formats_union_serialize_mime_types") | |||
| 797 | + | core.PuregoSafeRegister(&xContentFormatsUnref, libs, "gdk_content_formats_unref") | |||
| 798 | + | ||||
| 799 | + | core.PuregoSafeRegister(&xDmabufFormatsGLibType, libs, "gdk_dmabuf_formats_get_type") | |||
| 800 | + | ||||
| 801 | + | core.PuregoSafeRegister(&xDmabufFormatsContains, libs, "gdk_dmabuf_formats_contains") | |||
| 802 | + | core.PuregoSafeRegister(&xDmabufFormatsEqual, libs, "gdk_dmabuf_formats_equal") | |||
| 803 | + | core.PuregoSafeRegister(&xDmabufFormatsGetFormat, libs, "gdk_dmabuf_formats_get_format") | |||
| 804 | + | core.PuregoSafeRegister(&xDmabufFormatsGetNFormats, libs, "gdk_dmabuf_formats_get_n_formats") | |||
| 805 | + | core.PuregoSafeRegister(&xDmabufFormatsRef, libs, "gdk_dmabuf_formats_ref") | |||
| 806 | + | core.PuregoSafeRegister(&xDmabufFormatsUnref, libs, "gdk_dmabuf_formats_unref") | |||
| 807 | + | ||||
| 808 | + | core.PuregoSafeRegister(&xRectangleGLibType, libs, "gdk_rectangle_get_type") | |||
| 809 | + | ||||
| 810 | + | core.PuregoSafeRegister(&xRectangleContainsPoint, libs, "gdk_rectangle_contains_point") | |||
| 811 | + | core.PuregoSafeRegister(&xRectangleEqual, libs, "gdk_rectangle_equal") | |||
| 812 | + | core.PuregoSafeRegister(&xRectangleIntersect, libs, "gdk_rectangle_intersect") | |||
| 813 | + | core.PuregoSafeRegister(&xRectangleUnion, libs, "gdk_rectangle_union") | |||
| 814 | + | ||||
| 815 | + | core.PuregoSafeRegister(&xTextureDownloaderGLibType, libs, "gdk_texture_downloader_get_type") | |||
| 816 | + | ||||
| 817 | + | core.PuregoSafeRegister(&xNewTextureDownloader, libs, "gdk_texture_downloader_new") | |||
| 818 | + | ||||
| 819 | + | core.PuregoSafeRegister(&xTextureDownloaderCopy, libs, "gdk_texture_downloader_copy") | |||
| 820 | + | core.PuregoSafeRegister(&xTextureDownloaderDownloadBytes, libs, "gdk_texture_downloader_download_bytes") | |||
| 821 | + | core.PuregoSafeRegister(&xTextureDownloaderDownloadBytesWithPlanes, libs, "gdk_texture_downloader_download_bytes_with_planes") | |||
| 822 | + | core.PuregoSafeRegister(&xTextureDownloaderDownloadInto, libs, "gdk_texture_downloader_download_into") | |||
| 823 | + | core.PuregoSafeRegister(&xTextureDownloaderFree, libs, "gdk_texture_downloader_free") | |||
| 824 | + | core.PuregoSafeRegister(&xTextureDownloaderGetColorState, libs, "gdk_texture_downloader_get_color_state") | |||
| 825 | + | core.PuregoSafeRegister(&xTextureDownloaderGetFormat, libs, "gdk_texture_downloader_get_format") | |||
| 826 | + | core.PuregoSafeRegister(&xTextureDownloaderGetTexture, libs, "gdk_texture_downloader_get_texture") | |||
| 827 | + | core.PuregoSafeRegister(&xTextureDownloaderSetColorState, libs, "gdk_texture_downloader_set_color_state") | |||
| 828 | + | core.PuregoSafeRegister(&xTextureDownloaderSetFormat, libs, "gdk_texture_downloader_set_format") | |||
| 829 | + | core.PuregoSafeRegister(&xTextureDownloaderSetTexture, libs, "gdk_texture_downloader_set_texture") | |||
| 853 | } | 830 | } | ||