fix(deps): repin puregotk lazy registration fix
- commit
- d685b6e820d6baba0d0dea254169664012ed203d
- author
- brice · · 2026-07-14 18:24 UTC
- parent
- ec6db2e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
907 files · +27874 -25294
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +6 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/cairo" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -45,6 +44,7 @@ type Surface struct { | |||
| 45 | 44 | var xSurfaceGLibType func() types.GType | |
| 46 | 45 | ||
| 47 | 46 | func SurfaceGLibType() types.GType { | |
| 47 | + | core.LazyRegister(&xSurfaceGLibType, "GDK", "gdk_surface_get_type", false) | |
| 48 | 48 | return xSurfaceGLibType() | |
| 49 | 49 | } | |
| 50 | 50 | ||
| @@ -61,6 +61,7 @@ var xNewSurfacePopup func(uintptr, bool) uintptr | |||
| 61 | 61 | // The surface will be attached to @parent and can be positioned | |
| 62 | 62 | // relative to it using [method@Gdk.Popup.present]. | |
| 63 | 63 | func NewSurfacePopup(ParentVar *Surface, AutohideVar bool) *Surface { | |
| 64 | + | core.LazyRegister(&xNewSurfacePopup, "GDK", "gdk_surface_new_popup", false) | |
| 64 | 65 | var cls *Surface | |
| 65 | 66 | ||
| 66 | 67 | cret := xNewSurfacePopup(ParentVar.GoPointer(), AutohideVar) | |
| @@ -77,6 +78,7 @@ var xNewSurfaceToplevel func(uintptr) uintptr | |||
| 77 | 78 | ||
| 78 | 79 | // Creates a new toplevel surface. | |
| 79 | 80 | func NewSurfaceToplevel(DisplayVar *Display) *Surface { | |
| 81 | + | core.LazyRegister(&xNewSurfaceToplevel, "GDK", "gdk_surface_new_toplevel", false) | |
| 80 | 82 | var cls *Surface | |
| 81 | 83 | ||
| 82 | 84 | cret := xNewSurfaceToplevel(DisplayVar.GoPointer()) | |
| @@ -96,6 +98,8 @@ var xSurfaceBeep func(uintptr) | |||
| 96 | 98 | // If the display of @surface does not support per-surface beeps, | |
| 97 | 99 | // emits a short beep on the display just as [method@Gdk.Display.beep]. | |
| 98 | 100 | func (x *Surface) Beep() { | |
| 101 | + | core.LazyRegister(&xSurfaceBeep, "GDK", "gdk_surface_beep", false) | |
| 102 | + | ||
| 99 | 103 | xSurfaceBeep(x.GoPointer()) | |
| 100 | 104 | } | |
| 101 | 105 | ||
| @@ -103,6 +107,7 @@ var xSurfaceCreateCairoContext func(uintptr) uintptr | |||
| 103 | 107 | ||
| 104 | 108 | // Creates a new `GdkCairoContext` for rendering on @surface. | |
| 105 | 109 | func (x *Surface) CreateCairoContext() *CairoContext { | |
| 110 | + | core.LazyRegister(&xSurfaceCreateCairoContext, "GDK", "gdk_surface_create_cairo_context", false) | |
| 106 | 111 | var cls *CairoContext | |
| 107 | 112 | ||
| 108 | 113 | cret := xSurfaceCreateCairoContext(x.GoPointer()) | |
| @@ -124,6 +129,7 @@ var xSurfaceCreateGlContext func(uintptr, **glib.Error) uintptr | |||
| 124 | 129 | // Before using the returned `GdkGLContext`, you will need to | |
| 125 | 130 | // call [method@Gdk.GLContext.make_current] or [method@Gdk.GLContext.realize]. | |
| 126 | 131 | func (x *Surface) CreateGlContext() (*GLContext, error) { | |
| 132 | + | core.LazyRegister(&xSurfaceCreateGlContext, "GDK", "gdk_surface_create_gl_context", false) | |
| 127 | 133 | var cls *GLContext | |
| 128 | 134 | var cerr *glib.Error | |
| 129 | 135 | ||
| @@ -158,6 +164,8 @@ var xSurfaceCreateSimilarSurface func(uintptr, cairo.Content, int, int) uintptr | |||
| 158 | 164 | // pointer to a “nil” surface if @other is already in an error state | |
| 159 | 165 | // or any other error occurs. | |
| 160 | 166 | func (x *Surface) CreateSimilarSurface(ContentVar cairo.Content, WidthVar int, HeightVar int) *cairo.Surface { | |
| 167 | + | core.LazyRegister(&xSurfaceCreateSimilarSurface, "GDK", "gdk_surface_create_similar_surface", false) | |
| 168 | + | ||
| 161 | 169 | cret := xSurfaceCreateSimilarSurface(x.GoPointer(), ContentVar, WidthVar, HeightVar) | |
| 162 | 170 | if cret == 0 { | |
| 163 | 171 | return nil | |
| @@ -169,6 +177,7 @@ var xSurfaceCreateVulkanContext func(uintptr, **glib.Error) uintptr | |||
| 169 | 177 | ||
| 170 | 178 | // Sets an error and returns %NULL. | |
| 171 | 179 | func (x *Surface) CreateVulkanContext() (*VulkanContext, error) { | |
| 180 | + | core.LazyRegister(&xSurfaceCreateVulkanContext, "GDK", "gdk_surface_create_vulkan_context", false) | |
| 172 | 181 | var cls *VulkanContext | |
| 173 | 182 | var cerr *glib.Error | |
| 174 | 183 | ||
| @@ -197,6 +206,8 @@ var xSurfaceDestroy func(uintptr) | |||
| 197 | 206 | // reference count reaches zero. You must call this function yourself | |
| 198 | 207 | // before that happens. | |
| 199 | 208 | func (x *Surface) Destroy() { | |
| 209 | + | core.LazyRegister(&xSurfaceDestroy, "GDK", "gdk_surface_destroy", false) | |
| 210 | + | ||
| 200 | 211 | xSurfaceDestroy(x.GoPointer()) | |
| 201 | 212 | } | |
| 202 | 213 | ||
| @@ -210,6 +221,7 @@ var xSurfaceGetCursor func(uintptr) uintptr | |||
| 210 | 221 | // | |
| 211 | 222 | // Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface. | |
| 212 | 223 | func (x *Surface) GetCursor() *Cursor { | |
| 224 | + | core.LazyRegister(&xSurfaceGetCursor, "GDK", "gdk_surface_get_cursor", false) | |
| 213 | 225 | var cls *Cursor | |
| 214 | 226 | ||
| 215 | 227 | cret := xSurfaceGetCursor(x.GoPointer()) | |
| @@ -233,6 +245,7 @@ var xSurfaceGetDeviceCursor func(uintptr, uintptr) uintptr | |||
| 233 | 245 | // | |
| 234 | 246 | // Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface. | |
| 235 | 247 | func (x *Surface) GetDeviceCursor(DeviceVar *Device) *Cursor { | |
| 248 | + | core.LazyRegister(&xSurfaceGetDeviceCursor, "GDK", "gdk_surface_get_device_cursor", false) | |
| 236 | 249 | var cls *Cursor | |
| 237 | 250 | ||
| 238 | 251 | cret := xSurfaceGetDeviceCursor(x.GoPointer(), DeviceVar.GoPointer()) | |
| @@ -253,6 +266,8 @@ var xSurfaceGetDevicePosition func(uintptr, uintptr, *float64, *float64, *Modifi | |||
| 253 | 266 | // The position is given in coordinates relative to the upper | |
| 254 | 267 | // left corner of @surface. | |
| 255 | 268 | func (x *Surface) GetDevicePosition(DeviceVar *Device, XVar *float64, YVar *float64, MaskVar *ModifierType) bool { | |
| 269 | + | core.LazyRegister(&xSurfaceGetDevicePosition, "GDK", "gdk_surface_get_device_position", false) | |
| 270 | + | ||
| 256 | 271 | cret := xSurfaceGetDevicePosition(x.GoPointer(), DeviceVar.GoPointer(), XVar, YVar, MaskVar) | |
| 257 | 272 | return cret | |
| 258 | 273 | } | |
| @@ -261,6 +276,7 @@ var xSurfaceGetDisplay func(uintptr) uintptr | |||
| 261 | 276 | ||
| 262 | 277 | // Gets the `GdkDisplay` associated with a `GdkSurface`. | |
| 263 | 278 | func (x *Surface) GetDisplay() *Display { | |
| 279 | + | core.LazyRegister(&xSurfaceGetDisplay, "GDK", "gdk_surface_get_display", false) | |
| 264 | 280 | var cls *Display | |
| 265 | 281 | ||
| 266 | 282 | cret := xSurfaceGetDisplay(x.GoPointer()) | |
| @@ -281,6 +297,7 @@ var xSurfaceGetFrameClock func(uintptr) uintptr | |||
| 281 | 297 | // The frame clock for a surface never changes unless the surface is | |
| 282 | 298 | // reparented to a new toplevel surface. | |
| 283 | 299 | func (x *Surface) GetFrameClock() *FrameClock { | |
| 300 | + | core.LazyRegister(&xSurfaceGetFrameClock, "GDK", "gdk_surface_get_frame_clock", false) | |
| 284 | 301 | var cls *FrameClock | |
| 285 | 302 | ||
| 286 | 303 | cret := xSurfaceGetFrameClock(x.GoPointer()) | |
| @@ -301,6 +318,8 @@ var xSurfaceGetHeight func(uintptr) int | |||
| 301 | 318 | // Surface size is reported in ”application pixels”, not | |
| 302 | 319 | // ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). | |
| 303 | 320 | func (x *Surface) GetHeight() int { | |
| 321 | + | core.LazyRegister(&xSurfaceGetHeight, "GDK", "gdk_surface_get_height", false) | |
| 322 | + | ||
| 304 | 323 | cret := xSurfaceGetHeight(x.GoPointer()) | |
| 305 | 324 | return cret | |
| 306 | 325 | } | |
| @@ -312,6 +331,8 @@ var xSurfaceGetMapped func(uintptr) bool | |||
| 312 | 331 | // A surface is mapped with [method@Gdk.Toplevel.present] | |
| 313 | 332 | // or [method@Gdk.Popup.present]. | |
| 314 | 333 | func (x *Surface) GetMapped() bool { | |
| 334 | + | core.LazyRegister(&xSurfaceGetMapped, "GDK", "gdk_surface_get_mapped", false) | |
| 335 | + | ||
| 315 | 336 | cret := xSurfaceGetMapped(x.GoPointer()) | |
| 316 | 337 | return cret | |
| 317 | 338 | } | |
| @@ -330,6 +351,8 @@ var xSurfaceGetScale func(uintptr) float64 | |||
| 330 | 351 | // | |
| 331 | 352 | // The scale may change during the lifetime of the surface. | |
| 332 | 353 | func (x *Surface) GetScale() float64 { | |
| 354 | + | core.LazyRegister(&xSurfaceGetScale, "GDK", "gdk_surface_get_scale", false) | |
| 355 | + | ||
| 333 | 356 | cret := xSurfaceGetScale(x.GoPointer()) | |
| 334 | 357 | return cret | |
| 335 | 358 | } | |
| @@ -348,6 +371,8 @@ var xSurfaceGetScaleFactor func(uintptr) int | |||
| 348 | 371 | // | |
| 349 | 372 | // The scale factor may change during the lifetime of the surface. | |
| 350 | 373 | func (x *Surface) GetScaleFactor() int { | |
| 374 | + | core.LazyRegister(&xSurfaceGetScaleFactor, "GDK", "gdk_surface_get_scale_factor", false) | |
| 375 | + | ||
| 351 | 376 | cret := xSurfaceGetScaleFactor(x.GoPointer()) | |
| 352 | 377 | return cret | |
| 353 | 378 | } | |
| @@ -359,6 +384,8 @@ var xSurfaceGetWidth func(uintptr) int | |||
| 359 | 384 | // Surface size is reported in ”application pixels”, not | |
| 360 | 385 | // ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). | |
| 361 | 386 | func (x *Surface) GetWidth() int { | |
| 387 | + | core.LazyRegister(&xSurfaceGetWidth, "GDK", "gdk_surface_get_width", false) | |
| 388 | + | ||
| 362 | 389 | cret := xSurfaceGetWidth(x.GoPointer()) | |
| 363 | 390 | return cret | |
| 364 | 391 | } | |
| @@ -372,6 +399,8 @@ var xSurfaceHide func(uintptr) | |||
| 372 | 399 | // they won’t be displayed. Normally done automatically as | |
| 373 | 400 | // part of [gtk_widget_hide()](../gtk4/method.Widget.hide.html). | |
| 374 | 401 | func (x *Surface) Hide() { | |
| 402 | + | core.LazyRegister(&xSurfaceHide, "GDK", "gdk_surface_hide", false) | |
| 403 | + | ||
| 375 | 404 | xSurfaceHide(x.GoPointer()) | |
| 376 | 405 | } | |
| 377 | 406 | ||
| @@ -379,6 +408,8 @@ var xSurfaceIsDestroyed func(uintptr) bool | |||
| 379 | 408 | ||
| 380 | 409 | // Check to see if a surface is destroyed. | |
| 381 | 410 | func (x *Surface) IsDestroyed() bool { | |
| 411 | + | core.LazyRegister(&xSurfaceIsDestroyed, "GDK", "gdk_surface_is_destroyed", false) | |
| 412 | + | ||
| 382 | 413 | cret := xSurfaceIsDestroyed(x.GoPointer()) | |
| 383 | 414 | return cret | |
| 384 | 415 | } | |
| @@ -391,6 +422,8 @@ var xSurfaceQueueRender func(uintptr) | |||
| 391 | 422 | // This function is useful for implementations that track invalid | |
| 392 | 423 | // regions on their own. | |
| 393 | 424 | func (x *Surface) QueueRender() { | |
| 425 | + | core.LazyRegister(&xSurfaceQueueRender, "GDK", "gdk_surface_queue_render", false) | |
| 426 | + | ||
| 394 | 427 | xSurfaceQueueRender(x.GoPointer()) | |
| 395 | 428 | } | |
| 396 | 429 | ||
| @@ -400,6 +433,8 @@ var xSurfaceRequestLayout func(uintptr) | |||
| 400 | 433 | // | |
| 401 | 434 | // See [method@Gdk.FrameClock.request_phase]. | |
| 402 | 435 | func (x *Surface) RequestLayout() { | |
| 436 | + | core.LazyRegister(&xSurfaceRequestLayout, "GDK", "gdk_surface_request_layout", false) | |
| 437 | + | ||
| 403 | 438 | xSurfaceRequestLayout(x.GoPointer()) | |
| 404 | 439 | } | |
| 405 | 440 | ||
| @@ -414,6 +449,8 @@ var xSurfaceSetCursor func(uintptr, uintptr) | |||
| 414 | 449 | // Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] | |
| 415 | 450 | // to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. | |
| 416 | 451 | func (x *Surface) SetCursor(CursorVar *Cursor) { | |
| 452 | + | core.LazyRegister(&xSurfaceSetCursor, "GDK", "gdk_surface_set_cursor", false) | |
| 453 | + | ||
| 417 | 454 | xSurfaceSetCursor(x.GoPointer(), CursorVar.GoPointer()) | |
| 418 | 455 | } | |
| 419 | 456 | ||
| @@ -427,6 +464,8 @@ var xSurfaceSetDeviceCursor func(uintptr, uintptr, uintptr) | |||
| 427 | 464 | // Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] | |
| 428 | 465 | // to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. | |
| 429 | 466 | func (x *Surface) SetDeviceCursor(DeviceVar *Device, CursorVar *Cursor) { | |
| 467 | + | core.LazyRegister(&xSurfaceSetDeviceCursor, "GDK", "gdk_surface_set_device_cursor", false) | |
| 468 | + | ||
| 430 | 469 | xSurfaceSetDeviceCursor(x.GoPointer(), DeviceVar.GoPointer(), CursorVar.GoPointer()) | |
| 431 | 470 | } | |
| 432 | 471 | ||
| @@ -447,6 +486,8 @@ var xSurfaceSetInputRegion func(uintptr, *cairo.Region) | |||
| 447 | 486 | // Use [method@Gdk.Display.supports_input_shapes] to find out if | |
| 448 | 487 | // a particular backend supports input regions. | |
| 449 | 488 | func (x *Surface) SetInputRegion(RegionVar *cairo.Region) { | |
| 489 | + | core.LazyRegister(&xSurfaceSetInputRegion, "GDK", "gdk_surface_set_input_region", false) | |
| 490 | + | ||
| 450 | 491 | xSurfaceSetInputRegion(x.GoPointer(), RegionVar) | |
| 451 | 492 | } | |
| 452 | 493 | ||
| @@ -468,6 +509,8 @@ var xSurfaceSetOpaqueRegion func(uintptr, *cairo.Region) | |||
| 468 | 509 | // background is not opaque, please update this property in your | |
| 469 | 510 | // [GtkWidgetClass.css_changed](../gtk4/vfunc.Widget.css_changed.html) handler. | |
| 470 | 511 | func (x *Surface) SetOpaqueRegion(RegionVar *cairo.Region) { | |
| 512 | + | core.LazyRegister(&xSurfaceSetOpaqueRegion, "GDK", "gdk_surface_set_opaque_region", false) | |
| 513 | + | ||
| 471 | 514 | xSurfaceSetOpaqueRegion(x.GoPointer(), RegionVar) | |
| 472 | 515 | } | |
| 473 | 516 | ||
| @@ -478,6 +521,8 @@ var xSurfaceTranslateCoordinates func(uintptr, uintptr, *float64, *float64) bool | |||
| 478 | 521 | // Note that this only works if @to and @from are popups or | |
| 479 | 522 | // transient-for to the same toplevel (directly or indirectly). | |
| 480 | 523 | func (x *Surface) TranslateCoordinates(ToVar *Surface, XVar *float64, YVar *float64) bool { | |
| 524 | + | core.LazyRegister(&xSurfaceTranslateCoordinates, "GDK", "gdk_surface_translate_coordinates", false) | |
| 525 | + | ||
| 481 | 526 | cret := xSurfaceTranslateCoordinates(x.GoPointer(), ToVar.GoPointer(), XVar, YVar) | |
| 482 | 527 | return cret | |
| 483 | 528 | } | |
| @@ -662,43 +707,4 @@ func (x *Surface) ConnectRender(cb *func(Surface, uintptr) bool) uint { | |||
| 662 | 707 | func init() { | |
| 663 | 708 | core.SetPackageName("GDK", "gtk4") | |
| 664 | 709 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | |
| 665 | - | var libs []uintptr | |
| 666 | - | for _, libPath := range core.GetPaths("GDK") { | |
| 667 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 668 | - | if err != nil { | |
| 669 | - | panic(err) | |
| 670 | - | } | |
| 671 | - | libs = append(libs, lib) | |
| 672 | - | } | |
| 673 | - | ||
| 674 | - | core.PuregoSafeRegister(&xSurfaceGLibType, libs, "gdk_surface_get_type") | |
| 675 | - | ||
| 676 | - | core.PuregoSafeRegister(&xNewSurfacePopup, libs, "gdk_surface_new_popup") | |
| 677 | - | core.PuregoSafeRegister(&xNewSurfaceToplevel, libs, "gdk_surface_new_toplevel") | |
| 678 | - | ||
| 679 | - | core.PuregoSafeRegister(&xSurfaceBeep, libs, "gdk_surface_beep") | |
| 680 | - | core.PuregoSafeRegister(&xSurfaceCreateCairoContext, libs, "gdk_surface_create_cairo_context") | |
| 681 | - | core.PuregoSafeRegister(&xSurfaceCreateGlContext, libs, "gdk_surface_create_gl_context") | |
| 682 | - | core.PuregoSafeRegister(&xSurfaceCreateSimilarSurface, libs, "gdk_surface_create_similar_surface") | |
| 683 | - | core.PuregoSafeRegister(&xSurfaceCreateVulkanContext, libs, "gdk_surface_create_vulkan_context") | |
| 684 | - | core.PuregoSafeRegister(&xSurfaceDestroy, libs, "gdk_surface_destroy") | |
| 685 | - | core.PuregoSafeRegister(&xSurfaceGetCursor, libs, "gdk_surface_get_cursor") | |
| 686 | - | core.PuregoSafeRegister(&xSurfaceGetDeviceCursor, libs, "gdk_surface_get_device_cursor") | |
| 687 | - | core.PuregoSafeRegister(&xSurfaceGetDevicePosition, libs, "gdk_surface_get_device_position") | |
| 688 | - | core.PuregoSafeRegister(&xSurfaceGetDisplay, libs, "gdk_surface_get_display") | |
| 689 | - | core.PuregoSafeRegister(&xSurfaceGetFrameClock, libs, "gdk_surface_get_frame_clock") | |
| 690 | - | core.PuregoSafeRegister(&xSurfaceGetHeight, libs, "gdk_surface_get_height") | |
| 691 | - | core.PuregoSafeRegister(&xSurfaceGetMapped, libs, "gdk_surface_get_mapped") | |
| 692 | - | core.PuregoSafeRegister(&xSurfaceGetScale, libs, "gdk_surface_get_scale") | |
| 693 | - | core.PuregoSafeRegister(&xSurfaceGetScaleFactor, libs, "gdk_surface_get_scale_factor") | |
| 694 | - | core.PuregoSafeRegister(&xSurfaceGetWidth, libs, "gdk_surface_get_width") | |
| 695 | - | core.PuregoSafeRegister(&xSurfaceHide, libs, "gdk_surface_hide") | |
| 696 | - | core.PuregoSafeRegister(&xSurfaceIsDestroyed, libs, "gdk_surface_is_destroyed") | |
| 697 | - | core.PuregoSafeRegister(&xSurfaceQueueRender, libs, "gdk_surface_queue_render") | |
| 698 | - | core.PuregoSafeRegister(&xSurfaceRequestLayout, libs, "gdk_surface_request_layout") | |
| 699 | - | core.PuregoSafeRegister(&xSurfaceSetCursor, libs, "gdk_surface_set_cursor") | |
| 700 | - | core.PuregoSafeRegister(&xSurfaceSetDeviceCursor, libs, "gdk_surface_set_device_cursor") | |
| 701 | - | core.PuregoSafeRegister(&xSurfaceSetInputRegion, libs, "gdk_surface_set_input_region") | |
| 702 | - | core.PuregoSafeRegister(&xSurfaceSetOpaqueRegion, libs, "gdk_surface_set_opaque_region") | |
| 703 | - | core.PuregoSafeRegister(&xSurfaceTranslateCoordinates, libs, "gdk_surface_translate_coordinates") | |
| 704 | 710 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/cairo" | 9 | "github.com/bnema/puregotk/v4/cairo" | ||
| 11 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -45,6 +44,7 @@ type Surface struct { | |||||
| 45 | var xSurfaceGLibType func() types.GType | 44 | var xSurfaceGLibType func() types.GType | ||
| 46 | 45 | ||||
| 47 | func SurfaceGLibType() types.GType { | 46 | func SurfaceGLibType() types.GType { | ||
| 47 | + | core.LazyRegister(&xSurfaceGLibType, "GDK", "gdk_surface_get_type", false) | |||
| 48 | return xSurfaceGLibType() | 48 | return xSurfaceGLibType() | ||
| 49 | } | 49 | } | ||
| 50 | 50 | ||||
| @@ -61,6 +61,7 @@ var xNewSurfacePopup func(uintptr, bool) uintptr | |||||
| 61 | // The surface will be attached to @parent and can be positioned | 61 | // The surface will be attached to @parent and can be positioned | ||
| 62 | // relative to it using [method@Gdk.Popup.present]. | 62 | // relative to it using [method@Gdk.Popup.present]. | ||
| 63 | func NewSurfacePopup(ParentVar *Surface, AutohideVar bool) *Surface { | 63 | func NewSurfacePopup(ParentVar *Surface, AutohideVar bool) *Surface { | ||
| 64 | + | core.LazyRegister(&xNewSurfacePopup, "GDK", "gdk_surface_new_popup", false) | |||
| 64 | var cls *Surface | 65 | var cls *Surface | ||
| 65 | 66 | ||||
| 66 | cret := xNewSurfacePopup(ParentVar.GoPointer(), AutohideVar) | 67 | cret := xNewSurfacePopup(ParentVar.GoPointer(), AutohideVar) | ||
| @@ -77,6 +78,7 @@ var xNewSurfaceToplevel func(uintptr) uintptr | |||||
| 77 | 78 | ||||
| 78 | // Creates a new toplevel surface. | 79 | // Creates a new toplevel surface. | ||
| 79 | func NewSurfaceToplevel(DisplayVar *Display) *Surface { | 80 | func NewSurfaceToplevel(DisplayVar *Display) *Surface { | ||
| 81 | + | core.LazyRegister(&xNewSurfaceToplevel, "GDK", "gdk_surface_new_toplevel", false) | |||
| 80 | var cls *Surface | 82 | var cls *Surface | ||
| 81 | 83 | ||||
| 82 | cret := xNewSurfaceToplevel(DisplayVar.GoPointer()) | 84 | cret := xNewSurfaceToplevel(DisplayVar.GoPointer()) | ||
| @@ -96,6 +98,8 @@ var xSurfaceBeep func(uintptr) | |||||
| 96 | // If the display of @surface does not support per-surface beeps, | 98 | // If the display of @surface does not support per-surface beeps, | ||
| 97 | // emits a short beep on the display just as [method@Gdk.Display.beep]. | 99 | // emits a short beep on the display just as [method@Gdk.Display.beep]. | ||
| 98 | func (x *Surface) Beep() { | 100 | func (x *Surface) Beep() { | ||
| 101 | + | core.LazyRegister(&xSurfaceBeep, "GDK", "gdk_surface_beep", false) | |||
| 102 | + | ||||
| 99 | xSurfaceBeep(x.GoPointer()) | 103 | xSurfaceBeep(x.GoPointer()) | ||
| 100 | } | 104 | } | ||
| 101 | 105 | ||||
| @@ -103,6 +107,7 @@ var xSurfaceCreateCairoContext func(uintptr) uintptr | |||||
| 103 | 107 | ||||
| 104 | // Creates a new `GdkCairoContext` for rendering on @surface. | 108 | // Creates a new `GdkCairoContext` for rendering on @surface. | ||
| 105 | func (x *Surface) CreateCairoContext() *CairoContext { | 109 | func (x *Surface) CreateCairoContext() *CairoContext { | ||
| 110 | + | core.LazyRegister(&xSurfaceCreateCairoContext, "GDK", "gdk_surface_create_cairo_context", false) | |||
| 106 | var cls *CairoContext | 111 | var cls *CairoContext | ||
| 107 | 112 | ||||
| 108 | cret := xSurfaceCreateCairoContext(x.GoPointer()) | 113 | cret := xSurfaceCreateCairoContext(x.GoPointer()) | ||
| @@ -124,6 +129,7 @@ var xSurfaceCreateGlContext func(uintptr, **glib.Error) uintptr | |||||
| 124 | // Before using the returned `GdkGLContext`, you will need to | 129 | // Before using the returned `GdkGLContext`, you will need to | ||
| 125 | // call [method@Gdk.GLContext.make_current] or [method@Gdk.GLContext.realize]. | 130 | // call [method@Gdk.GLContext.make_current] or [method@Gdk.GLContext.realize]. | ||
| 126 | func (x *Surface) CreateGlContext() (*GLContext, error) { | 131 | func (x *Surface) CreateGlContext() (*GLContext, error) { | ||
| 132 | + | core.LazyRegister(&xSurfaceCreateGlContext, "GDK", "gdk_surface_create_gl_context", false) | |||
| 127 | var cls *GLContext | 133 | var cls *GLContext | ||
| 128 | var cerr *glib.Error | 134 | var cerr *glib.Error | ||
| 129 | 135 | ||||
| @@ -158,6 +164,8 @@ var xSurfaceCreateSimilarSurface func(uintptr, cairo.Content, int, int) uintptr | |||||
| 158 | // pointer to a “nil” surface if @other is already in an error state | 164 | // pointer to a “nil” surface if @other is already in an error state | ||
| 159 | // or any other error occurs. | 165 | // or any other error occurs. | ||
| 160 | func (x *Surface) CreateSimilarSurface(ContentVar cairo.Content, WidthVar int, HeightVar int) *cairo.Surface { | 166 | func (x *Surface) CreateSimilarSurface(ContentVar cairo.Content, WidthVar int, HeightVar int) *cairo.Surface { | ||
| 167 | + | core.LazyRegister(&xSurfaceCreateSimilarSurface, "GDK", "gdk_surface_create_similar_surface", false) | |||
| 168 | + | ||||
| 161 | cret := xSurfaceCreateSimilarSurface(x.GoPointer(), ContentVar, WidthVar, HeightVar) | 169 | cret := xSurfaceCreateSimilarSurface(x.GoPointer(), ContentVar, WidthVar, HeightVar) | ||
| 162 | if cret == 0 { | 170 | if cret == 0 { | ||
| 163 | return nil | 171 | return nil | ||
| @@ -169,6 +177,7 @@ var xSurfaceCreateVulkanContext func(uintptr, **glib.Error) uintptr | |||||
| 169 | 177 | ||||
| 170 | // Sets an error and returns %NULL. | 178 | // Sets an error and returns %NULL. | ||
| 171 | func (x *Surface) CreateVulkanContext() (*VulkanContext, error) { | 179 | func (x *Surface) CreateVulkanContext() (*VulkanContext, error) { | ||
| 180 | + | core.LazyRegister(&xSurfaceCreateVulkanContext, "GDK", "gdk_surface_create_vulkan_context", false) | |||
| 172 | var cls *VulkanContext | 181 | var cls *VulkanContext | ||
| 173 | var cerr *glib.Error | 182 | var cerr *glib.Error | ||
| 174 | 183 | ||||
| @@ -197,6 +206,8 @@ var xSurfaceDestroy func(uintptr) | |||||
| 197 | // reference count reaches zero. You must call this function yourself | 206 | // reference count reaches zero. You must call this function yourself | ||
| 198 | // before that happens. | 207 | // before that happens. | ||
| 199 | func (x *Surface) Destroy() { | 208 | func (x *Surface) Destroy() { | ||
| 209 | + | core.LazyRegister(&xSurfaceDestroy, "GDK", "gdk_surface_destroy", false) | |||
| 210 | + | ||||
| 200 | xSurfaceDestroy(x.GoPointer()) | 211 | xSurfaceDestroy(x.GoPointer()) | ||
| 201 | } | 212 | } | ||
| 202 | 213 | ||||
| @@ -210,6 +221,7 @@ var xSurfaceGetCursor func(uintptr) uintptr | |||||
| 210 | // | 221 | // | ||
| 211 | // Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface. | 222 | // Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface. | ||
| 212 | func (x *Surface) GetCursor() *Cursor { | 223 | func (x *Surface) GetCursor() *Cursor { | ||
| 224 | + | core.LazyRegister(&xSurfaceGetCursor, "GDK", "gdk_surface_get_cursor", false) | |||
| 213 | var cls *Cursor | 225 | var cls *Cursor | ||
| 214 | 226 | ||||
| 215 | cret := xSurfaceGetCursor(x.GoPointer()) | 227 | cret := xSurfaceGetCursor(x.GoPointer()) | ||
| @@ -233,6 +245,7 @@ var xSurfaceGetDeviceCursor func(uintptr, uintptr) uintptr | |||||
| 233 | // | 245 | // | ||
| 234 | // Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface. | 246 | // Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface. | ||
| 235 | func (x *Surface) GetDeviceCursor(DeviceVar *Device) *Cursor { | 247 | func (x *Surface) GetDeviceCursor(DeviceVar *Device) *Cursor { | ||
| 248 | + | core.LazyRegister(&xSurfaceGetDeviceCursor, "GDK", "gdk_surface_get_device_cursor", false) | |||
| 236 | var cls *Cursor | 249 | var cls *Cursor | ||
| 237 | 250 | ||||
| 238 | cret := xSurfaceGetDeviceCursor(x.GoPointer(), DeviceVar.GoPointer()) | 251 | cret := xSurfaceGetDeviceCursor(x.GoPointer(), DeviceVar.GoPointer()) | ||
| @@ -253,6 +266,8 @@ var xSurfaceGetDevicePosition func(uintptr, uintptr, *float64, *float64, *Modifi | |||||
| 253 | // The position is given in coordinates relative to the upper | 266 | // The position is given in coordinates relative to the upper | ||
| 254 | // left corner of @surface. | 267 | // left corner of @surface. | ||
| 255 | func (x *Surface) GetDevicePosition(DeviceVar *Device, XVar *float64, YVar *float64, MaskVar *ModifierType) bool { | 268 | func (x *Surface) GetDevicePosition(DeviceVar *Device, XVar *float64, YVar *float64, MaskVar *ModifierType) bool { | ||
| 269 | + | core.LazyRegister(&xSurfaceGetDevicePosition, "GDK", "gdk_surface_get_device_position", false) | |||
| 270 | + | ||||
| 256 | cret := xSurfaceGetDevicePosition(x.GoPointer(), DeviceVar.GoPointer(), XVar, YVar, MaskVar) | 271 | cret := xSurfaceGetDevicePosition(x.GoPointer(), DeviceVar.GoPointer(), XVar, YVar, MaskVar) | ||
| 257 | return cret | 272 | return cret | ||
| 258 | } | 273 | } | ||
| @@ -261,6 +276,7 @@ var xSurfaceGetDisplay func(uintptr) uintptr | |||||
| 261 | 276 | ||||
| 262 | // Gets the `GdkDisplay` associated with a `GdkSurface`. | 277 | // Gets the `GdkDisplay` associated with a `GdkSurface`. | ||
| 263 | func (x *Surface) GetDisplay() *Display { | 278 | func (x *Surface) GetDisplay() *Display { | ||
| 279 | + | core.LazyRegister(&xSurfaceGetDisplay, "GDK", "gdk_surface_get_display", false) | |||
| 264 | var cls *Display | 280 | var cls *Display | ||
| 265 | 281 | ||||
| 266 | cret := xSurfaceGetDisplay(x.GoPointer()) | 282 | cret := xSurfaceGetDisplay(x.GoPointer()) | ||
| @@ -281,6 +297,7 @@ var xSurfaceGetFrameClock func(uintptr) uintptr | |||||
| 281 | // The frame clock for a surface never changes unless the surface is | 297 | // The frame clock for a surface never changes unless the surface is | ||
| 282 | // reparented to a new toplevel surface. | 298 | // reparented to a new toplevel surface. | ||
| 283 | func (x *Surface) GetFrameClock() *FrameClock { | 299 | func (x *Surface) GetFrameClock() *FrameClock { | ||
| 300 | + | core.LazyRegister(&xSurfaceGetFrameClock, "GDK", "gdk_surface_get_frame_clock", false) | |||
| 284 | var cls *FrameClock | 301 | var cls *FrameClock | ||
| 285 | 302 | ||||
| 286 | cret := xSurfaceGetFrameClock(x.GoPointer()) | 303 | cret := xSurfaceGetFrameClock(x.GoPointer()) | ||
| @@ -301,6 +318,8 @@ var xSurfaceGetHeight func(uintptr) int | |||||
| 301 | // Surface size is reported in ”application pixels”, not | 318 | // Surface size is reported in ”application pixels”, not | ||
| 302 | // ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). | 319 | // ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). | ||
| 303 | func (x *Surface) GetHeight() int { | 320 | func (x *Surface) GetHeight() int { | ||
| 321 | + | core.LazyRegister(&xSurfaceGetHeight, "GDK", "gdk_surface_get_height", false) | |||
| 322 | + | ||||
| 304 | cret := xSurfaceGetHeight(x.GoPointer()) | 323 | cret := xSurfaceGetHeight(x.GoPointer()) | ||
| 305 | return cret | 324 | return cret | ||
| 306 | } | 325 | } | ||
| @@ -312,6 +331,8 @@ var xSurfaceGetMapped func(uintptr) bool | |||||
| 312 | // A surface is mapped with [method@Gdk.Toplevel.present] | 331 | // A surface is mapped with [method@Gdk.Toplevel.present] | ||
| 313 | // or [method@Gdk.Popup.present]. | 332 | // or [method@Gdk.Popup.present]. | ||
| 314 | func (x *Surface) GetMapped() bool { | 333 | func (x *Surface) GetMapped() bool { | ||
| 334 | + | core.LazyRegister(&xSurfaceGetMapped, "GDK", "gdk_surface_get_mapped", false) | |||
| 335 | + | ||||
| 315 | cret := xSurfaceGetMapped(x.GoPointer()) | 336 | cret := xSurfaceGetMapped(x.GoPointer()) | ||
| 316 | return cret | 337 | return cret | ||
| 317 | } | 338 | } | ||
| @@ -330,6 +351,8 @@ var xSurfaceGetScale func(uintptr) float64 | |||||
| 330 | // | 351 | // | ||
| 331 | // The scale may change during the lifetime of the surface. | 352 | // The scale may change during the lifetime of the surface. | ||
| 332 | func (x *Surface) GetScale() float64 { | 353 | func (x *Surface) GetScale() float64 { | ||
| 354 | + | core.LazyRegister(&xSurfaceGetScale, "GDK", "gdk_surface_get_scale", false) | |||
| 355 | + | ||||
| 333 | cret := xSurfaceGetScale(x.GoPointer()) | 356 | cret := xSurfaceGetScale(x.GoPointer()) | ||
| 334 | return cret | 357 | return cret | ||
| 335 | } | 358 | } | ||
| @@ -348,6 +371,8 @@ var xSurfaceGetScaleFactor func(uintptr) int | |||||
| 348 | // | 371 | // | ||
| 349 | // The scale factor may change during the lifetime of the surface. | 372 | // The scale factor may change during the lifetime of the surface. | ||
| 350 | func (x *Surface) GetScaleFactor() int { | 373 | func (x *Surface) GetScaleFactor() int { | ||
| 374 | + | core.LazyRegister(&xSurfaceGetScaleFactor, "GDK", "gdk_surface_get_scale_factor", false) | |||
| 375 | + | ||||
| 351 | cret := xSurfaceGetScaleFactor(x.GoPointer()) | 376 | cret := xSurfaceGetScaleFactor(x.GoPointer()) | ||
| 352 | return cret | 377 | return cret | ||
| 353 | } | 378 | } | ||
| @@ -359,6 +384,8 @@ var xSurfaceGetWidth func(uintptr) int | |||||
| 359 | // Surface size is reported in ”application pixels”, not | 384 | // Surface size is reported in ”application pixels”, not | ||
| 360 | // ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). | 385 | // ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). | ||
| 361 | func (x *Surface) GetWidth() int { | 386 | func (x *Surface) GetWidth() int { | ||
| 387 | + | core.LazyRegister(&xSurfaceGetWidth, "GDK", "gdk_surface_get_width", false) | |||
| 388 | + | ||||
| 362 | cret := xSurfaceGetWidth(x.GoPointer()) | 389 | cret := xSurfaceGetWidth(x.GoPointer()) | ||
| 363 | return cret | 390 | return cret | ||
| 364 | } | 391 | } | ||
| @@ -372,6 +399,8 @@ var xSurfaceHide func(uintptr) | |||||
| 372 | // they won’t be displayed. Normally done automatically as | 399 | // they won’t be displayed. Normally done automatically as | ||
| 373 | // part of [gtk_widget_hide()](../gtk4/method.Widget.hide.html). | 400 | // part of [gtk_widget_hide()](../gtk4/method.Widget.hide.html). | ||
| 374 | func (x *Surface) Hide() { | 401 | func (x *Surface) Hide() { | ||
| 402 | + | core.LazyRegister(&xSurfaceHide, "GDK", "gdk_surface_hide", false) | |||
| 403 | + | ||||
| 375 | xSurfaceHide(x.GoPointer()) | 404 | xSurfaceHide(x.GoPointer()) | ||
| 376 | } | 405 | } | ||
| 377 | 406 | ||||
| @@ -379,6 +408,8 @@ var xSurfaceIsDestroyed func(uintptr) bool | |||||
| 379 | 408 | ||||
| 380 | // Check to see if a surface is destroyed. | 409 | // Check to see if a surface is destroyed. | ||
| 381 | func (x *Surface) IsDestroyed() bool { | 410 | func (x *Surface) IsDestroyed() bool { | ||
| 411 | + | core.LazyRegister(&xSurfaceIsDestroyed, "GDK", "gdk_surface_is_destroyed", false) | |||
| 412 | + | ||||
| 382 | cret := xSurfaceIsDestroyed(x.GoPointer()) | 413 | cret := xSurfaceIsDestroyed(x.GoPointer()) | ||
| 383 | return cret | 414 | return cret | ||
| 384 | } | 415 | } | ||
| @@ -391,6 +422,8 @@ var xSurfaceQueueRender func(uintptr) | |||||
| 391 | // This function is useful for implementations that track invalid | 422 | // This function is useful for implementations that track invalid | ||
| 392 | // regions on their own. | 423 | // regions on their own. | ||
| 393 | func (x *Surface) QueueRender() { | 424 | func (x *Surface) QueueRender() { | ||
| 425 | + | core.LazyRegister(&xSurfaceQueueRender, "GDK", "gdk_surface_queue_render", false) | |||
| 426 | + | ||||
| 394 | xSurfaceQueueRender(x.GoPointer()) | 427 | xSurfaceQueueRender(x.GoPointer()) | ||
| 395 | } | 428 | } | ||
| 396 | 429 | ||||
| @@ -400,6 +433,8 @@ var xSurfaceRequestLayout func(uintptr) | |||||
| 400 | // | 433 | // | ||
| 401 | // See [method@Gdk.FrameClock.request_phase]. | 434 | // See [method@Gdk.FrameClock.request_phase]. | ||
| 402 | func (x *Surface) RequestLayout() { | 435 | func (x *Surface) RequestLayout() { | ||
| 436 | + | core.LazyRegister(&xSurfaceRequestLayout, "GDK", "gdk_surface_request_layout", false) | |||
| 437 | + | ||||
| 403 | xSurfaceRequestLayout(x.GoPointer()) | 438 | xSurfaceRequestLayout(x.GoPointer()) | ||
| 404 | } | 439 | } | ||
| 405 | 440 | ||||
| @@ -414,6 +449,8 @@ var xSurfaceSetCursor func(uintptr, uintptr) | |||||
| 414 | // Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] | 449 | // Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] | ||
| 415 | // to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. | 450 | // to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. | ||
| 416 | func (x *Surface) SetCursor(CursorVar *Cursor) { | 451 | func (x *Surface) SetCursor(CursorVar *Cursor) { | ||
| 452 | + | core.LazyRegister(&xSurfaceSetCursor, "GDK", "gdk_surface_set_cursor", false) | |||
| 453 | + | ||||
| 417 | xSurfaceSetCursor(x.GoPointer(), CursorVar.GoPointer()) | 454 | xSurfaceSetCursor(x.GoPointer(), CursorVar.GoPointer()) | ||
| 418 | } | 455 | } | ||
| 419 | 456 | ||||
| @@ -427,6 +464,8 @@ var xSurfaceSetDeviceCursor func(uintptr, uintptr, uintptr) | |||||
| 427 | // Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] | 464 | // Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] | ||
| 428 | // to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. | 465 | // to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. | ||
| 429 | func (x *Surface) SetDeviceCursor(DeviceVar *Device, CursorVar *Cursor) { | 466 | func (x *Surface) SetDeviceCursor(DeviceVar *Device, CursorVar *Cursor) { | ||
| 467 | + | core.LazyRegister(&xSurfaceSetDeviceCursor, "GDK", "gdk_surface_set_device_cursor", false) | |||
| 468 | + | ||||
| 430 | xSurfaceSetDeviceCursor(x.GoPointer(), DeviceVar.GoPointer(), CursorVar.GoPointer()) | 469 | xSurfaceSetDeviceCursor(x.GoPointer(), DeviceVar.GoPointer(), CursorVar.GoPointer()) | ||
| 431 | } | 470 | } | ||
| 432 | 471 | ||||
| @@ -447,6 +486,8 @@ var xSurfaceSetInputRegion func(uintptr, *cairo.Region) | |||||
| 447 | // Use [method@Gdk.Display.supports_input_shapes] to find out if | 486 | // Use [method@Gdk.Display.supports_input_shapes] to find out if | ||
| 448 | // a particular backend supports input regions. | 487 | // a particular backend supports input regions. | ||
| 449 | func (x *Surface) SetInputRegion(RegionVar *cairo.Region) { | 488 | func (x *Surface) SetInputRegion(RegionVar *cairo.Region) { | ||
| 489 | + | core.LazyRegister(&xSurfaceSetInputRegion, "GDK", "gdk_surface_set_input_region", false) | |||
| 490 | + | ||||
| 450 | xSurfaceSetInputRegion(x.GoPointer(), RegionVar) | 491 | xSurfaceSetInputRegion(x.GoPointer(), RegionVar) | ||
| 451 | } | 492 | } | ||
| 452 | 493 | ||||
| @@ -468,6 +509,8 @@ var xSurfaceSetOpaqueRegion func(uintptr, *cairo.Region) | |||||
| 468 | // background is not opaque, please update this property in your | 509 | // background is not opaque, please update this property in your | ||
| 469 | // [GtkWidgetClass.css_changed](../gtk4/vfunc.Widget.css_changed.html) handler. | 510 | // [GtkWidgetClass.css_changed](../gtk4/vfunc.Widget.css_changed.html) handler. | ||
| 470 | func (x *Surface) SetOpaqueRegion(RegionVar *cairo.Region) { | 511 | func (x *Surface) SetOpaqueRegion(RegionVar *cairo.Region) { | ||
| 512 | + | core.LazyRegister(&xSurfaceSetOpaqueRegion, "GDK", "gdk_surface_set_opaque_region", false) | |||
| 513 | + | ||||
| 471 | xSurfaceSetOpaqueRegion(x.GoPointer(), RegionVar) | 514 | xSurfaceSetOpaqueRegion(x.GoPointer(), RegionVar) | ||
| 472 | } | 515 | } | ||
| 473 | 516 | ||||
| @@ -478,6 +521,8 @@ var xSurfaceTranslateCoordinates func(uintptr, uintptr, *float64, *float64) bool | |||||
| 478 | // Note that this only works if @to and @from are popups or | 521 | // Note that this only works if @to and @from are popups or | ||
| 479 | // transient-for to the same toplevel (directly or indirectly). | 522 | // transient-for to the same toplevel (directly or indirectly). | ||
| 480 | func (x *Surface) TranslateCoordinates(ToVar *Surface, XVar *float64, YVar *float64) bool { | 523 | func (x *Surface) TranslateCoordinates(ToVar *Surface, XVar *float64, YVar *float64) bool { | ||
| 524 | + | core.LazyRegister(&xSurfaceTranslateCoordinates, "GDK", "gdk_surface_translate_coordinates", false) | |||
| 525 | + | ||||
| 481 | cret := xSurfaceTranslateCoordinates(x.GoPointer(), ToVar.GoPointer(), XVar, YVar) | 526 | cret := xSurfaceTranslateCoordinates(x.GoPointer(), ToVar.GoPointer(), XVar, YVar) | ||
| 482 | return cret | 527 | return cret | ||
| 483 | } | 528 | } | ||
| @@ -662,43 +707,4 @@ func (x *Surface) ConnectRender(cb *func(Surface, uintptr) bool) uint { | |||||
| 662 | func init() { | 707 | func init() { | ||
| 663 | core.SetPackageName("GDK", "gtk4") | 708 | core.SetPackageName("GDK", "gtk4") | ||
| 664 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | 709 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | ||
| 665 | - | var libs []uintptr | |||
| 666 | - | for _, libPath := range core.GetPaths("GDK") { | |||
| 667 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 668 | - | if err != nil { | |||
| 669 | - | panic(err) | |||
| 670 | - | } | |||
| 671 | - | libs = append(libs, lib) | |||
| 672 | - | } | |||
| 673 | - | ||||
| 674 | - | core.PuregoSafeRegister(&xSurfaceGLibType, libs, "gdk_surface_get_type") | |||
| 675 | - | ||||
| 676 | - | core.PuregoSafeRegister(&xNewSurfacePopup, libs, "gdk_surface_new_popup") | |||
| 677 | - | core.PuregoSafeRegister(&xNewSurfaceToplevel, libs, "gdk_surface_new_toplevel") | |||
| 678 | - | ||||
| 679 | - | core.PuregoSafeRegister(&xSurfaceBeep, libs, "gdk_surface_beep") | |||
| 680 | - | core.PuregoSafeRegister(&xSurfaceCreateCairoContext, libs, "gdk_surface_create_cairo_context") | |||
| 681 | - | core.PuregoSafeRegister(&xSurfaceCreateGlContext, libs, "gdk_surface_create_gl_context") | |||
| 682 | - | core.PuregoSafeRegister(&xSurfaceCreateSimilarSurface, libs, "gdk_surface_create_similar_surface") | |||
| 683 | - | core.PuregoSafeRegister(&xSurfaceCreateVulkanContext, libs, "gdk_surface_create_vulkan_context") | |||
| 684 | - | core.PuregoSafeRegister(&xSurfaceDestroy, libs, "gdk_surface_destroy") | |||
| 685 | - | core.PuregoSafeRegister(&xSurfaceGetCursor, libs, "gdk_surface_get_cursor") | |||
| 686 | - | core.PuregoSafeRegister(&xSurfaceGetDeviceCursor, libs, "gdk_surface_get_device_cursor") | |||
| 687 | - | core.PuregoSafeRegister(&xSurfaceGetDevicePosition, libs, "gdk_surface_get_device_position") | |||
| 688 | - | core.PuregoSafeRegister(&xSurfaceGetDisplay, libs, "gdk_surface_get_display") | |||
| 689 | - | core.PuregoSafeRegister(&xSurfaceGetFrameClock, libs, "gdk_surface_get_frame_clock") | |||
| 690 | - | core.PuregoSafeRegister(&xSurfaceGetHeight, libs, "gdk_surface_get_height") | |||
| 691 | - | core.PuregoSafeRegister(&xSurfaceGetMapped, libs, "gdk_surface_get_mapped") | |||
| 692 | - | core.PuregoSafeRegister(&xSurfaceGetScale, libs, "gdk_surface_get_scale") | |||
| 693 | - | core.PuregoSafeRegister(&xSurfaceGetScaleFactor, libs, "gdk_surface_get_scale_factor") | |||
| 694 | - | core.PuregoSafeRegister(&xSurfaceGetWidth, libs, "gdk_surface_get_width") | |||
| 695 | - | core.PuregoSafeRegister(&xSurfaceHide, libs, "gdk_surface_hide") | |||
| 696 | - | core.PuregoSafeRegister(&xSurfaceIsDestroyed, libs, "gdk_surface_is_destroyed") | |||
| 697 | - | core.PuregoSafeRegister(&xSurfaceQueueRender, libs, "gdk_surface_queue_render") | |||
| 698 | - | core.PuregoSafeRegister(&xSurfaceRequestLayout, libs, "gdk_surface_request_layout") | |||
| 699 | - | core.PuregoSafeRegister(&xSurfaceSetCursor, libs, "gdk_surface_set_cursor") | |||
| 700 | - | core.PuregoSafeRegister(&xSurfaceSetDeviceCursor, libs, "gdk_surface_set_device_cursor") | |||
| 701 | - | core.PuregoSafeRegister(&xSurfaceSetInputRegion, libs, "gdk_surface_set_input_region") | |||
| 702 | - | core.PuregoSafeRegister(&xSurfaceSetOpaqueRegion, libs, "gdk_surface_set_opaque_region") | |||
| 703 | - | core.PuregoSafeRegister(&xSurfaceTranslateCoordinates, libs, "gdk_surface_translate_coordinates") | |||
| 704 | } | 710 | } | ||