fix(deps): repin puregotk lazy registration fix
- commit
- d685b6e820d6baba0d0dea254169664012ed203d
- author
- brice · · 2026-07-14 18:24 UTC
- parent
- ec6db2e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
907 files · +27874 -25294
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.20260714181430-679a9ed72959 | |
| 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.20260714181430-679a9ed72959 |
| 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 -16 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +6 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 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 +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79
| @@ -4,7 +4,6 @@ package gdkpixbuf | |||
| 4 | 4 | import ( | |
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | - | "github.com/bnema/purego" | |
| 8 | 7 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 8 | "github.com/bnema/puregotk/v4/gio" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -154,6 +153,7 @@ type Pixbuf struct { | |||
| 154 | 153 | var xPixbufGLibType func() types.GType | |
| 155 | 154 | ||
| 156 | 155 | func PixbufGLibType() types.GType { | |
| 156 | + | core.LazyRegister(&xPixbufGLibType, "GDKPIXBUF", "gdk_pixbuf_get_type", false) | |
| 157 | 157 | return xPixbufGLibType() | |
| 158 | 158 | } | |
| 159 | 159 | ||
| @@ -172,6 +172,7 @@ var xNewPixbuf func(Colorspace, bool, int, int, int) uintptr | |||
| 172 | 172 | // The buffer has an optimal rowstride. Note that the buffer is not cleared; | |
| 173 | 173 | // you will have to fill it completely yourself. | |
| 174 | 174 | func NewPixbuf(ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int) *Pixbuf { | |
| 175 | + | core.LazyRegister(&xNewPixbuf, "GDKPIXBUF", "gdk_pixbuf_new", false) | |
| 175 | 176 | var cls *Pixbuf | |
| 176 | 177 | ||
| 177 | 178 | cret := xNewPixbuf(ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar) | |
| @@ -193,6 +194,7 @@ var xNewPixbufFromBytes func(*glib.Bytes, Colorspace, bool, int, int, int, int) | |||
| 193 | 194 | // This is the `GBytes` variant of gdk_pixbuf_new_from_data(), useful | |
| 194 | 195 | // for language bindings. | |
| 195 | 196 | func NewPixbufFromBytes(DataVar *glib.Bytes, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int) *Pixbuf { | |
| 197 | + | core.LazyRegister(&xNewPixbufFromBytes, "GDKPIXBUF", "gdk_pixbuf_new_from_bytes", false) | |
| 196 | 198 | var cls *Pixbuf | |
| 197 | 199 | ||
| 198 | 200 | cret := xNewPixbufFromBytes(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar) | |
| @@ -219,6 +221,7 @@ var xNewPixbufFromData func([]byte, Colorspace, bool, int, int, int, int, uintpt | |||
| 219 | 221 | // | |
| 220 | 222 | // See also: [ctor@GdkPixbuf.Pixbuf.new_from_bytes] | |
| 221 | 223 | func NewPixbufFromData(DataVar []byte, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | |
| 224 | + | core.LazyRegister(&xNewPixbufFromData, "GDKPIXBUF", "gdk_pixbuf_new_from_data", false) | |
| 222 | 225 | var cls *Pixbuf | |
| 223 | 226 | ||
| 224 | 227 | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallbackNullable(DestroyFnVar), DestroyFnDataVar) | |
| @@ -246,6 +249,7 @@ var xNewPixbufFromFile func(string, **glib.Error) uintptr | |||
| 246 | 249 | // | |
| 247 | 250 | // The error domains are `GDK_PIXBUF_ERROR` and `G_FILE_ERROR`. | |
| 248 | 251 | func NewPixbufFromFile(FilenameVar string) (*Pixbuf, error) { | |
| 252 | + | core.LazyRegister(&xNewPixbufFromFile, "GDKPIXBUF", "gdk_pixbuf_new_from_file", false) | |
| 249 | 253 | var cls *Pixbuf | |
| 250 | 254 | var cerr *glib.Error | |
| 251 | 255 | ||
| @@ -287,6 +291,7 @@ var xNewPixbufFromFileAtScale func(string, int, int, bool, **glib.Error) uintptr | |||
| 287 | 291 | // at all in that dimension. Negative values for `width` and `height` are | |
| 288 | 292 | // allowed since 2.8. | |
| 289 | 293 | func NewPixbufFromFileAtScale(FilenameVar string, WidthVar int, HeightVar int, PreserveAspectRatioVar bool) (*Pixbuf, error) { | |
| 294 | + | core.LazyRegister(&xNewPixbufFromFileAtScale, "GDKPIXBUF", "gdk_pixbuf_new_from_file_at_scale", false) | |
| 290 | 295 | var cls *Pixbuf | |
| 291 | 296 | var cerr *glib.Error | |
| 292 | 297 | ||
| @@ -324,6 +329,7 @@ var xNewPixbufFromFileAtSize func(string, int, int, **glib.Error) uintptr | |||
| 324 | 329 | // and image at the requested size, regardless of aspect ratio, use | |
| 325 | 330 | // [ctor@GdkPixbuf.Pixbuf.new_from_file_at_scale]. | |
| 326 | 331 | func NewPixbufFromFileAtSize(FilenameVar string, WidthVar int, HeightVar int) (*Pixbuf, error) { | |
| 332 | + | core.LazyRegister(&xNewPixbufFromFileAtSize, "GDKPIXBUF", "gdk_pixbuf_new_from_file_at_size", false) | |
| 327 | 333 | var cls *Pixbuf | |
| 328 | 334 | var cerr *glib.Error | |
| 329 | 335 | ||
| @@ -376,6 +382,7 @@ var xNewPixbufFromInline func(int, []byte, bool, **glib.Error) uintptr | |||
| 376 | 382 | // inline data located at runtime, you could have corrupt inline data in | |
| 377 | 383 | // addition. | |
| 378 | 384 | func NewPixbufFromInline(DataLengthVar int, DataVar []byte, CopyPixelsVar bool) (*Pixbuf, error) { | |
| 385 | + | core.LazyRegister(&xNewPixbufFromInline, "GDKPIXBUF", "gdk_pixbuf_new_from_inline", false) | |
| 379 | 386 | var cls *Pixbuf | |
| 380 | 387 | var cerr *glib.Error | |
| 381 | 388 | ||
| @@ -399,6 +406,7 @@ var xNewPixbufFromResource func(string, **glib.Error) uintptr | |||
| 399 | 406 | // The file format is detected automatically. If `NULL` is returned, then | |
| 400 | 407 | // @error will be set. | |
| 401 | 408 | func NewPixbufFromResource(ResourcePathVar string) (*Pixbuf, error) { | |
| 409 | + | core.LazyRegister(&xNewPixbufFromResource, "GDKPIXBUF", "gdk_pixbuf_new_from_resource", false) | |
| 402 | 410 | var cls *Pixbuf | |
| 403 | 411 | var cerr *glib.Error | |
| 404 | 412 | ||
| @@ -431,6 +439,7 @@ var xNewPixbufFromResourceAtScale func(string, int, int, bool, **glib.Error) uin | |||
| 431 | 439 | // | |
| 432 | 440 | // The stream is not closed. | |
| 433 | 441 | func NewPixbufFromResourceAtScale(ResourcePathVar string, WidthVar int, HeightVar int, PreserveAspectRatioVar bool) (*Pixbuf, error) { | |
| 442 | + | core.LazyRegister(&xNewPixbufFromResourceAtScale, "GDKPIXBUF", "gdk_pixbuf_new_from_resource_at_scale", false) | |
| 434 | 443 | var cls *Pixbuf | |
| 435 | 444 | var cerr *glib.Error | |
| 436 | 445 | ||
| @@ -462,6 +471,7 @@ var xNewPixbufFromStream func(uintptr, uintptr, **glib.Error) uintptr | |||
| 462 | 471 | // | |
| 463 | 472 | // The stream is not closed. | |
| 464 | 473 | func NewPixbufFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*Pixbuf, error) { | |
| 474 | + | core.LazyRegister(&xNewPixbufFromStream, "GDKPIXBUF", "gdk_pixbuf_new_from_stream", false) | |
| 465 | 475 | var cls *Pixbuf | |
| 466 | 476 | var cerr *glib.Error | |
| 467 | 477 | ||
| @@ -502,6 +512,7 @@ var xNewPixbufFromStreamAtScale func(uintptr, int, int, bool, uintptr, **glib.Er | |||
| 502 | 512 | // | |
| 503 | 513 | // The stream is not closed. | |
| 504 | 514 | func NewPixbufFromStreamAtScale(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable) (*Pixbuf, error) { | |
| 515 | + | core.LazyRegister(&xNewPixbufFromStreamAtScale, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_at_scale", false) | |
| 505 | 516 | var cls *Pixbuf | |
| 506 | 517 | var cerr *glib.Error | |
| 507 | 518 | ||
| @@ -523,6 +534,7 @@ var xNewPixbufFromStreamFinish func(uintptr, **glib.Error) uintptr | |||
| 523 | 534 | // Finishes an asynchronous pixbuf creation operation started with | |
| 524 | 535 | // gdk_pixbuf_new_from_stream_async(). | |
| 525 | 536 | func NewPixbufFromStreamFinish(AsyncResultVar gio.AsyncResult) (*Pixbuf, error) { | |
| 537 | + | core.LazyRegister(&xNewPixbufFromStreamFinish, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_finish", false) | |
| 526 | 538 | var cls *Pixbuf | |
| 527 | 539 | var cerr *glib.Error | |
| 528 | 540 | ||
| @@ -546,6 +558,7 @@ var xNewPixbufFromXpmData func([]string) uintptr | |||
| 546 | 558 | // This data is commonly the result of including an XPM file into a | |
| 547 | 559 | // program's C source. | |
| 548 | 560 | func NewPixbufFromXpmData(DataVar []string) *Pixbuf { | |
| 561 | + | core.LazyRegister(&xNewPixbufFromXpmData, "GDKPIXBUF", "gdk_pixbuf_new_from_xpm_data", false) | |
| 549 | 562 | var cls *Pixbuf | |
| 550 | 563 | ||
| 551 | 564 | cret := xNewPixbufFromXpmData(DataVar) | |
| @@ -574,6 +587,7 @@ var xPixbufAddAlpha func(uintptr, bool, byte, byte, byte) uintptr | |||
| 574 | 587 | // If `substitute_color` is `FALSE`, then the (`r`, `g`, `b`) arguments | |
| 575 | 588 | // will be ignored. | |
| 576 | 589 | func (x *Pixbuf) AddAlpha(SubstituteColorVar bool, RVar byte, GVar byte, BVar byte) *Pixbuf { | |
| 590 | + | core.LazyRegister(&xPixbufAddAlpha, "GDKPIXBUF", "gdk_pixbuf_add_alpha", false) | |
| 577 | 591 | var cls *Pixbuf | |
| 578 | 592 | ||
| 579 | 593 | cret := xPixbufAddAlpha(x.GoPointer(), SubstituteColorVar, RVar, GVar, BVar) | |
| @@ -599,6 +613,7 @@ var xPixbufApplyEmbeddedOrientation func(uintptr) uintptr | |||
| 599 | 613 | // If an orientation option/tag is present, the appropriate transform | |
| 600 | 614 | // will be performed so that the pixbuf is oriented correctly. | |
| 601 | 615 | func (x *Pixbuf) ApplyEmbeddedOrientation() *Pixbuf { | |
| 616 | + | core.LazyRegister(&xPixbufApplyEmbeddedOrientation, "GDKPIXBUF", "gdk_pixbuf_apply_embedded_orientation", false) | |
| 602 | 617 | var cls *Pixbuf | |
| 603 | 618 | ||
| 604 | 619 | cret := xPixbufApplyEmbeddedOrientation(x.GoPointer()) | |
| @@ -627,6 +642,8 @@ var xPixbufComposite func(uintptr, uintptr, int, int, int, int, float64, float64 | |||
| 627 | 642 | // | |
| 628 | 643 | //  | |
| 629 | 644 | func (x *Pixbuf) Composite(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType, OverallAlphaVar int) { | |
| 645 | + | core.LazyRegister(&xPixbufComposite, "GDKPIXBUF", "gdk_pixbuf_composite", false) | |
| 646 | + | ||
| 630 | 647 | xPixbufComposite(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar, OverallAlphaVar) | |
| 631 | 648 | } | |
| 632 | 649 | ||
| @@ -645,6 +662,8 @@ var xPixbufCompositeColor func(uintptr, uintptr, int, int, int, int, float64, fl | |||
| 645 | 662 | // See gdk_pixbuf_composite_color_simple() for a simpler variant of this | |
| 646 | 663 | // function suitable for many tasks. | |
| 647 | 664 | func (x *Pixbuf) CompositeColor(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType, OverallAlphaVar int, CheckXVar int, CheckYVar int, CheckSizeVar int, Color1Var uint32, Color2Var uint32) { | |
| 665 | + | core.LazyRegister(&xPixbufCompositeColor, "GDKPIXBUF", "gdk_pixbuf_composite_color", false) | |
| 666 | + | ||
| 648 | 667 | xPixbufCompositeColor(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar, OverallAlphaVar, CheckXVar, CheckYVar, CheckSizeVar, Color1Var, Color2Var) | |
| 649 | 668 | } | |
| 650 | 669 | ||
| @@ -654,6 +673,7 @@ var xPixbufCompositeColorSimple func(uintptr, int, int, InterpType, int, int, ui | |||
| 654 | 673 | // and alpha blending the result with a checkboard of colors `color1` | |
| 655 | 674 | // and `color2`. | |
| 656 | 675 | func (x *Pixbuf) CompositeColorSimple(DestWidthVar int, DestHeightVar int, InterpTypeVar InterpType, OverallAlphaVar int, CheckSizeVar int, Color1Var uint32, Color2Var uint32) *Pixbuf { | |
| 676 | + | core.LazyRegister(&xPixbufCompositeColorSimple, "GDKPIXBUF", "gdk_pixbuf_composite_color_simple", false) | |
| 657 | 677 | var cls *Pixbuf | |
| 658 | 678 | ||
| 659 | 679 | cret := xPixbufCompositeColorSimple(x.GoPointer(), DestWidthVar, DestHeightVar, InterpTypeVar, OverallAlphaVar, CheckSizeVar, Color1Var, Color2Var) | |
| @@ -674,6 +694,7 @@ var xPixbufCopy func(uintptr) uintptr | |||
| 674 | 694 | // Note that this does not copy the options set on the original `GdkPixbuf`, | |
| 675 | 695 | // use gdk_pixbuf_copy_options() for this. | |
| 676 | 696 | func (x *Pixbuf) Copy() *Pixbuf { | |
| 697 | + | core.LazyRegister(&xPixbufCopy, "GDKPIXBUF", "gdk_pixbuf_copy", false) | |
| 677 | 698 | var cls *Pixbuf | |
| 678 | 699 | ||
| 679 | 700 | cret := xPixbufCopy(x.GoPointer()) | |
| @@ -696,6 +717,8 @@ var xPixbufCopyArea func(uintptr, int, int, int, int, uintptr, int, int) | |||
| 696 | 717 | // same pixbuf, it will be overwritten during the copy operation. | |
| 697 | 718 | // Therefore, you can not use this function to scroll a pixbuf. | |
| 698 | 719 | func (x *Pixbuf) CopyArea(SrcXVar int, SrcYVar int, WidthVar int, HeightVar int, DestPixbufVar *Pixbuf, DestXVar int, DestYVar int) { | |
| 720 | + | core.LazyRegister(&xPixbufCopyArea, "GDKPIXBUF", "gdk_pixbuf_copy_area", false) | |
| 721 | + | ||
| 699 | 722 | xPixbufCopyArea(x.GoPointer(), SrcXVar, SrcYVar, WidthVar, HeightVar, DestPixbufVar.GoPointer(), DestXVar, DestYVar) | |
| 700 | 723 | } | |
| 701 | 724 | ||
| @@ -708,6 +731,8 @@ var xPixbufCopyOptions func(uintptr, uintptr) bool | |||
| 708 | 731 | // a file. However be careful to remove metadata which you've already | |
| 709 | 732 | // applied, such as the "orientation" option after rotating the image. | |
| 710 | 733 | func (x *Pixbuf) CopyOptions(DestPixbufVar *Pixbuf) bool { | |
| 734 | + | core.LazyRegister(&xPixbufCopyOptions, "GDKPIXBUF", "gdk_pixbuf_copy_options", false) | |
| 735 | + | ||
| 711 | 736 | cret := xPixbufCopyOptions(x.GoPointer(), DestPixbufVar.GoPointer()) | |
| 712 | 737 | return cret | |
| 713 | 738 | } | |
| @@ -720,6 +745,8 @@ var xPixbufFill func(uintptr, uint32) | |||
| 720 | 745 | // The alpha component will be ignored if the pixbuf doesn't have an alpha | |
| 721 | 746 | // channel. | |
| 722 | 747 | func (x *Pixbuf) Fill(PixelVar uint32) { | |
| 748 | + | core.LazyRegister(&xPixbufFill, "GDKPIXBUF", "gdk_pixbuf_fill", false) | |
| 749 | + | ||
| 723 | 750 | xPixbufFill(x.GoPointer(), PixelVar) | |
| 724 | 751 | } | |
| 725 | 752 | ||
| @@ -728,6 +755,7 @@ var xPixbufFlip func(uintptr, bool) uintptr | |||
| 728 | 755 | // Flips a pixbuf horizontally or vertically and returns the | |
| 729 | 756 | // result in a new pixbuf. | |
| 730 | 757 | func (x *Pixbuf) Flip(HorizontalVar bool) *Pixbuf { | |
| 758 | + | core.LazyRegister(&xPixbufFlip, "GDKPIXBUF", "gdk_pixbuf_flip", false) | |
| 731 | 759 | var cls *Pixbuf | |
| 732 | 760 | ||
| 733 | 761 | cret := xPixbufFlip(x.GoPointer(), HorizontalVar) | |
| @@ -744,6 +772,8 @@ var xPixbufGetBitsPerSample func(uintptr) int | |||
| 744 | 772 | ||
| 745 | 773 | // Queries the number of bits per color sample in a pixbuf. | |
| 746 | 774 | func (x *Pixbuf) GetBitsPerSample() int { | |
| 775 | + | core.LazyRegister(&xPixbufGetBitsPerSample, "GDKPIXBUF", "gdk_pixbuf_get_bits_per_sample", false) | |
| 776 | + | ||
| 747 | 777 | cret := xPixbufGetBitsPerSample(x.GoPointer()) | |
| 748 | 778 | return cret | |
| 749 | 779 | } | |
| @@ -752,6 +782,8 @@ var xPixbufGetByteLength func(uintptr) uint | |||
| 752 | 782 | ||
| 753 | 783 | // Returns the length of the pixel data, in bytes. | |
| 754 | 784 | func (x *Pixbuf) GetByteLength() uint { | |
| 785 | + | core.LazyRegister(&xPixbufGetByteLength, "GDKPIXBUF", "gdk_pixbuf_get_byte_length", false) | |
| 786 | + | ||
| 755 | 787 | cret := xPixbufGetByteLength(x.GoPointer()) | |
| 756 | 788 | return cret | |
| 757 | 789 | } | |
| @@ -760,6 +792,8 @@ var xPixbufGetColorspace func(uintptr) Colorspace | |||
| 760 | 792 | ||
| 761 | 793 | // Queries the color space of a pixbuf. | |
| 762 | 794 | func (x *Pixbuf) GetColorspace() Colorspace { | |
| 795 | + | core.LazyRegister(&xPixbufGetColorspace, "GDKPIXBUF", "gdk_pixbuf_get_colorspace", false) | |
| 796 | + | ||
| 763 | 797 | cret := xPixbufGetColorspace(x.GoPointer()) | |
| 764 | 798 | return cret | |
| 765 | 799 | } | |
| @@ -768,6 +802,8 @@ var xPixbufGetHasAlpha func(uintptr) bool | |||
| 768 | 802 | ||
| 769 | 803 | // Queries whether a pixbuf has an alpha channel (opacity information). | |
| 770 | 804 | func (x *Pixbuf) GetHasAlpha() bool { | |
| 805 | + | core.LazyRegister(&xPixbufGetHasAlpha, "GDKPIXBUF", "gdk_pixbuf_get_has_alpha", false) | |
| 806 | + | ||
| 771 | 807 | cret := xPixbufGetHasAlpha(x.GoPointer()) | |
| 772 | 808 | return cret | |
| 773 | 809 | } | |
| @@ -776,6 +812,8 @@ var xPixbufGetHeight func(uintptr) int | |||
| 776 | 812 | ||
| 777 | 813 | // Queries the height of a pixbuf. | |
| 778 | 814 | func (x *Pixbuf) GetHeight() int { | |
| 815 | + | core.LazyRegister(&xPixbufGetHeight, "GDKPIXBUF", "gdk_pixbuf_get_height", false) | |
| 816 | + | ||
| 779 | 817 | cret := xPixbufGetHeight(x.GoPointer()) | |
| 780 | 818 | return cret | |
| 781 | 819 | } | |
| @@ -784,6 +822,8 @@ var xPixbufGetNChannels func(uintptr) int | |||
| 784 | 822 | ||
| 785 | 823 | // Queries the number of channels of a pixbuf. | |
| 786 | 824 | func (x *Pixbuf) GetNChannels() int { | |
| 825 | + | core.LazyRegister(&xPixbufGetNChannels, "GDKPIXBUF", "gdk_pixbuf_get_n_channels", false) | |
| 826 | + | ||
| 787 | 827 | cret := xPixbufGetNChannels(x.GoPointer()) | |
| 788 | 828 | return cret | |
| 789 | 829 | } | |
| @@ -806,6 +846,8 @@ var xPixbufGetOption func(uintptr, string) string | |||
| 806 | 846 | // Since 2.36.6, the JPEG loader sets the "comment" option with the comment | |
| 807 | 847 | // EXIF tag. | |
| 808 | 848 | func (x *Pixbuf) GetOption(KeyVar string) string { | |
| 849 | + | core.LazyRegister(&xPixbufGetOption, "GDKPIXBUF", "gdk_pixbuf_get_option", false) | |
| 850 | + | ||
| 809 | 851 | cret := xPixbufGetOption(x.GoPointer(), KeyVar) | |
| 810 | 852 | return cret | |
| 811 | 853 | } | |
| @@ -816,6 +858,8 @@ var xPixbufGetOptions func(uintptr) uintptr | |||
| 816 | 858 | // attached to the `pixbuf` when it was loaded, or that may have been | |
| 817 | 859 | // attached by another function using [method@GdkPixbuf.Pixbuf.set_option]. | |
| 818 | 860 | func (x *Pixbuf) GetOptions() *glib.HashTable { | |
| 861 | + | core.LazyRegister(&xPixbufGetOptions, "GDKPIXBUF", "gdk_pixbuf_get_options", false) | |
| 862 | + | ||
| 819 | 863 | cret := xPixbufGetOptions(x.GoPointer()) | |
| 820 | 864 | if cret == 0 { | |
| 821 | 865 | return nil | |
| @@ -833,6 +877,8 @@ var xPixbufGetPixels func(uintptr) uintptr | |||
| 833 | 877 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | |
| 834 | 878 | // about how the pixel data is stored in memory. | |
| 835 | 879 | func (x *Pixbuf) GetPixels() uintptr { | |
| 880 | + | core.LazyRegister(&xPixbufGetPixels, "GDKPIXBUF", "gdk_pixbuf_get_pixels", false) | |
| 881 | + | ||
| 836 | 882 | cret := xPixbufGetPixels(x.GoPointer()) | |
| 837 | 883 | return cret | |
| 838 | 884 | } | |
| @@ -847,6 +893,8 @@ var xPixbufGetPixelsWithLength func(uintptr, *uint) uintptr | |||
| 847 | 893 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | |
| 848 | 894 | // about how the pixel data is stored in memory. | |
| 849 | 895 | func (x *Pixbuf) GetPixelsWithLength(LengthVar *uint) uintptr { | |
| 896 | + | core.LazyRegister(&xPixbufGetPixelsWithLength, "GDKPIXBUF", "gdk_pixbuf_get_pixels_with_length", false) | |
| 897 | + | ||
| 850 | 898 | cret := xPixbufGetPixelsWithLength(x.GoPointer(), LengthVar) | |
| 851 | 899 | return cret | |
| 852 | 900 | } | |
| @@ -856,6 +904,8 @@ var xPixbufGetRowstride func(uintptr) int | |||
| 856 | 904 | // Queries the rowstride of a pixbuf, which is the number of bytes between | |
| 857 | 905 | // the start of a row and the start of the next row. | |
| 858 | 906 | func (x *Pixbuf) GetRowstride() int { | |
| 907 | + | core.LazyRegister(&xPixbufGetRowstride, "GDKPIXBUF", "gdk_pixbuf_get_rowstride", false) | |
| 908 | + | ||
| 859 | 909 | cret := xPixbufGetRowstride(x.GoPointer()) | |
| 860 | 910 | return cret | |
| 861 | 911 | } | |
| @@ -864,6 +914,8 @@ var xPixbufGetWidth func(uintptr) int | |||
| 864 | 914 | ||
| 865 | 915 | // Queries the width of a pixbuf. | |
| 866 | 916 | func (x *Pixbuf) GetWidth() int { | |
| 917 | + | core.LazyRegister(&xPixbufGetWidth, "GDKPIXBUF", "gdk_pixbuf_get_width", false) | |
| 918 | + | ||
| 867 | 919 | cret := xPixbufGetWidth(x.GoPointer()) | |
| 868 | 920 | return cret | |
| 869 | 921 | } | |
| @@ -880,6 +932,7 @@ var xPixbufNewSubpixbuf func(uintptr, int, int, int, int) uintptr | |||
| 880 | 932 | // Note that if `src_pixbuf` is read-only, this function will force it | |
| 881 | 933 | // to be mutable. | |
| 882 | 934 | func (x *Pixbuf) NewSubpixbuf(SrcXVar int, SrcYVar int, WidthVar int, HeightVar int) *Pixbuf { | |
| 935 | + | core.LazyRegister(&xPixbufNewSubpixbuf, "GDKPIXBUF", "gdk_pixbuf_new_subpixbuf", false) | |
| 883 | 936 | var cls *Pixbuf | |
| 884 | 937 | ||
| 885 | 938 | cret := xPixbufNewSubpixbuf(x.GoPointer(), SrcXVar, SrcYVar, WidthVar, HeightVar) | |
| @@ -900,6 +953,8 @@ var xPixbufReadPixelBytes func(uintptr) uintptr | |||
| 900 | 953 | // This function allows skipping the implicit copy that must be made | |
| 901 | 954 | // if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. | |
| 902 | 955 | func (x *Pixbuf) ReadPixelBytes() *glib.Bytes { | |
| 956 | + | core.LazyRegister(&xPixbufReadPixelBytes, "GDKPIXBUF", "gdk_pixbuf_read_pixel_bytes", false) | |
| 957 | + | ||
| 903 | 958 | cret := xPixbufReadPixelBytes(x.GoPointer()) | |
| 904 | 959 | if cret == 0 { | |
| 905 | 960 | return nil | |
| @@ -914,6 +969,8 @@ var xPixbufReadPixels func(uintptr) byte | |||
| 914 | 969 | // This function allows skipping the implicit copy that must be made | |
| 915 | 970 | // if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. | |
| 916 | 971 | func (x *Pixbuf) ReadPixels() byte { | |
| 972 | + | core.LazyRegister(&xPixbufReadPixels, "GDKPIXBUF", "gdk_pixbuf_read_pixels", false) | |
| 973 | + | ||
| 917 | 974 | cret := xPixbufReadPixels(x.GoPointer()) | |
| 918 | 975 | return cret | |
| 919 | 976 | } | |
| @@ -922,6 +979,7 @@ var xPixbufRef func(uintptr) uintptr | |||
| 922 | 979 | ||
| 923 | 980 | // Adds a reference to a pixbuf. | |
| 924 | 981 | func (x *Pixbuf) Ref() *Pixbuf { | |
| 982 | + | core.LazyRegister(&xPixbufRef, "GDKPIXBUF", "gdk_pixbuf_ref", false) | |
| 925 | 983 | var cls *Pixbuf | |
| 926 | 984 | ||
| 927 | 985 | cret := xPixbufRef(x.GoPointer()) | |
| @@ -938,6 +996,8 @@ var xPixbufRemoveOption func(uintptr, string) bool | |||
| 938 | 996 | ||
| 939 | 997 | // Removes the key/value pair option attached to a `GdkPixbuf`. | |
| 940 | 998 | func (x *Pixbuf) RemoveOption(KeyVar string) bool { | |
| 999 | + | core.LazyRegister(&xPixbufRemoveOption, "GDKPIXBUF", "gdk_pixbuf_remove_option", false) | |
| 1000 | + | ||
| 941 | 1001 | cret := xPixbufRemoveOption(x.GoPointer(), KeyVar) | |
| 942 | 1002 | return cret | |
| 943 | 1003 | } | |
| @@ -949,6 +1009,7 @@ var xPixbufRotateSimple func(uintptr, PixbufRotation) uintptr | |||
| 949 | 1009 | // | |
| 950 | 1010 | // If `angle` is 0, this function will return a copy of `src`. | |
| 951 | 1011 | func (x *Pixbuf) RotateSimple(AngleVar PixbufRotation) *Pixbuf { | |
| 1012 | + | core.LazyRegister(&xPixbufRotateSimple, "GDKPIXBUF", "gdk_pixbuf_rotate_simple", false) | |
| 952 | 1013 | var cls *Pixbuf | |
| 953 | 1014 | ||
| 954 | 1015 | cret := xPixbufRotateSimple(x.GoPointer(), AngleVar) | |
| @@ -978,6 +1039,8 @@ var xPixbufSaturateAndPixelate func(uintptr, uintptr, float32, bool) | |||
| 978 | 1039 | // If `pixelate` is `TRUE`, then pixels are faded in a checkerboard pattern to | |
| 979 | 1040 | // create a pixelated image. | |
| 980 | 1041 | func (x *Pixbuf) SaturateAndPixelate(DestVar *Pixbuf, SaturationVar float32, PixelateVar bool) { | |
| 1042 | + | core.LazyRegister(&xPixbufSaturateAndPixelate, "GDKPIXBUF", "gdk_pixbuf_saturate_and_pixelate", false) | |
| 1043 | + | ||
| 981 | 1044 | xPixbufSaturateAndPixelate(x.GoPointer(), DestVar.GoPointer(), SaturationVar, PixelateVar) | |
| 982 | 1045 | } | |
| 983 | 1046 | ||
| @@ -1056,6 +1119,8 @@ var xPixbufSave func(uintptr, string, string, **glib.Error, ...interface{}) bool | |||
| 1056 | 1119 | // parameter. When the ICO saver is given "x_hot" and "y_hot" parameters, | |
| 1057 | 1120 | // it produces a CUR instead of an ICO. | |
| 1058 | 1121 | func (x *Pixbuf) Save(FilenameVar string, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1122 | + | core.LazyRegister(&xPixbufSave, "GDKPIXBUF", "gdk_pixbuf_save", false) | |
| 1123 | + | ||
| 1059 | 1124 | cret := xPixbufSave(x.GoPointer(), FilenameVar, TypeVar, ErrorVar, varArgs...) | |
| 1060 | 1125 | return cret | |
| 1061 | 1126 | } | |
| @@ -1077,6 +1142,8 @@ var xPixbufSaveToBuffer func(uintptr, *[]byte, *uint, string, **glib.Error, ...i | |||
| 1077 | 1142 | // | |
| 1078 | 1143 | // See `gdk_pixbuf_save()` for more details. | |
| 1079 | 1144 | func (x *Pixbuf) SaveToBuffer(BufferVar *[]byte, BufferSizeVar *uint, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1145 | + | core.LazyRegister(&xPixbufSaveToBuffer, "GDKPIXBUF", "gdk_pixbuf_save_to_buffer", false) | |
| 1146 | + | ||
| 1080 | 1147 | cret := xPixbufSaveToBuffer(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, ErrorVar, varArgs...) | |
| 1081 | 1148 | return cret | |
| 1082 | 1149 | } | |
| @@ -1090,6 +1157,7 @@ var xPixbufSaveToBufferv func(uintptr, *[]byte, *uint, string, []string, []strin | |||
| 1090 | 1157 | // | |
| 1091 | 1158 | // See [method@GdkPixbuf.Pixbuf.save_to_buffer] for more details. | |
| 1092 | 1159 | func (x *Pixbuf) SaveToBufferv(BufferVar *[]byte, BufferSizeVar *uint, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | |
| 1160 | + | core.LazyRegister(&xPixbufSaveToBufferv, "GDKPIXBUF", "gdk_pixbuf_save_to_bufferv", false) | |
| 1093 | 1161 | var cerr *glib.Error | |
| 1094 | 1162 | ||
| 1095 | 1163 | cret := xPixbufSaveToBufferv(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | |
| @@ -1113,6 +1181,8 @@ var xPixbufSaveToCallback func(uintptr, uintptr, uintptr, string, **glib.Error, | |||
| 1113 | 1181 | // | |
| 1114 | 1182 | // See [method@GdkPixbuf.Pixbuf.save] for more details. | |
| 1115 | 1183 | func (x *Pixbuf) SaveToCallback(SaveFuncVar *PixbufSaveFunc, UserDataVar uintptr, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1184 | + | core.LazyRegister(&xPixbufSaveToCallback, "GDKPIXBUF", "gdk_pixbuf_save_to_callback", false) | |
| 1185 | + | ||
| 1116 | 1186 | cret := xPixbufSaveToCallback(x.GoPointer(), glib.NewCallback(SaveFuncVar), UserDataVar, TypeVar, ErrorVar, varArgs...) | |
| 1117 | 1187 | return cret | |
| 1118 | 1188 | } | |
| @@ -1128,6 +1198,7 @@ var xPixbufSaveToCallbackv func(uintptr, uintptr, uintptr, string, []string, []s | |||
| 1128 | 1198 | // | |
| 1129 | 1199 | // See [method@GdkPixbuf.Pixbuf.save_to_callback] for more details. | |
| 1130 | 1200 | func (x *Pixbuf) SaveToCallbackv(SaveFuncVar *PixbufSaveFunc, UserDataVar uintptr, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | |
| 1201 | + | core.LazyRegister(&xPixbufSaveToCallbackv, "GDKPIXBUF", "gdk_pixbuf_save_to_callbackv", false) | |
| 1131 | 1202 | var cerr *glib.Error | |
| 1132 | 1203 | ||
| 1133 | 1204 | cret := xPixbufSaveToCallbackv(x.GoPointer(), glib.NewCallback(SaveFuncVar), UserDataVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | |
| @@ -1151,6 +1222,8 @@ var xPixbufSaveToStream func(uintptr, uintptr, string, uintptr, **glib.Error, .. | |||
| 1151 | 1222 | // | |
| 1152 | 1223 | // The stream is not closed at the end of this call. | |
| 1153 | 1224 | func (x *Pixbuf) SaveToStream(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1225 | + | core.LazyRegister(&xPixbufSaveToStream, "GDKPIXBUF", "gdk_pixbuf_save_to_stream", false) | |
| 1226 | + | ||
| 1154 | 1227 | cret := xPixbufSaveToStream(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), ErrorVar, varArgs...) | |
| 1155 | 1228 | return cret | |
| 1156 | 1229 | } | |
| @@ -1167,6 +1240,8 @@ var xPixbufSaveToStreamAsync func(uintptr, uintptr, string, uintptr, uintptr, ui | |||
| 1167 | 1240 | // You can then call gdk_pixbuf_save_to_stream_finish() to get the result of | |
| 1168 | 1241 | // the operation. | |
| 1169 | 1242 | func (x *Pixbuf) SaveToStreamAsync(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr, varArgs ...interface{}) { | |
| 1243 | + | core.LazyRegister(&xPixbufSaveToStreamAsync, "GDKPIXBUF", "gdk_pixbuf_save_to_stream_async", false) | |
| 1244 | + | ||
| 1170 | 1245 | xPixbufSaveToStreamAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, varArgs...) | |
| 1171 | 1246 | } | |
| 1172 | 1247 | ||
| @@ -1179,6 +1254,7 @@ var xPixbufSaveToStreamv func(uintptr, uintptr, string, []string, []string, uint | |||
| 1179 | 1254 | // | |
| 1180 | 1255 | // See [method@GdkPixbuf.Pixbuf.save_to_stream] for more details. | |
| 1181 | 1256 | func (x *Pixbuf) SaveToStreamv(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable) (bool, error) { | |
| 1257 | + | core.LazyRegister(&xPixbufSaveToStreamv, "GDKPIXBUF", "gdk_pixbuf_save_to_streamv", false) | |
| 1182 | 1258 | var cerr *glib.Error | |
| 1183 | 1259 | ||
| 1184 | 1260 | cret := xPixbufSaveToStreamv(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1200,6 +1276,8 @@ var xPixbufSaveToStreamvAsync func(uintptr, uintptr, string, []string, []string, | |||
| 1200 | 1276 | // You can then call gdk_pixbuf_save_to_stream_finish() to get the result of | |
| 1201 | 1277 | // the operation. | |
| 1202 | 1278 | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1279 | + | core.LazyRegister(&xPixbufSaveToStreamvAsync, "GDKPIXBUF", "gdk_pixbuf_save_to_streamv_async", false) | |
| 1280 | + | ||
| 1203 | 1281 | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1204 | 1282 | } | |
| 1205 | 1283 | ||
| @@ -1213,6 +1291,7 @@ var xPixbufSavev func(uintptr, string, string, []string, []string, **glib.Error) | |||
| 1213 | 1291 | // | |
| 1214 | 1292 | // See [method@GdkPixbuf.Pixbuf.save] for more details. | |
| 1215 | 1293 | func (x *Pixbuf) Savev(FilenameVar string, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | |
| 1294 | + | core.LazyRegister(&xPixbufSavev, "GDKPIXBUF", "gdk_pixbuf_savev", false) | |
| 1216 | 1295 | var cerr *glib.Error | |
| 1217 | 1296 | ||
| 1218 | 1297 | cret := xPixbufSavev(x.GoPointer(), FilenameVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | |
| @@ -1238,6 +1317,8 @@ var xPixbufScale func(uintptr, uintptr, int, int, int, int, float64, float64, fl | |||
| 1238 | 1317 | // same pixbuf, it will be overwritten during the scaling which | |
| 1239 | 1318 | // results in rendering artifacts. | |
| 1240 | 1319 | func (x *Pixbuf) Scale(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType) { | |
| 1320 | + | core.LazyRegister(&xPixbufScale, "GDKPIXBUF", "gdk_pixbuf_scale", false) | |
| 1321 | + | ||
| 1241 | 1322 | xPixbufScale(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar) | |
| 1242 | 1323 | } | |
| 1243 | 1324 | ||
| @@ -1262,6 +1343,7 @@ var xPixbufScaleSimple func(uintptr, int, int, InterpType) uintptr | |||
| 1262 | 1343 | // For more complicated scaling/alpha blending see [method@GdkPixbuf.Pixbuf.scale] | |
| 1263 | 1344 | // and [method@GdkPixbuf.Pixbuf.composite]. | |
| 1264 | 1345 | func (x *Pixbuf) ScaleSimple(DestWidthVar int, DestHeightVar int, InterpTypeVar InterpType) *Pixbuf { | |
| 1346 | + | core.LazyRegister(&xPixbufScaleSimple, "GDKPIXBUF", "gdk_pixbuf_scale_simple", false) | |
| 1265 | 1347 | var cls *Pixbuf | |
| 1266 | 1348 | ||
| 1267 | 1349 | cret := xPixbufScaleSimple(x.GoPointer(), DestWidthVar, DestHeightVar, InterpTypeVar) | |
| @@ -1281,6 +1363,8 @@ var xPixbufSetOption func(uintptr, string, string) bool | |||
| 1281 | 1363 | // If `key` already exists in the list of options attached to the `pixbuf`, | |
| 1282 | 1364 | // the new value is ignored and `FALSE` is returned. | |
| 1283 | 1365 | func (x *Pixbuf) SetOption(KeyVar string, ValueVar string) bool { | |
| 1366 | + | core.LazyRegister(&xPixbufSetOption, "GDKPIXBUF", "gdk_pixbuf_set_option", false) | |
| 1367 | + | ||
| 1284 | 1368 | cret := xPixbufSetOption(x.GoPointer(), KeyVar, ValueVar) | |
| 1285 | 1369 | return cret | |
| 1286 | 1370 | } | |
| @@ -1289,6 +1373,8 @@ var xPixbufUnref func(uintptr) | |||
| 1289 | 1373 | ||
| 1290 | 1374 | // Removes a reference from a pixbuf. | |
| 1291 | 1375 | func (x *Pixbuf) Unref() { | |
| 1376 | + | core.LazyRegister(&xPixbufUnref, "GDKPIXBUF", "gdk_pixbuf_unref", false) | |
| 1377 | + | ||
| 1292 | 1378 | xPixbufUnref(x.GoPointer()) | |
| 1293 | 1379 | } | |
| 1294 | 1380 | ||
| @@ -1551,6 +1637,8 @@ var xPixbufCalculateRowstride func(Colorspace, bool, int, int, int) int | |||
| 1551 | 1637 | // This function is useful for front-ends and backends that want to check | |
| 1552 | 1638 | // image values without needing to create a `GdkPixbuf`. | |
| 1553 | 1639 | func PixbufCalculateRowstride(ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int) int { | |
| 1640 | + | core.LazyRegister(&xPixbufCalculateRowstride, "GDKPIXBUF", "gdk_pixbuf_calculate_rowstride", false) | |
| 1641 | + | ||
| 1554 | 1642 | cret := xPixbufCalculateRowstride(ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar) | |
| 1555 | 1643 | return cret | |
| 1556 | 1644 | } | |
| @@ -1559,6 +1647,8 @@ var xPixbufGetFileInfo func(string, *int, *int) uintptr | |||
| 1559 | 1647 | ||
| 1560 | 1648 | // Parses an image file far enough to determine its format and size. | |
| 1561 | 1649 | func PixbufGetFileInfo(FilenameVar string, WidthVar *int, HeightVar *int) *PixbufFormat { | |
| 1650 | + | core.LazyRegister(&xPixbufGetFileInfo, "GDKPIXBUF", "gdk_pixbuf_get_file_info", false) | |
| 1651 | + | ||
| 1562 | 1652 | cret := xPixbufGetFileInfo(FilenameVar, WidthVar, HeightVar) | |
| 1563 | 1653 | if cret == 0 { | |
| 1564 | 1654 | return nil | |
| @@ -1578,6 +1668,8 @@ var xPixbufGetFileInfoAsync func(string, uintptr, uintptr, uintptr) | |||
| 1578 | 1668 | // main thread. You can then call gdk_pixbuf_get_file_info_finish() to | |
| 1579 | 1669 | // get the result of the operation. | |
| 1580 | 1670 | func PixbufGetFileInfoAsync(FilenameVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1671 | + | core.LazyRegister(&xPixbufGetFileInfoAsync, "GDKPIXBUF", "gdk_pixbuf_get_file_info_async", false) | |
| 1672 | + | ||
| 1581 | 1673 | xPixbufGetFileInfoAsync(FilenameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1582 | 1674 | } | |
| 1583 | 1675 | ||
| @@ -1586,6 +1678,7 @@ var xPixbufGetFileInfoFinish func(uintptr, *int, *int, **glib.Error) uintptr | |||
| 1586 | 1678 | // Finishes an asynchronous pixbuf parsing operation started with | |
| 1587 | 1679 | // gdk_pixbuf_get_file_info_async(). | |
| 1588 | 1680 | func PixbufGetFileInfoFinish(AsyncResultVar gio.AsyncResult, WidthVar *int, HeightVar *int) (*PixbufFormat, error) { | |
| 1681 | + | core.LazyRegister(&xPixbufGetFileInfoFinish, "GDKPIXBUF", "gdk_pixbuf_get_file_info_finish", false) | |
| 1589 | 1682 | var cerr *glib.Error | |
| 1590 | 1683 | ||
| 1591 | 1684 | cret := xPixbufGetFileInfoFinish(AsyncResultVar.GoPointer(), WidthVar, HeightVar, &cerr) | |
| @@ -1603,6 +1696,8 @@ var xPixbufGetFormats func() uintptr | |||
| 1603 | 1696 | // Obtains the available information about the image formats supported | |
| 1604 | 1697 | // by GdkPixbuf. | |
| 1605 | 1698 | func PixbufGetFormats() *glib.SList { | |
| 1699 | + | core.LazyRegister(&xPixbufGetFormats, "GDKPIXBUF", "gdk_pixbuf_get_formats", false) | |
| 1700 | + | ||
| 1606 | 1701 | cret := xPixbufGetFormats() | |
| 1607 | 1702 | if cret == 0 { | |
| 1608 | 1703 | return nil | |
| @@ -1626,6 +1721,7 @@ var xPixbufInitModules func(string, **glib.Error) bool | |||
| 1626 | 1721 | // with the application in a separate directory from the OS or runtime- | |
| 1627 | 1722 | // provided modules. | |
| 1628 | 1723 | func PixbufInitModules(PathVar string) (bool, error) { | |
| 1724 | + | core.LazyRegister(&xPixbufInitModules, "GDKPIXBUF", "gdk_pixbuf_init_modules", false) | |
| 1629 | 1725 | var cerr *glib.Error | |
| 1630 | 1726 | ||
| 1631 | 1727 | cret := xPixbufInitModules(PathVar, &cerr) | |
| @@ -1646,6 +1742,8 @@ var xPixbufNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 1646 | 1742 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of | |
| 1647 | 1743 | // the operation. | |
| 1648 | 1744 | func PixbufNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1745 | + | core.LazyRegister(&xPixbufNewFromStreamAsync, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_async", false) | |
| 1746 | + | ||
| 1649 | 1747 | xPixbufNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1650 | 1748 | } | |
| 1651 | 1749 | ||
| @@ -1659,6 +1757,8 @@ var xPixbufNewFromStreamAtScaleAsync func(uintptr, int, int, bool, uintptr, uint | |||
| 1659 | 1757 | // When the operation is finished, @callback will be called in the main thread. | |
| 1660 | 1758 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation. | |
| 1661 | 1759 | func PixbufNewFromStreamAtScaleAsync(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1760 | + | core.LazyRegister(&xPixbufNewFromStreamAtScaleAsync, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_at_scale_async", false) | |
| 1761 | + | ||
| 1662 | 1762 | xPixbufNewFromStreamAtScaleAsync(StreamVar.GoPointer(), WidthVar, HeightVar, PreserveAspectRatioVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1663 | 1763 | } | |
| 1664 | 1764 | ||
| @@ -1667,6 +1767,7 @@ var xPixbufSaveToStreamFinish func(uintptr, **glib.Error) bool | |||
| 1667 | 1767 | // Finishes an asynchronous pixbuf save operation started with | |
| 1668 | 1768 | // gdk_pixbuf_save_to_stream_async(). | |
| 1669 | 1769 | func PixbufSaveToStreamFinish(AsyncResultVar gio.AsyncResult) (bool, error) { | |
| 1770 | + | core.LazyRegister(&xPixbufSaveToStreamFinish, "GDKPIXBUF", "gdk_pixbuf_save_to_stream_finish", false) | |
| 1670 | 1771 | var cerr *glib.Error | |
| 1671 | 1772 | ||
| 1672 | 1773 | cret := xPixbufSaveToStreamFinish(AsyncResultVar.GoPointer(), &cerr) | |
| @@ -1679,82 +1780,4 @@ func PixbufSaveToStreamFinish(AsyncResultVar gio.AsyncResult) (bool, error) { | |||
| 1679 | 1780 | func init() { | |
| 1680 | 1781 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 1681 | 1782 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | |
| 1682 | - | var libs []uintptr | |
| 1683 | - | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |
| 1684 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1685 | - | if err != nil { | |
| 1686 | - | panic(err) | |
| 1687 | - | } | |
| 1688 | - | libs = append(libs, lib) | |
| 1689 | - | } | |
| 1690 | - | ||
| 1691 | - | core.PuregoSafeRegister(&xPixbufGLibType, libs, "gdk_pixbuf_get_type") | |
| 1692 | - | ||
| 1693 | - | core.PuregoSafeRegister(&xNewPixbuf, libs, "gdk_pixbuf_new") | |
| 1694 | - | core.PuregoSafeRegister(&xNewPixbufFromBytes, libs, "gdk_pixbuf_new_from_bytes") | |
| 1695 | - | core.PuregoSafeRegister(&xNewPixbufFromData, libs, "gdk_pixbuf_new_from_data") | |
| 1696 | - | core.PuregoSafeRegister(&xNewPixbufFromFile, libs, "gdk_pixbuf_new_from_file") | |
| 1697 | - | core.PuregoSafeRegister(&xNewPixbufFromFileAtScale, libs, "gdk_pixbuf_new_from_file_at_scale") | |
| 1698 | - | core.PuregoSafeRegister(&xNewPixbufFromFileAtSize, libs, "gdk_pixbuf_new_from_file_at_size") | |
| 1699 | - | core.PuregoSafeRegister(&xNewPixbufFromInline, libs, "gdk_pixbuf_new_from_inline") | |
| 1700 | - | core.PuregoSafeRegister(&xNewPixbufFromResource, libs, "gdk_pixbuf_new_from_resource") | |
| 1701 | - | core.PuregoSafeRegister(&xNewPixbufFromResourceAtScale, libs, "gdk_pixbuf_new_from_resource_at_scale") | |
| 1702 | - | core.PuregoSafeRegister(&xNewPixbufFromStream, libs, "gdk_pixbuf_new_from_stream") | |
| 1703 | - | core.PuregoSafeRegister(&xNewPixbufFromStreamAtScale, libs, "gdk_pixbuf_new_from_stream_at_scale") | |
| 1704 | - | core.PuregoSafeRegister(&xNewPixbufFromStreamFinish, libs, "gdk_pixbuf_new_from_stream_finish") | |
| 1705 | - | core.PuregoSafeRegister(&xNewPixbufFromXpmData, libs, "gdk_pixbuf_new_from_xpm_data") | |
| 1706 | - | ||
| 1707 | - | core.PuregoSafeRegister(&xPixbufAddAlpha, libs, "gdk_pixbuf_add_alpha") | |
| 1708 | - | core.PuregoSafeRegister(&xPixbufApplyEmbeddedOrientation, libs, "gdk_pixbuf_apply_embedded_orientation") | |
| 1709 | - | core.PuregoSafeRegister(&xPixbufComposite, libs, "gdk_pixbuf_composite") | |
| 1710 | - | core.PuregoSafeRegister(&xPixbufCompositeColor, libs, "gdk_pixbuf_composite_color") | |
| 1711 | - | core.PuregoSafeRegister(&xPixbufCompositeColorSimple, libs, "gdk_pixbuf_composite_color_simple") | |
| 1712 | - | core.PuregoSafeRegister(&xPixbufCopy, libs, "gdk_pixbuf_copy") | |
| 1713 | - | core.PuregoSafeRegister(&xPixbufCopyArea, libs, "gdk_pixbuf_copy_area") | |
| 1714 | - | core.PuregoSafeRegister(&xPixbufCopyOptions, libs, "gdk_pixbuf_copy_options") | |
| 1715 | - | core.PuregoSafeRegister(&xPixbufFill, libs, "gdk_pixbuf_fill") | |
| 1716 | - | core.PuregoSafeRegister(&xPixbufFlip, libs, "gdk_pixbuf_flip") | |
| 1717 | - | core.PuregoSafeRegister(&xPixbufGetBitsPerSample, libs, "gdk_pixbuf_get_bits_per_sample") | |
| 1718 | - | core.PuregoSafeRegister(&xPixbufGetByteLength, libs, "gdk_pixbuf_get_byte_length") | |
| 1719 | - | core.PuregoSafeRegister(&xPixbufGetColorspace, libs, "gdk_pixbuf_get_colorspace") | |
| 1720 | - | core.PuregoSafeRegister(&xPixbufGetHasAlpha, libs, "gdk_pixbuf_get_has_alpha") | |
| 1721 | - | core.PuregoSafeRegister(&xPixbufGetHeight, libs, "gdk_pixbuf_get_height") | |
| 1722 | - | core.PuregoSafeRegister(&xPixbufGetNChannels, libs, "gdk_pixbuf_get_n_channels") | |
| 1723 | - | core.PuregoSafeRegister(&xPixbufGetOption, libs, "gdk_pixbuf_get_option") | |
| 1724 | - | core.PuregoSafeRegister(&xPixbufGetOptions, libs, "gdk_pixbuf_get_options") | |
| 1725 | - | core.PuregoSafeRegister(&xPixbufGetPixels, libs, "gdk_pixbuf_get_pixels") | |
| 1726 | - | core.PuregoSafeRegister(&xPixbufGetPixelsWithLength, libs, "gdk_pixbuf_get_pixels_with_length") | |
| 1727 | - | core.PuregoSafeRegister(&xPixbufGetRowstride, libs, "gdk_pixbuf_get_rowstride") | |
| 1728 | - | core.PuregoSafeRegister(&xPixbufGetWidth, libs, "gdk_pixbuf_get_width") | |
| 1729 | - | core.PuregoSafeRegister(&xPixbufNewSubpixbuf, libs, "gdk_pixbuf_new_subpixbuf") | |
| 1730 | - | core.PuregoSafeRegister(&xPixbufReadPixelBytes, libs, "gdk_pixbuf_read_pixel_bytes") | |
| 1731 | - | core.PuregoSafeRegister(&xPixbufReadPixels, libs, "gdk_pixbuf_read_pixels") | |
| 1732 | - | core.PuregoSafeRegister(&xPixbufRef, libs, "gdk_pixbuf_ref") | |
| 1733 | - | core.PuregoSafeRegister(&xPixbufRemoveOption, libs, "gdk_pixbuf_remove_option") | |
| 1734 | - | core.PuregoSafeRegister(&xPixbufRotateSimple, libs, "gdk_pixbuf_rotate_simple") | |
| 1735 | - | core.PuregoSafeRegister(&xPixbufSaturateAndPixelate, libs, "gdk_pixbuf_saturate_and_pixelate") | |
| 1736 | - | core.PuregoSafeRegister(&xPixbufSave, libs, "gdk_pixbuf_save") | |
| 1737 | - | core.PuregoSafeRegister(&xPixbufSaveToBuffer, libs, "gdk_pixbuf_save_to_buffer") | |
| 1738 | - | core.PuregoSafeRegister(&xPixbufSaveToBufferv, libs, "gdk_pixbuf_save_to_bufferv") | |
| 1739 | - | core.PuregoSafeRegister(&xPixbufSaveToCallback, libs, "gdk_pixbuf_save_to_callback") | |
| 1740 | - | core.PuregoSafeRegister(&xPixbufSaveToCallbackv, libs, "gdk_pixbuf_save_to_callbackv") | |
| 1741 | - | core.PuregoSafeRegister(&xPixbufSaveToStream, libs, "gdk_pixbuf_save_to_stream") | |
| 1742 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamAsync, libs, "gdk_pixbuf_save_to_stream_async") | |
| 1743 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamv, libs, "gdk_pixbuf_save_to_streamv") | |
| 1744 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamvAsync, libs, "gdk_pixbuf_save_to_streamv_async") | |
| 1745 | - | core.PuregoSafeRegister(&xPixbufSavev, libs, "gdk_pixbuf_savev") | |
| 1746 | - | core.PuregoSafeRegister(&xPixbufScale, libs, "gdk_pixbuf_scale") | |
| 1747 | - | core.PuregoSafeRegister(&xPixbufScaleSimple, libs, "gdk_pixbuf_scale_simple") | |
| 1748 | - | core.PuregoSafeRegister(&xPixbufSetOption, libs, "gdk_pixbuf_set_option") | |
| 1749 | - | core.PuregoSafeRegister(&xPixbufUnref, libs, "gdk_pixbuf_unref") | |
| 1750 | - | ||
| 1751 | - | core.PuregoSafeRegister(&xPixbufCalculateRowstride, libs, "gdk_pixbuf_calculate_rowstride") | |
| 1752 | - | core.PuregoSafeRegister(&xPixbufGetFileInfo, libs, "gdk_pixbuf_get_file_info") | |
| 1753 | - | core.PuregoSafeRegister(&xPixbufGetFileInfoAsync, libs, "gdk_pixbuf_get_file_info_async") | |
| 1754 | - | core.PuregoSafeRegister(&xPixbufGetFileInfoFinish, libs, "gdk_pixbuf_get_file_info_finish") | |
| 1755 | - | core.PuregoSafeRegister(&xPixbufGetFormats, libs, "gdk_pixbuf_get_formats") | |
| 1756 | - | core.PuregoSafeRegister(&xPixbufInitModules, libs, "gdk_pixbuf_init_modules") | |
| 1757 | - | core.PuregoSafeRegister(&xPixbufNewFromStreamAsync, libs, "gdk_pixbuf_new_from_stream_async") | |
| 1758 | - | core.PuregoSafeRegister(&xPixbufNewFromStreamAtScaleAsync, libs, "gdk_pixbuf_new_from_stream_at_scale_async") | |
| 1759 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamFinish, libs, "gdk_pixbuf_save_to_stream_finish") | |
| 1760 | 1783 | } | |
| @@ -4,7 +4,6 @@ package gdkpixbuf | |||||
| 4 | import ( | 4 | import ( | ||
| 5 | "unsafe" | 5 | "unsafe" | ||
| 6 | 6 | ||||
| 7 | - | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 7 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gio" | 8 | "github.com/bnema/puregotk/v4/gio" | ||
| 10 | "github.com/bnema/puregotk/v4/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -154,6 +153,7 @@ type Pixbuf struct { | |||||
| 154 | var xPixbufGLibType func() types.GType | 153 | var xPixbufGLibType func() types.GType | ||
| 155 | 154 | ||||
| 156 | func PixbufGLibType() types.GType { | 155 | func PixbufGLibType() types.GType { | ||
| 156 | + | core.LazyRegister(&xPixbufGLibType, "GDKPIXBUF", "gdk_pixbuf_get_type", false) | |||
| 157 | return xPixbufGLibType() | 157 | return xPixbufGLibType() | ||
| 158 | } | 158 | } | ||
| 159 | 159 | ||||
| @@ -172,6 +172,7 @@ var xNewPixbuf func(Colorspace, bool, int, int, int) uintptr | |||||
| 172 | // The buffer has an optimal rowstride. Note that the buffer is not cleared; | 172 | // The buffer has an optimal rowstride. Note that the buffer is not cleared; | ||
| 173 | // you will have to fill it completely yourself. | 173 | // you will have to fill it completely yourself. | ||
| 174 | func NewPixbuf(ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int) *Pixbuf { | 174 | func NewPixbuf(ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int) *Pixbuf { | ||
| 175 | + | core.LazyRegister(&xNewPixbuf, "GDKPIXBUF", "gdk_pixbuf_new", false) | |||
| 175 | var cls *Pixbuf | 176 | var cls *Pixbuf | ||
| 176 | 177 | ||||
| 177 | cret := xNewPixbuf(ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar) | 178 | cret := xNewPixbuf(ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar) | ||
| @@ -193,6 +194,7 @@ var xNewPixbufFromBytes func(*glib.Bytes, Colorspace, bool, int, int, int, int) | |||||
| 193 | // This is the `GBytes` variant of gdk_pixbuf_new_from_data(), useful | 194 | // This is the `GBytes` variant of gdk_pixbuf_new_from_data(), useful | ||
| 194 | // for language bindings. | 195 | // for language bindings. | ||
| 195 | func NewPixbufFromBytes(DataVar *glib.Bytes, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int) *Pixbuf { | 196 | func NewPixbufFromBytes(DataVar *glib.Bytes, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int) *Pixbuf { | ||
| 197 | + | core.LazyRegister(&xNewPixbufFromBytes, "GDKPIXBUF", "gdk_pixbuf_new_from_bytes", false) | |||
| 196 | var cls *Pixbuf | 198 | var cls *Pixbuf | ||
| 197 | 199 | ||||
| 198 | cret := xNewPixbufFromBytes(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar) | 200 | cret := xNewPixbufFromBytes(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar) | ||
| @@ -219,6 +221,7 @@ var xNewPixbufFromData func([]byte, Colorspace, bool, int, int, int, int, uintpt | |||||
| 219 | // | 221 | // | ||
| 220 | // See also: [ctor@GdkPixbuf.Pixbuf.new_from_bytes] | 222 | // See also: [ctor@GdkPixbuf.Pixbuf.new_from_bytes] | ||
| 221 | func NewPixbufFromData(DataVar []byte, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | 223 | func NewPixbufFromData(DataVar []byte, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | ||
| 224 | + | core.LazyRegister(&xNewPixbufFromData, "GDKPIXBUF", "gdk_pixbuf_new_from_data", false) | |||
| 222 | var cls *Pixbuf | 225 | var cls *Pixbuf | ||
| 223 | 226 | ||||
| 224 | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallbackNullable(DestroyFnVar), DestroyFnDataVar) | 227 | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallbackNullable(DestroyFnVar), DestroyFnDataVar) | ||
| @@ -246,6 +249,7 @@ var xNewPixbufFromFile func(string, **glib.Error) uintptr | |||||
| 246 | // | 249 | // | ||
| 247 | // The error domains are `GDK_PIXBUF_ERROR` and `G_FILE_ERROR`. | 250 | // The error domains are `GDK_PIXBUF_ERROR` and `G_FILE_ERROR`. | ||
| 248 | func NewPixbufFromFile(FilenameVar string) (*Pixbuf, error) { | 251 | func NewPixbufFromFile(FilenameVar string) (*Pixbuf, error) { | ||
| 252 | + | core.LazyRegister(&xNewPixbufFromFile, "GDKPIXBUF", "gdk_pixbuf_new_from_file", false) | |||
| 249 | var cls *Pixbuf | 253 | var cls *Pixbuf | ||
| 250 | var cerr *glib.Error | 254 | var cerr *glib.Error | ||
| 251 | 255 | ||||
| @@ -287,6 +291,7 @@ var xNewPixbufFromFileAtScale func(string, int, int, bool, **glib.Error) uintptr | |||||
| 287 | // at all in that dimension. Negative values for `width` and `height` are | 291 | // at all in that dimension. Negative values for `width` and `height` are | ||
| 288 | // allowed since 2.8. | 292 | // allowed since 2.8. | ||
| 289 | func NewPixbufFromFileAtScale(FilenameVar string, WidthVar int, HeightVar int, PreserveAspectRatioVar bool) (*Pixbuf, error) { | 293 | func NewPixbufFromFileAtScale(FilenameVar string, WidthVar int, HeightVar int, PreserveAspectRatioVar bool) (*Pixbuf, error) { | ||
| 294 | + | core.LazyRegister(&xNewPixbufFromFileAtScale, "GDKPIXBUF", "gdk_pixbuf_new_from_file_at_scale", false) | |||
| 290 | var cls *Pixbuf | 295 | var cls *Pixbuf | ||
| 291 | var cerr *glib.Error | 296 | var cerr *glib.Error | ||
| 292 | 297 | ||||
| @@ -324,6 +329,7 @@ var xNewPixbufFromFileAtSize func(string, int, int, **glib.Error) uintptr | |||||
| 324 | // and image at the requested size, regardless of aspect ratio, use | 329 | // and image at the requested size, regardless of aspect ratio, use | ||
| 325 | // [ctor@GdkPixbuf.Pixbuf.new_from_file_at_scale]. | 330 | // [ctor@GdkPixbuf.Pixbuf.new_from_file_at_scale]. | ||
| 326 | func NewPixbufFromFileAtSize(FilenameVar string, WidthVar int, HeightVar int) (*Pixbuf, error) { | 331 | func NewPixbufFromFileAtSize(FilenameVar string, WidthVar int, HeightVar int) (*Pixbuf, error) { | ||
| 332 | + | core.LazyRegister(&xNewPixbufFromFileAtSize, "GDKPIXBUF", "gdk_pixbuf_new_from_file_at_size", false) | |||
| 327 | var cls *Pixbuf | 333 | var cls *Pixbuf | ||
| 328 | var cerr *glib.Error | 334 | var cerr *glib.Error | ||
| 329 | 335 | ||||
| @@ -376,6 +382,7 @@ var xNewPixbufFromInline func(int, []byte, bool, **glib.Error) uintptr | |||||
| 376 | // inline data located at runtime, you could have corrupt inline data in | 382 | // inline data located at runtime, you could have corrupt inline data in | ||
| 377 | // addition. | 383 | // addition. | ||
| 378 | func NewPixbufFromInline(DataLengthVar int, DataVar []byte, CopyPixelsVar bool) (*Pixbuf, error) { | 384 | func NewPixbufFromInline(DataLengthVar int, DataVar []byte, CopyPixelsVar bool) (*Pixbuf, error) { | ||
| 385 | + | core.LazyRegister(&xNewPixbufFromInline, "GDKPIXBUF", "gdk_pixbuf_new_from_inline", false) | |||
| 379 | var cls *Pixbuf | 386 | var cls *Pixbuf | ||
| 380 | var cerr *glib.Error | 387 | var cerr *glib.Error | ||
| 381 | 388 | ||||
| @@ -399,6 +406,7 @@ var xNewPixbufFromResource func(string, **glib.Error) uintptr | |||||
| 399 | // The file format is detected automatically. If `NULL` is returned, then | 406 | // The file format is detected automatically. If `NULL` is returned, then | ||
| 400 | // @error will be set. | 407 | // @error will be set. | ||
| 401 | func NewPixbufFromResource(ResourcePathVar string) (*Pixbuf, error) { | 408 | func NewPixbufFromResource(ResourcePathVar string) (*Pixbuf, error) { | ||
| 409 | + | core.LazyRegister(&xNewPixbufFromResource, "GDKPIXBUF", "gdk_pixbuf_new_from_resource", false) | |||
| 402 | var cls *Pixbuf | 410 | var cls *Pixbuf | ||
| 403 | var cerr *glib.Error | 411 | var cerr *glib.Error | ||
| 404 | 412 | ||||
| @@ -431,6 +439,7 @@ var xNewPixbufFromResourceAtScale func(string, int, int, bool, **glib.Error) uin | |||||
| 431 | // | 439 | // | ||
| 432 | // The stream is not closed. | 440 | // The stream is not closed. | ||
| 433 | func NewPixbufFromResourceAtScale(ResourcePathVar string, WidthVar int, HeightVar int, PreserveAspectRatioVar bool) (*Pixbuf, error) { | 441 | func NewPixbufFromResourceAtScale(ResourcePathVar string, WidthVar int, HeightVar int, PreserveAspectRatioVar bool) (*Pixbuf, error) { | ||
| 442 | + | core.LazyRegister(&xNewPixbufFromResourceAtScale, "GDKPIXBUF", "gdk_pixbuf_new_from_resource_at_scale", false) | |||
| 434 | var cls *Pixbuf | 443 | var cls *Pixbuf | ||
| 435 | var cerr *glib.Error | 444 | var cerr *glib.Error | ||
| 436 | 445 | ||||
| @@ -462,6 +471,7 @@ var xNewPixbufFromStream func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 462 | // | 471 | // | ||
| 463 | // The stream is not closed. | 472 | // The stream is not closed. | ||
| 464 | func NewPixbufFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*Pixbuf, error) { | 473 | func NewPixbufFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*Pixbuf, error) { | ||
| 474 | + | core.LazyRegister(&xNewPixbufFromStream, "GDKPIXBUF", "gdk_pixbuf_new_from_stream", false) | |||
| 465 | var cls *Pixbuf | 475 | var cls *Pixbuf | ||
| 466 | var cerr *glib.Error | 476 | var cerr *glib.Error | ||
| 467 | 477 | ||||
| @@ -502,6 +512,7 @@ var xNewPixbufFromStreamAtScale func(uintptr, int, int, bool, uintptr, **glib.Er | |||||
| 502 | // | 512 | // | ||
| 503 | // The stream is not closed. | 513 | // The stream is not closed. | ||
| 504 | func NewPixbufFromStreamAtScale(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable) (*Pixbuf, error) { | 514 | func NewPixbufFromStreamAtScale(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable) (*Pixbuf, error) { | ||
| 515 | + | core.LazyRegister(&xNewPixbufFromStreamAtScale, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_at_scale", false) | |||
| 505 | var cls *Pixbuf | 516 | var cls *Pixbuf | ||
| 506 | var cerr *glib.Error | 517 | var cerr *glib.Error | ||
| 507 | 518 | ||||
| @@ -523,6 +534,7 @@ var xNewPixbufFromStreamFinish func(uintptr, **glib.Error) uintptr | |||||
| 523 | // Finishes an asynchronous pixbuf creation operation started with | 534 | // Finishes an asynchronous pixbuf creation operation started with | ||
| 524 | // gdk_pixbuf_new_from_stream_async(). | 535 | // gdk_pixbuf_new_from_stream_async(). | ||
| 525 | func NewPixbufFromStreamFinish(AsyncResultVar gio.AsyncResult) (*Pixbuf, error) { | 536 | func NewPixbufFromStreamFinish(AsyncResultVar gio.AsyncResult) (*Pixbuf, error) { | ||
| 537 | + | core.LazyRegister(&xNewPixbufFromStreamFinish, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_finish", false) | |||
| 526 | var cls *Pixbuf | 538 | var cls *Pixbuf | ||
| 527 | var cerr *glib.Error | 539 | var cerr *glib.Error | ||
| 528 | 540 | ||||
| @@ -546,6 +558,7 @@ var xNewPixbufFromXpmData func([]string) uintptr | |||||
| 546 | // This data is commonly the result of including an XPM file into a | 558 | // This data is commonly the result of including an XPM file into a | ||
| 547 | // program's C source. | 559 | // program's C source. | ||
| 548 | func NewPixbufFromXpmData(DataVar []string) *Pixbuf { | 560 | func NewPixbufFromXpmData(DataVar []string) *Pixbuf { | ||
| 561 | + | core.LazyRegister(&xNewPixbufFromXpmData, "GDKPIXBUF", "gdk_pixbuf_new_from_xpm_data", false) | |||
| 549 | var cls *Pixbuf | 562 | var cls *Pixbuf | ||
| 550 | 563 | ||||
| 551 | cret := xNewPixbufFromXpmData(DataVar) | 564 | cret := xNewPixbufFromXpmData(DataVar) | ||
| @@ -574,6 +587,7 @@ var xPixbufAddAlpha func(uintptr, bool, byte, byte, byte) uintptr | |||||
| 574 | // If `substitute_color` is `FALSE`, then the (`r`, `g`, `b`) arguments | 587 | // If `substitute_color` is `FALSE`, then the (`r`, `g`, `b`) arguments | ||
| 575 | // will be ignored. | 588 | // will be ignored. | ||
| 576 | func (x *Pixbuf) AddAlpha(SubstituteColorVar bool, RVar byte, GVar byte, BVar byte) *Pixbuf { | 589 | func (x *Pixbuf) AddAlpha(SubstituteColorVar bool, RVar byte, GVar byte, BVar byte) *Pixbuf { | ||
| 590 | + | core.LazyRegister(&xPixbufAddAlpha, "GDKPIXBUF", "gdk_pixbuf_add_alpha", false) | |||
| 577 | var cls *Pixbuf | 591 | var cls *Pixbuf | ||
| 578 | 592 | ||||
| 579 | cret := xPixbufAddAlpha(x.GoPointer(), SubstituteColorVar, RVar, GVar, BVar) | 593 | cret := xPixbufAddAlpha(x.GoPointer(), SubstituteColorVar, RVar, GVar, BVar) | ||
| @@ -599,6 +613,7 @@ var xPixbufApplyEmbeddedOrientation func(uintptr) uintptr | |||||
| 599 | // If an orientation option/tag is present, the appropriate transform | 613 | // If an orientation option/tag is present, the appropriate transform | ||
| 600 | // will be performed so that the pixbuf is oriented correctly. | 614 | // will be performed so that the pixbuf is oriented correctly. | ||
| 601 | func (x *Pixbuf) ApplyEmbeddedOrientation() *Pixbuf { | 615 | func (x *Pixbuf) ApplyEmbeddedOrientation() *Pixbuf { | ||
| 616 | + | core.LazyRegister(&xPixbufApplyEmbeddedOrientation, "GDKPIXBUF", "gdk_pixbuf_apply_embedded_orientation", false) | |||
| 602 | var cls *Pixbuf | 617 | var cls *Pixbuf | ||
| 603 | 618 | ||||
| 604 | cret := xPixbufApplyEmbeddedOrientation(x.GoPointer()) | 619 | cret := xPixbufApplyEmbeddedOrientation(x.GoPointer()) | ||
| @@ -627,6 +642,8 @@ var xPixbufComposite func(uintptr, uintptr, int, int, int, int, float64, float64 | |||||
| 627 | // | 642 | // | ||
| 628 | //  | 643 | //  | ||
| 629 | func (x *Pixbuf) Composite(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType, OverallAlphaVar int) { | 644 | func (x *Pixbuf) Composite(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType, OverallAlphaVar int) { | ||
| 645 | + | core.LazyRegister(&xPixbufComposite, "GDKPIXBUF", "gdk_pixbuf_composite", false) | |||
| 646 | + | ||||
| 630 | xPixbufComposite(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar, OverallAlphaVar) | 647 | xPixbufComposite(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar, OverallAlphaVar) | ||
| 631 | } | 648 | } | ||
| 632 | 649 | ||||
| @@ -645,6 +662,8 @@ var xPixbufCompositeColor func(uintptr, uintptr, int, int, int, int, float64, fl | |||||
| 645 | // See gdk_pixbuf_composite_color_simple() for a simpler variant of this | 662 | // See gdk_pixbuf_composite_color_simple() for a simpler variant of this | ||
| 646 | // function suitable for many tasks. | 663 | // function suitable for many tasks. | ||
| 647 | func (x *Pixbuf) CompositeColor(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType, OverallAlphaVar int, CheckXVar int, CheckYVar int, CheckSizeVar int, Color1Var uint32, Color2Var uint32) { | 664 | func (x *Pixbuf) CompositeColor(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType, OverallAlphaVar int, CheckXVar int, CheckYVar int, CheckSizeVar int, Color1Var uint32, Color2Var uint32) { | ||
| 665 | + | core.LazyRegister(&xPixbufCompositeColor, "GDKPIXBUF", "gdk_pixbuf_composite_color", false) | |||
| 666 | + | ||||
| 648 | xPixbufCompositeColor(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar, OverallAlphaVar, CheckXVar, CheckYVar, CheckSizeVar, Color1Var, Color2Var) | 667 | xPixbufCompositeColor(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar, OverallAlphaVar, CheckXVar, CheckYVar, CheckSizeVar, Color1Var, Color2Var) | ||
| 649 | } | 668 | } | ||
| 650 | 669 | ||||
| @@ -654,6 +673,7 @@ var xPixbufCompositeColorSimple func(uintptr, int, int, InterpType, int, int, ui | |||||
| 654 | // and alpha blending the result with a checkboard of colors `color1` | 673 | // and alpha blending the result with a checkboard of colors `color1` | ||
| 655 | // and `color2`. | 674 | // and `color2`. | ||
| 656 | func (x *Pixbuf) CompositeColorSimple(DestWidthVar int, DestHeightVar int, InterpTypeVar InterpType, OverallAlphaVar int, CheckSizeVar int, Color1Var uint32, Color2Var uint32) *Pixbuf { | 675 | func (x *Pixbuf) CompositeColorSimple(DestWidthVar int, DestHeightVar int, InterpTypeVar InterpType, OverallAlphaVar int, CheckSizeVar int, Color1Var uint32, Color2Var uint32) *Pixbuf { | ||
| 676 | + | core.LazyRegister(&xPixbufCompositeColorSimple, "GDKPIXBUF", "gdk_pixbuf_composite_color_simple", false) | |||
| 657 | var cls *Pixbuf | 677 | var cls *Pixbuf | ||
| 658 | 678 | ||||
| 659 | cret := xPixbufCompositeColorSimple(x.GoPointer(), DestWidthVar, DestHeightVar, InterpTypeVar, OverallAlphaVar, CheckSizeVar, Color1Var, Color2Var) | 679 | cret := xPixbufCompositeColorSimple(x.GoPointer(), DestWidthVar, DestHeightVar, InterpTypeVar, OverallAlphaVar, CheckSizeVar, Color1Var, Color2Var) | ||
| @@ -674,6 +694,7 @@ var xPixbufCopy func(uintptr) uintptr | |||||
| 674 | // Note that this does not copy the options set on the original `GdkPixbuf`, | 694 | // Note that this does not copy the options set on the original `GdkPixbuf`, | ||
| 675 | // use gdk_pixbuf_copy_options() for this. | 695 | // use gdk_pixbuf_copy_options() for this. | ||
| 676 | func (x *Pixbuf) Copy() *Pixbuf { | 696 | func (x *Pixbuf) Copy() *Pixbuf { | ||
| 697 | + | core.LazyRegister(&xPixbufCopy, "GDKPIXBUF", "gdk_pixbuf_copy", false) | |||
| 677 | var cls *Pixbuf | 698 | var cls *Pixbuf | ||
| 678 | 699 | ||||
| 679 | cret := xPixbufCopy(x.GoPointer()) | 700 | cret := xPixbufCopy(x.GoPointer()) | ||
| @@ -696,6 +717,8 @@ var xPixbufCopyArea func(uintptr, int, int, int, int, uintptr, int, int) | |||||
| 696 | // same pixbuf, it will be overwritten during the copy operation. | 717 | // same pixbuf, it will be overwritten during the copy operation. | ||
| 697 | // Therefore, you can not use this function to scroll a pixbuf. | 718 | // Therefore, you can not use this function to scroll a pixbuf. | ||
| 698 | func (x *Pixbuf) CopyArea(SrcXVar int, SrcYVar int, WidthVar int, HeightVar int, DestPixbufVar *Pixbuf, DestXVar int, DestYVar int) { | 719 | func (x *Pixbuf) CopyArea(SrcXVar int, SrcYVar int, WidthVar int, HeightVar int, DestPixbufVar *Pixbuf, DestXVar int, DestYVar int) { | ||
| 720 | + | core.LazyRegister(&xPixbufCopyArea, "GDKPIXBUF", "gdk_pixbuf_copy_area", false) | |||
| 721 | + | ||||
| 699 | xPixbufCopyArea(x.GoPointer(), SrcXVar, SrcYVar, WidthVar, HeightVar, DestPixbufVar.GoPointer(), DestXVar, DestYVar) | 722 | xPixbufCopyArea(x.GoPointer(), SrcXVar, SrcYVar, WidthVar, HeightVar, DestPixbufVar.GoPointer(), DestXVar, DestYVar) | ||
| 700 | } | 723 | } | ||
| 701 | 724 | ||||
| @@ -708,6 +731,8 @@ var xPixbufCopyOptions func(uintptr, uintptr) bool | |||||
| 708 | // a file. However be careful to remove metadata which you've already | 731 | // a file. However be careful to remove metadata which you've already | ||
| 709 | // applied, such as the "orientation" option after rotating the image. | 732 | // applied, such as the "orientation" option after rotating the image. | ||
| 710 | func (x *Pixbuf) CopyOptions(DestPixbufVar *Pixbuf) bool { | 733 | func (x *Pixbuf) CopyOptions(DestPixbufVar *Pixbuf) bool { | ||
| 734 | + | core.LazyRegister(&xPixbufCopyOptions, "GDKPIXBUF", "gdk_pixbuf_copy_options", false) | |||
| 735 | + | ||||
| 711 | cret := xPixbufCopyOptions(x.GoPointer(), DestPixbufVar.GoPointer()) | 736 | cret := xPixbufCopyOptions(x.GoPointer(), DestPixbufVar.GoPointer()) | ||
| 712 | return cret | 737 | return cret | ||
| 713 | } | 738 | } | ||
| @@ -720,6 +745,8 @@ var xPixbufFill func(uintptr, uint32) | |||||
| 720 | // The alpha component will be ignored if the pixbuf doesn't have an alpha | 745 | // The alpha component will be ignored if the pixbuf doesn't have an alpha | ||
| 721 | // channel. | 746 | // channel. | ||
| 722 | func (x *Pixbuf) Fill(PixelVar uint32) { | 747 | func (x *Pixbuf) Fill(PixelVar uint32) { | ||
| 748 | + | core.LazyRegister(&xPixbufFill, "GDKPIXBUF", "gdk_pixbuf_fill", false) | |||
| 749 | + | ||||
| 723 | xPixbufFill(x.GoPointer(), PixelVar) | 750 | xPixbufFill(x.GoPointer(), PixelVar) | ||
| 724 | } | 751 | } | ||
| 725 | 752 | ||||
| @@ -728,6 +755,7 @@ var xPixbufFlip func(uintptr, bool) uintptr | |||||
| 728 | // Flips a pixbuf horizontally or vertically and returns the | 755 | // Flips a pixbuf horizontally or vertically and returns the | ||
| 729 | // result in a new pixbuf. | 756 | // result in a new pixbuf. | ||
| 730 | func (x *Pixbuf) Flip(HorizontalVar bool) *Pixbuf { | 757 | func (x *Pixbuf) Flip(HorizontalVar bool) *Pixbuf { | ||
| 758 | + | core.LazyRegister(&xPixbufFlip, "GDKPIXBUF", "gdk_pixbuf_flip", false) | |||
| 731 | var cls *Pixbuf | 759 | var cls *Pixbuf | ||
| 732 | 760 | ||||
| 733 | cret := xPixbufFlip(x.GoPointer(), HorizontalVar) | 761 | cret := xPixbufFlip(x.GoPointer(), HorizontalVar) | ||
| @@ -744,6 +772,8 @@ var xPixbufGetBitsPerSample func(uintptr) int | |||||
| 744 | 772 | ||||
| 745 | // Queries the number of bits per color sample in a pixbuf. | 773 | // Queries the number of bits per color sample in a pixbuf. | ||
| 746 | func (x *Pixbuf) GetBitsPerSample() int { | 774 | func (x *Pixbuf) GetBitsPerSample() int { | ||
| 775 | + | core.LazyRegister(&xPixbufGetBitsPerSample, "GDKPIXBUF", "gdk_pixbuf_get_bits_per_sample", false) | |||
| 776 | + | ||||
| 747 | cret := xPixbufGetBitsPerSample(x.GoPointer()) | 777 | cret := xPixbufGetBitsPerSample(x.GoPointer()) | ||
| 748 | return cret | 778 | return cret | ||
| 749 | } | 779 | } | ||
| @@ -752,6 +782,8 @@ var xPixbufGetByteLength func(uintptr) uint | |||||
| 752 | 782 | ||||
| 753 | // Returns the length of the pixel data, in bytes. | 783 | // Returns the length of the pixel data, in bytes. | ||
| 754 | func (x *Pixbuf) GetByteLength() uint { | 784 | func (x *Pixbuf) GetByteLength() uint { | ||
| 785 | + | core.LazyRegister(&xPixbufGetByteLength, "GDKPIXBUF", "gdk_pixbuf_get_byte_length", false) | |||
| 786 | + | ||||
| 755 | cret := xPixbufGetByteLength(x.GoPointer()) | 787 | cret := xPixbufGetByteLength(x.GoPointer()) | ||
| 756 | return cret | 788 | return cret | ||
| 757 | } | 789 | } | ||
| @@ -760,6 +792,8 @@ var xPixbufGetColorspace func(uintptr) Colorspace | |||||
| 760 | 792 | ||||
| 761 | // Queries the color space of a pixbuf. | 793 | // Queries the color space of a pixbuf. | ||
| 762 | func (x *Pixbuf) GetColorspace() Colorspace { | 794 | func (x *Pixbuf) GetColorspace() Colorspace { | ||
| 795 | + | core.LazyRegister(&xPixbufGetColorspace, "GDKPIXBUF", "gdk_pixbuf_get_colorspace", false) | |||
| 796 | + | ||||
| 763 | cret := xPixbufGetColorspace(x.GoPointer()) | 797 | cret := xPixbufGetColorspace(x.GoPointer()) | ||
| 764 | return cret | 798 | return cret | ||
| 765 | } | 799 | } | ||
| @@ -768,6 +802,8 @@ var xPixbufGetHasAlpha func(uintptr) bool | |||||
| 768 | 802 | ||||
| 769 | // Queries whether a pixbuf has an alpha channel (opacity information). | 803 | // Queries whether a pixbuf has an alpha channel (opacity information). | ||
| 770 | func (x *Pixbuf) GetHasAlpha() bool { | 804 | func (x *Pixbuf) GetHasAlpha() bool { | ||
| 805 | + | core.LazyRegister(&xPixbufGetHasAlpha, "GDKPIXBUF", "gdk_pixbuf_get_has_alpha", false) | |||
| 806 | + | ||||
| 771 | cret := xPixbufGetHasAlpha(x.GoPointer()) | 807 | cret := xPixbufGetHasAlpha(x.GoPointer()) | ||
| 772 | return cret | 808 | return cret | ||
| 773 | } | 809 | } | ||
| @@ -776,6 +812,8 @@ var xPixbufGetHeight func(uintptr) int | |||||
| 776 | 812 | ||||
| 777 | // Queries the height of a pixbuf. | 813 | // Queries the height of a pixbuf. | ||
| 778 | func (x *Pixbuf) GetHeight() int { | 814 | func (x *Pixbuf) GetHeight() int { | ||
| 815 | + | core.LazyRegister(&xPixbufGetHeight, "GDKPIXBUF", "gdk_pixbuf_get_height", false) | |||
| 816 | + | ||||
| 779 | cret := xPixbufGetHeight(x.GoPointer()) | 817 | cret := xPixbufGetHeight(x.GoPointer()) | ||
| 780 | return cret | 818 | return cret | ||
| 781 | } | 819 | } | ||
| @@ -784,6 +822,8 @@ var xPixbufGetNChannels func(uintptr) int | |||||
| 784 | 822 | ||||
| 785 | // Queries the number of channels of a pixbuf. | 823 | // Queries the number of channels of a pixbuf. | ||
| 786 | func (x *Pixbuf) GetNChannels() int { | 824 | func (x *Pixbuf) GetNChannels() int { | ||
| 825 | + | core.LazyRegister(&xPixbufGetNChannels, "GDKPIXBUF", "gdk_pixbuf_get_n_channels", false) | |||
| 826 | + | ||||
| 787 | cret := xPixbufGetNChannels(x.GoPointer()) | 827 | cret := xPixbufGetNChannels(x.GoPointer()) | ||
| 788 | return cret | 828 | return cret | ||
| 789 | } | 829 | } | ||
| @@ -806,6 +846,8 @@ var xPixbufGetOption func(uintptr, string) string | |||||
| 806 | // Since 2.36.6, the JPEG loader sets the "comment" option with the comment | 846 | // Since 2.36.6, the JPEG loader sets the "comment" option with the comment | ||
| 807 | // EXIF tag. | 847 | // EXIF tag. | ||
| 808 | func (x *Pixbuf) GetOption(KeyVar string) string { | 848 | func (x *Pixbuf) GetOption(KeyVar string) string { | ||
| 849 | + | core.LazyRegister(&xPixbufGetOption, "GDKPIXBUF", "gdk_pixbuf_get_option", false) | |||
| 850 | + | ||||
| 809 | cret := xPixbufGetOption(x.GoPointer(), KeyVar) | 851 | cret := xPixbufGetOption(x.GoPointer(), KeyVar) | ||
| 810 | return cret | 852 | return cret | ||
| 811 | } | 853 | } | ||
| @@ -816,6 +858,8 @@ var xPixbufGetOptions func(uintptr) uintptr | |||||
| 816 | // attached to the `pixbuf` when it was loaded, or that may have been | 858 | // attached to the `pixbuf` when it was loaded, or that may have been | ||
| 817 | // attached by another function using [method@GdkPixbuf.Pixbuf.set_option]. | 859 | // attached by another function using [method@GdkPixbuf.Pixbuf.set_option]. | ||
| 818 | func (x *Pixbuf) GetOptions() *glib.HashTable { | 860 | func (x *Pixbuf) GetOptions() *glib.HashTable { | ||
| 861 | + | core.LazyRegister(&xPixbufGetOptions, "GDKPIXBUF", "gdk_pixbuf_get_options", false) | |||
| 862 | + | ||||
| 819 | cret := xPixbufGetOptions(x.GoPointer()) | 863 | cret := xPixbufGetOptions(x.GoPointer()) | ||
| 820 | if cret == 0 { | 864 | if cret == 0 { | ||
| 821 | return nil | 865 | return nil | ||
| @@ -833,6 +877,8 @@ var xPixbufGetPixels func(uintptr) uintptr | |||||
| 833 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | 877 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | ||
| 834 | // about how the pixel data is stored in memory. | 878 | // about how the pixel data is stored in memory. | ||
| 835 | func (x *Pixbuf) GetPixels() uintptr { | 879 | func (x *Pixbuf) GetPixels() uintptr { | ||
| 880 | + | core.LazyRegister(&xPixbufGetPixels, "GDKPIXBUF", "gdk_pixbuf_get_pixels", false) | |||
| 881 | + | ||||
| 836 | cret := xPixbufGetPixels(x.GoPointer()) | 882 | cret := xPixbufGetPixels(x.GoPointer()) | ||
| 837 | return cret | 883 | return cret | ||
| 838 | } | 884 | } | ||
| @@ -847,6 +893,8 @@ var xPixbufGetPixelsWithLength func(uintptr, *uint) uintptr | |||||
| 847 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | 893 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | ||
| 848 | // about how the pixel data is stored in memory. | 894 | // about how the pixel data is stored in memory. | ||
| 849 | func (x *Pixbuf) GetPixelsWithLength(LengthVar *uint) uintptr { | 895 | func (x *Pixbuf) GetPixelsWithLength(LengthVar *uint) uintptr { | ||
| 896 | + | core.LazyRegister(&xPixbufGetPixelsWithLength, "GDKPIXBUF", "gdk_pixbuf_get_pixels_with_length", false) | |||
| 897 | + | ||||
| 850 | cret := xPixbufGetPixelsWithLength(x.GoPointer(), LengthVar) | 898 | cret := xPixbufGetPixelsWithLength(x.GoPointer(), LengthVar) | ||
| 851 | return cret | 899 | return cret | ||
| 852 | } | 900 | } | ||
| @@ -856,6 +904,8 @@ var xPixbufGetRowstride func(uintptr) int | |||||
| 856 | // Queries the rowstride of a pixbuf, which is the number of bytes between | 904 | // Queries the rowstride of a pixbuf, which is the number of bytes between | ||
| 857 | // the start of a row and the start of the next row. | 905 | // the start of a row and the start of the next row. | ||
| 858 | func (x *Pixbuf) GetRowstride() int { | 906 | func (x *Pixbuf) GetRowstride() int { | ||
| 907 | + | core.LazyRegister(&xPixbufGetRowstride, "GDKPIXBUF", "gdk_pixbuf_get_rowstride", false) | |||
| 908 | + | ||||
| 859 | cret := xPixbufGetRowstride(x.GoPointer()) | 909 | cret := xPixbufGetRowstride(x.GoPointer()) | ||
| 860 | return cret | 910 | return cret | ||
| 861 | } | 911 | } | ||
| @@ -864,6 +914,8 @@ var xPixbufGetWidth func(uintptr) int | |||||
| 864 | 914 | ||||
| 865 | // Queries the width of a pixbuf. | 915 | // Queries the width of a pixbuf. | ||
| 866 | func (x *Pixbuf) GetWidth() int { | 916 | func (x *Pixbuf) GetWidth() int { | ||
| 917 | + | core.LazyRegister(&xPixbufGetWidth, "GDKPIXBUF", "gdk_pixbuf_get_width", false) | |||
| 918 | + | ||||
| 867 | cret := xPixbufGetWidth(x.GoPointer()) | 919 | cret := xPixbufGetWidth(x.GoPointer()) | ||
| 868 | return cret | 920 | return cret | ||
| 869 | } | 921 | } | ||
| @@ -880,6 +932,7 @@ var xPixbufNewSubpixbuf func(uintptr, int, int, int, int) uintptr | |||||
| 880 | // Note that if `src_pixbuf` is read-only, this function will force it | 932 | // Note that if `src_pixbuf` is read-only, this function will force it | ||
| 881 | // to be mutable. | 933 | // to be mutable. | ||
| 882 | func (x *Pixbuf) NewSubpixbuf(SrcXVar int, SrcYVar int, WidthVar int, HeightVar int) *Pixbuf { | 934 | func (x *Pixbuf) NewSubpixbuf(SrcXVar int, SrcYVar int, WidthVar int, HeightVar int) *Pixbuf { | ||
| 935 | + | core.LazyRegister(&xPixbufNewSubpixbuf, "GDKPIXBUF", "gdk_pixbuf_new_subpixbuf", false) | |||
| 883 | var cls *Pixbuf | 936 | var cls *Pixbuf | ||
| 884 | 937 | ||||
| 885 | cret := xPixbufNewSubpixbuf(x.GoPointer(), SrcXVar, SrcYVar, WidthVar, HeightVar) | 938 | cret := xPixbufNewSubpixbuf(x.GoPointer(), SrcXVar, SrcYVar, WidthVar, HeightVar) | ||
| @@ -900,6 +953,8 @@ var xPixbufReadPixelBytes func(uintptr) uintptr | |||||
| 900 | // This function allows skipping the implicit copy that must be made | 953 | // This function allows skipping the implicit copy that must be made | ||
| 901 | // if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. | 954 | // if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. | ||
| 902 | func (x *Pixbuf) ReadPixelBytes() *glib.Bytes { | 955 | func (x *Pixbuf) ReadPixelBytes() *glib.Bytes { | ||
| 956 | + | core.LazyRegister(&xPixbufReadPixelBytes, "GDKPIXBUF", "gdk_pixbuf_read_pixel_bytes", false) | |||
| 957 | + | ||||
| 903 | cret := xPixbufReadPixelBytes(x.GoPointer()) | 958 | cret := xPixbufReadPixelBytes(x.GoPointer()) | ||
| 904 | if cret == 0 { | 959 | if cret == 0 { | ||
| 905 | return nil | 960 | return nil | ||
| @@ -914,6 +969,8 @@ var xPixbufReadPixels func(uintptr) byte | |||||
| 914 | // This function allows skipping the implicit copy that must be made | 969 | // This function allows skipping the implicit copy that must be made | ||
| 915 | // if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. | 970 | // if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. | ||
| 916 | func (x *Pixbuf) ReadPixels() byte { | 971 | func (x *Pixbuf) ReadPixels() byte { | ||
| 972 | + | core.LazyRegister(&xPixbufReadPixels, "GDKPIXBUF", "gdk_pixbuf_read_pixels", false) | |||
| 973 | + | ||||
| 917 | cret := xPixbufReadPixels(x.GoPointer()) | 974 | cret := xPixbufReadPixels(x.GoPointer()) | ||
| 918 | return cret | 975 | return cret | ||
| 919 | } | 976 | } | ||
| @@ -922,6 +979,7 @@ var xPixbufRef func(uintptr) uintptr | |||||
| 922 | 979 | ||||
| 923 | // Adds a reference to a pixbuf. | 980 | // Adds a reference to a pixbuf. | ||
| 924 | func (x *Pixbuf) Ref() *Pixbuf { | 981 | func (x *Pixbuf) Ref() *Pixbuf { | ||
| 982 | + | core.LazyRegister(&xPixbufRef, "GDKPIXBUF", "gdk_pixbuf_ref", false) | |||
| 925 | var cls *Pixbuf | 983 | var cls *Pixbuf | ||
| 926 | 984 | ||||
| 927 | cret := xPixbufRef(x.GoPointer()) | 985 | cret := xPixbufRef(x.GoPointer()) | ||
| @@ -938,6 +996,8 @@ var xPixbufRemoveOption func(uintptr, string) bool | |||||
| 938 | 996 | ||||
| 939 | // Removes the key/value pair option attached to a `GdkPixbuf`. | 997 | // Removes the key/value pair option attached to a `GdkPixbuf`. | ||
| 940 | func (x *Pixbuf) RemoveOption(KeyVar string) bool { | 998 | func (x *Pixbuf) RemoveOption(KeyVar string) bool { | ||
| 999 | + | core.LazyRegister(&xPixbufRemoveOption, "GDKPIXBUF", "gdk_pixbuf_remove_option", false) | |||
| 1000 | + | ||||
| 941 | cret := xPixbufRemoveOption(x.GoPointer(), KeyVar) | 1001 | cret := xPixbufRemoveOption(x.GoPointer(), KeyVar) | ||
| 942 | return cret | 1002 | return cret | ||
| 943 | } | 1003 | } | ||
| @@ -949,6 +1009,7 @@ var xPixbufRotateSimple func(uintptr, PixbufRotation) uintptr | |||||
| 949 | // | 1009 | // | ||
| 950 | // If `angle` is 0, this function will return a copy of `src`. | 1010 | // If `angle` is 0, this function will return a copy of `src`. | ||
| 951 | func (x *Pixbuf) RotateSimple(AngleVar PixbufRotation) *Pixbuf { | 1011 | func (x *Pixbuf) RotateSimple(AngleVar PixbufRotation) *Pixbuf { | ||
| 1012 | + | core.LazyRegister(&xPixbufRotateSimple, "GDKPIXBUF", "gdk_pixbuf_rotate_simple", false) | |||
| 952 | var cls *Pixbuf | 1013 | var cls *Pixbuf | ||
| 953 | 1014 | ||||
| 954 | cret := xPixbufRotateSimple(x.GoPointer(), AngleVar) | 1015 | cret := xPixbufRotateSimple(x.GoPointer(), AngleVar) | ||
| @@ -978,6 +1039,8 @@ var xPixbufSaturateAndPixelate func(uintptr, uintptr, float32, bool) | |||||
| 978 | // If `pixelate` is `TRUE`, then pixels are faded in a checkerboard pattern to | 1039 | // If `pixelate` is `TRUE`, then pixels are faded in a checkerboard pattern to | ||
| 979 | // create a pixelated image. | 1040 | // create a pixelated image. | ||
| 980 | func (x *Pixbuf) SaturateAndPixelate(DestVar *Pixbuf, SaturationVar float32, PixelateVar bool) { | 1041 | func (x *Pixbuf) SaturateAndPixelate(DestVar *Pixbuf, SaturationVar float32, PixelateVar bool) { | ||
| 1042 | + | core.LazyRegister(&xPixbufSaturateAndPixelate, "GDKPIXBUF", "gdk_pixbuf_saturate_and_pixelate", false) | |||
| 1043 | + | ||||
| 981 | xPixbufSaturateAndPixelate(x.GoPointer(), DestVar.GoPointer(), SaturationVar, PixelateVar) | 1044 | xPixbufSaturateAndPixelate(x.GoPointer(), DestVar.GoPointer(), SaturationVar, PixelateVar) | ||
| 982 | } | 1045 | } | ||
| 983 | 1046 | ||||
| @@ -1056,6 +1119,8 @@ var xPixbufSave func(uintptr, string, string, **glib.Error, ...interface{}) bool | |||||
| 1056 | // parameter. When the ICO saver is given "x_hot" and "y_hot" parameters, | 1119 | // parameter. When the ICO saver is given "x_hot" and "y_hot" parameters, | ||
| 1057 | // it produces a CUR instead of an ICO. | 1120 | // it produces a CUR instead of an ICO. | ||
| 1058 | func (x *Pixbuf) Save(FilenameVar string, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | 1121 | func (x *Pixbuf) Save(FilenameVar string, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | ||
| 1122 | + | core.LazyRegister(&xPixbufSave, "GDKPIXBUF", "gdk_pixbuf_save", false) | |||
| 1123 | + | ||||
| 1059 | cret := xPixbufSave(x.GoPointer(), FilenameVar, TypeVar, ErrorVar, varArgs...) | 1124 | cret := xPixbufSave(x.GoPointer(), FilenameVar, TypeVar, ErrorVar, varArgs...) | ||
| 1060 | return cret | 1125 | return cret | ||
| 1061 | } | 1126 | } | ||
| @@ -1077,6 +1142,8 @@ var xPixbufSaveToBuffer func(uintptr, *[]byte, *uint, string, **glib.Error, ...i | |||||
| 1077 | // | 1142 | // | ||
| 1078 | // See `gdk_pixbuf_save()` for more details. | 1143 | // See `gdk_pixbuf_save()` for more details. | ||
| 1079 | func (x *Pixbuf) SaveToBuffer(BufferVar *[]byte, BufferSizeVar *uint, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | 1144 | func (x *Pixbuf) SaveToBuffer(BufferVar *[]byte, BufferSizeVar *uint, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | ||
| 1145 | + | core.LazyRegister(&xPixbufSaveToBuffer, "GDKPIXBUF", "gdk_pixbuf_save_to_buffer", false) | |||
| 1146 | + | ||||
| 1080 | cret := xPixbufSaveToBuffer(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, ErrorVar, varArgs...) | 1147 | cret := xPixbufSaveToBuffer(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, ErrorVar, varArgs...) | ||
| 1081 | return cret | 1148 | return cret | ||
| 1082 | } | 1149 | } | ||
| @@ -1090,6 +1157,7 @@ var xPixbufSaveToBufferv func(uintptr, *[]byte, *uint, string, []string, []strin | |||||
| 1090 | // | 1157 | // | ||
| 1091 | // See [method@GdkPixbuf.Pixbuf.save_to_buffer] for more details. | 1158 | // See [method@GdkPixbuf.Pixbuf.save_to_buffer] for more details. | ||
| 1092 | func (x *Pixbuf) SaveToBufferv(BufferVar *[]byte, BufferSizeVar *uint, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | 1159 | func (x *Pixbuf) SaveToBufferv(BufferVar *[]byte, BufferSizeVar *uint, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | ||
| 1160 | + | core.LazyRegister(&xPixbufSaveToBufferv, "GDKPIXBUF", "gdk_pixbuf_save_to_bufferv", false) | |||
| 1093 | var cerr *glib.Error | 1161 | var cerr *glib.Error | ||
| 1094 | 1162 | ||||
| 1095 | cret := xPixbufSaveToBufferv(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | 1163 | cret := xPixbufSaveToBufferv(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | ||
| @@ -1113,6 +1181,8 @@ var xPixbufSaveToCallback func(uintptr, uintptr, uintptr, string, **glib.Error, | |||||
| 1113 | // | 1181 | // | ||
| 1114 | // See [method@GdkPixbuf.Pixbuf.save] for more details. | 1182 | // See [method@GdkPixbuf.Pixbuf.save] for more details. | ||
| 1115 | func (x *Pixbuf) SaveToCallback(SaveFuncVar *PixbufSaveFunc, UserDataVar uintptr, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | 1183 | func (x *Pixbuf) SaveToCallback(SaveFuncVar *PixbufSaveFunc, UserDataVar uintptr, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | ||
| 1184 | + | core.LazyRegister(&xPixbufSaveToCallback, "GDKPIXBUF", "gdk_pixbuf_save_to_callback", false) | |||
| 1185 | + | ||||
| 1116 | cret := xPixbufSaveToCallback(x.GoPointer(), glib.NewCallback(SaveFuncVar), UserDataVar, TypeVar, ErrorVar, varArgs...) | 1186 | cret := xPixbufSaveToCallback(x.GoPointer(), glib.NewCallback(SaveFuncVar), UserDataVar, TypeVar, ErrorVar, varArgs...) | ||
| 1117 | return cret | 1187 | return cret | ||
| 1118 | } | 1188 | } | ||
| @@ -1128,6 +1198,7 @@ var xPixbufSaveToCallbackv func(uintptr, uintptr, uintptr, string, []string, []s | |||||
| 1128 | // | 1198 | // | ||
| 1129 | // See [method@GdkPixbuf.Pixbuf.save_to_callback] for more details. | 1199 | // See [method@GdkPixbuf.Pixbuf.save_to_callback] for more details. | ||
| 1130 | func (x *Pixbuf) SaveToCallbackv(SaveFuncVar *PixbufSaveFunc, UserDataVar uintptr, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | 1200 | func (x *Pixbuf) SaveToCallbackv(SaveFuncVar *PixbufSaveFunc, UserDataVar uintptr, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | ||
| 1201 | + | core.LazyRegister(&xPixbufSaveToCallbackv, "GDKPIXBUF", "gdk_pixbuf_save_to_callbackv", false) | |||
| 1131 | var cerr *glib.Error | 1202 | var cerr *glib.Error | ||
| 1132 | 1203 | ||||
| 1133 | cret := xPixbufSaveToCallbackv(x.GoPointer(), glib.NewCallback(SaveFuncVar), UserDataVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | 1204 | cret := xPixbufSaveToCallbackv(x.GoPointer(), glib.NewCallback(SaveFuncVar), UserDataVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | ||
| @@ -1151,6 +1222,8 @@ var xPixbufSaveToStream func(uintptr, uintptr, string, uintptr, **glib.Error, .. | |||||
| 1151 | // | 1222 | // | ||
| 1152 | // The stream is not closed at the end of this call. | 1223 | // The stream is not closed at the end of this call. | ||
| 1153 | func (x *Pixbuf) SaveToStream(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, ErrorVar **glib.Error, varArgs ...interface{}) bool { | 1224 | func (x *Pixbuf) SaveToStream(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, ErrorVar **glib.Error, varArgs ...interface{}) bool { | ||
| 1225 | + | core.LazyRegister(&xPixbufSaveToStream, "GDKPIXBUF", "gdk_pixbuf_save_to_stream", false) | |||
| 1226 | + | ||||
| 1154 | cret := xPixbufSaveToStream(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), ErrorVar, varArgs...) | 1227 | cret := xPixbufSaveToStream(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), ErrorVar, varArgs...) | ||
| 1155 | return cret | 1228 | return cret | ||
| 1156 | } | 1229 | } | ||
| @@ -1167,6 +1240,8 @@ var xPixbufSaveToStreamAsync func(uintptr, uintptr, string, uintptr, uintptr, ui | |||||
| 1167 | // You can then call gdk_pixbuf_save_to_stream_finish() to get the result of | 1240 | // You can then call gdk_pixbuf_save_to_stream_finish() to get the result of | ||
| 1168 | // the operation. | 1241 | // the operation. | ||
| 1169 | func (x *Pixbuf) SaveToStreamAsync(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr, varArgs ...interface{}) { | 1242 | func (x *Pixbuf) SaveToStreamAsync(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr, varArgs ...interface{}) { | ||
| 1243 | + | core.LazyRegister(&xPixbufSaveToStreamAsync, "GDKPIXBUF", "gdk_pixbuf_save_to_stream_async", false) | |||
| 1244 | + | ||||
| 1170 | xPixbufSaveToStreamAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, varArgs...) | 1245 | xPixbufSaveToStreamAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, varArgs...) | ||
| 1171 | } | 1246 | } | ||
| 1172 | 1247 | ||||
| @@ -1179,6 +1254,7 @@ var xPixbufSaveToStreamv func(uintptr, uintptr, string, []string, []string, uint | |||||
| 1179 | // | 1254 | // | ||
| 1180 | // See [method@GdkPixbuf.Pixbuf.save_to_stream] for more details. | 1255 | // See [method@GdkPixbuf.Pixbuf.save_to_stream] for more details. | ||
| 1181 | func (x *Pixbuf) SaveToStreamv(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable) (bool, error) { | 1256 | func (x *Pixbuf) SaveToStreamv(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable) (bool, error) { | ||
| 1257 | + | core.LazyRegister(&xPixbufSaveToStreamv, "GDKPIXBUF", "gdk_pixbuf_save_to_streamv", false) | |||
| 1182 | var cerr *glib.Error | 1258 | var cerr *glib.Error | ||
| 1183 | 1259 | ||||
| 1184 | cret := xPixbufSaveToStreamv(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), &cerr) | 1260 | cret := xPixbufSaveToStreamv(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1200,6 +1276,8 @@ var xPixbufSaveToStreamvAsync func(uintptr, uintptr, string, []string, []string, | |||||
| 1200 | // You can then call gdk_pixbuf_save_to_stream_finish() to get the result of | 1276 | // You can then call gdk_pixbuf_save_to_stream_finish() to get the result of | ||
| 1201 | // the operation. | 1277 | // the operation. | ||
| 1202 | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1278 | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1279 | + | core.LazyRegister(&xPixbufSaveToStreamvAsync, "GDKPIXBUF", "gdk_pixbuf_save_to_streamv_async", false) | |||
| 1280 | + | ||||
| 1203 | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1281 | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1204 | } | 1282 | } | ||
| 1205 | 1283 | ||||
| @@ -1213,6 +1291,7 @@ var xPixbufSavev func(uintptr, string, string, []string, []string, **glib.Error) | |||||
| 1213 | // | 1291 | // | ||
| 1214 | // See [method@GdkPixbuf.Pixbuf.save] for more details. | 1292 | // See [method@GdkPixbuf.Pixbuf.save] for more details. | ||
| 1215 | func (x *Pixbuf) Savev(FilenameVar string, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | 1293 | func (x *Pixbuf) Savev(FilenameVar string, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | ||
| 1294 | + | core.LazyRegister(&xPixbufSavev, "GDKPIXBUF", "gdk_pixbuf_savev", false) | |||
| 1216 | var cerr *glib.Error | 1295 | var cerr *glib.Error | ||
| 1217 | 1296 | ||||
| 1218 | cret := xPixbufSavev(x.GoPointer(), FilenameVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | 1297 | cret := xPixbufSavev(x.GoPointer(), FilenameVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | ||
| @@ -1238,6 +1317,8 @@ var xPixbufScale func(uintptr, uintptr, int, int, int, int, float64, float64, fl | |||||
| 1238 | // same pixbuf, it will be overwritten during the scaling which | 1317 | // same pixbuf, it will be overwritten during the scaling which | ||
| 1239 | // results in rendering artifacts. | 1318 | // results in rendering artifacts. | ||
| 1240 | func (x *Pixbuf) Scale(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType) { | 1319 | func (x *Pixbuf) Scale(DestVar *Pixbuf, DestXVar int, DestYVar int, DestWidthVar int, DestHeightVar int, OffsetXVar float64, OffsetYVar float64, ScaleXVar float64, ScaleYVar float64, InterpTypeVar InterpType) { | ||
| 1320 | + | core.LazyRegister(&xPixbufScale, "GDKPIXBUF", "gdk_pixbuf_scale", false) | |||
| 1321 | + | ||||
| 1241 | xPixbufScale(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar) | 1322 | xPixbufScale(x.GoPointer(), DestVar.GoPointer(), DestXVar, DestYVar, DestWidthVar, DestHeightVar, OffsetXVar, OffsetYVar, ScaleXVar, ScaleYVar, InterpTypeVar) | ||
| 1242 | } | 1323 | } | ||
| 1243 | 1324 | ||||
| @@ -1262,6 +1343,7 @@ var xPixbufScaleSimple func(uintptr, int, int, InterpType) uintptr | |||||
| 1262 | // For more complicated scaling/alpha blending see [method@GdkPixbuf.Pixbuf.scale] | 1343 | // For more complicated scaling/alpha blending see [method@GdkPixbuf.Pixbuf.scale] | ||
| 1263 | // and [method@GdkPixbuf.Pixbuf.composite]. | 1344 | // and [method@GdkPixbuf.Pixbuf.composite]. | ||
| 1264 | func (x *Pixbuf) ScaleSimple(DestWidthVar int, DestHeightVar int, InterpTypeVar InterpType) *Pixbuf { | 1345 | func (x *Pixbuf) ScaleSimple(DestWidthVar int, DestHeightVar int, InterpTypeVar InterpType) *Pixbuf { | ||
| 1346 | + | core.LazyRegister(&xPixbufScaleSimple, "GDKPIXBUF", "gdk_pixbuf_scale_simple", false) | |||
| 1265 | var cls *Pixbuf | 1347 | var cls *Pixbuf | ||
| 1266 | 1348 | ||||
| 1267 | cret := xPixbufScaleSimple(x.GoPointer(), DestWidthVar, DestHeightVar, InterpTypeVar) | 1349 | cret := xPixbufScaleSimple(x.GoPointer(), DestWidthVar, DestHeightVar, InterpTypeVar) | ||
| @@ -1281,6 +1363,8 @@ var xPixbufSetOption func(uintptr, string, string) bool | |||||
| 1281 | // If `key` already exists in the list of options attached to the `pixbuf`, | 1363 | // If `key` already exists in the list of options attached to the `pixbuf`, | ||
| 1282 | // the new value is ignored and `FALSE` is returned. | 1364 | // the new value is ignored and `FALSE` is returned. | ||
| 1283 | func (x *Pixbuf) SetOption(KeyVar string, ValueVar string) bool { | 1365 | func (x *Pixbuf) SetOption(KeyVar string, ValueVar string) bool { | ||
| 1366 | + | core.LazyRegister(&xPixbufSetOption, "GDKPIXBUF", "gdk_pixbuf_set_option", false) | |||
| 1367 | + | ||||
| 1284 | cret := xPixbufSetOption(x.GoPointer(), KeyVar, ValueVar) | 1368 | cret := xPixbufSetOption(x.GoPointer(), KeyVar, ValueVar) | ||
| 1285 | return cret | 1369 | return cret | ||
| 1286 | } | 1370 | } | ||
| @@ -1289,6 +1373,8 @@ var xPixbufUnref func(uintptr) | |||||
| 1289 | 1373 | ||||
| 1290 | // Removes a reference from a pixbuf. | 1374 | // Removes a reference from a pixbuf. | ||
| 1291 | func (x *Pixbuf) Unref() { | 1375 | func (x *Pixbuf) Unref() { | ||
| 1376 | + | core.LazyRegister(&xPixbufUnref, "GDKPIXBUF", "gdk_pixbuf_unref", false) | |||
| 1377 | + | ||||
| 1292 | xPixbufUnref(x.GoPointer()) | 1378 | xPixbufUnref(x.GoPointer()) | ||
| 1293 | } | 1379 | } | ||
| 1294 | 1380 | ||||
| @@ -1551,6 +1637,8 @@ var xPixbufCalculateRowstride func(Colorspace, bool, int, int, int) int | |||||
| 1551 | // This function is useful for front-ends and backends that want to check | 1637 | // This function is useful for front-ends and backends that want to check | ||
| 1552 | // image values without needing to create a `GdkPixbuf`. | 1638 | // image values without needing to create a `GdkPixbuf`. | ||
| 1553 | func PixbufCalculateRowstride(ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int) int { | 1639 | func PixbufCalculateRowstride(ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int) int { | ||
| 1640 | + | core.LazyRegister(&xPixbufCalculateRowstride, "GDKPIXBUF", "gdk_pixbuf_calculate_rowstride", false) | |||
| 1641 | + | ||||
| 1554 | cret := xPixbufCalculateRowstride(ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar) | 1642 | cret := xPixbufCalculateRowstride(ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar) | ||
| 1555 | return cret | 1643 | return cret | ||
| 1556 | } | 1644 | } | ||
| @@ -1559,6 +1647,8 @@ var xPixbufGetFileInfo func(string, *int, *int) uintptr | |||||
| 1559 | 1647 | ||||
| 1560 | // Parses an image file far enough to determine its format and size. | 1648 | // Parses an image file far enough to determine its format and size. | ||
| 1561 | func PixbufGetFileInfo(FilenameVar string, WidthVar *int, HeightVar *int) *PixbufFormat { | 1649 | func PixbufGetFileInfo(FilenameVar string, WidthVar *int, HeightVar *int) *PixbufFormat { | ||
| 1650 | + | core.LazyRegister(&xPixbufGetFileInfo, "GDKPIXBUF", "gdk_pixbuf_get_file_info", false) | |||
| 1651 | + | ||||
| 1562 | cret := xPixbufGetFileInfo(FilenameVar, WidthVar, HeightVar) | 1652 | cret := xPixbufGetFileInfo(FilenameVar, WidthVar, HeightVar) | ||
| 1563 | if cret == 0 { | 1653 | if cret == 0 { | ||
| 1564 | return nil | 1654 | return nil | ||
| @@ -1578,6 +1668,8 @@ var xPixbufGetFileInfoAsync func(string, uintptr, uintptr, uintptr) | |||||
| 1578 | // main thread. You can then call gdk_pixbuf_get_file_info_finish() to | 1668 | // main thread. You can then call gdk_pixbuf_get_file_info_finish() to | ||
| 1579 | // get the result of the operation. | 1669 | // get the result of the operation. | ||
| 1580 | func PixbufGetFileInfoAsync(FilenameVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1670 | func PixbufGetFileInfoAsync(FilenameVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1671 | + | core.LazyRegister(&xPixbufGetFileInfoAsync, "GDKPIXBUF", "gdk_pixbuf_get_file_info_async", false) | |||
| 1672 | + | ||||
| 1581 | xPixbufGetFileInfoAsync(FilenameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1673 | xPixbufGetFileInfoAsync(FilenameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1582 | } | 1674 | } | ||
| 1583 | 1675 | ||||
| @@ -1586,6 +1678,7 @@ var xPixbufGetFileInfoFinish func(uintptr, *int, *int, **glib.Error) uintptr | |||||
| 1586 | // Finishes an asynchronous pixbuf parsing operation started with | 1678 | // Finishes an asynchronous pixbuf parsing operation started with | ||
| 1587 | // gdk_pixbuf_get_file_info_async(). | 1679 | // gdk_pixbuf_get_file_info_async(). | ||
| 1588 | func PixbufGetFileInfoFinish(AsyncResultVar gio.AsyncResult, WidthVar *int, HeightVar *int) (*PixbufFormat, error) { | 1680 | func PixbufGetFileInfoFinish(AsyncResultVar gio.AsyncResult, WidthVar *int, HeightVar *int) (*PixbufFormat, error) { | ||
| 1681 | + | core.LazyRegister(&xPixbufGetFileInfoFinish, "GDKPIXBUF", "gdk_pixbuf_get_file_info_finish", false) | |||
| 1589 | var cerr *glib.Error | 1682 | var cerr *glib.Error | ||
| 1590 | 1683 | ||||
| 1591 | cret := xPixbufGetFileInfoFinish(AsyncResultVar.GoPointer(), WidthVar, HeightVar, &cerr) | 1684 | cret := xPixbufGetFileInfoFinish(AsyncResultVar.GoPointer(), WidthVar, HeightVar, &cerr) | ||
| @@ -1603,6 +1696,8 @@ var xPixbufGetFormats func() uintptr | |||||
| 1603 | // Obtains the available information about the image formats supported | 1696 | // Obtains the available information about the image formats supported | ||
| 1604 | // by GdkPixbuf. | 1697 | // by GdkPixbuf. | ||
| 1605 | func PixbufGetFormats() *glib.SList { | 1698 | func PixbufGetFormats() *glib.SList { | ||
| 1699 | + | core.LazyRegister(&xPixbufGetFormats, "GDKPIXBUF", "gdk_pixbuf_get_formats", false) | |||
| 1700 | + | ||||
| 1606 | cret := xPixbufGetFormats() | 1701 | cret := xPixbufGetFormats() | ||
| 1607 | if cret == 0 { | 1702 | if cret == 0 { | ||
| 1608 | return nil | 1703 | return nil | ||
| @@ -1626,6 +1721,7 @@ var xPixbufInitModules func(string, **glib.Error) bool | |||||
| 1626 | // with the application in a separate directory from the OS or runtime- | 1721 | // with the application in a separate directory from the OS or runtime- | ||
| 1627 | // provided modules. | 1722 | // provided modules. | ||
| 1628 | func PixbufInitModules(PathVar string) (bool, error) { | 1723 | func PixbufInitModules(PathVar string) (bool, error) { | ||
| 1724 | + | core.LazyRegister(&xPixbufInitModules, "GDKPIXBUF", "gdk_pixbuf_init_modules", false) | |||
| 1629 | var cerr *glib.Error | 1725 | var cerr *glib.Error | ||
| 1630 | 1726 | ||||
| 1631 | cret := xPixbufInitModules(PathVar, &cerr) | 1727 | cret := xPixbufInitModules(PathVar, &cerr) | ||
| @@ -1646,6 +1742,8 @@ var xPixbufNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1646 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of | 1742 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of | ||
| 1647 | // the operation. | 1743 | // the operation. | ||
| 1648 | func PixbufNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1744 | func PixbufNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1745 | + | core.LazyRegister(&xPixbufNewFromStreamAsync, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_async", false) | |||
| 1746 | + | ||||
| 1649 | xPixbufNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1747 | xPixbufNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1650 | } | 1748 | } | ||
| 1651 | 1749 | ||||
| @@ -1659,6 +1757,8 @@ var xPixbufNewFromStreamAtScaleAsync func(uintptr, int, int, bool, uintptr, uint | |||||
| 1659 | // When the operation is finished, @callback will be called in the main thread. | 1757 | // When the operation is finished, @callback will be called in the main thread. | ||
| 1660 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation. | 1758 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation. | ||
| 1661 | func PixbufNewFromStreamAtScaleAsync(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1759 | func PixbufNewFromStreamAtScaleAsync(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1760 | + | core.LazyRegister(&xPixbufNewFromStreamAtScaleAsync, "GDKPIXBUF", "gdk_pixbuf_new_from_stream_at_scale_async", false) | |||
| 1761 | + | ||||
| 1662 | xPixbufNewFromStreamAtScaleAsync(StreamVar.GoPointer(), WidthVar, HeightVar, PreserveAspectRatioVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1762 | xPixbufNewFromStreamAtScaleAsync(StreamVar.GoPointer(), WidthVar, HeightVar, PreserveAspectRatioVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1663 | } | 1763 | } | ||
| 1664 | 1764 | ||||
| @@ -1667,6 +1767,7 @@ var xPixbufSaveToStreamFinish func(uintptr, **glib.Error) bool | |||||
| 1667 | // Finishes an asynchronous pixbuf save operation started with | 1767 | // Finishes an asynchronous pixbuf save operation started with | ||
| 1668 | // gdk_pixbuf_save_to_stream_async(). | 1768 | // gdk_pixbuf_save_to_stream_async(). | ||
| 1669 | func PixbufSaveToStreamFinish(AsyncResultVar gio.AsyncResult) (bool, error) { | 1769 | func PixbufSaveToStreamFinish(AsyncResultVar gio.AsyncResult) (bool, error) { | ||
| 1770 | + | core.LazyRegister(&xPixbufSaveToStreamFinish, "GDKPIXBUF", "gdk_pixbuf_save_to_stream_finish", false) | |||
| 1670 | var cerr *glib.Error | 1771 | var cerr *glib.Error | ||
| 1671 | 1772 | ||||
| 1672 | cret := xPixbufSaveToStreamFinish(AsyncResultVar.GoPointer(), &cerr) | 1773 | cret := xPixbufSaveToStreamFinish(AsyncResultVar.GoPointer(), &cerr) | ||
| @@ -1679,82 +1780,4 @@ func PixbufSaveToStreamFinish(AsyncResultVar gio.AsyncResult) (bool, error) { | |||||
| 1679 | func init() { | 1780 | func init() { | ||
| 1680 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | 1781 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | ||
| 1681 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | 1782 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | ||
| 1682 | - | var libs []uintptr | |||
| 1683 | - | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |||
| 1684 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1685 | - | if err != nil { | |||
| 1686 | - | panic(err) | |||
| 1687 | - | } | |||
| 1688 | - | libs = append(libs, lib) | |||
| 1689 | - | } | |||
| 1690 | - | ||||
| 1691 | - | core.PuregoSafeRegister(&xPixbufGLibType, libs, "gdk_pixbuf_get_type") | |||
| 1692 | - | ||||
| 1693 | - | core.PuregoSafeRegister(&xNewPixbuf, libs, "gdk_pixbuf_new") | |||
| 1694 | - | core.PuregoSafeRegister(&xNewPixbufFromBytes, libs, "gdk_pixbuf_new_from_bytes") | |||
| 1695 | - | core.PuregoSafeRegister(&xNewPixbufFromData, libs, "gdk_pixbuf_new_from_data") | |||
| 1696 | - | core.PuregoSafeRegister(&xNewPixbufFromFile, libs, "gdk_pixbuf_new_from_file") | |||
| 1697 | - | core.PuregoSafeRegister(&xNewPixbufFromFileAtScale, libs, "gdk_pixbuf_new_from_file_at_scale") | |||
| 1698 | - | core.PuregoSafeRegister(&xNewPixbufFromFileAtSize, libs, "gdk_pixbuf_new_from_file_at_size") | |||
| 1699 | - | core.PuregoSafeRegister(&xNewPixbufFromInline, libs, "gdk_pixbuf_new_from_inline") | |||
| 1700 | - | core.PuregoSafeRegister(&xNewPixbufFromResource, libs, "gdk_pixbuf_new_from_resource") | |||
| 1701 | - | core.PuregoSafeRegister(&xNewPixbufFromResourceAtScale, libs, "gdk_pixbuf_new_from_resource_at_scale") | |||
| 1702 | - | core.PuregoSafeRegister(&xNewPixbufFromStream, libs, "gdk_pixbuf_new_from_stream") | |||
| 1703 | - | core.PuregoSafeRegister(&xNewPixbufFromStreamAtScale, libs, "gdk_pixbuf_new_from_stream_at_scale") | |||
| 1704 | - | core.PuregoSafeRegister(&xNewPixbufFromStreamFinish, libs, "gdk_pixbuf_new_from_stream_finish") | |||
| 1705 | - | core.PuregoSafeRegister(&xNewPixbufFromXpmData, libs, "gdk_pixbuf_new_from_xpm_data") | |||
| 1706 | - | ||||
| 1707 | - | core.PuregoSafeRegister(&xPixbufAddAlpha, libs, "gdk_pixbuf_add_alpha") | |||
| 1708 | - | core.PuregoSafeRegister(&xPixbufApplyEmbeddedOrientation, libs, "gdk_pixbuf_apply_embedded_orientation") | |||
| 1709 | - | core.PuregoSafeRegister(&xPixbufComposite, libs, "gdk_pixbuf_composite") | |||
| 1710 | - | core.PuregoSafeRegister(&xPixbufCompositeColor, libs, "gdk_pixbuf_composite_color") | |||
| 1711 | - | core.PuregoSafeRegister(&xPixbufCompositeColorSimple, libs, "gdk_pixbuf_composite_color_simple") | |||
| 1712 | - | core.PuregoSafeRegister(&xPixbufCopy, libs, "gdk_pixbuf_copy") | |||
| 1713 | - | core.PuregoSafeRegister(&xPixbufCopyArea, libs, "gdk_pixbuf_copy_area") | |||
| 1714 | - | core.PuregoSafeRegister(&xPixbufCopyOptions, libs, "gdk_pixbuf_copy_options") | |||
| 1715 | - | core.PuregoSafeRegister(&xPixbufFill, libs, "gdk_pixbuf_fill") | |||
| 1716 | - | core.PuregoSafeRegister(&xPixbufFlip, libs, "gdk_pixbuf_flip") | |||
| 1717 | - | core.PuregoSafeRegister(&xPixbufGetBitsPerSample, libs, "gdk_pixbuf_get_bits_per_sample") | |||
| 1718 | - | core.PuregoSafeRegister(&xPixbufGetByteLength, libs, "gdk_pixbuf_get_byte_length") | |||
| 1719 | - | core.PuregoSafeRegister(&xPixbufGetColorspace, libs, "gdk_pixbuf_get_colorspace") | |||
| 1720 | - | core.PuregoSafeRegister(&xPixbufGetHasAlpha, libs, "gdk_pixbuf_get_has_alpha") | |||
| 1721 | - | core.PuregoSafeRegister(&xPixbufGetHeight, libs, "gdk_pixbuf_get_height") | |||
| 1722 | - | core.PuregoSafeRegister(&xPixbufGetNChannels, libs, "gdk_pixbuf_get_n_channels") | |||
| 1723 | - | core.PuregoSafeRegister(&xPixbufGetOption, libs, "gdk_pixbuf_get_option") | |||
| 1724 | - | core.PuregoSafeRegister(&xPixbufGetOptions, libs, "gdk_pixbuf_get_options") | |||
| 1725 | - | core.PuregoSafeRegister(&xPixbufGetPixels, libs, "gdk_pixbuf_get_pixels") | |||
| 1726 | - | core.PuregoSafeRegister(&xPixbufGetPixelsWithLength, libs, "gdk_pixbuf_get_pixels_with_length") | |||
| 1727 | - | core.PuregoSafeRegister(&xPixbufGetRowstride, libs, "gdk_pixbuf_get_rowstride") | |||
| 1728 | - | core.PuregoSafeRegister(&xPixbufGetWidth, libs, "gdk_pixbuf_get_width") | |||
| 1729 | - | core.PuregoSafeRegister(&xPixbufNewSubpixbuf, libs, "gdk_pixbuf_new_subpixbuf") | |||
| 1730 | - | core.PuregoSafeRegister(&xPixbufReadPixelBytes, libs, "gdk_pixbuf_read_pixel_bytes") | |||
| 1731 | - | core.PuregoSafeRegister(&xPixbufReadPixels, libs, "gdk_pixbuf_read_pixels") | |||
| 1732 | - | core.PuregoSafeRegister(&xPixbufRef, libs, "gdk_pixbuf_ref") | |||
| 1733 | - | core.PuregoSafeRegister(&xPixbufRemoveOption, libs, "gdk_pixbuf_remove_option") | |||
| 1734 | - | core.PuregoSafeRegister(&xPixbufRotateSimple, libs, "gdk_pixbuf_rotate_simple") | |||
| 1735 | - | core.PuregoSafeRegister(&xPixbufSaturateAndPixelate, libs, "gdk_pixbuf_saturate_and_pixelate") | |||
| 1736 | - | core.PuregoSafeRegister(&xPixbufSave, libs, "gdk_pixbuf_save") | |||
| 1737 | - | core.PuregoSafeRegister(&xPixbufSaveToBuffer, libs, "gdk_pixbuf_save_to_buffer") | |||
| 1738 | - | core.PuregoSafeRegister(&xPixbufSaveToBufferv, libs, "gdk_pixbuf_save_to_bufferv") | |||
| 1739 | - | core.PuregoSafeRegister(&xPixbufSaveToCallback, libs, "gdk_pixbuf_save_to_callback") | |||
| 1740 | - | core.PuregoSafeRegister(&xPixbufSaveToCallbackv, libs, "gdk_pixbuf_save_to_callbackv") | |||
| 1741 | - | core.PuregoSafeRegister(&xPixbufSaveToStream, libs, "gdk_pixbuf_save_to_stream") | |||
| 1742 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamAsync, libs, "gdk_pixbuf_save_to_stream_async") | |||
| 1743 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamv, libs, "gdk_pixbuf_save_to_streamv") | |||
| 1744 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamvAsync, libs, "gdk_pixbuf_save_to_streamv_async") | |||
| 1745 | - | core.PuregoSafeRegister(&xPixbufSavev, libs, "gdk_pixbuf_savev") | |||
| 1746 | - | core.PuregoSafeRegister(&xPixbufScale, libs, "gdk_pixbuf_scale") | |||
| 1747 | - | core.PuregoSafeRegister(&xPixbufScaleSimple, libs, "gdk_pixbuf_scale_simple") | |||
| 1748 | - | core.PuregoSafeRegister(&xPixbufSetOption, libs, "gdk_pixbuf_set_option") | |||
| 1749 | - | core.PuregoSafeRegister(&xPixbufUnref, libs, "gdk_pixbuf_unref") | |||
| 1750 | - | ||||
| 1751 | - | core.PuregoSafeRegister(&xPixbufCalculateRowstride, libs, "gdk_pixbuf_calculate_rowstride") | |||
| 1752 | - | core.PuregoSafeRegister(&xPixbufGetFileInfo, libs, "gdk_pixbuf_get_file_info") | |||
| 1753 | - | core.PuregoSafeRegister(&xPixbufGetFileInfoAsync, libs, "gdk_pixbuf_get_file_info_async") | |||
| 1754 | - | core.PuregoSafeRegister(&xPixbufGetFileInfoFinish, libs, "gdk_pixbuf_get_file_info_finish") | |||
| 1755 | - | core.PuregoSafeRegister(&xPixbufGetFormats, libs, "gdk_pixbuf_get_formats") | |||
| 1756 | - | core.PuregoSafeRegister(&xPixbufInitModules, libs, "gdk_pixbuf_init_modules") | |||
| 1757 | - | core.PuregoSafeRegister(&xPixbufNewFromStreamAsync, libs, "gdk_pixbuf_new_from_stream_async") | |||
| 1758 | - | core.PuregoSafeRegister(&xPixbufNewFromStreamAtScaleAsync, libs, "gdk_pixbuf_new_from_stream_at_scale_async") | |||
| 1759 | - | core.PuregoSafeRegister(&xPixbufSaveToStreamFinish, libs, "gdk_pixbuf_save_to_stream_finish") | |||
| 1760 | } | 1783 | } | ||