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