Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28
| @@ -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/gobject" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -51,6 +50,7 @@ type TimedAnimation struct { | |||
| 51 | 50 | var xTimedAnimationGLibType func() types.GType | |
| 52 | 51 | ||
| 53 | 52 | func TimedAnimationGLibType() types.GType { | |
| 53 | + | core.LazyRegister(&xTimedAnimationGLibType, "ADW", "adw_timed_animation_get_type", false) | |
| 54 | 54 | return xTimedAnimationGLibType() | |
| 55 | 55 | } | |
| 56 | 56 | ||
| @@ -65,6 +65,7 @@ var xNewTimedAnimation func(uintptr, float64, float64, uint, uintptr) uintptr | |||
| 65 | 65 | // Creates a new `AdwTimedAnimation` on @widget to animate @target from @from | |
| 66 | 66 | // to @to. | |
| 67 | 67 | func NewTimedAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, DurationVar uint, TargetVar *AnimationTarget) *TimedAnimation { | |
| 68 | + | core.LazyRegister(&xNewTimedAnimation, "ADW", "adw_timed_animation_new", false) | |
| 68 | 69 | var cls *TimedAnimation | |
| 69 | 70 | ||
| 70 | 71 | cret := xNewTimedAnimation(WidgetVar.GoPointer(), FromVar, ToVar, DurationVar, TargetVar.GoPointer()) | |
| @@ -82,6 +83,8 @@ var xTimedAnimationGetAlternate func(uintptr) bool | |||
| 82 | 83 | ||
| 83 | 84 | // Gets whether @self changes direction on every iteration. | |
| 84 | 85 | func (x *TimedAnimation) GetAlternate() bool { | |
| 86 | + | core.LazyRegister(&xTimedAnimationGetAlternate, "ADW", "adw_timed_animation_get_alternate", false) | |
| 87 | + | ||
| 85 | 88 | cret := xTimedAnimationGetAlternate(x.GoPointer()) | |
| 86 | 89 | return cret | |
| 87 | 90 | } | |
| @@ -90,6 +93,8 @@ var xTimedAnimationGetDuration func(uintptr) uint | |||
| 90 | 93 | ||
| 91 | 94 | // Gets the duration of @self. | |
| 92 | 95 | func (x *TimedAnimation) GetDuration() uint { | |
| 96 | + | core.LazyRegister(&xTimedAnimationGetDuration, "ADW", "adw_timed_animation_get_duration", false) | |
| 97 | + | ||
| 93 | 98 | cret := xTimedAnimationGetDuration(x.GoPointer()) | |
| 94 | 99 | return cret | |
| 95 | 100 | } | |
| @@ -98,6 +103,8 @@ var xTimedAnimationGetEasing func(uintptr) Easing | |||
| 98 | 103 | ||
| 99 | 104 | // Gets the easing function @self uses. | |
| 100 | 105 | func (x *TimedAnimation) GetEasing() Easing { | |
| 106 | + | core.LazyRegister(&xTimedAnimationGetEasing, "ADW", "adw_timed_animation_get_easing", false) | |
| 107 | + | ||
| 101 | 108 | cret := xTimedAnimationGetEasing(x.GoPointer()) | |
| 102 | 109 | return cret | |
| 103 | 110 | } | |
| @@ -106,6 +113,8 @@ var xTimedAnimationGetRepeatCount func(uintptr) uint | |||
| 106 | 113 | ||
| 107 | 114 | // Gets the number of times @self will play. | |
| 108 | 115 | func (x *TimedAnimation) GetRepeatCount() uint { | |
| 116 | + | core.LazyRegister(&xTimedAnimationGetRepeatCount, "ADW", "adw_timed_animation_get_repeat_count", false) | |
| 117 | + | ||
| 109 | 118 | cret := xTimedAnimationGetRepeatCount(x.GoPointer()) | |
| 110 | 119 | return cret | |
| 111 | 120 | } | |
| @@ -114,6 +123,8 @@ var xTimedAnimationGetReverse func(uintptr) bool | |||
| 114 | 123 | ||
| 115 | 124 | // Gets whether @self plays backwards. | |
| 116 | 125 | func (x *TimedAnimation) GetReverse() bool { | |
| 126 | + | core.LazyRegister(&xTimedAnimationGetReverse, "ADW", "adw_timed_animation_get_reverse", false) | |
| 127 | + | ||
| 117 | 128 | cret := xTimedAnimationGetReverse(x.GoPointer()) | |
| 118 | 129 | return cret | |
| 119 | 130 | } | |
| @@ -122,6 +133,8 @@ var xTimedAnimationGetValueFrom func(uintptr) float64 | |||
| 122 | 133 | ||
| 123 | 134 | // Gets the value @self will animate from. | |
| 124 | 135 | func (x *TimedAnimation) GetValueFrom() float64 { | |
| 136 | + | core.LazyRegister(&xTimedAnimationGetValueFrom, "ADW", "adw_timed_animation_get_value_from", false) | |
| 137 | + | ||
| 125 | 138 | cret := xTimedAnimationGetValueFrom(x.GoPointer()) | |
| 126 | 139 | return cret | |
| 127 | 140 | } | |
| @@ -130,6 +143,8 @@ var xTimedAnimationGetValueTo func(uintptr) float64 | |||
| 130 | 143 | ||
| 131 | 144 | // Gets the value @self will animate to. | |
| 132 | 145 | func (x *TimedAnimation) GetValueTo() float64 { | |
| 146 | + | core.LazyRegister(&xTimedAnimationGetValueTo, "ADW", "adw_timed_animation_get_value_to", false) | |
| 147 | + | ||
| 133 | 148 | cret := xTimedAnimationGetValueTo(x.GoPointer()) | |
| 134 | 149 | return cret | |
| 135 | 150 | } | |
| @@ -138,6 +153,8 @@ var xTimedAnimationSetAlternate func(uintptr, bool) | |||
| 138 | 153 | ||
| 139 | 154 | // Sets whether @self changes direction on every iteration. | |
| 140 | 155 | func (x *TimedAnimation) SetAlternate(AlternateVar bool) { | |
| 156 | + | core.LazyRegister(&xTimedAnimationSetAlternate, "ADW", "adw_timed_animation_set_alternate", false) | |
| 157 | + | ||
| 141 | 158 | xTimedAnimationSetAlternate(x.GoPointer(), AlternateVar) | |
| 142 | 159 | } | |
| 143 | 160 | ||
| @@ -147,6 +164,8 @@ var xTimedAnimationSetDuration func(uintptr, uint) | |||
| 147 | 164 | // | |
| 148 | 165 | // If the animation repeats more than once, sets the duration of one iteration. | |
| 149 | 166 | func (x *TimedAnimation) SetDuration(DurationVar uint) { | |
| 167 | + | core.LazyRegister(&xTimedAnimationSetDuration, "ADW", "adw_timed_animation_set_duration", false) | |
| 168 | + | ||
| 150 | 169 | xTimedAnimationSetDuration(x.GoPointer(), DurationVar) | |
| 151 | 170 | } | |
| 152 | 171 | ||
| @@ -156,6 +175,8 @@ var xTimedAnimationSetEasing func(uintptr, Easing) | |||
| 156 | 175 | // | |
| 157 | 176 | // See [enum@Easing] for the description of specific easing functions. | |
| 158 | 177 | func (x *TimedAnimation) SetEasing(EasingVar Easing) { | |
| 178 | + | core.LazyRegister(&xTimedAnimationSetEasing, "ADW", "adw_timed_animation_set_easing", false) | |
| 179 | + | ||
| 159 | 180 | xTimedAnimationSetEasing(x.GoPointer(), EasingVar) | |
| 160 | 181 | } | |
| 161 | 182 | ||
| @@ -165,6 +186,8 @@ var xTimedAnimationSetRepeatCount func(uintptr, uint) | |||
| 165 | 186 | // | |
| 166 | 187 | // If set to 0, @self will repeat endlessly. | |
| 167 | 188 | func (x *TimedAnimation) SetRepeatCount(RepeatCountVar uint) { | |
| 189 | + | core.LazyRegister(&xTimedAnimationSetRepeatCount, "ADW", "adw_timed_animation_set_repeat_count", false) | |
| 190 | + | ||
| 168 | 191 | xTimedAnimationSetRepeatCount(x.GoPointer(), RepeatCountVar) | |
| 169 | 192 | } | |
| 170 | 193 | ||
| @@ -172,6 +195,8 @@ var xTimedAnimationSetReverse func(uintptr, bool) | |||
| 172 | 195 | ||
| 173 | 196 | // Sets whether @self plays backwards. | |
| 174 | 197 | func (x *TimedAnimation) SetReverse(ReverseVar bool) { | |
| 198 | + | core.LazyRegister(&xTimedAnimationSetReverse, "ADW", "adw_timed_animation_set_reverse", false) | |
| 199 | + | ||
| 175 | 200 | xTimedAnimationSetReverse(x.GoPointer(), ReverseVar) | |
| 176 | 201 | } | |
| 177 | 202 | ||
| @@ -185,6 +210,8 @@ var xTimedAnimationSetValueFrom func(uintptr, float64) | |||
| 185 | 210 | // If [property@TimedAnimation:reverse] is `TRUE`, the animation will end at | |
| 186 | 211 | // this value instead. | |
| 187 | 212 | func (x *TimedAnimation) SetValueFrom(ValueVar float64) { | |
| 213 | + | core.LazyRegister(&xTimedAnimationSetValueFrom, "ADW", "adw_timed_animation_set_value_from", false) | |
| 214 | + | ||
| 188 | 215 | xTimedAnimationSetValueFrom(x.GoPointer(), ValueVar) | |
| 189 | 216 | } | |
| 190 | 217 | ||
| @@ -198,6 +225,8 @@ var xTimedAnimationSetValueTo func(uintptr, float64) | |||
| 198 | 225 | // If [property@TimedAnimation:reverse] is `TRUE`, the animation will start | |
| 199 | 226 | // at this value instead. | |
| 200 | 227 | func (x *TimedAnimation) SetValueTo(ValueVar float64) { | |
| 228 | + | core.LazyRegister(&xTimedAnimationSetValueTo, "ADW", "adw_timed_animation_set_value_to", false) | |
| 229 | + | ||
| 201 | 230 | xTimedAnimationSetValueTo(x.GoPointer(), ValueVar) | |
| 202 | 231 | } | |
| 203 | 232 | ||
| @@ -355,31 +384,4 @@ func (x *TimedAnimation) GetPropertyValueTo() float64 { | |||
| 355 | 384 | func init() { | |
| 356 | 385 | core.SetPackageName("ADW", "libadwaita-1") | |
| 357 | 386 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 358 | - | var libs []uintptr | |
| 359 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 360 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 361 | - | if err != nil { | |
| 362 | - | panic(err) | |
| 363 | - | } | |
| 364 | - | libs = append(libs, lib) | |
| 365 | - | } | |
| 366 | - | ||
| 367 | - | core.PuregoSafeRegister(&xTimedAnimationGLibType, libs, "adw_timed_animation_get_type") | |
| 368 | - | ||
| 369 | - | core.PuregoSafeRegister(&xNewTimedAnimation, libs, "adw_timed_animation_new") | |
| 370 | - | ||
| 371 | - | core.PuregoSafeRegister(&xTimedAnimationGetAlternate, libs, "adw_timed_animation_get_alternate") | |
| 372 | - | core.PuregoSafeRegister(&xTimedAnimationGetDuration, libs, "adw_timed_animation_get_duration") | |
| 373 | - | core.PuregoSafeRegister(&xTimedAnimationGetEasing, libs, "adw_timed_animation_get_easing") | |
| 374 | - | core.PuregoSafeRegister(&xTimedAnimationGetRepeatCount, libs, "adw_timed_animation_get_repeat_count") | |
| 375 | - | core.PuregoSafeRegister(&xTimedAnimationGetReverse, libs, "adw_timed_animation_get_reverse") | |
| 376 | - | core.PuregoSafeRegister(&xTimedAnimationGetValueFrom, libs, "adw_timed_animation_get_value_from") | |
| 377 | - | core.PuregoSafeRegister(&xTimedAnimationGetValueTo, libs, "adw_timed_animation_get_value_to") | |
| 378 | - | core.PuregoSafeRegister(&xTimedAnimationSetAlternate, libs, "adw_timed_animation_set_alternate") | |
| 379 | - | core.PuregoSafeRegister(&xTimedAnimationSetDuration, libs, "adw_timed_animation_set_duration") | |
| 380 | - | core.PuregoSafeRegister(&xTimedAnimationSetEasing, libs, "adw_timed_animation_set_easing") | |
| 381 | - | core.PuregoSafeRegister(&xTimedAnimationSetRepeatCount, libs, "adw_timed_animation_set_repeat_count") | |
| 382 | - | core.PuregoSafeRegister(&xTimedAnimationSetReverse, libs, "adw_timed_animation_set_reverse") | |
| 383 | - | core.PuregoSafeRegister(&xTimedAnimationSetValueFrom, libs, "adw_timed_animation_set_value_from") | |
| 384 | - | core.PuregoSafeRegister(&xTimedAnimationSetValueTo, libs, "adw_timed_animation_set_value_to") | |
| 385 | 387 | } | |
| @@ -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/gobject" | 9 | "github.com/bnema/puregotk/v4/gobject" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -51,6 +50,7 @@ type TimedAnimation struct { | |||||
| 51 | var xTimedAnimationGLibType func() types.GType | 50 | var xTimedAnimationGLibType func() types.GType | ||
| 52 | 51 | ||||
| 53 | func TimedAnimationGLibType() types.GType { | 52 | func TimedAnimationGLibType() types.GType { | ||
| 53 | + | core.LazyRegister(&xTimedAnimationGLibType, "ADW", "adw_timed_animation_get_type", false) | |||
| 54 | return xTimedAnimationGLibType() | 54 | return xTimedAnimationGLibType() | ||
| 55 | } | 55 | } | ||
| 56 | 56 | ||||
| @@ -65,6 +65,7 @@ var xNewTimedAnimation func(uintptr, float64, float64, uint, uintptr) uintptr | |||||
| 65 | // Creates a new `AdwTimedAnimation` on @widget to animate @target from @from | 65 | // Creates a new `AdwTimedAnimation` on @widget to animate @target from @from | ||
| 66 | // to @to. | 66 | // to @to. | ||
| 67 | func NewTimedAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, DurationVar uint, TargetVar *AnimationTarget) *TimedAnimation { | 67 | func NewTimedAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, DurationVar uint, TargetVar *AnimationTarget) *TimedAnimation { | ||
| 68 | + | core.LazyRegister(&xNewTimedAnimation, "ADW", "adw_timed_animation_new", false) | |||
| 68 | var cls *TimedAnimation | 69 | var cls *TimedAnimation | ||
| 69 | 70 | ||||
| 70 | cret := xNewTimedAnimation(WidgetVar.GoPointer(), FromVar, ToVar, DurationVar, TargetVar.GoPointer()) | 71 | cret := xNewTimedAnimation(WidgetVar.GoPointer(), FromVar, ToVar, DurationVar, TargetVar.GoPointer()) | ||
| @@ -82,6 +83,8 @@ var xTimedAnimationGetAlternate func(uintptr) bool | |||||
| 82 | 83 | ||||
| 83 | // Gets whether @self changes direction on every iteration. | 84 | // Gets whether @self changes direction on every iteration. | ||
| 84 | func (x *TimedAnimation) GetAlternate() bool { | 85 | func (x *TimedAnimation) GetAlternate() bool { | ||
| 86 | + | core.LazyRegister(&xTimedAnimationGetAlternate, "ADW", "adw_timed_animation_get_alternate", false) | |||
| 87 | + | ||||
| 85 | cret := xTimedAnimationGetAlternate(x.GoPointer()) | 88 | cret := xTimedAnimationGetAlternate(x.GoPointer()) | ||
| 86 | return cret | 89 | return cret | ||
| 87 | } | 90 | } | ||
| @@ -90,6 +93,8 @@ var xTimedAnimationGetDuration func(uintptr) uint | |||||
| 90 | 93 | ||||
| 91 | // Gets the duration of @self. | 94 | // Gets the duration of @self. | ||
| 92 | func (x *TimedAnimation) GetDuration() uint { | 95 | func (x *TimedAnimation) GetDuration() uint { | ||
| 96 | + | core.LazyRegister(&xTimedAnimationGetDuration, "ADW", "adw_timed_animation_get_duration", false) | |||
| 97 | + | ||||
| 93 | cret := xTimedAnimationGetDuration(x.GoPointer()) | 98 | cret := xTimedAnimationGetDuration(x.GoPointer()) | ||
| 94 | return cret | 99 | return cret | ||
| 95 | } | 100 | } | ||
| @@ -98,6 +103,8 @@ var xTimedAnimationGetEasing func(uintptr) Easing | |||||
| 98 | 103 | ||||
| 99 | // Gets the easing function @self uses. | 104 | // Gets the easing function @self uses. | ||
| 100 | func (x *TimedAnimation) GetEasing() Easing { | 105 | func (x *TimedAnimation) GetEasing() Easing { | ||
| 106 | + | core.LazyRegister(&xTimedAnimationGetEasing, "ADW", "adw_timed_animation_get_easing", false) | |||
| 107 | + | ||||
| 101 | cret := xTimedAnimationGetEasing(x.GoPointer()) | 108 | cret := xTimedAnimationGetEasing(x.GoPointer()) | ||
| 102 | return cret | 109 | return cret | ||
| 103 | } | 110 | } | ||
| @@ -106,6 +113,8 @@ var xTimedAnimationGetRepeatCount func(uintptr) uint | |||||
| 106 | 113 | ||||
| 107 | // Gets the number of times @self will play. | 114 | // Gets the number of times @self will play. | ||
| 108 | func (x *TimedAnimation) GetRepeatCount() uint { | 115 | func (x *TimedAnimation) GetRepeatCount() uint { | ||
| 116 | + | core.LazyRegister(&xTimedAnimationGetRepeatCount, "ADW", "adw_timed_animation_get_repeat_count", false) | |||
| 117 | + | ||||
| 109 | cret := xTimedAnimationGetRepeatCount(x.GoPointer()) | 118 | cret := xTimedAnimationGetRepeatCount(x.GoPointer()) | ||
| 110 | return cret | 119 | return cret | ||
| 111 | } | 120 | } | ||
| @@ -114,6 +123,8 @@ var xTimedAnimationGetReverse func(uintptr) bool | |||||
| 114 | 123 | ||||
| 115 | // Gets whether @self plays backwards. | 124 | // Gets whether @self plays backwards. | ||
| 116 | func (x *TimedAnimation) GetReverse() bool { | 125 | func (x *TimedAnimation) GetReverse() bool { | ||
| 126 | + | core.LazyRegister(&xTimedAnimationGetReverse, "ADW", "adw_timed_animation_get_reverse", false) | |||
| 127 | + | ||||
| 117 | cret := xTimedAnimationGetReverse(x.GoPointer()) | 128 | cret := xTimedAnimationGetReverse(x.GoPointer()) | ||
| 118 | return cret | 129 | return cret | ||
| 119 | } | 130 | } | ||
| @@ -122,6 +133,8 @@ var xTimedAnimationGetValueFrom func(uintptr) float64 | |||||
| 122 | 133 | ||||
| 123 | // Gets the value @self will animate from. | 134 | // Gets the value @self will animate from. | ||
| 124 | func (x *TimedAnimation) GetValueFrom() float64 { | 135 | func (x *TimedAnimation) GetValueFrom() float64 { | ||
| 136 | + | core.LazyRegister(&xTimedAnimationGetValueFrom, "ADW", "adw_timed_animation_get_value_from", false) | |||
| 137 | + | ||||
| 125 | cret := xTimedAnimationGetValueFrom(x.GoPointer()) | 138 | cret := xTimedAnimationGetValueFrom(x.GoPointer()) | ||
| 126 | return cret | 139 | return cret | ||
| 127 | } | 140 | } | ||
| @@ -130,6 +143,8 @@ var xTimedAnimationGetValueTo func(uintptr) float64 | |||||
| 130 | 143 | ||||
| 131 | // Gets the value @self will animate to. | 144 | // Gets the value @self will animate to. | ||
| 132 | func (x *TimedAnimation) GetValueTo() float64 { | 145 | func (x *TimedAnimation) GetValueTo() float64 { | ||
| 146 | + | core.LazyRegister(&xTimedAnimationGetValueTo, "ADW", "adw_timed_animation_get_value_to", false) | |||
| 147 | + | ||||
| 133 | cret := xTimedAnimationGetValueTo(x.GoPointer()) | 148 | cret := xTimedAnimationGetValueTo(x.GoPointer()) | ||
| 134 | return cret | 149 | return cret | ||
| 135 | } | 150 | } | ||
| @@ -138,6 +153,8 @@ var xTimedAnimationSetAlternate func(uintptr, bool) | |||||
| 138 | 153 | ||||
| 139 | // Sets whether @self changes direction on every iteration. | 154 | // Sets whether @self changes direction on every iteration. | ||
| 140 | func (x *TimedAnimation) SetAlternate(AlternateVar bool) { | 155 | func (x *TimedAnimation) SetAlternate(AlternateVar bool) { | ||
| 156 | + | core.LazyRegister(&xTimedAnimationSetAlternate, "ADW", "adw_timed_animation_set_alternate", false) | |||
| 157 | + | ||||
| 141 | xTimedAnimationSetAlternate(x.GoPointer(), AlternateVar) | 158 | xTimedAnimationSetAlternate(x.GoPointer(), AlternateVar) | ||
| 142 | } | 159 | } | ||
| 143 | 160 | ||||
| @@ -147,6 +164,8 @@ var xTimedAnimationSetDuration func(uintptr, uint) | |||||
| 147 | // | 164 | // | ||
| 148 | // If the animation repeats more than once, sets the duration of one iteration. | 165 | // If the animation repeats more than once, sets the duration of one iteration. | ||
| 149 | func (x *TimedAnimation) SetDuration(DurationVar uint) { | 166 | func (x *TimedAnimation) SetDuration(DurationVar uint) { | ||
| 167 | + | core.LazyRegister(&xTimedAnimationSetDuration, "ADW", "adw_timed_animation_set_duration", false) | |||
| 168 | + | ||||
| 150 | xTimedAnimationSetDuration(x.GoPointer(), DurationVar) | 169 | xTimedAnimationSetDuration(x.GoPointer(), DurationVar) | ||
| 151 | } | 170 | } | ||
| 152 | 171 | ||||
| @@ -156,6 +175,8 @@ var xTimedAnimationSetEasing func(uintptr, Easing) | |||||
| 156 | // | 175 | // | ||
| 157 | // See [enum@Easing] for the description of specific easing functions. | 176 | // See [enum@Easing] for the description of specific easing functions. | ||
| 158 | func (x *TimedAnimation) SetEasing(EasingVar Easing) { | 177 | func (x *TimedAnimation) SetEasing(EasingVar Easing) { | ||
| 178 | + | core.LazyRegister(&xTimedAnimationSetEasing, "ADW", "adw_timed_animation_set_easing", false) | |||
| 179 | + | ||||
| 159 | xTimedAnimationSetEasing(x.GoPointer(), EasingVar) | 180 | xTimedAnimationSetEasing(x.GoPointer(), EasingVar) | ||
| 160 | } | 181 | } | ||
| 161 | 182 | ||||
| @@ -165,6 +186,8 @@ var xTimedAnimationSetRepeatCount func(uintptr, uint) | |||||
| 165 | // | 186 | // | ||
| 166 | // If set to 0, @self will repeat endlessly. | 187 | // If set to 0, @self will repeat endlessly. | ||
| 167 | func (x *TimedAnimation) SetRepeatCount(RepeatCountVar uint) { | 188 | func (x *TimedAnimation) SetRepeatCount(RepeatCountVar uint) { | ||
| 189 | + | core.LazyRegister(&xTimedAnimationSetRepeatCount, "ADW", "adw_timed_animation_set_repeat_count", false) | |||
| 190 | + | ||||
| 168 | xTimedAnimationSetRepeatCount(x.GoPointer(), RepeatCountVar) | 191 | xTimedAnimationSetRepeatCount(x.GoPointer(), RepeatCountVar) | ||
| 169 | } | 192 | } | ||
| 170 | 193 | ||||
| @@ -172,6 +195,8 @@ var xTimedAnimationSetReverse func(uintptr, bool) | |||||
| 172 | 195 | ||||
| 173 | // Sets whether @self plays backwards. | 196 | // Sets whether @self plays backwards. | ||
| 174 | func (x *TimedAnimation) SetReverse(ReverseVar bool) { | 197 | func (x *TimedAnimation) SetReverse(ReverseVar bool) { | ||
| 198 | + | core.LazyRegister(&xTimedAnimationSetReverse, "ADW", "adw_timed_animation_set_reverse", false) | |||
| 199 | + | ||||
| 175 | xTimedAnimationSetReverse(x.GoPointer(), ReverseVar) | 200 | xTimedAnimationSetReverse(x.GoPointer(), ReverseVar) | ||
| 176 | } | 201 | } | ||
| 177 | 202 | ||||
| @@ -185,6 +210,8 @@ var xTimedAnimationSetValueFrom func(uintptr, float64) | |||||
| 185 | // If [property@TimedAnimation:reverse] is `TRUE`, the animation will end at | 210 | // If [property@TimedAnimation:reverse] is `TRUE`, the animation will end at | ||
| 186 | // this value instead. | 211 | // this value instead. | ||
| 187 | func (x *TimedAnimation) SetValueFrom(ValueVar float64) { | 212 | func (x *TimedAnimation) SetValueFrom(ValueVar float64) { | ||
| 213 | + | core.LazyRegister(&xTimedAnimationSetValueFrom, "ADW", "adw_timed_animation_set_value_from", false) | |||
| 214 | + | ||||
| 188 | xTimedAnimationSetValueFrom(x.GoPointer(), ValueVar) | 215 | xTimedAnimationSetValueFrom(x.GoPointer(), ValueVar) | ||
| 189 | } | 216 | } | ||
| 190 | 217 | ||||
| @@ -198,6 +225,8 @@ var xTimedAnimationSetValueTo func(uintptr, float64) | |||||
| 198 | // If [property@TimedAnimation:reverse] is `TRUE`, the animation will start | 225 | // If [property@TimedAnimation:reverse] is `TRUE`, the animation will start | ||
| 199 | // at this value instead. | 226 | // at this value instead. | ||
| 200 | func (x *TimedAnimation) SetValueTo(ValueVar float64) { | 227 | func (x *TimedAnimation) SetValueTo(ValueVar float64) { | ||
| 228 | + | core.LazyRegister(&xTimedAnimationSetValueTo, "ADW", "adw_timed_animation_set_value_to", false) | |||
| 229 | + | ||||
| 201 | xTimedAnimationSetValueTo(x.GoPointer(), ValueVar) | 230 | xTimedAnimationSetValueTo(x.GoPointer(), ValueVar) | ||
| 202 | } | 231 | } | ||
| 203 | 232 | ||||
| @@ -355,31 +384,4 @@ func (x *TimedAnimation) GetPropertyValueTo() float64 { | |||||
| 355 | func init() { | 384 | func init() { | ||
| 356 | core.SetPackageName("ADW", "libadwaita-1") | 385 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 357 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 386 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 358 | - | var libs []uintptr | |||
| 359 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 360 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 361 | - | if err != nil { | |||
| 362 | - | panic(err) | |||
| 363 | - | } | |||
| 364 | - | libs = append(libs, lib) | |||
| 365 | - | } | |||
| 366 | - | ||||
| 367 | - | core.PuregoSafeRegister(&xTimedAnimationGLibType, libs, "adw_timed_animation_get_type") | |||
| 368 | - | ||||
| 369 | - | core.PuregoSafeRegister(&xNewTimedAnimation, libs, "adw_timed_animation_new") | |||
| 370 | - | ||||
| 371 | - | core.PuregoSafeRegister(&xTimedAnimationGetAlternate, libs, "adw_timed_animation_get_alternate") | |||
| 372 | - | core.PuregoSafeRegister(&xTimedAnimationGetDuration, libs, "adw_timed_animation_get_duration") | |||
| 373 | - | core.PuregoSafeRegister(&xTimedAnimationGetEasing, libs, "adw_timed_animation_get_easing") | |||
| 374 | - | core.PuregoSafeRegister(&xTimedAnimationGetRepeatCount, libs, "adw_timed_animation_get_repeat_count") | |||
| 375 | - | core.PuregoSafeRegister(&xTimedAnimationGetReverse, libs, "adw_timed_animation_get_reverse") | |||
| 376 | - | core.PuregoSafeRegister(&xTimedAnimationGetValueFrom, libs, "adw_timed_animation_get_value_from") | |||
| 377 | - | core.PuregoSafeRegister(&xTimedAnimationGetValueTo, libs, "adw_timed_animation_get_value_to") | |||
| 378 | - | core.PuregoSafeRegister(&xTimedAnimationSetAlternate, libs, "adw_timed_animation_set_alternate") | |||
| 379 | - | core.PuregoSafeRegister(&xTimedAnimationSetDuration, libs, "adw_timed_animation_set_duration") | |||
| 380 | - | core.PuregoSafeRegister(&xTimedAnimationSetEasing, libs, "adw_timed_animation_set_easing") | |||
| 381 | - | core.PuregoSafeRegister(&xTimedAnimationSetRepeatCount, libs, "adw_timed_animation_set_repeat_count") | |||
| 382 | - | core.PuregoSafeRegister(&xTimedAnimationSetReverse, libs, "adw_timed_animation_set_reverse") | |||
| 383 | - | core.PuregoSafeRegister(&xTimedAnimationSetValueFrom, libs, "adw_timed_animation_set_value_from") | |||
| 384 | - | core.PuregoSafeRegister(&xTimedAnimationSetValueTo, libs, "adw_timed_animation_set_value_to") | |||
| 385 | } | 387 | } | ||