Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
M go.mod +3 -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.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef | |
| 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 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -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.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef |
| 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 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/cairo" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -92,6 +91,7 @@ type DmabufTextureBuilder struct { | |||
| 92 | 91 | var xDmabufTextureBuilderGLibType func() types.GType | |
| 93 | 92 | ||
| 94 | 93 | func DmabufTextureBuilderGLibType() types.GType { | |
| 94 | + | core.LazyRegister(&xDmabufTextureBuilderGLibType, "GDK", "gdk_dmabuf_texture_builder_get_type", false) | |
| 95 | 95 | return xDmabufTextureBuilderGLibType() | |
| 96 | 96 | } | |
| 97 | 97 | ||
| @@ -105,6 +105,7 @@ var xNewDmabufTextureBuilder func() uintptr | |||
| 105 | 105 | ||
| 106 | 106 | // Creates a new texture builder. | |
| 107 | 107 | func NewDmabufTextureBuilder() *DmabufTextureBuilder { | |
| 108 | + | core.LazyRegister(&xNewDmabufTextureBuilder, "GDK", "gdk_dmabuf_texture_builder_new", false) | |
| 108 | 109 | var cls *DmabufTextureBuilder | |
| 109 | 110 | ||
| 110 | 111 | cret := xNewDmabufTextureBuilder() | |
| @@ -136,6 +137,7 @@ var xDmabufTextureBuilderBuild func(uintptr, uintptr, uintptr, **glib.Error) uin | |||
| 136 | 137 | // It is possible to call this function multiple times to create multiple textures, | |
| 137 | 138 | // possibly with changing properties in between. | |
| 138 | 139 | func (x *DmabufTextureBuilder) Build(DestroyVar *glib.DestroyNotify, DataVar uintptr) (*Texture, error) { | |
| 140 | + | core.LazyRegister(&xDmabufTextureBuilderBuild, "GDK", "gdk_dmabuf_texture_builder_build", false) | |
| 139 | 141 | var cls *Texture | |
| 140 | 142 | var cerr *glib.Error | |
| 141 | 143 | ||
| @@ -156,6 +158,8 @@ var xDmabufTextureBuilderGetColorState func(uintptr) uintptr | |||
| 156 | 158 | ||
| 157 | 159 | // Gets the color state previously set via gdk_dmabuf_texture_builder_set_color_state(). | |
| 158 | 160 | func (x *DmabufTextureBuilder) GetColorState() *ColorState { | |
| 161 | + | core.LazyRegister(&xDmabufTextureBuilderGetColorState, "GDK", "gdk_dmabuf_texture_builder_get_color_state", false) | |
| 162 | + | ||
| 159 | 163 | cret := xDmabufTextureBuilderGetColorState(x.GoPointer()) | |
| 160 | 164 | if cret == 0 { | |
| 161 | 165 | return nil | |
| @@ -168,6 +172,7 @@ var xDmabufTextureBuilderGetDisplay func(uintptr) uintptr | |||
| 168 | 172 | // Returns the display that this texture builder is | |
| 169 | 173 | // associated with. | |
| 170 | 174 | func (x *DmabufTextureBuilder) GetDisplay() *Display { | |
| 175 | + | core.LazyRegister(&xDmabufTextureBuilderGetDisplay, "GDK", "gdk_dmabuf_texture_builder_get_display", false) | |
| 171 | 176 | var cls *Display | |
| 172 | 177 | ||
| 173 | 178 | cret := xDmabufTextureBuilderGetDisplay(x.GoPointer()) | |
| @@ -185,6 +190,8 @@ var xDmabufTextureBuilderGetFd func(uintptr, uint) int | |||
| 185 | 190 | ||
| 186 | 191 | // Gets the file descriptor for a plane. | |
| 187 | 192 | func (x *DmabufTextureBuilder) GetFd(PlaneVar uint) int { | |
| 193 | + | core.LazyRegister(&xDmabufTextureBuilderGetFd, "GDK", "gdk_dmabuf_texture_builder_get_fd", false) | |
| 194 | + | ||
| 188 | 195 | cret := xDmabufTextureBuilderGetFd(x.GoPointer(), PlaneVar) | |
| 189 | 196 | return cret | |
| 190 | 197 | } | |
| @@ -196,6 +203,8 @@ var xDmabufTextureBuilderGetFourcc func(uintptr) uint32 | |||
| 196 | 203 | // | |
| 197 | 204 | // The format is specified as a fourcc code. | |
| 198 | 205 | func (x *DmabufTextureBuilder) GetFourcc() uint32 { | |
| 206 | + | core.LazyRegister(&xDmabufTextureBuilderGetFourcc, "GDK", "gdk_dmabuf_texture_builder_get_fourcc", false) | |
| 207 | + | ||
| 199 | 208 | cret := xDmabufTextureBuilderGetFourcc(x.GoPointer()) | |
| 200 | 209 | return cret | |
| 201 | 210 | } | |
| @@ -205,6 +214,8 @@ var xDmabufTextureBuilderGetHeight func(uintptr) uint | |||
| 205 | 214 | // Gets the height previously set via gdk_dmabuf_texture_builder_set_height() or | |
| 206 | 215 | // 0 if the height wasn't set. | |
| 207 | 216 | func (x *DmabufTextureBuilder) GetHeight() uint { | |
| 217 | + | core.LazyRegister(&xDmabufTextureBuilderGetHeight, "GDK", "gdk_dmabuf_texture_builder_get_height", false) | |
| 218 | + | ||
| 208 | 219 | cret := xDmabufTextureBuilderGetHeight(x.GoPointer()) | |
| 209 | 220 | return cret | |
| 210 | 221 | } | |
| @@ -213,6 +224,8 @@ var xDmabufTextureBuilderGetModifier func(uintptr) uint64 | |||
| 213 | 224 | ||
| 214 | 225 | // Gets the modifier value. | |
| 215 | 226 | func (x *DmabufTextureBuilder) GetModifier() uint64 { | |
| 227 | + | core.LazyRegister(&xDmabufTextureBuilderGetModifier, "GDK", "gdk_dmabuf_texture_builder_get_modifier", false) | |
| 228 | + | ||
| 216 | 229 | cret := xDmabufTextureBuilderGetModifier(x.GoPointer()) | |
| 217 | 230 | return cret | |
| 218 | 231 | } | |
| @@ -221,6 +234,8 @@ var xDmabufTextureBuilderGetNPlanes func(uintptr) uint | |||
| 221 | 234 | ||
| 222 | 235 | // Gets the number of planes. | |
| 223 | 236 | func (x *DmabufTextureBuilder) GetNPlanes() uint { | |
| 237 | + | core.LazyRegister(&xDmabufTextureBuilderGetNPlanes, "GDK", "gdk_dmabuf_texture_builder_get_n_planes", false) | |
| 238 | + | ||
| 224 | 239 | cret := xDmabufTextureBuilderGetNPlanes(x.GoPointer()) | |
| 225 | 240 | return cret | |
| 226 | 241 | } | |
| @@ -229,6 +244,8 @@ var xDmabufTextureBuilderGetOffset func(uintptr, uint) uint | |||
| 229 | 244 | ||
| 230 | 245 | // Gets the offset value for a plane. | |
| 231 | 246 | func (x *DmabufTextureBuilder) GetOffset(PlaneVar uint) uint { | |
| 247 | + | core.LazyRegister(&xDmabufTextureBuilderGetOffset, "GDK", "gdk_dmabuf_texture_builder_get_offset", false) | |
| 248 | + | ||
| 232 | 249 | cret := xDmabufTextureBuilderGetOffset(x.GoPointer(), PlaneVar) | |
| 233 | 250 | return cret | |
| 234 | 251 | } | |
| @@ -237,6 +254,8 @@ var xDmabufTextureBuilderGetPremultiplied func(uintptr) bool | |||
| 237 | 254 | ||
| 238 | 255 | // Whether the data is premultiplied. | |
| 239 | 256 | func (x *DmabufTextureBuilder) GetPremultiplied() bool { | |
| 257 | + | core.LazyRegister(&xDmabufTextureBuilderGetPremultiplied, "GDK", "gdk_dmabuf_texture_builder_get_premultiplied", false) | |
| 258 | + | ||
| 240 | 259 | cret := xDmabufTextureBuilderGetPremultiplied(x.GoPointer()) | |
| 241 | 260 | return cret | |
| 242 | 261 | } | |
| @@ -245,6 +264,8 @@ var xDmabufTextureBuilderGetStride func(uintptr, uint) uint | |||
| 245 | 264 | ||
| 246 | 265 | // Gets the stride value for a plane. | |
| 247 | 266 | func (x *DmabufTextureBuilder) GetStride(PlaneVar uint) uint { | |
| 267 | + | core.LazyRegister(&xDmabufTextureBuilderGetStride, "GDK", "gdk_dmabuf_texture_builder_get_stride", false) | |
| 268 | + | ||
| 248 | 269 | cret := xDmabufTextureBuilderGetStride(x.GoPointer(), PlaneVar) | |
| 249 | 270 | return cret | |
| 250 | 271 | } | |
| @@ -254,6 +275,8 @@ var xDmabufTextureBuilderGetUpdateRegion func(uintptr) uintptr | |||
| 254 | 275 | // Gets the region previously set via gdk_dmabuf_texture_builder_set_update_region() or | |
| 255 | 276 | // %NULL if none was set. | |
| 256 | 277 | func (x *DmabufTextureBuilder) GetUpdateRegion() *cairo.Region { | |
| 278 | + | core.LazyRegister(&xDmabufTextureBuilderGetUpdateRegion, "GDK", "gdk_dmabuf_texture_builder_get_update_region", false) | |
| 279 | + | ||
| 257 | 280 | cret := xDmabufTextureBuilderGetUpdateRegion(x.GoPointer()) | |
| 258 | 281 | if cret == 0 { | |
| 259 | 282 | return nil | |
| @@ -266,6 +289,7 @@ var xDmabufTextureBuilderGetUpdateTexture func(uintptr) uintptr | |||
| 266 | 289 | // Gets the texture previously set via gdk_dmabuf_texture_builder_set_update_texture() or | |
| 267 | 290 | // %NULL if none was set. | |
| 268 | 291 | func (x *DmabufTextureBuilder) GetUpdateTexture() *Texture { | |
| 292 | + | core.LazyRegister(&xDmabufTextureBuilderGetUpdateTexture, "GDK", "gdk_dmabuf_texture_builder_get_update_texture", false) | |
| 269 | 293 | var cls *Texture | |
| 270 | 294 | ||
| 271 | 295 | cret := xDmabufTextureBuilderGetUpdateTexture(x.GoPointer()) | |
| @@ -284,6 +308,8 @@ var xDmabufTextureBuilderGetWidth func(uintptr) uint | |||
| 284 | 308 | // Gets the width previously set via gdk_dmabuf_texture_builder_set_width() or | |
| 285 | 309 | // 0 if the width wasn't set. | |
| 286 | 310 | func (x *DmabufTextureBuilder) GetWidth() uint { | |
| 311 | + | core.LazyRegister(&xDmabufTextureBuilderGetWidth, "GDK", "gdk_dmabuf_texture_builder_get_width", false) | |
| 312 | + | ||
| 287 | 313 | cret := xDmabufTextureBuilderGetWidth(x.GoPointer()) | |
| 288 | 314 | return cret | |
| 289 | 315 | } | |
| @@ -296,6 +322,8 @@ var xDmabufTextureBuilderSetColorState func(uintptr, *ColorState) | |||
| 296 | 322 | // correct colorstate based on the format. | |
| 297 | 323 | // If you don't know what colorstates are, this is probably the right thing. | |
| 298 | 324 | func (x *DmabufTextureBuilder) SetColorState(ColorStateVar *ColorState) { | |
| 325 | + | core.LazyRegister(&xDmabufTextureBuilderSetColorState, "GDK", "gdk_dmabuf_texture_builder_set_color_state", false) | |
| 326 | + | ||
| 299 | 327 | xDmabufTextureBuilderSetColorState(x.GoPointer(), ColorStateVar) | |
| 300 | 328 | } | |
| 301 | 329 | ||
| @@ -307,6 +335,8 @@ var xDmabufTextureBuilderSetDisplay func(uintptr, uintptr) | |||
| 307 | 335 | // The display is used to determine the supported | |
| 308 | 336 | // dma-buf formats. | |
| 309 | 337 | func (x *DmabufTextureBuilder) SetDisplay(DisplayVar *Display) { | |
| 338 | + | core.LazyRegister(&xDmabufTextureBuilderSetDisplay, "GDK", "gdk_dmabuf_texture_builder_set_display", false) | |
| 339 | + | ||
| 310 | 340 | xDmabufTextureBuilderSetDisplay(x.GoPointer(), DisplayVar.GoPointer()) | |
| 311 | 341 | } | |
| 312 | 342 | ||
| @@ -314,6 +344,8 @@ var xDmabufTextureBuilderSetFd func(uintptr, uint, int) | |||
| 314 | 344 | ||
| 315 | 345 | // Sets the file descriptor for a plane. | |
| 316 | 346 | func (x *DmabufTextureBuilder) SetFd(PlaneVar uint, FdVar int) { | |
| 347 | + | core.LazyRegister(&xDmabufTextureBuilderSetFd, "GDK", "gdk_dmabuf_texture_builder_set_fd", false) | |
| 348 | + | ||
| 317 | 349 | xDmabufTextureBuilderSetFd(x.GoPointer(), PlaneVar, FdVar) | |
| 318 | 350 | } | |
| 319 | 351 | ||
| @@ -325,6 +357,8 @@ var xDmabufTextureBuilderSetFourcc func(uintptr, uint32) | |||
| 325 | 357 | // | |
| 326 | 358 | // The format must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | |
| 327 | 359 | func (x *DmabufTextureBuilder) SetFourcc(FourccVar uint32) { | |
| 360 | + | core.LazyRegister(&xDmabufTextureBuilderSetFourcc, "GDK", "gdk_dmabuf_texture_builder_set_fourcc", false) | |
| 361 | + | ||
| 328 | 362 | xDmabufTextureBuilderSetFourcc(x.GoPointer(), FourccVar) | |
| 329 | 363 | } | |
| 330 | 364 | ||
| @@ -334,6 +368,8 @@ var xDmabufTextureBuilderSetHeight func(uintptr, uint) | |||
| 334 | 368 | // | |
| 335 | 369 | // The height must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | |
| 336 | 370 | func (x *DmabufTextureBuilder) SetHeight(HeightVar uint) { | |
| 371 | + | core.LazyRegister(&xDmabufTextureBuilderSetHeight, "GDK", "gdk_dmabuf_texture_builder_set_height", false) | |
| 372 | + | ||
| 337 | 373 | xDmabufTextureBuilderSetHeight(x.GoPointer(), HeightVar) | |
| 338 | 374 | } | |
| 339 | 375 | ||
| @@ -341,6 +377,8 @@ var xDmabufTextureBuilderSetModifier func(uintptr, uint64) | |||
| 341 | 377 | ||
| 342 | 378 | // Sets the modifier. | |
| 343 | 379 | func (x *DmabufTextureBuilder) SetModifier(ModifierVar uint64) { | |
| 380 | + | core.LazyRegister(&xDmabufTextureBuilderSetModifier, "GDK", "gdk_dmabuf_texture_builder_set_modifier", false) | |
| 381 | + | ||
| 344 | 382 | xDmabufTextureBuilderSetModifier(x.GoPointer(), ModifierVar) | |
| 345 | 383 | } | |
| 346 | 384 | ||
| @@ -348,6 +386,8 @@ var xDmabufTextureBuilderSetNPlanes func(uintptr, uint) | |||
| 348 | 386 | ||
| 349 | 387 | // Sets the number of planes of the texture. | |
| 350 | 388 | func (x *DmabufTextureBuilder) SetNPlanes(NPlanesVar uint) { | |
| 389 | + | core.LazyRegister(&xDmabufTextureBuilderSetNPlanes, "GDK", "gdk_dmabuf_texture_builder_set_n_planes", false) | |
| 390 | + | ||
| 351 | 391 | xDmabufTextureBuilderSetNPlanes(x.GoPointer(), NPlanesVar) | |
| 352 | 392 | } | |
| 353 | 393 | ||
| @@ -355,6 +395,8 @@ var xDmabufTextureBuilderSetOffset func(uintptr, uint, uint) | |||
| 355 | 395 | ||
| 356 | 396 | // Sets the offset for a plane. | |
| 357 | 397 | func (x *DmabufTextureBuilder) SetOffset(PlaneVar uint, OffsetVar uint) { | |
| 398 | + | core.LazyRegister(&xDmabufTextureBuilderSetOffset, "GDK", "gdk_dmabuf_texture_builder_set_offset", false) | |
| 399 | + | ||
| 358 | 400 | xDmabufTextureBuilderSetOffset(x.GoPointer(), PlaneVar, OffsetVar) | |
| 359 | 401 | } | |
| 360 | 402 | ||
| @@ -365,6 +407,8 @@ var xDmabufTextureBuilderSetPremultiplied func(uintptr, bool) | |||
| 365 | 407 | // Unless otherwise specified, all formats including alpha channels are assumed | |
| 366 | 408 | // to be premultiplied. | |
| 367 | 409 | func (x *DmabufTextureBuilder) SetPremultiplied(PremultipliedVar bool) { | |
| 410 | + | core.LazyRegister(&xDmabufTextureBuilderSetPremultiplied, "GDK", "gdk_dmabuf_texture_builder_set_premultiplied", false) | |
| 411 | + | ||
| 368 | 412 | xDmabufTextureBuilderSetPremultiplied(x.GoPointer(), PremultipliedVar) | |
| 369 | 413 | } | |
| 370 | 414 | ||
| @@ -374,6 +418,8 @@ var xDmabufTextureBuilderSetStride func(uintptr, uint, uint) | |||
| 374 | 418 | // | |
| 375 | 419 | // The stride must be set for all planes before calling [method@Gdk.DmabufTextureBuilder.build]. | |
| 376 | 420 | func (x *DmabufTextureBuilder) SetStride(PlaneVar uint, StrideVar uint) { | |
| 421 | + | core.LazyRegister(&xDmabufTextureBuilderSetStride, "GDK", "gdk_dmabuf_texture_builder_set_stride", false) | |
| 422 | + | ||
| 377 | 423 | xDmabufTextureBuilderSetStride(x.GoPointer(), PlaneVar, StrideVar) | |
| 378 | 424 | } | |
| 379 | 425 | ||
| @@ -390,6 +436,8 @@ var xDmabufTextureBuilderSetUpdateRegion func(uintptr, *cairo.Region) | |||
| 390 | 436 | // | |
| 391 | 437 | // An example would be a screen recording where only the mouse pointer moves. | |
| 392 | 438 | func (x *DmabufTextureBuilder) SetUpdateRegion(RegionVar *cairo.Region) { | |
| 439 | + | core.LazyRegister(&xDmabufTextureBuilderSetUpdateRegion, "GDK", "gdk_dmabuf_texture_builder_set_update_region", false) | |
| 440 | + | ||
| 393 | 441 | xDmabufTextureBuilderSetUpdateRegion(x.GoPointer(), RegionVar) | |
| 394 | 442 | } | |
| 395 | 443 | ||
| @@ -398,6 +446,8 @@ var xDmabufTextureBuilderSetUpdateTexture func(uintptr, uintptr) | |||
| 398 | 446 | // Sets the texture to be updated by this texture. See | |
| 399 | 447 | // [method@Gdk.DmabufTextureBuilder.set_update_region] for an explanation. | |
| 400 | 448 | func (x *DmabufTextureBuilder) SetUpdateTexture(TextureVar *Texture) { | |
| 449 | + | core.LazyRegister(&xDmabufTextureBuilderSetUpdateTexture, "GDK", "gdk_dmabuf_texture_builder_set_update_texture", false) | |
| 450 | + | ||
| 401 | 451 | xDmabufTextureBuilderSetUpdateTexture(x.GoPointer(), TextureVar.GoPointer()) | |
| 402 | 452 | } | |
| 403 | 453 | ||
| @@ -407,6 +457,8 @@ var xDmabufTextureBuilderSetWidth func(uintptr, uint) | |||
| 407 | 457 | // | |
| 408 | 458 | // The width must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | |
| 409 | 459 | func (x *DmabufTextureBuilder) SetWidth(WidthVar uint) { | |
| 460 | + | core.LazyRegister(&xDmabufTextureBuilderSetWidth, "GDK", "gdk_dmabuf_texture_builder_set_width", false) | |
| 461 | + | ||
| 410 | 462 | xDmabufTextureBuilderSetWidth(x.GoPointer(), WidthVar) | |
| 411 | 463 | } | |
| 412 | 464 | ||
| @@ -570,44 +622,4 @@ func (x *DmabufTextureBuilder) GetPropertyWidth() uint { | |||
| 570 | 622 | func init() { | |
| 571 | 623 | core.SetPackageName("GDK", "gtk4") | |
| 572 | 624 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | |
| 573 | - | var libs []uintptr | |
| 574 | - | for _, libPath := range core.GetPaths("GDK") { | |
| 575 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 576 | - | if err != nil { | |
| 577 | - | panic(err) | |
| 578 | - | } | |
| 579 | - | libs = append(libs, lib) | |
| 580 | - | } | |
| 581 | - | ||
| 582 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGLibType, libs, "gdk_dmabuf_texture_builder_get_type") | |
| 583 | - | ||
| 584 | - | core.PuregoSafeRegister(&xNewDmabufTextureBuilder, libs, "gdk_dmabuf_texture_builder_new") | |
| 585 | - | ||
| 586 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderBuild, libs, "gdk_dmabuf_texture_builder_build") | |
| 587 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetColorState, libs, "gdk_dmabuf_texture_builder_get_color_state") | |
| 588 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetDisplay, libs, "gdk_dmabuf_texture_builder_get_display") | |
| 589 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetFd, libs, "gdk_dmabuf_texture_builder_get_fd") | |
| 590 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetFourcc, libs, "gdk_dmabuf_texture_builder_get_fourcc") | |
| 591 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetHeight, libs, "gdk_dmabuf_texture_builder_get_height") | |
| 592 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetModifier, libs, "gdk_dmabuf_texture_builder_get_modifier") | |
| 593 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetNPlanes, libs, "gdk_dmabuf_texture_builder_get_n_planes") | |
| 594 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetOffset, libs, "gdk_dmabuf_texture_builder_get_offset") | |
| 595 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetPremultiplied, libs, "gdk_dmabuf_texture_builder_get_premultiplied") | |
| 596 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetStride, libs, "gdk_dmabuf_texture_builder_get_stride") | |
| 597 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetUpdateRegion, libs, "gdk_dmabuf_texture_builder_get_update_region") | |
| 598 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetUpdateTexture, libs, "gdk_dmabuf_texture_builder_get_update_texture") | |
| 599 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetWidth, libs, "gdk_dmabuf_texture_builder_get_width") | |
| 600 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetColorState, libs, "gdk_dmabuf_texture_builder_set_color_state") | |
| 601 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetDisplay, libs, "gdk_dmabuf_texture_builder_set_display") | |
| 602 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetFd, libs, "gdk_dmabuf_texture_builder_set_fd") | |
| 603 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetFourcc, libs, "gdk_dmabuf_texture_builder_set_fourcc") | |
| 604 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetHeight, libs, "gdk_dmabuf_texture_builder_set_height") | |
| 605 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetModifier, libs, "gdk_dmabuf_texture_builder_set_modifier") | |
| 606 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetNPlanes, libs, "gdk_dmabuf_texture_builder_set_n_planes") | |
| 607 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetOffset, libs, "gdk_dmabuf_texture_builder_set_offset") | |
| 608 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetPremultiplied, libs, "gdk_dmabuf_texture_builder_set_premultiplied") | |
| 609 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetStride, libs, "gdk_dmabuf_texture_builder_set_stride") | |
| 610 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetUpdateRegion, libs, "gdk_dmabuf_texture_builder_set_update_region") | |
| 611 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetUpdateTexture, libs, "gdk_dmabuf_texture_builder_set_update_texture") | |
| 612 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetWidth, libs, "gdk_dmabuf_texture_builder_set_width") | |
| 613 | 625 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/cairo" | 9 | "github.com/bnema/puregotk/v4/cairo" | ||
| 11 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -92,6 +91,7 @@ type DmabufTextureBuilder struct { | |||||
| 92 | var xDmabufTextureBuilderGLibType func() types.GType | 91 | var xDmabufTextureBuilderGLibType func() types.GType | ||
| 93 | 92 | ||||
| 94 | func DmabufTextureBuilderGLibType() types.GType { | 93 | func DmabufTextureBuilderGLibType() types.GType { | ||
| 94 | + | core.LazyRegister(&xDmabufTextureBuilderGLibType, "GDK", "gdk_dmabuf_texture_builder_get_type", false) | |||
| 95 | return xDmabufTextureBuilderGLibType() | 95 | return xDmabufTextureBuilderGLibType() | ||
| 96 | } | 96 | } | ||
| 97 | 97 | ||||
| @@ -105,6 +105,7 @@ var xNewDmabufTextureBuilder func() uintptr | |||||
| 105 | 105 | ||||
| 106 | // Creates a new texture builder. | 106 | // Creates a new texture builder. | ||
| 107 | func NewDmabufTextureBuilder() *DmabufTextureBuilder { | 107 | func NewDmabufTextureBuilder() *DmabufTextureBuilder { | ||
| 108 | + | core.LazyRegister(&xNewDmabufTextureBuilder, "GDK", "gdk_dmabuf_texture_builder_new", false) | |||
| 108 | var cls *DmabufTextureBuilder | 109 | var cls *DmabufTextureBuilder | ||
| 109 | 110 | ||||
| 110 | cret := xNewDmabufTextureBuilder() | 111 | cret := xNewDmabufTextureBuilder() | ||
| @@ -136,6 +137,7 @@ var xDmabufTextureBuilderBuild func(uintptr, uintptr, uintptr, **glib.Error) uin | |||||
| 136 | // It is possible to call this function multiple times to create multiple textures, | 137 | // It is possible to call this function multiple times to create multiple textures, | ||
| 137 | // possibly with changing properties in between. | 138 | // possibly with changing properties in between. | ||
| 138 | func (x *DmabufTextureBuilder) Build(DestroyVar *glib.DestroyNotify, DataVar uintptr) (*Texture, error) { | 139 | func (x *DmabufTextureBuilder) Build(DestroyVar *glib.DestroyNotify, DataVar uintptr) (*Texture, error) { | ||
| 140 | + | core.LazyRegister(&xDmabufTextureBuilderBuild, "GDK", "gdk_dmabuf_texture_builder_build", false) | |||
| 139 | var cls *Texture | 141 | var cls *Texture | ||
| 140 | var cerr *glib.Error | 142 | var cerr *glib.Error | ||
| 141 | 143 | ||||
| @@ -156,6 +158,8 @@ var xDmabufTextureBuilderGetColorState func(uintptr) uintptr | |||||
| 156 | 158 | ||||
| 157 | // Gets the color state previously set via gdk_dmabuf_texture_builder_set_color_state(). | 159 | // Gets the color state previously set via gdk_dmabuf_texture_builder_set_color_state(). | ||
| 158 | func (x *DmabufTextureBuilder) GetColorState() *ColorState { | 160 | func (x *DmabufTextureBuilder) GetColorState() *ColorState { | ||
| 161 | + | core.LazyRegister(&xDmabufTextureBuilderGetColorState, "GDK", "gdk_dmabuf_texture_builder_get_color_state", false) | |||
| 162 | + | ||||
| 159 | cret := xDmabufTextureBuilderGetColorState(x.GoPointer()) | 163 | cret := xDmabufTextureBuilderGetColorState(x.GoPointer()) | ||
| 160 | if cret == 0 { | 164 | if cret == 0 { | ||
| 161 | return nil | 165 | return nil | ||
| @@ -168,6 +172,7 @@ var xDmabufTextureBuilderGetDisplay func(uintptr) uintptr | |||||
| 168 | // Returns the display that this texture builder is | 172 | // Returns the display that this texture builder is | ||
| 169 | // associated with. | 173 | // associated with. | ||
| 170 | func (x *DmabufTextureBuilder) GetDisplay() *Display { | 174 | func (x *DmabufTextureBuilder) GetDisplay() *Display { | ||
| 175 | + | core.LazyRegister(&xDmabufTextureBuilderGetDisplay, "GDK", "gdk_dmabuf_texture_builder_get_display", false) | |||
| 171 | var cls *Display | 176 | var cls *Display | ||
| 172 | 177 | ||||
| 173 | cret := xDmabufTextureBuilderGetDisplay(x.GoPointer()) | 178 | cret := xDmabufTextureBuilderGetDisplay(x.GoPointer()) | ||
| @@ -185,6 +190,8 @@ var xDmabufTextureBuilderGetFd func(uintptr, uint) int | |||||
| 185 | 190 | ||||
| 186 | // Gets the file descriptor for a plane. | 191 | // Gets the file descriptor for a plane. | ||
| 187 | func (x *DmabufTextureBuilder) GetFd(PlaneVar uint) int { | 192 | func (x *DmabufTextureBuilder) GetFd(PlaneVar uint) int { | ||
| 193 | + | core.LazyRegister(&xDmabufTextureBuilderGetFd, "GDK", "gdk_dmabuf_texture_builder_get_fd", false) | |||
| 194 | + | ||||
| 188 | cret := xDmabufTextureBuilderGetFd(x.GoPointer(), PlaneVar) | 195 | cret := xDmabufTextureBuilderGetFd(x.GoPointer(), PlaneVar) | ||
| 189 | return cret | 196 | return cret | ||
| 190 | } | 197 | } | ||
| @@ -196,6 +203,8 @@ var xDmabufTextureBuilderGetFourcc func(uintptr) uint32 | |||||
| 196 | // | 203 | // | ||
| 197 | // The format is specified as a fourcc code. | 204 | // The format is specified as a fourcc code. | ||
| 198 | func (x *DmabufTextureBuilder) GetFourcc() uint32 { | 205 | func (x *DmabufTextureBuilder) GetFourcc() uint32 { | ||
| 206 | + | core.LazyRegister(&xDmabufTextureBuilderGetFourcc, "GDK", "gdk_dmabuf_texture_builder_get_fourcc", false) | |||
| 207 | + | ||||
| 199 | cret := xDmabufTextureBuilderGetFourcc(x.GoPointer()) | 208 | cret := xDmabufTextureBuilderGetFourcc(x.GoPointer()) | ||
| 200 | return cret | 209 | return cret | ||
| 201 | } | 210 | } | ||
| @@ -205,6 +214,8 @@ var xDmabufTextureBuilderGetHeight func(uintptr) uint | |||||
| 205 | // Gets the height previously set via gdk_dmabuf_texture_builder_set_height() or | 214 | // Gets the height previously set via gdk_dmabuf_texture_builder_set_height() or | ||
| 206 | // 0 if the height wasn't set. | 215 | // 0 if the height wasn't set. | ||
| 207 | func (x *DmabufTextureBuilder) GetHeight() uint { | 216 | func (x *DmabufTextureBuilder) GetHeight() uint { | ||
| 217 | + | core.LazyRegister(&xDmabufTextureBuilderGetHeight, "GDK", "gdk_dmabuf_texture_builder_get_height", false) | |||
| 218 | + | ||||
| 208 | cret := xDmabufTextureBuilderGetHeight(x.GoPointer()) | 219 | cret := xDmabufTextureBuilderGetHeight(x.GoPointer()) | ||
| 209 | return cret | 220 | return cret | ||
| 210 | } | 221 | } | ||
| @@ -213,6 +224,8 @@ var xDmabufTextureBuilderGetModifier func(uintptr) uint64 | |||||
| 213 | 224 | ||||
| 214 | // Gets the modifier value. | 225 | // Gets the modifier value. | ||
| 215 | func (x *DmabufTextureBuilder) GetModifier() uint64 { | 226 | func (x *DmabufTextureBuilder) GetModifier() uint64 { | ||
| 227 | + | core.LazyRegister(&xDmabufTextureBuilderGetModifier, "GDK", "gdk_dmabuf_texture_builder_get_modifier", false) | |||
| 228 | + | ||||
| 216 | cret := xDmabufTextureBuilderGetModifier(x.GoPointer()) | 229 | cret := xDmabufTextureBuilderGetModifier(x.GoPointer()) | ||
| 217 | return cret | 230 | return cret | ||
| 218 | } | 231 | } | ||
| @@ -221,6 +234,8 @@ var xDmabufTextureBuilderGetNPlanes func(uintptr) uint | |||||
| 221 | 234 | ||||
| 222 | // Gets the number of planes. | 235 | // Gets the number of planes. | ||
| 223 | func (x *DmabufTextureBuilder) GetNPlanes() uint { | 236 | func (x *DmabufTextureBuilder) GetNPlanes() uint { | ||
| 237 | + | core.LazyRegister(&xDmabufTextureBuilderGetNPlanes, "GDK", "gdk_dmabuf_texture_builder_get_n_planes", false) | |||
| 238 | + | ||||
| 224 | cret := xDmabufTextureBuilderGetNPlanes(x.GoPointer()) | 239 | cret := xDmabufTextureBuilderGetNPlanes(x.GoPointer()) | ||
| 225 | return cret | 240 | return cret | ||
| 226 | } | 241 | } | ||
| @@ -229,6 +244,8 @@ var xDmabufTextureBuilderGetOffset func(uintptr, uint) uint | |||||
| 229 | 244 | ||||
| 230 | // Gets the offset value for a plane. | 245 | // Gets the offset value for a plane. | ||
| 231 | func (x *DmabufTextureBuilder) GetOffset(PlaneVar uint) uint { | 246 | func (x *DmabufTextureBuilder) GetOffset(PlaneVar uint) uint { | ||
| 247 | + | core.LazyRegister(&xDmabufTextureBuilderGetOffset, "GDK", "gdk_dmabuf_texture_builder_get_offset", false) | |||
| 248 | + | ||||
| 232 | cret := xDmabufTextureBuilderGetOffset(x.GoPointer(), PlaneVar) | 249 | cret := xDmabufTextureBuilderGetOffset(x.GoPointer(), PlaneVar) | ||
| 233 | return cret | 250 | return cret | ||
| 234 | } | 251 | } | ||
| @@ -237,6 +254,8 @@ var xDmabufTextureBuilderGetPremultiplied func(uintptr) bool | |||||
| 237 | 254 | ||||
| 238 | // Whether the data is premultiplied. | 255 | // Whether the data is premultiplied. | ||
| 239 | func (x *DmabufTextureBuilder) GetPremultiplied() bool { | 256 | func (x *DmabufTextureBuilder) GetPremultiplied() bool { | ||
| 257 | + | core.LazyRegister(&xDmabufTextureBuilderGetPremultiplied, "GDK", "gdk_dmabuf_texture_builder_get_premultiplied", false) | |||
| 258 | + | ||||
| 240 | cret := xDmabufTextureBuilderGetPremultiplied(x.GoPointer()) | 259 | cret := xDmabufTextureBuilderGetPremultiplied(x.GoPointer()) | ||
| 241 | return cret | 260 | return cret | ||
| 242 | } | 261 | } | ||
| @@ -245,6 +264,8 @@ var xDmabufTextureBuilderGetStride func(uintptr, uint) uint | |||||
| 245 | 264 | ||||
| 246 | // Gets the stride value for a plane. | 265 | // Gets the stride value for a plane. | ||
| 247 | func (x *DmabufTextureBuilder) GetStride(PlaneVar uint) uint { | 266 | func (x *DmabufTextureBuilder) GetStride(PlaneVar uint) uint { | ||
| 267 | + | core.LazyRegister(&xDmabufTextureBuilderGetStride, "GDK", "gdk_dmabuf_texture_builder_get_stride", false) | |||
| 268 | + | ||||
| 248 | cret := xDmabufTextureBuilderGetStride(x.GoPointer(), PlaneVar) | 269 | cret := xDmabufTextureBuilderGetStride(x.GoPointer(), PlaneVar) | ||
| 249 | return cret | 270 | return cret | ||
| 250 | } | 271 | } | ||
| @@ -254,6 +275,8 @@ var xDmabufTextureBuilderGetUpdateRegion func(uintptr) uintptr | |||||
| 254 | // Gets the region previously set via gdk_dmabuf_texture_builder_set_update_region() or | 275 | // Gets the region previously set via gdk_dmabuf_texture_builder_set_update_region() or | ||
| 255 | // %NULL if none was set. | 276 | // %NULL if none was set. | ||
| 256 | func (x *DmabufTextureBuilder) GetUpdateRegion() *cairo.Region { | 277 | func (x *DmabufTextureBuilder) GetUpdateRegion() *cairo.Region { | ||
| 278 | + | core.LazyRegister(&xDmabufTextureBuilderGetUpdateRegion, "GDK", "gdk_dmabuf_texture_builder_get_update_region", false) | |||
| 279 | + | ||||
| 257 | cret := xDmabufTextureBuilderGetUpdateRegion(x.GoPointer()) | 280 | cret := xDmabufTextureBuilderGetUpdateRegion(x.GoPointer()) | ||
| 258 | if cret == 0 { | 281 | if cret == 0 { | ||
| 259 | return nil | 282 | return nil | ||
| @@ -266,6 +289,7 @@ var xDmabufTextureBuilderGetUpdateTexture func(uintptr) uintptr | |||||
| 266 | // Gets the texture previously set via gdk_dmabuf_texture_builder_set_update_texture() or | 289 | // Gets the texture previously set via gdk_dmabuf_texture_builder_set_update_texture() or | ||
| 267 | // %NULL if none was set. | 290 | // %NULL if none was set. | ||
| 268 | func (x *DmabufTextureBuilder) GetUpdateTexture() *Texture { | 291 | func (x *DmabufTextureBuilder) GetUpdateTexture() *Texture { | ||
| 292 | + | core.LazyRegister(&xDmabufTextureBuilderGetUpdateTexture, "GDK", "gdk_dmabuf_texture_builder_get_update_texture", false) | |||
| 269 | var cls *Texture | 293 | var cls *Texture | ||
| 270 | 294 | ||||
| 271 | cret := xDmabufTextureBuilderGetUpdateTexture(x.GoPointer()) | 295 | cret := xDmabufTextureBuilderGetUpdateTexture(x.GoPointer()) | ||
| @@ -284,6 +308,8 @@ var xDmabufTextureBuilderGetWidth func(uintptr) uint | |||||
| 284 | // Gets the width previously set via gdk_dmabuf_texture_builder_set_width() or | 308 | // Gets the width previously set via gdk_dmabuf_texture_builder_set_width() or | ||
| 285 | // 0 if the width wasn't set. | 309 | // 0 if the width wasn't set. | ||
| 286 | func (x *DmabufTextureBuilder) GetWidth() uint { | 310 | func (x *DmabufTextureBuilder) GetWidth() uint { | ||
| 311 | + | core.LazyRegister(&xDmabufTextureBuilderGetWidth, "GDK", "gdk_dmabuf_texture_builder_get_width", false) | |||
| 312 | + | ||||
| 287 | cret := xDmabufTextureBuilderGetWidth(x.GoPointer()) | 313 | cret := xDmabufTextureBuilderGetWidth(x.GoPointer()) | ||
| 288 | return cret | 314 | return cret | ||
| 289 | } | 315 | } | ||
| @@ -296,6 +322,8 @@ var xDmabufTextureBuilderSetColorState func(uintptr, *ColorState) | |||||
| 296 | // correct colorstate based on the format. | 322 | // correct colorstate based on the format. | ||
| 297 | // If you don't know what colorstates are, this is probably the right thing. | 323 | // If you don't know what colorstates are, this is probably the right thing. | ||
| 298 | func (x *DmabufTextureBuilder) SetColorState(ColorStateVar *ColorState) { | 324 | func (x *DmabufTextureBuilder) SetColorState(ColorStateVar *ColorState) { | ||
| 325 | + | core.LazyRegister(&xDmabufTextureBuilderSetColorState, "GDK", "gdk_dmabuf_texture_builder_set_color_state", false) | |||
| 326 | + | ||||
| 299 | xDmabufTextureBuilderSetColorState(x.GoPointer(), ColorStateVar) | 327 | xDmabufTextureBuilderSetColorState(x.GoPointer(), ColorStateVar) | ||
| 300 | } | 328 | } | ||
| 301 | 329 | ||||
| @@ -307,6 +335,8 @@ var xDmabufTextureBuilderSetDisplay func(uintptr, uintptr) | |||||
| 307 | // The display is used to determine the supported | 335 | // The display is used to determine the supported | ||
| 308 | // dma-buf formats. | 336 | // dma-buf formats. | ||
| 309 | func (x *DmabufTextureBuilder) SetDisplay(DisplayVar *Display) { | 337 | func (x *DmabufTextureBuilder) SetDisplay(DisplayVar *Display) { | ||
| 338 | + | core.LazyRegister(&xDmabufTextureBuilderSetDisplay, "GDK", "gdk_dmabuf_texture_builder_set_display", false) | |||
| 339 | + | ||||
| 310 | xDmabufTextureBuilderSetDisplay(x.GoPointer(), DisplayVar.GoPointer()) | 340 | xDmabufTextureBuilderSetDisplay(x.GoPointer(), DisplayVar.GoPointer()) | ||
| 311 | } | 341 | } | ||
| 312 | 342 | ||||
| @@ -314,6 +344,8 @@ var xDmabufTextureBuilderSetFd func(uintptr, uint, int) | |||||
| 314 | 344 | ||||
| 315 | // Sets the file descriptor for a plane. | 345 | // Sets the file descriptor for a plane. | ||
| 316 | func (x *DmabufTextureBuilder) SetFd(PlaneVar uint, FdVar int) { | 346 | func (x *DmabufTextureBuilder) SetFd(PlaneVar uint, FdVar int) { | ||
| 347 | + | core.LazyRegister(&xDmabufTextureBuilderSetFd, "GDK", "gdk_dmabuf_texture_builder_set_fd", false) | |||
| 348 | + | ||||
| 317 | xDmabufTextureBuilderSetFd(x.GoPointer(), PlaneVar, FdVar) | 349 | xDmabufTextureBuilderSetFd(x.GoPointer(), PlaneVar, FdVar) | ||
| 318 | } | 350 | } | ||
| 319 | 351 | ||||
| @@ -325,6 +357,8 @@ var xDmabufTextureBuilderSetFourcc func(uintptr, uint32) | |||||
| 325 | // | 357 | // | ||
| 326 | // The format must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | 358 | // The format must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | ||
| 327 | func (x *DmabufTextureBuilder) SetFourcc(FourccVar uint32) { | 359 | func (x *DmabufTextureBuilder) SetFourcc(FourccVar uint32) { | ||
| 360 | + | core.LazyRegister(&xDmabufTextureBuilderSetFourcc, "GDK", "gdk_dmabuf_texture_builder_set_fourcc", false) | |||
| 361 | + | ||||
| 328 | xDmabufTextureBuilderSetFourcc(x.GoPointer(), FourccVar) | 362 | xDmabufTextureBuilderSetFourcc(x.GoPointer(), FourccVar) | ||
| 329 | } | 363 | } | ||
| 330 | 364 | ||||
| @@ -334,6 +368,8 @@ var xDmabufTextureBuilderSetHeight func(uintptr, uint) | |||||
| 334 | // | 368 | // | ||
| 335 | // The height must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | 369 | // The height must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | ||
| 336 | func (x *DmabufTextureBuilder) SetHeight(HeightVar uint) { | 370 | func (x *DmabufTextureBuilder) SetHeight(HeightVar uint) { | ||
| 371 | + | core.LazyRegister(&xDmabufTextureBuilderSetHeight, "GDK", "gdk_dmabuf_texture_builder_set_height", false) | |||
| 372 | + | ||||
| 337 | xDmabufTextureBuilderSetHeight(x.GoPointer(), HeightVar) | 373 | xDmabufTextureBuilderSetHeight(x.GoPointer(), HeightVar) | ||
| 338 | } | 374 | } | ||
| 339 | 375 | ||||
| @@ -341,6 +377,8 @@ var xDmabufTextureBuilderSetModifier func(uintptr, uint64) | |||||
| 341 | 377 | ||||
| 342 | // Sets the modifier. | 378 | // Sets the modifier. | ||
| 343 | func (x *DmabufTextureBuilder) SetModifier(ModifierVar uint64) { | 379 | func (x *DmabufTextureBuilder) SetModifier(ModifierVar uint64) { | ||
| 380 | + | core.LazyRegister(&xDmabufTextureBuilderSetModifier, "GDK", "gdk_dmabuf_texture_builder_set_modifier", false) | |||
| 381 | + | ||||
| 344 | xDmabufTextureBuilderSetModifier(x.GoPointer(), ModifierVar) | 382 | xDmabufTextureBuilderSetModifier(x.GoPointer(), ModifierVar) | ||
| 345 | } | 383 | } | ||
| 346 | 384 | ||||
| @@ -348,6 +386,8 @@ var xDmabufTextureBuilderSetNPlanes func(uintptr, uint) | |||||
| 348 | 386 | ||||
| 349 | // Sets the number of planes of the texture. | 387 | // Sets the number of planes of the texture. | ||
| 350 | func (x *DmabufTextureBuilder) SetNPlanes(NPlanesVar uint) { | 388 | func (x *DmabufTextureBuilder) SetNPlanes(NPlanesVar uint) { | ||
| 389 | + | core.LazyRegister(&xDmabufTextureBuilderSetNPlanes, "GDK", "gdk_dmabuf_texture_builder_set_n_planes", false) | |||
| 390 | + | ||||
| 351 | xDmabufTextureBuilderSetNPlanes(x.GoPointer(), NPlanesVar) | 391 | xDmabufTextureBuilderSetNPlanes(x.GoPointer(), NPlanesVar) | ||
| 352 | } | 392 | } | ||
| 353 | 393 | ||||
| @@ -355,6 +395,8 @@ var xDmabufTextureBuilderSetOffset func(uintptr, uint, uint) | |||||
| 355 | 395 | ||||
| 356 | // Sets the offset for a plane. | 396 | // Sets the offset for a plane. | ||
| 357 | func (x *DmabufTextureBuilder) SetOffset(PlaneVar uint, OffsetVar uint) { | 397 | func (x *DmabufTextureBuilder) SetOffset(PlaneVar uint, OffsetVar uint) { | ||
| 398 | + | core.LazyRegister(&xDmabufTextureBuilderSetOffset, "GDK", "gdk_dmabuf_texture_builder_set_offset", false) | |||
| 399 | + | ||||
| 358 | xDmabufTextureBuilderSetOffset(x.GoPointer(), PlaneVar, OffsetVar) | 400 | xDmabufTextureBuilderSetOffset(x.GoPointer(), PlaneVar, OffsetVar) | ||
| 359 | } | 401 | } | ||
| 360 | 402 | ||||
| @@ -365,6 +407,8 @@ var xDmabufTextureBuilderSetPremultiplied func(uintptr, bool) | |||||
| 365 | // Unless otherwise specified, all formats including alpha channels are assumed | 407 | // Unless otherwise specified, all formats including alpha channels are assumed | ||
| 366 | // to be premultiplied. | 408 | // to be premultiplied. | ||
| 367 | func (x *DmabufTextureBuilder) SetPremultiplied(PremultipliedVar bool) { | 409 | func (x *DmabufTextureBuilder) SetPremultiplied(PremultipliedVar bool) { | ||
| 410 | + | core.LazyRegister(&xDmabufTextureBuilderSetPremultiplied, "GDK", "gdk_dmabuf_texture_builder_set_premultiplied", false) | |||
| 411 | + | ||||
| 368 | xDmabufTextureBuilderSetPremultiplied(x.GoPointer(), PremultipliedVar) | 412 | xDmabufTextureBuilderSetPremultiplied(x.GoPointer(), PremultipliedVar) | ||
| 369 | } | 413 | } | ||
| 370 | 414 | ||||
| @@ -374,6 +418,8 @@ var xDmabufTextureBuilderSetStride func(uintptr, uint, uint) | |||||
| 374 | // | 418 | // | ||
| 375 | // The stride must be set for all planes before calling [method@Gdk.DmabufTextureBuilder.build]. | 419 | // The stride must be set for all planes before calling [method@Gdk.DmabufTextureBuilder.build]. | ||
| 376 | func (x *DmabufTextureBuilder) SetStride(PlaneVar uint, StrideVar uint) { | 420 | func (x *DmabufTextureBuilder) SetStride(PlaneVar uint, StrideVar uint) { | ||
| 421 | + | core.LazyRegister(&xDmabufTextureBuilderSetStride, "GDK", "gdk_dmabuf_texture_builder_set_stride", false) | |||
| 422 | + | ||||
| 377 | xDmabufTextureBuilderSetStride(x.GoPointer(), PlaneVar, StrideVar) | 423 | xDmabufTextureBuilderSetStride(x.GoPointer(), PlaneVar, StrideVar) | ||
| 378 | } | 424 | } | ||
| 379 | 425 | ||||
| @@ -390,6 +436,8 @@ var xDmabufTextureBuilderSetUpdateRegion func(uintptr, *cairo.Region) | |||||
| 390 | // | 436 | // | ||
| 391 | // An example would be a screen recording where only the mouse pointer moves. | 437 | // An example would be a screen recording where only the mouse pointer moves. | ||
| 392 | func (x *DmabufTextureBuilder) SetUpdateRegion(RegionVar *cairo.Region) { | 438 | func (x *DmabufTextureBuilder) SetUpdateRegion(RegionVar *cairo.Region) { | ||
| 439 | + | core.LazyRegister(&xDmabufTextureBuilderSetUpdateRegion, "GDK", "gdk_dmabuf_texture_builder_set_update_region", false) | |||
| 440 | + | ||||
| 393 | xDmabufTextureBuilderSetUpdateRegion(x.GoPointer(), RegionVar) | 441 | xDmabufTextureBuilderSetUpdateRegion(x.GoPointer(), RegionVar) | ||
| 394 | } | 442 | } | ||
| 395 | 443 | ||||
| @@ -398,6 +446,8 @@ var xDmabufTextureBuilderSetUpdateTexture func(uintptr, uintptr) | |||||
| 398 | // Sets the texture to be updated by this texture. See | 446 | // Sets the texture to be updated by this texture. See | ||
| 399 | // [method@Gdk.DmabufTextureBuilder.set_update_region] for an explanation. | 447 | // [method@Gdk.DmabufTextureBuilder.set_update_region] for an explanation. | ||
| 400 | func (x *DmabufTextureBuilder) SetUpdateTexture(TextureVar *Texture) { | 448 | func (x *DmabufTextureBuilder) SetUpdateTexture(TextureVar *Texture) { | ||
| 449 | + | core.LazyRegister(&xDmabufTextureBuilderSetUpdateTexture, "GDK", "gdk_dmabuf_texture_builder_set_update_texture", false) | |||
| 450 | + | ||||
| 401 | xDmabufTextureBuilderSetUpdateTexture(x.GoPointer(), TextureVar.GoPointer()) | 451 | xDmabufTextureBuilderSetUpdateTexture(x.GoPointer(), TextureVar.GoPointer()) | ||
| 402 | } | 452 | } | ||
| 403 | 453 | ||||
| @@ -407,6 +457,8 @@ var xDmabufTextureBuilderSetWidth func(uintptr, uint) | |||||
| 407 | // | 457 | // | ||
| 408 | // The width must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | 458 | // The width must be set before calling [method@Gdk.DmabufTextureBuilder.build]. | ||
| 409 | func (x *DmabufTextureBuilder) SetWidth(WidthVar uint) { | 459 | func (x *DmabufTextureBuilder) SetWidth(WidthVar uint) { | ||
| 460 | + | core.LazyRegister(&xDmabufTextureBuilderSetWidth, "GDK", "gdk_dmabuf_texture_builder_set_width", false) | |||
| 461 | + | ||||
| 410 | xDmabufTextureBuilderSetWidth(x.GoPointer(), WidthVar) | 462 | xDmabufTextureBuilderSetWidth(x.GoPointer(), WidthVar) | ||
| 411 | } | 463 | } | ||
| 412 | 464 | ||||
| @@ -570,44 +622,4 @@ func (x *DmabufTextureBuilder) GetPropertyWidth() uint { | |||||
| 570 | func init() { | 622 | func init() { | ||
| 571 | core.SetPackageName("GDK", "gtk4") | 623 | core.SetPackageName("GDK", "gtk4") | ||
| 572 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | 624 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | ||
| 573 | - | var libs []uintptr | |||
| 574 | - | for _, libPath := range core.GetPaths("GDK") { | |||
| 575 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 576 | - | if err != nil { | |||
| 577 | - | panic(err) | |||
| 578 | - | } | |||
| 579 | - | libs = append(libs, lib) | |||
| 580 | - | } | |||
| 581 | - | ||||
| 582 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGLibType, libs, "gdk_dmabuf_texture_builder_get_type") | |||
| 583 | - | ||||
| 584 | - | core.PuregoSafeRegister(&xNewDmabufTextureBuilder, libs, "gdk_dmabuf_texture_builder_new") | |||
| 585 | - | ||||
| 586 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderBuild, libs, "gdk_dmabuf_texture_builder_build") | |||
| 587 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetColorState, libs, "gdk_dmabuf_texture_builder_get_color_state") | |||
| 588 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetDisplay, libs, "gdk_dmabuf_texture_builder_get_display") | |||
| 589 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetFd, libs, "gdk_dmabuf_texture_builder_get_fd") | |||
| 590 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetFourcc, libs, "gdk_dmabuf_texture_builder_get_fourcc") | |||
| 591 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetHeight, libs, "gdk_dmabuf_texture_builder_get_height") | |||
| 592 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetModifier, libs, "gdk_dmabuf_texture_builder_get_modifier") | |||
| 593 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetNPlanes, libs, "gdk_dmabuf_texture_builder_get_n_planes") | |||
| 594 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetOffset, libs, "gdk_dmabuf_texture_builder_get_offset") | |||
| 595 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetPremultiplied, libs, "gdk_dmabuf_texture_builder_get_premultiplied") | |||
| 596 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetStride, libs, "gdk_dmabuf_texture_builder_get_stride") | |||
| 597 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetUpdateRegion, libs, "gdk_dmabuf_texture_builder_get_update_region") | |||
| 598 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetUpdateTexture, libs, "gdk_dmabuf_texture_builder_get_update_texture") | |||
| 599 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderGetWidth, libs, "gdk_dmabuf_texture_builder_get_width") | |||
| 600 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetColorState, libs, "gdk_dmabuf_texture_builder_set_color_state") | |||
| 601 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetDisplay, libs, "gdk_dmabuf_texture_builder_set_display") | |||
| 602 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetFd, libs, "gdk_dmabuf_texture_builder_set_fd") | |||
| 603 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetFourcc, libs, "gdk_dmabuf_texture_builder_set_fourcc") | |||
| 604 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetHeight, libs, "gdk_dmabuf_texture_builder_set_height") | |||
| 605 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetModifier, libs, "gdk_dmabuf_texture_builder_set_modifier") | |||
| 606 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetNPlanes, libs, "gdk_dmabuf_texture_builder_set_n_planes") | |||
| 607 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetOffset, libs, "gdk_dmabuf_texture_builder_set_offset") | |||
| 608 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetPremultiplied, libs, "gdk_dmabuf_texture_builder_set_premultiplied") | |||
| 609 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetStride, libs, "gdk_dmabuf_texture_builder_set_stride") | |||
| 610 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetUpdateRegion, libs, "gdk_dmabuf_texture_builder_set_update_region") | |||
| 611 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetUpdateTexture, libs, "gdk_dmabuf_texture_builder_set_update_texture") | |||
| 612 | - | core.PuregoSafeRegister(&xDmabufTextureBuilderSetWidth, libs, "gdk_dmabuf_texture_builder_set_width") | |||
| 613 | } | 625 | } | ||