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
| @@ -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/gdk" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -37,6 +36,7 @@ type FlapFoldPolicy int | |||
| 37 | 36 | var xFlapFoldPolicyGLibType func() types.GType | |
| 38 | 37 | ||
| 39 | 38 | func FlapFoldPolicyGLibType() types.GType { | |
| 39 | + | core.LazyRegister(&xFlapFoldPolicyGLibType, "ADW", "adw_flap_fold_policy_get_type", false) | |
| 40 | 40 | return xFlapFoldPolicyGLibType() | |
| 41 | 41 | } | |
| 42 | 42 | ||
| @@ -62,6 +62,7 @@ type FlapTransitionType int | |||
| 62 | 62 | var xFlapTransitionTypeGLibType func() types.GType | |
| 63 | 63 | ||
| 64 | 64 | func FlapTransitionTypeGLibType() types.GType { | |
| 65 | + | core.LazyRegister(&xFlapTransitionTypeGLibType, "ADW", "adw_flap_transition_type_get_type", false) | |
| 65 | 66 | return xFlapTransitionTypeGLibType() | |
| 66 | 67 | } | |
| 67 | 68 | ||
| @@ -147,6 +148,7 @@ type Flap struct { | |||
| 147 | 148 | var xFlapGLibType func() types.GType | |
| 148 | 149 | ||
| 149 | 150 | func FlapGLibType() types.GType { | |
| 151 | + | core.LazyRegister(&xFlapGLibType, "ADW", "adw_flap_get_type", false) | |
| 150 | 152 | return xFlapGLibType() | |
| 151 | 153 | } | |
| 152 | 154 | ||
| @@ -160,6 +162,7 @@ var xNewFlap func() uintptr | |||
| 160 | 162 | ||
| 161 | 163 | // Creates a new `AdwFlap`. | |
| 162 | 164 | func NewFlap() *Flap { | |
| 165 | + | core.LazyRegister(&xNewFlap, "ADW", "adw_flap_new", false) | |
| 163 | 166 | var cls *Flap | |
| 164 | 167 | ||
| 165 | 168 | cret := xNewFlap() | |
| @@ -177,6 +180,7 @@ var xFlapGetContent func(uintptr) uintptr | |||
| 177 | 180 | ||
| 178 | 181 | // Gets the content widget for @self. | |
| 179 | 182 | func (x *Flap) GetContent() *gtk.Widget { | |
| 183 | + | core.LazyRegister(&xFlapGetContent, "ADW", "adw_flap_get_content", false) | |
| 180 | 184 | var cls *gtk.Widget | |
| 181 | 185 | ||
| 182 | 186 | cret := xFlapGetContent(x.GoPointer()) | |
| @@ -194,6 +198,7 @@ var xFlapGetFlap func(uintptr) uintptr | |||
| 194 | 198 | ||
| 195 | 199 | // Gets the flap widget for @self. | |
| 196 | 200 | func (x *Flap) GetFlap() *gtk.Widget { | |
| 201 | + | core.LazyRegister(&xFlapGetFlap, "ADW", "adw_flap_get_flap", false) | |
| 197 | 202 | var cls *gtk.Widget | |
| 198 | 203 | ||
| 199 | 204 | cret := xFlapGetFlap(x.GoPointer()) | |
| @@ -211,6 +216,8 @@ var xFlapGetFlapPosition func(uintptr) gtk.PackType | |||
| 211 | 216 | ||
| 212 | 217 | // Gets the flap position for @self. | |
| 213 | 218 | func (x *Flap) GetFlapPosition() gtk.PackType { | |
| 219 | + | core.LazyRegister(&xFlapGetFlapPosition, "ADW", "adw_flap_get_flap_position", false) | |
| 220 | + | ||
| 214 | 221 | cret := xFlapGetFlapPosition(x.GoPointer()) | |
| 215 | 222 | return cret | |
| 216 | 223 | } | |
| @@ -219,6 +226,8 @@ var xFlapGetFoldDuration func(uintptr) uint | |||
| 219 | 226 | ||
| 220 | 227 | // Gets the fold transition animation duration for @self, in milliseconds. | |
| 221 | 228 | func (x *Flap) GetFoldDuration() uint { | |
| 229 | + | core.LazyRegister(&xFlapGetFoldDuration, "ADW", "adw_flap_get_fold_duration", false) | |
| 230 | + | ||
| 222 | 231 | cret := xFlapGetFoldDuration(x.GoPointer()) | |
| 223 | 232 | return cret | |
| 224 | 233 | } | |
| @@ -227,6 +236,8 @@ var xFlapGetFoldPolicy func(uintptr) FlapFoldPolicy | |||
| 227 | 236 | ||
| 228 | 237 | // Gets the fold policy for @self. | |
| 229 | 238 | func (x *Flap) GetFoldPolicy() FlapFoldPolicy { | |
| 239 | + | core.LazyRegister(&xFlapGetFoldPolicy, "ADW", "adw_flap_get_fold_policy", false) | |
| 240 | + | ||
| 230 | 241 | cret := xFlapGetFoldPolicy(x.GoPointer()) | |
| 231 | 242 | return cret | |
| 232 | 243 | } | |
| @@ -235,6 +246,8 @@ var xFlapGetFoldThresholdPolicy func(uintptr) FoldThresholdPolicy | |||
| 235 | 246 | ||
| 236 | 247 | // Gets the fold threshold policy for @self. | |
| 237 | 248 | func (x *Flap) GetFoldThresholdPolicy() FoldThresholdPolicy { | |
| 249 | + | core.LazyRegister(&xFlapGetFoldThresholdPolicy, "ADW", "adw_flap_get_fold_threshold_policy", false) | |
| 250 | + | ||
| 238 | 251 | cret := xFlapGetFoldThresholdPolicy(x.GoPointer()) | |
| 239 | 252 | return cret | |
| 240 | 253 | } | |
| @@ -245,6 +258,8 @@ var xFlapGetFolded func(uintptr) bool | |||
| 245 | 258 | // | |
| 246 | 259 | // See [property@Flap:fold-policy]. | |
| 247 | 260 | func (x *Flap) GetFolded() bool { | |
| 261 | + | core.LazyRegister(&xFlapGetFolded, "ADW", "adw_flap_get_folded", false) | |
| 262 | + | ||
| 248 | 263 | cret := xFlapGetFolded(x.GoPointer()) | |
| 249 | 264 | return cret | |
| 250 | 265 | } | |
| @@ -253,6 +268,8 @@ var xFlapGetLocked func(uintptr) bool | |||
| 253 | 268 | ||
| 254 | 269 | // Gets whether @self is locked. | |
| 255 | 270 | func (x *Flap) GetLocked() bool { | |
| 271 | + | core.LazyRegister(&xFlapGetLocked, "ADW", "adw_flap_get_locked", false) | |
| 272 | + | ||
| 256 | 273 | cret := xFlapGetLocked(x.GoPointer()) | |
| 257 | 274 | return cret | |
| 258 | 275 | } | |
| @@ -261,6 +278,8 @@ var xFlapGetModal func(uintptr) bool | |||
| 261 | 278 | ||
| 262 | 279 | // Gets whether @self is modal. | |
| 263 | 280 | func (x *Flap) GetModal() bool { | |
| 281 | + | core.LazyRegister(&xFlapGetModal, "ADW", "adw_flap_get_modal", false) | |
| 282 | + | ||
| 264 | 283 | cret := xFlapGetModal(x.GoPointer()) | |
| 265 | 284 | return cret | |
| 266 | 285 | } | |
| @@ -269,6 +288,8 @@ var xFlapGetRevealFlap func(uintptr) bool | |||
| 269 | 288 | ||
| 270 | 289 | // Gets whether the flap widget is revealed for @self. | |
| 271 | 290 | func (x *Flap) GetRevealFlap() bool { | |
| 291 | + | core.LazyRegister(&xFlapGetRevealFlap, "ADW", "adw_flap_get_reveal_flap", false) | |
| 292 | + | ||
| 272 | 293 | cret := xFlapGetRevealFlap(x.GoPointer()) | |
| 273 | 294 | return cret | |
| 274 | 295 | } | |
| @@ -277,6 +298,8 @@ var xFlapGetRevealParams func(uintptr) uintptr | |||
| 277 | 298 | ||
| 278 | 299 | // Gets the reveal animation spring parameters for @self. | |
| 279 | 300 | func (x *Flap) GetRevealParams() *SpringParams { | |
| 301 | + | core.LazyRegister(&xFlapGetRevealParams, "ADW", "adw_flap_get_reveal_params", false) | |
| 302 | + | ||
| 280 | 303 | cret := xFlapGetRevealParams(x.GoPointer()) | |
| 281 | 304 | if cret == 0 { | |
| 282 | 305 | return nil | |
| @@ -292,6 +315,8 @@ var xFlapGetRevealProgress func(uintptr) float64 | |||
| 292 | 315 | // | |
| 293 | 316 | // See [property@Flap:reveal-flap]. | |
| 294 | 317 | func (x *Flap) GetRevealProgress() float64 { | |
| 318 | + | core.LazyRegister(&xFlapGetRevealProgress, "ADW", "adw_flap_get_reveal_progress", false) | |
| 319 | + | ||
| 295 | 320 | cret := xFlapGetRevealProgress(x.GoPointer()) | |
| 296 | 321 | return cret | |
| 297 | 322 | } | |
| @@ -300,6 +325,7 @@ var xFlapGetSeparator func(uintptr) uintptr | |||
| 300 | 325 | ||
| 301 | 326 | // Gets the separator widget for @self. | |
| 302 | 327 | func (x *Flap) GetSeparator() *gtk.Widget { | |
| 328 | + | core.LazyRegister(&xFlapGetSeparator, "ADW", "adw_flap_get_separator", false) | |
| 303 | 329 | var cls *gtk.Widget | |
| 304 | 330 | ||
| 305 | 331 | cret := xFlapGetSeparator(x.GoPointer()) | |
| @@ -317,6 +343,8 @@ var xFlapGetSwipeToClose func(uintptr) bool | |||
| 317 | 343 | ||
| 318 | 344 | // Gets whether @self can be closed with a swipe gesture. | |
| 319 | 345 | func (x *Flap) GetSwipeToClose() bool { | |
| 346 | + | core.LazyRegister(&xFlapGetSwipeToClose, "ADW", "adw_flap_get_swipe_to_close", false) | |
| 347 | + | ||
| 320 | 348 | cret := xFlapGetSwipeToClose(x.GoPointer()) | |
| 321 | 349 | return cret | |
| 322 | 350 | } | |
| @@ -325,6 +353,8 @@ var xFlapGetSwipeToOpen func(uintptr) bool | |||
| 325 | 353 | ||
| 326 | 354 | // Gets whether @self can be opened with a swipe gesture. | |
| 327 | 355 | func (x *Flap) GetSwipeToOpen() bool { | |
| 356 | + | core.LazyRegister(&xFlapGetSwipeToOpen, "ADW", "adw_flap_get_swipe_to_open", false) | |
| 357 | + | ||
| 328 | 358 | cret := xFlapGetSwipeToOpen(x.GoPointer()) | |
| 329 | 359 | return cret | |
| 330 | 360 | } | |
| @@ -333,6 +363,8 @@ var xFlapGetTransitionType func(uintptr) FlapTransitionType | |||
| 333 | 363 | ||
| 334 | 364 | // Gets the type of animation used for reveal and fold transitions in @self. | |
| 335 | 365 | func (x *Flap) GetTransitionType() FlapTransitionType { | |
| 366 | + | core.LazyRegister(&xFlapGetTransitionType, "ADW", "adw_flap_get_transition_type", false) | |
| 367 | + | ||
| 336 | 368 | cret := xFlapGetTransitionType(x.GoPointer()) | |
| 337 | 369 | return cret | |
| 338 | 370 | } | |
| @@ -343,6 +375,8 @@ var xFlapSetContent func(uintptr, uintptr) | |||
| 343 | 375 | // | |
| 344 | 376 | // It's always displayed when unfolded, and partially visible when folded. | |
| 345 | 377 | func (x *Flap) SetContent(ContentVar *gtk.Widget) { | |
| 378 | + | core.LazyRegister(&xFlapSetContent, "ADW", "adw_flap_set_content", false) | |
| 379 | + | ||
| 346 | 380 | xFlapSetContent(x.GoPointer(), ContentVar.GoPointer()) | |
| 347 | 381 | } | |
| 348 | 382 | ||
| @@ -352,6 +386,8 @@ var xFlapSetFlap func(uintptr, uintptr) | |||
| 352 | 386 | // | |
| 353 | 387 | // It's only visible when [property@Flap:reveal-progress] is greater than 0. | |
| 354 | 388 | func (x *Flap) SetFlap(FlapVar *gtk.Widget) { | |
| 389 | + | core.LazyRegister(&xFlapSetFlap, "ADW", "adw_flap_set_flap", false) | |
| 390 | + | ||
| 355 | 391 | xFlapSetFlap(x.GoPointer(), FlapVar.GoPointer()) | |
| 356 | 392 | } | |
| 357 | 393 | ||
| @@ -362,6 +398,8 @@ var xFlapSetFlapPosition func(uintptr, gtk.PackType) | |||
| 362 | 398 | // If it's set to [enum@Gtk.PackType.start], the flap is displayed before the | |
| 363 | 399 | // content, if [enum@Gtk.PackType.end], it's displayed after the content. | |
| 364 | 400 | func (x *Flap) SetFlapPosition(PositionVar gtk.PackType) { | |
| 401 | + | core.LazyRegister(&xFlapSetFlapPosition, "ADW", "adw_flap_set_flap_position", false) | |
| 402 | + | ||
| 365 | 403 | xFlapSetFlapPosition(x.GoPointer(), PositionVar) | |
| 366 | 404 | } | |
| 367 | 405 | ||
| @@ -369,6 +407,8 @@ var xFlapSetFoldDuration func(uintptr, uint) | |||
| 369 | 407 | ||
| 370 | 408 | // Sets the fold transition animation duration for @self, in milliseconds. | |
| 371 | 409 | func (x *Flap) SetFoldDuration(DurationVar uint) { | |
| 410 | + | core.LazyRegister(&xFlapSetFoldDuration, "ADW", "adw_flap_set_fold_duration", false) | |
| 411 | + | ||
| 372 | 412 | xFlapSetFoldDuration(x.GoPointer(), DurationVar) | |
| 373 | 413 | } | |
| 374 | 414 | ||
| @@ -376,6 +416,8 @@ var xFlapSetFoldPolicy func(uintptr, FlapFoldPolicy) | |||
| 376 | 416 | ||
| 377 | 417 | // Sets the fold policy for @self. | |
| 378 | 418 | func (x *Flap) SetFoldPolicy(PolicyVar FlapFoldPolicy) { | |
| 419 | + | core.LazyRegister(&xFlapSetFoldPolicy, "ADW", "adw_flap_set_fold_policy", false) | |
| 420 | + | ||
| 379 | 421 | xFlapSetFoldPolicy(x.GoPointer(), PolicyVar) | |
| 380 | 422 | } | |
| 381 | 423 | ||
| @@ -390,6 +432,8 @@ var xFlapSetFoldThresholdPolicy func(uintptr, FoldThresholdPolicy) | |||
| 390 | 432 | // This can be useful if you have a long ellipsizing label and want to let it | |
| 391 | 433 | // ellipsize instead of immediately folding. | |
| 392 | 434 | func (x *Flap) SetFoldThresholdPolicy(PolicyVar FoldThresholdPolicy) { | |
| 435 | + | core.LazyRegister(&xFlapSetFoldThresholdPolicy, "ADW", "adw_flap_set_fold_threshold_policy", false) | |
| 436 | + | ||
| 393 | 437 | xFlapSetFoldThresholdPolicy(x.GoPointer(), PolicyVar) | |
| 394 | 438 | } | |
| 395 | 439 | ||
| @@ -401,6 +445,8 @@ var xFlapSetLocked func(uintptr, bool) | |||
| 401 | 445 | // unfolding it when the flap is not revealed opens it. If `TRUE`, | |
| 402 | 446 | // [property@Flap:reveal-flap] value never changes on its own. | |
| 403 | 447 | func (x *Flap) SetLocked(LockedVar bool) { | |
| 448 | + | core.LazyRegister(&xFlapSetLocked, "ADW", "adw_flap_set_locked", false) | |
| 449 | + | ||
| 404 | 450 | xFlapSetLocked(x.GoPointer(), LockedVar) | |
| 405 | 451 | } | |
| 406 | 452 | ||
| @@ -412,6 +458,8 @@ var xFlapSetModal func(uintptr, bool) | |||
| 412 | 458 | // pressing the <kbd>Esc</kbd> key, will close the flap. If `FALSE`, clicks are | |
| 413 | 459 | // passed through to the content widget. | |
| 414 | 460 | func (x *Flap) SetModal(ModalVar bool) { | |
| 461 | + | core.LazyRegister(&xFlapSetModal, "ADW", "adw_flap_set_modal", false) | |
| 462 | + | ||
| 415 | 463 | xFlapSetModal(x.GoPointer(), ModalVar) | |
| 416 | 464 | } | |
| 417 | 465 | ||
| @@ -419,6 +467,8 @@ var xFlapSetRevealFlap func(uintptr, bool) | |||
| 419 | 467 | ||
| 420 | 468 | // Sets whether the flap widget is revealed for @self. | |
| 421 | 469 | func (x *Flap) SetRevealFlap(RevealFlapVar bool) { | |
| 470 | + | core.LazyRegister(&xFlapSetRevealFlap, "ADW", "adw_flap_set_reveal_flap", false) | |
| 471 | + | ||
| 422 | 472 | xFlapSetRevealFlap(x.GoPointer(), RevealFlapVar) | |
| 423 | 473 | } | |
| 424 | 474 | ||
| @@ -432,6 +482,8 @@ var xFlapSetRevealParams func(uintptr, *SpringParams) | |||
| 432 | 482 | // adw_spring_params_new (1, 0.5, 500) | |
| 433 | 483 | // ``` | |
| 434 | 484 | func (x *Flap) SetRevealParams(ParamsVar *SpringParams) { | |
| 485 | + | core.LazyRegister(&xFlapSetRevealParams, "ADW", "adw_flap_set_reveal_params", false) | |
| 486 | + | ||
| 435 | 487 | xFlapSetRevealParams(x.GoPointer(), ParamsVar) | |
| 436 | 488 | } | |
| 437 | 489 | ||
| @@ -443,6 +495,8 @@ var xFlapSetSeparator func(uintptr, uintptr) | |||
| 443 | 495 | // When exactly it's visible depends on the [property@Flap:transition-type] | |
| 444 | 496 | // value. | |
| 445 | 497 | func (x *Flap) SetSeparator(SeparatorVar *gtk.Widget) { | |
| 498 | + | core.LazyRegister(&xFlapSetSeparator, "ADW", "adw_flap_set_separator", false) | |
| 499 | + | ||
| 446 | 500 | xFlapSetSeparator(x.GoPointer(), SeparatorVar.GoPointer()) | |
| 447 | 501 | } | |
| 448 | 502 | ||
| @@ -453,6 +507,8 @@ var xFlapSetSwipeToClose func(uintptr, bool) | |||
| 453 | 507 | // The area that can be swiped depends on the [property@Flap:transition-type] | |
| 454 | 508 | // value. | |
| 455 | 509 | func (x *Flap) SetSwipeToClose(SwipeToCloseVar bool) { | |
| 510 | + | core.LazyRegister(&xFlapSetSwipeToClose, "ADW", "adw_flap_set_swipe_to_close", false) | |
| 511 | + | ||
| 456 | 512 | xFlapSetSwipeToClose(x.GoPointer(), SwipeToCloseVar) | |
| 457 | 513 | } | |
| 458 | 514 | ||
| @@ -463,6 +519,8 @@ var xFlapSetSwipeToOpen func(uintptr, bool) | |||
| 463 | 519 | // The area that can be swiped depends on the [property@Flap:transition-type] | |
| 464 | 520 | // value. | |
| 465 | 521 | func (x *Flap) SetSwipeToOpen(SwipeToOpenVar bool) { | |
| 522 | + | core.LazyRegister(&xFlapSetSwipeToOpen, "ADW", "adw_flap_set_swipe_to_open", false) | |
| 523 | + | ||
| 466 | 524 | xFlapSetSwipeToOpen(x.GoPointer(), SwipeToOpenVar) | |
| 467 | 525 | } | |
| 468 | 526 | ||
| @@ -475,6 +533,8 @@ var xFlapSetTransitionType func(uintptr, FlapTransitionType) | |||
| 475 | 533 | // the [`.background`](style-classes.html#background) style class to it if this | |
| 476 | 534 | // is unwanted. | |
| 477 | 535 | func (x *Flap) SetTransitionType(TransitionTypeVar FlapTransitionType) { | |
| 536 | + | core.LazyRegister(&xFlapSetTransitionType, "ADW", "adw_flap_set_transition_type", false) | |
| 537 | + | ||
| 478 | 538 | xFlapSetTransitionType(x.GoPointer(), TransitionTypeVar) | |
| 479 | 539 | } | |
| 480 | 540 | ||
| @@ -986,51 +1046,4 @@ func (x *Flap) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 986 | 1046 | func init() { | |
| 987 | 1047 | core.SetPackageName("ADW", "libadwaita-1") | |
| 988 | 1048 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 989 | - | var libs []uintptr | |
| 990 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 991 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 992 | - | if err != nil { | |
| 993 | - | panic(err) | |
| 994 | - | } | |
| 995 | - | libs = append(libs, lib) | |
| 996 | - | } | |
| 997 | - | ||
| 998 | - | core.PuregoSafeRegister(&xFlapFoldPolicyGLibType, libs, "adw_flap_fold_policy_get_type") | |
| 999 | - | ||
| 1000 | - | core.PuregoSafeRegister(&xFlapTransitionTypeGLibType, libs, "adw_flap_transition_type_get_type") | |
| 1001 | - | ||
| 1002 | - | core.PuregoSafeRegister(&xFlapGLibType, libs, "adw_flap_get_type") | |
| 1003 | - | ||
| 1004 | - | core.PuregoSafeRegister(&xNewFlap, libs, "adw_flap_new") | |
| 1005 | - | ||
| 1006 | - | core.PuregoSafeRegister(&xFlapGetContent, libs, "adw_flap_get_content") | |
| 1007 | - | core.PuregoSafeRegister(&xFlapGetFlap, libs, "adw_flap_get_flap") | |
| 1008 | - | core.PuregoSafeRegister(&xFlapGetFlapPosition, libs, "adw_flap_get_flap_position") | |
| 1009 | - | core.PuregoSafeRegister(&xFlapGetFoldDuration, libs, "adw_flap_get_fold_duration") | |
| 1010 | - | core.PuregoSafeRegister(&xFlapGetFoldPolicy, libs, "adw_flap_get_fold_policy") | |
| 1011 | - | core.PuregoSafeRegister(&xFlapGetFoldThresholdPolicy, libs, "adw_flap_get_fold_threshold_policy") | |
| 1012 | - | core.PuregoSafeRegister(&xFlapGetFolded, libs, "adw_flap_get_folded") | |
| 1013 | - | core.PuregoSafeRegister(&xFlapGetLocked, libs, "adw_flap_get_locked") | |
| 1014 | - | core.PuregoSafeRegister(&xFlapGetModal, libs, "adw_flap_get_modal") | |
| 1015 | - | core.PuregoSafeRegister(&xFlapGetRevealFlap, libs, "adw_flap_get_reveal_flap") | |
| 1016 | - | core.PuregoSafeRegister(&xFlapGetRevealParams, libs, "adw_flap_get_reveal_params") | |
| 1017 | - | core.PuregoSafeRegister(&xFlapGetRevealProgress, libs, "adw_flap_get_reveal_progress") | |
| 1018 | - | core.PuregoSafeRegister(&xFlapGetSeparator, libs, "adw_flap_get_separator") | |
| 1019 | - | core.PuregoSafeRegister(&xFlapGetSwipeToClose, libs, "adw_flap_get_swipe_to_close") | |
| 1020 | - | core.PuregoSafeRegister(&xFlapGetSwipeToOpen, libs, "adw_flap_get_swipe_to_open") | |
| 1021 | - | core.PuregoSafeRegister(&xFlapGetTransitionType, libs, "adw_flap_get_transition_type") | |
| 1022 | - | core.PuregoSafeRegister(&xFlapSetContent, libs, "adw_flap_set_content") | |
| 1023 | - | core.PuregoSafeRegister(&xFlapSetFlap, libs, "adw_flap_set_flap") | |
| 1024 | - | core.PuregoSafeRegister(&xFlapSetFlapPosition, libs, "adw_flap_set_flap_position") | |
| 1025 | - | core.PuregoSafeRegister(&xFlapSetFoldDuration, libs, "adw_flap_set_fold_duration") | |
| 1026 | - | core.PuregoSafeRegister(&xFlapSetFoldPolicy, libs, "adw_flap_set_fold_policy") | |
| 1027 | - | core.PuregoSafeRegister(&xFlapSetFoldThresholdPolicy, libs, "adw_flap_set_fold_threshold_policy") | |
| 1028 | - | core.PuregoSafeRegister(&xFlapSetLocked, libs, "adw_flap_set_locked") | |
| 1029 | - | core.PuregoSafeRegister(&xFlapSetModal, libs, "adw_flap_set_modal") | |
| 1030 | - | core.PuregoSafeRegister(&xFlapSetRevealFlap, libs, "adw_flap_set_reveal_flap") | |
| 1031 | - | core.PuregoSafeRegister(&xFlapSetRevealParams, libs, "adw_flap_set_reveal_params") | |
| 1032 | - | core.PuregoSafeRegister(&xFlapSetSeparator, libs, "adw_flap_set_separator") | |
| 1033 | - | core.PuregoSafeRegister(&xFlapSetSwipeToClose, libs, "adw_flap_set_swipe_to_close") | |
| 1034 | - | core.PuregoSafeRegister(&xFlapSetSwipeToOpen, libs, "adw_flap_set_swipe_to_open") | |
| 1035 | - | core.PuregoSafeRegister(&xFlapSetTransitionType, libs, "adw_flap_set_transition_type") | |
| 1036 | 1049 | } | |
| @@ -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/gdk" | 9 | "github.com/bnema/puregotk/v4/gdk" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -37,6 +36,7 @@ type FlapFoldPolicy int | |||||
| 37 | var xFlapFoldPolicyGLibType func() types.GType | 36 | var xFlapFoldPolicyGLibType func() types.GType | ||
| 38 | 37 | ||||
| 39 | func FlapFoldPolicyGLibType() types.GType { | 38 | func FlapFoldPolicyGLibType() types.GType { | ||
| 39 | + | core.LazyRegister(&xFlapFoldPolicyGLibType, "ADW", "adw_flap_fold_policy_get_type", false) | |||
| 40 | return xFlapFoldPolicyGLibType() | 40 | return xFlapFoldPolicyGLibType() | ||
| 41 | } | 41 | } | ||
| 42 | 42 | ||||
| @@ -62,6 +62,7 @@ type FlapTransitionType int | |||||
| 62 | var xFlapTransitionTypeGLibType func() types.GType | 62 | var xFlapTransitionTypeGLibType func() types.GType | ||
| 63 | 63 | ||||
| 64 | func FlapTransitionTypeGLibType() types.GType { | 64 | func FlapTransitionTypeGLibType() types.GType { | ||
| 65 | + | core.LazyRegister(&xFlapTransitionTypeGLibType, "ADW", "adw_flap_transition_type_get_type", false) | |||
| 65 | return xFlapTransitionTypeGLibType() | 66 | return xFlapTransitionTypeGLibType() | ||
| 66 | } | 67 | } | ||
| 67 | 68 | ||||
| @@ -147,6 +148,7 @@ type Flap struct { | |||||
| 147 | var xFlapGLibType func() types.GType | 148 | var xFlapGLibType func() types.GType | ||
| 148 | 149 | ||||
| 149 | func FlapGLibType() types.GType { | 150 | func FlapGLibType() types.GType { | ||
| 151 | + | core.LazyRegister(&xFlapGLibType, "ADW", "adw_flap_get_type", false) | |||
| 150 | return xFlapGLibType() | 152 | return xFlapGLibType() | ||
| 151 | } | 153 | } | ||
| 152 | 154 | ||||
| @@ -160,6 +162,7 @@ var xNewFlap func() uintptr | |||||
| 160 | 162 | ||||
| 161 | // Creates a new `AdwFlap`. | 163 | // Creates a new `AdwFlap`. | ||
| 162 | func NewFlap() *Flap { | 164 | func NewFlap() *Flap { | ||
| 165 | + | core.LazyRegister(&xNewFlap, "ADW", "adw_flap_new", false) | |||
| 163 | var cls *Flap | 166 | var cls *Flap | ||
| 164 | 167 | ||||
| 165 | cret := xNewFlap() | 168 | cret := xNewFlap() | ||
| @@ -177,6 +180,7 @@ var xFlapGetContent func(uintptr) uintptr | |||||
| 177 | 180 | ||||
| 178 | // Gets the content widget for @self. | 181 | // Gets the content widget for @self. | ||
| 179 | func (x *Flap) GetContent() *gtk.Widget { | 182 | func (x *Flap) GetContent() *gtk.Widget { | ||
| 183 | + | core.LazyRegister(&xFlapGetContent, "ADW", "adw_flap_get_content", false) | |||
| 180 | var cls *gtk.Widget | 184 | var cls *gtk.Widget | ||
| 181 | 185 | ||||
| 182 | cret := xFlapGetContent(x.GoPointer()) | 186 | cret := xFlapGetContent(x.GoPointer()) | ||
| @@ -194,6 +198,7 @@ var xFlapGetFlap func(uintptr) uintptr | |||||
| 194 | 198 | ||||
| 195 | // Gets the flap widget for @self. | 199 | // Gets the flap widget for @self. | ||
| 196 | func (x *Flap) GetFlap() *gtk.Widget { | 200 | func (x *Flap) GetFlap() *gtk.Widget { | ||
| 201 | + | core.LazyRegister(&xFlapGetFlap, "ADW", "adw_flap_get_flap", false) | |||
| 197 | var cls *gtk.Widget | 202 | var cls *gtk.Widget | ||
| 198 | 203 | ||||
| 199 | cret := xFlapGetFlap(x.GoPointer()) | 204 | cret := xFlapGetFlap(x.GoPointer()) | ||
| @@ -211,6 +216,8 @@ var xFlapGetFlapPosition func(uintptr) gtk.PackType | |||||
| 211 | 216 | ||||
| 212 | // Gets the flap position for @self. | 217 | // Gets the flap position for @self. | ||
| 213 | func (x *Flap) GetFlapPosition() gtk.PackType { | 218 | func (x *Flap) GetFlapPosition() gtk.PackType { | ||
| 219 | + | core.LazyRegister(&xFlapGetFlapPosition, "ADW", "adw_flap_get_flap_position", false) | |||
| 220 | + | ||||
| 214 | cret := xFlapGetFlapPosition(x.GoPointer()) | 221 | cret := xFlapGetFlapPosition(x.GoPointer()) | ||
| 215 | return cret | 222 | return cret | ||
| 216 | } | 223 | } | ||
| @@ -219,6 +226,8 @@ var xFlapGetFoldDuration func(uintptr) uint | |||||
| 219 | 226 | ||||
| 220 | // Gets the fold transition animation duration for @self, in milliseconds. | 227 | // Gets the fold transition animation duration for @self, in milliseconds. | ||
| 221 | func (x *Flap) GetFoldDuration() uint { | 228 | func (x *Flap) GetFoldDuration() uint { | ||
| 229 | + | core.LazyRegister(&xFlapGetFoldDuration, "ADW", "adw_flap_get_fold_duration", false) | |||
| 230 | + | ||||
| 222 | cret := xFlapGetFoldDuration(x.GoPointer()) | 231 | cret := xFlapGetFoldDuration(x.GoPointer()) | ||
| 223 | return cret | 232 | return cret | ||
| 224 | } | 233 | } | ||
| @@ -227,6 +236,8 @@ var xFlapGetFoldPolicy func(uintptr) FlapFoldPolicy | |||||
| 227 | 236 | ||||
| 228 | // Gets the fold policy for @self. | 237 | // Gets the fold policy for @self. | ||
| 229 | func (x *Flap) GetFoldPolicy() FlapFoldPolicy { | 238 | func (x *Flap) GetFoldPolicy() FlapFoldPolicy { | ||
| 239 | + | core.LazyRegister(&xFlapGetFoldPolicy, "ADW", "adw_flap_get_fold_policy", false) | |||
| 240 | + | ||||
| 230 | cret := xFlapGetFoldPolicy(x.GoPointer()) | 241 | cret := xFlapGetFoldPolicy(x.GoPointer()) | ||
| 231 | return cret | 242 | return cret | ||
| 232 | } | 243 | } | ||
| @@ -235,6 +246,8 @@ var xFlapGetFoldThresholdPolicy func(uintptr) FoldThresholdPolicy | |||||
| 235 | 246 | ||||
| 236 | // Gets the fold threshold policy for @self. | 247 | // Gets the fold threshold policy for @self. | ||
| 237 | func (x *Flap) GetFoldThresholdPolicy() FoldThresholdPolicy { | 248 | func (x *Flap) GetFoldThresholdPolicy() FoldThresholdPolicy { | ||
| 249 | + | core.LazyRegister(&xFlapGetFoldThresholdPolicy, "ADW", "adw_flap_get_fold_threshold_policy", false) | |||
| 250 | + | ||||
| 238 | cret := xFlapGetFoldThresholdPolicy(x.GoPointer()) | 251 | cret := xFlapGetFoldThresholdPolicy(x.GoPointer()) | ||
| 239 | return cret | 252 | return cret | ||
| 240 | } | 253 | } | ||
| @@ -245,6 +258,8 @@ var xFlapGetFolded func(uintptr) bool | |||||
| 245 | // | 258 | // | ||
| 246 | // See [property@Flap:fold-policy]. | 259 | // See [property@Flap:fold-policy]. | ||
| 247 | func (x *Flap) GetFolded() bool { | 260 | func (x *Flap) GetFolded() bool { | ||
| 261 | + | core.LazyRegister(&xFlapGetFolded, "ADW", "adw_flap_get_folded", false) | |||
| 262 | + | ||||
| 248 | cret := xFlapGetFolded(x.GoPointer()) | 263 | cret := xFlapGetFolded(x.GoPointer()) | ||
| 249 | return cret | 264 | return cret | ||
| 250 | } | 265 | } | ||
| @@ -253,6 +268,8 @@ var xFlapGetLocked func(uintptr) bool | |||||
| 253 | 268 | ||||
| 254 | // Gets whether @self is locked. | 269 | // Gets whether @self is locked. | ||
| 255 | func (x *Flap) GetLocked() bool { | 270 | func (x *Flap) GetLocked() bool { | ||
| 271 | + | core.LazyRegister(&xFlapGetLocked, "ADW", "adw_flap_get_locked", false) | |||
| 272 | + | ||||
| 256 | cret := xFlapGetLocked(x.GoPointer()) | 273 | cret := xFlapGetLocked(x.GoPointer()) | ||
| 257 | return cret | 274 | return cret | ||
| 258 | } | 275 | } | ||
| @@ -261,6 +278,8 @@ var xFlapGetModal func(uintptr) bool | |||||
| 261 | 278 | ||||
| 262 | // Gets whether @self is modal. | 279 | // Gets whether @self is modal. | ||
| 263 | func (x *Flap) GetModal() bool { | 280 | func (x *Flap) GetModal() bool { | ||
| 281 | + | core.LazyRegister(&xFlapGetModal, "ADW", "adw_flap_get_modal", false) | |||
| 282 | + | ||||
| 264 | cret := xFlapGetModal(x.GoPointer()) | 283 | cret := xFlapGetModal(x.GoPointer()) | ||
| 265 | return cret | 284 | return cret | ||
| 266 | } | 285 | } | ||
| @@ -269,6 +288,8 @@ var xFlapGetRevealFlap func(uintptr) bool | |||||
| 269 | 288 | ||||
| 270 | // Gets whether the flap widget is revealed for @self. | 289 | // Gets whether the flap widget is revealed for @self. | ||
| 271 | func (x *Flap) GetRevealFlap() bool { | 290 | func (x *Flap) GetRevealFlap() bool { | ||
| 291 | + | core.LazyRegister(&xFlapGetRevealFlap, "ADW", "adw_flap_get_reveal_flap", false) | |||
| 292 | + | ||||
| 272 | cret := xFlapGetRevealFlap(x.GoPointer()) | 293 | cret := xFlapGetRevealFlap(x.GoPointer()) | ||
| 273 | return cret | 294 | return cret | ||
| 274 | } | 295 | } | ||
| @@ -277,6 +298,8 @@ var xFlapGetRevealParams func(uintptr) uintptr | |||||
| 277 | 298 | ||||
| 278 | // Gets the reveal animation spring parameters for @self. | 299 | // Gets the reveal animation spring parameters for @self. | ||
| 279 | func (x *Flap) GetRevealParams() *SpringParams { | 300 | func (x *Flap) GetRevealParams() *SpringParams { | ||
| 301 | + | core.LazyRegister(&xFlapGetRevealParams, "ADW", "adw_flap_get_reveal_params", false) | |||
| 302 | + | ||||
| 280 | cret := xFlapGetRevealParams(x.GoPointer()) | 303 | cret := xFlapGetRevealParams(x.GoPointer()) | ||
| 281 | if cret == 0 { | 304 | if cret == 0 { | ||
| 282 | return nil | 305 | return nil | ||
| @@ -292,6 +315,8 @@ var xFlapGetRevealProgress func(uintptr) float64 | |||||
| 292 | // | 315 | // | ||
| 293 | // See [property@Flap:reveal-flap]. | 316 | // See [property@Flap:reveal-flap]. | ||
| 294 | func (x *Flap) GetRevealProgress() float64 { | 317 | func (x *Flap) GetRevealProgress() float64 { | ||
| 318 | + | core.LazyRegister(&xFlapGetRevealProgress, "ADW", "adw_flap_get_reveal_progress", false) | |||
| 319 | + | ||||
| 295 | cret := xFlapGetRevealProgress(x.GoPointer()) | 320 | cret := xFlapGetRevealProgress(x.GoPointer()) | ||
| 296 | return cret | 321 | return cret | ||
| 297 | } | 322 | } | ||
| @@ -300,6 +325,7 @@ var xFlapGetSeparator func(uintptr) uintptr | |||||
| 300 | 325 | ||||
| 301 | // Gets the separator widget for @self. | 326 | // Gets the separator widget for @self. | ||
| 302 | func (x *Flap) GetSeparator() *gtk.Widget { | 327 | func (x *Flap) GetSeparator() *gtk.Widget { | ||
| 328 | + | core.LazyRegister(&xFlapGetSeparator, "ADW", "adw_flap_get_separator", false) | |||
| 303 | var cls *gtk.Widget | 329 | var cls *gtk.Widget | ||
| 304 | 330 | ||||
| 305 | cret := xFlapGetSeparator(x.GoPointer()) | 331 | cret := xFlapGetSeparator(x.GoPointer()) | ||
| @@ -317,6 +343,8 @@ var xFlapGetSwipeToClose func(uintptr) bool | |||||
| 317 | 343 | ||||
| 318 | // Gets whether @self can be closed with a swipe gesture. | 344 | // Gets whether @self can be closed with a swipe gesture. | ||
| 319 | func (x *Flap) GetSwipeToClose() bool { | 345 | func (x *Flap) GetSwipeToClose() bool { | ||
| 346 | + | core.LazyRegister(&xFlapGetSwipeToClose, "ADW", "adw_flap_get_swipe_to_close", false) | |||
| 347 | + | ||||
| 320 | cret := xFlapGetSwipeToClose(x.GoPointer()) | 348 | cret := xFlapGetSwipeToClose(x.GoPointer()) | ||
| 321 | return cret | 349 | return cret | ||
| 322 | } | 350 | } | ||
| @@ -325,6 +353,8 @@ var xFlapGetSwipeToOpen func(uintptr) bool | |||||
| 325 | 353 | ||||
| 326 | // Gets whether @self can be opened with a swipe gesture. | 354 | // Gets whether @self can be opened with a swipe gesture. | ||
| 327 | func (x *Flap) GetSwipeToOpen() bool { | 355 | func (x *Flap) GetSwipeToOpen() bool { | ||
| 356 | + | core.LazyRegister(&xFlapGetSwipeToOpen, "ADW", "adw_flap_get_swipe_to_open", false) | |||
| 357 | + | ||||
| 328 | cret := xFlapGetSwipeToOpen(x.GoPointer()) | 358 | cret := xFlapGetSwipeToOpen(x.GoPointer()) | ||
| 329 | return cret | 359 | return cret | ||
| 330 | } | 360 | } | ||
| @@ -333,6 +363,8 @@ var xFlapGetTransitionType func(uintptr) FlapTransitionType | |||||
| 333 | 363 | ||||
| 334 | // Gets the type of animation used for reveal and fold transitions in @self. | 364 | // Gets the type of animation used for reveal and fold transitions in @self. | ||
| 335 | func (x *Flap) GetTransitionType() FlapTransitionType { | 365 | func (x *Flap) GetTransitionType() FlapTransitionType { | ||
| 366 | + | core.LazyRegister(&xFlapGetTransitionType, "ADW", "adw_flap_get_transition_type", false) | |||
| 367 | + | ||||
| 336 | cret := xFlapGetTransitionType(x.GoPointer()) | 368 | cret := xFlapGetTransitionType(x.GoPointer()) | ||
| 337 | return cret | 369 | return cret | ||
| 338 | } | 370 | } | ||
| @@ -343,6 +375,8 @@ var xFlapSetContent func(uintptr, uintptr) | |||||
| 343 | // | 375 | // | ||
| 344 | // It's always displayed when unfolded, and partially visible when folded. | 376 | // It's always displayed when unfolded, and partially visible when folded. | ||
| 345 | func (x *Flap) SetContent(ContentVar *gtk.Widget) { | 377 | func (x *Flap) SetContent(ContentVar *gtk.Widget) { | ||
| 378 | + | core.LazyRegister(&xFlapSetContent, "ADW", "adw_flap_set_content", false) | |||
| 379 | + | ||||
| 346 | xFlapSetContent(x.GoPointer(), ContentVar.GoPointer()) | 380 | xFlapSetContent(x.GoPointer(), ContentVar.GoPointer()) | ||
| 347 | } | 381 | } | ||
| 348 | 382 | ||||
| @@ -352,6 +386,8 @@ var xFlapSetFlap func(uintptr, uintptr) | |||||
| 352 | // | 386 | // | ||
| 353 | // It's only visible when [property@Flap:reveal-progress] is greater than 0. | 387 | // It's only visible when [property@Flap:reveal-progress] is greater than 0. | ||
| 354 | func (x *Flap) SetFlap(FlapVar *gtk.Widget) { | 388 | func (x *Flap) SetFlap(FlapVar *gtk.Widget) { | ||
| 389 | + | core.LazyRegister(&xFlapSetFlap, "ADW", "adw_flap_set_flap", false) | |||
| 390 | + | ||||
| 355 | xFlapSetFlap(x.GoPointer(), FlapVar.GoPointer()) | 391 | xFlapSetFlap(x.GoPointer(), FlapVar.GoPointer()) | ||
| 356 | } | 392 | } | ||
| 357 | 393 | ||||
| @@ -362,6 +398,8 @@ var xFlapSetFlapPosition func(uintptr, gtk.PackType) | |||||
| 362 | // If it's set to [enum@Gtk.PackType.start], the flap is displayed before the | 398 | // If it's set to [enum@Gtk.PackType.start], the flap is displayed before the | ||
| 363 | // content, if [enum@Gtk.PackType.end], it's displayed after the content. | 399 | // content, if [enum@Gtk.PackType.end], it's displayed after the content. | ||
| 364 | func (x *Flap) SetFlapPosition(PositionVar gtk.PackType) { | 400 | func (x *Flap) SetFlapPosition(PositionVar gtk.PackType) { | ||
| 401 | + | core.LazyRegister(&xFlapSetFlapPosition, "ADW", "adw_flap_set_flap_position", false) | |||
| 402 | + | ||||
| 365 | xFlapSetFlapPosition(x.GoPointer(), PositionVar) | 403 | xFlapSetFlapPosition(x.GoPointer(), PositionVar) | ||
| 366 | } | 404 | } | ||
| 367 | 405 | ||||
| @@ -369,6 +407,8 @@ var xFlapSetFoldDuration func(uintptr, uint) | |||||
| 369 | 407 | ||||
| 370 | // Sets the fold transition animation duration for @self, in milliseconds. | 408 | // Sets the fold transition animation duration for @self, in milliseconds. | ||
| 371 | func (x *Flap) SetFoldDuration(DurationVar uint) { | 409 | func (x *Flap) SetFoldDuration(DurationVar uint) { | ||
| 410 | + | core.LazyRegister(&xFlapSetFoldDuration, "ADW", "adw_flap_set_fold_duration", false) | |||
| 411 | + | ||||
| 372 | xFlapSetFoldDuration(x.GoPointer(), DurationVar) | 412 | xFlapSetFoldDuration(x.GoPointer(), DurationVar) | ||
| 373 | } | 413 | } | ||
| 374 | 414 | ||||
| @@ -376,6 +416,8 @@ var xFlapSetFoldPolicy func(uintptr, FlapFoldPolicy) | |||||
| 376 | 416 | ||||
| 377 | // Sets the fold policy for @self. | 417 | // Sets the fold policy for @self. | ||
| 378 | func (x *Flap) SetFoldPolicy(PolicyVar FlapFoldPolicy) { | 418 | func (x *Flap) SetFoldPolicy(PolicyVar FlapFoldPolicy) { | ||
| 419 | + | core.LazyRegister(&xFlapSetFoldPolicy, "ADW", "adw_flap_set_fold_policy", false) | |||
| 420 | + | ||||
| 379 | xFlapSetFoldPolicy(x.GoPointer(), PolicyVar) | 421 | xFlapSetFoldPolicy(x.GoPointer(), PolicyVar) | ||
| 380 | } | 422 | } | ||
| 381 | 423 | ||||
| @@ -390,6 +432,8 @@ var xFlapSetFoldThresholdPolicy func(uintptr, FoldThresholdPolicy) | |||||
| 390 | // This can be useful if you have a long ellipsizing label and want to let it | 432 | // This can be useful if you have a long ellipsizing label and want to let it | ||
| 391 | // ellipsize instead of immediately folding. | 433 | // ellipsize instead of immediately folding. | ||
| 392 | func (x *Flap) SetFoldThresholdPolicy(PolicyVar FoldThresholdPolicy) { | 434 | func (x *Flap) SetFoldThresholdPolicy(PolicyVar FoldThresholdPolicy) { | ||
| 435 | + | core.LazyRegister(&xFlapSetFoldThresholdPolicy, "ADW", "adw_flap_set_fold_threshold_policy", false) | |||
| 436 | + | ||||
| 393 | xFlapSetFoldThresholdPolicy(x.GoPointer(), PolicyVar) | 437 | xFlapSetFoldThresholdPolicy(x.GoPointer(), PolicyVar) | ||
| 394 | } | 438 | } | ||
| 395 | 439 | ||||
| @@ -401,6 +445,8 @@ var xFlapSetLocked func(uintptr, bool) | |||||
| 401 | // unfolding it when the flap is not revealed opens it. If `TRUE`, | 445 | // unfolding it when the flap is not revealed opens it. If `TRUE`, | ||
| 402 | // [property@Flap:reveal-flap] value never changes on its own. | 446 | // [property@Flap:reveal-flap] value never changes on its own. | ||
| 403 | func (x *Flap) SetLocked(LockedVar bool) { | 447 | func (x *Flap) SetLocked(LockedVar bool) { | ||
| 448 | + | core.LazyRegister(&xFlapSetLocked, "ADW", "adw_flap_set_locked", false) | |||
| 449 | + | ||||
| 404 | xFlapSetLocked(x.GoPointer(), LockedVar) | 450 | xFlapSetLocked(x.GoPointer(), LockedVar) | ||
| 405 | } | 451 | } | ||
| 406 | 452 | ||||
| @@ -412,6 +458,8 @@ var xFlapSetModal func(uintptr, bool) | |||||
| 412 | // pressing the <kbd>Esc</kbd> key, will close the flap. If `FALSE`, clicks are | 458 | // pressing the <kbd>Esc</kbd> key, will close the flap. If `FALSE`, clicks are | ||
| 413 | // passed through to the content widget. | 459 | // passed through to the content widget. | ||
| 414 | func (x *Flap) SetModal(ModalVar bool) { | 460 | func (x *Flap) SetModal(ModalVar bool) { | ||
| 461 | + | core.LazyRegister(&xFlapSetModal, "ADW", "adw_flap_set_modal", false) | |||
| 462 | + | ||||
| 415 | xFlapSetModal(x.GoPointer(), ModalVar) | 463 | xFlapSetModal(x.GoPointer(), ModalVar) | ||
| 416 | } | 464 | } | ||
| 417 | 465 | ||||
| @@ -419,6 +467,8 @@ var xFlapSetRevealFlap func(uintptr, bool) | |||||
| 419 | 467 | ||||
| 420 | // Sets whether the flap widget is revealed for @self. | 468 | // Sets whether the flap widget is revealed for @self. | ||
| 421 | func (x *Flap) SetRevealFlap(RevealFlapVar bool) { | 469 | func (x *Flap) SetRevealFlap(RevealFlapVar bool) { | ||
| 470 | + | core.LazyRegister(&xFlapSetRevealFlap, "ADW", "adw_flap_set_reveal_flap", false) | |||
| 471 | + | ||||
| 422 | xFlapSetRevealFlap(x.GoPointer(), RevealFlapVar) | 472 | xFlapSetRevealFlap(x.GoPointer(), RevealFlapVar) | ||
| 423 | } | 473 | } | ||
| 424 | 474 | ||||
| @@ -432,6 +482,8 @@ var xFlapSetRevealParams func(uintptr, *SpringParams) | |||||
| 432 | // adw_spring_params_new (1, 0.5, 500) | 482 | // adw_spring_params_new (1, 0.5, 500) | ||
| 433 | // ``` | 483 | // ``` | ||
| 434 | func (x *Flap) SetRevealParams(ParamsVar *SpringParams) { | 484 | func (x *Flap) SetRevealParams(ParamsVar *SpringParams) { | ||
| 485 | + | core.LazyRegister(&xFlapSetRevealParams, "ADW", "adw_flap_set_reveal_params", false) | |||
| 486 | + | ||||
| 435 | xFlapSetRevealParams(x.GoPointer(), ParamsVar) | 487 | xFlapSetRevealParams(x.GoPointer(), ParamsVar) | ||
| 436 | } | 488 | } | ||
| 437 | 489 | ||||
| @@ -443,6 +495,8 @@ var xFlapSetSeparator func(uintptr, uintptr) | |||||
| 443 | // When exactly it's visible depends on the [property@Flap:transition-type] | 495 | // When exactly it's visible depends on the [property@Flap:transition-type] | ||
| 444 | // value. | 496 | // value. | ||
| 445 | func (x *Flap) SetSeparator(SeparatorVar *gtk.Widget) { | 497 | func (x *Flap) SetSeparator(SeparatorVar *gtk.Widget) { | ||
| 498 | + | core.LazyRegister(&xFlapSetSeparator, "ADW", "adw_flap_set_separator", false) | |||
| 499 | + | ||||
| 446 | xFlapSetSeparator(x.GoPointer(), SeparatorVar.GoPointer()) | 500 | xFlapSetSeparator(x.GoPointer(), SeparatorVar.GoPointer()) | ||
| 447 | } | 501 | } | ||
| 448 | 502 | ||||
| @@ -453,6 +507,8 @@ var xFlapSetSwipeToClose func(uintptr, bool) | |||||
| 453 | // The area that can be swiped depends on the [property@Flap:transition-type] | 507 | // The area that can be swiped depends on the [property@Flap:transition-type] | ||
| 454 | // value. | 508 | // value. | ||
| 455 | func (x *Flap) SetSwipeToClose(SwipeToCloseVar bool) { | 509 | func (x *Flap) SetSwipeToClose(SwipeToCloseVar bool) { | ||
| 510 | + | core.LazyRegister(&xFlapSetSwipeToClose, "ADW", "adw_flap_set_swipe_to_close", false) | |||
| 511 | + | ||||
| 456 | xFlapSetSwipeToClose(x.GoPointer(), SwipeToCloseVar) | 512 | xFlapSetSwipeToClose(x.GoPointer(), SwipeToCloseVar) | ||
| 457 | } | 513 | } | ||
| 458 | 514 | ||||
| @@ -463,6 +519,8 @@ var xFlapSetSwipeToOpen func(uintptr, bool) | |||||
| 463 | // The area that can be swiped depends on the [property@Flap:transition-type] | 519 | // The area that can be swiped depends on the [property@Flap:transition-type] | ||
| 464 | // value. | 520 | // value. | ||
| 465 | func (x *Flap) SetSwipeToOpen(SwipeToOpenVar bool) { | 521 | func (x *Flap) SetSwipeToOpen(SwipeToOpenVar bool) { | ||
| 522 | + | core.LazyRegister(&xFlapSetSwipeToOpen, "ADW", "adw_flap_set_swipe_to_open", false) | |||
| 523 | + | ||||
| 466 | xFlapSetSwipeToOpen(x.GoPointer(), SwipeToOpenVar) | 524 | xFlapSetSwipeToOpen(x.GoPointer(), SwipeToOpenVar) | ||
| 467 | } | 525 | } | ||
| 468 | 526 | ||||
| @@ -475,6 +533,8 @@ var xFlapSetTransitionType func(uintptr, FlapTransitionType) | |||||
| 475 | // the [`.background`](style-classes.html#background) style class to it if this | 533 | // the [`.background`](style-classes.html#background) style class to it if this | ||
| 476 | // is unwanted. | 534 | // is unwanted. | ||
| 477 | func (x *Flap) SetTransitionType(TransitionTypeVar FlapTransitionType) { | 535 | func (x *Flap) SetTransitionType(TransitionTypeVar FlapTransitionType) { | ||
| 536 | + | core.LazyRegister(&xFlapSetTransitionType, "ADW", "adw_flap_set_transition_type", false) | |||
| 537 | + | ||||
| 478 | xFlapSetTransitionType(x.GoPointer(), TransitionTypeVar) | 538 | xFlapSetTransitionType(x.GoPointer(), TransitionTypeVar) | ||
| 479 | } | 539 | } | ||
| 480 | 540 | ||||
| @@ -986,51 +1046,4 @@ func (x *Flap) SetOrientation(OrientationVar gtk.Orientation) { | |||||
| 986 | func init() { | 1046 | func init() { | ||
| 987 | core.SetPackageName("ADW", "libadwaita-1") | 1047 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 988 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 1048 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 989 | - | var libs []uintptr | |||
| 990 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 991 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 992 | - | if err != nil { | |||
| 993 | - | panic(err) | |||
| 994 | - | } | |||
| 995 | - | libs = append(libs, lib) | |||
| 996 | - | } | |||
| 997 | - | ||||
| 998 | - | core.PuregoSafeRegister(&xFlapFoldPolicyGLibType, libs, "adw_flap_fold_policy_get_type") | |||
| 999 | - | ||||
| 1000 | - | core.PuregoSafeRegister(&xFlapTransitionTypeGLibType, libs, "adw_flap_transition_type_get_type") | |||
| 1001 | - | ||||
| 1002 | - | core.PuregoSafeRegister(&xFlapGLibType, libs, "adw_flap_get_type") | |||
| 1003 | - | ||||
| 1004 | - | core.PuregoSafeRegister(&xNewFlap, libs, "adw_flap_new") | |||
| 1005 | - | ||||
| 1006 | - | core.PuregoSafeRegister(&xFlapGetContent, libs, "adw_flap_get_content") | |||
| 1007 | - | core.PuregoSafeRegister(&xFlapGetFlap, libs, "adw_flap_get_flap") | |||
| 1008 | - | core.PuregoSafeRegister(&xFlapGetFlapPosition, libs, "adw_flap_get_flap_position") | |||
| 1009 | - | core.PuregoSafeRegister(&xFlapGetFoldDuration, libs, "adw_flap_get_fold_duration") | |||
| 1010 | - | core.PuregoSafeRegister(&xFlapGetFoldPolicy, libs, "adw_flap_get_fold_policy") | |||
| 1011 | - | core.PuregoSafeRegister(&xFlapGetFoldThresholdPolicy, libs, "adw_flap_get_fold_threshold_policy") | |||
| 1012 | - | core.PuregoSafeRegister(&xFlapGetFolded, libs, "adw_flap_get_folded") | |||
| 1013 | - | core.PuregoSafeRegister(&xFlapGetLocked, libs, "adw_flap_get_locked") | |||
| 1014 | - | core.PuregoSafeRegister(&xFlapGetModal, libs, "adw_flap_get_modal") | |||
| 1015 | - | core.PuregoSafeRegister(&xFlapGetRevealFlap, libs, "adw_flap_get_reveal_flap") | |||
| 1016 | - | core.PuregoSafeRegister(&xFlapGetRevealParams, libs, "adw_flap_get_reveal_params") | |||
| 1017 | - | core.PuregoSafeRegister(&xFlapGetRevealProgress, libs, "adw_flap_get_reveal_progress") | |||
| 1018 | - | core.PuregoSafeRegister(&xFlapGetSeparator, libs, "adw_flap_get_separator") | |||
| 1019 | - | core.PuregoSafeRegister(&xFlapGetSwipeToClose, libs, "adw_flap_get_swipe_to_close") | |||
| 1020 | - | core.PuregoSafeRegister(&xFlapGetSwipeToOpen, libs, "adw_flap_get_swipe_to_open") | |||
| 1021 | - | core.PuregoSafeRegister(&xFlapGetTransitionType, libs, "adw_flap_get_transition_type") | |||
| 1022 | - | core.PuregoSafeRegister(&xFlapSetContent, libs, "adw_flap_set_content") | |||
| 1023 | - | core.PuregoSafeRegister(&xFlapSetFlap, libs, "adw_flap_set_flap") | |||
| 1024 | - | core.PuregoSafeRegister(&xFlapSetFlapPosition, libs, "adw_flap_set_flap_position") | |||
| 1025 | - | core.PuregoSafeRegister(&xFlapSetFoldDuration, libs, "adw_flap_set_fold_duration") | |||
| 1026 | - | core.PuregoSafeRegister(&xFlapSetFoldPolicy, libs, "adw_flap_set_fold_policy") | |||
| 1027 | - | core.PuregoSafeRegister(&xFlapSetFoldThresholdPolicy, libs, "adw_flap_set_fold_threshold_policy") | |||
| 1028 | - | core.PuregoSafeRegister(&xFlapSetLocked, libs, "adw_flap_set_locked") | |||
| 1029 | - | core.PuregoSafeRegister(&xFlapSetModal, libs, "adw_flap_set_modal") | |||
| 1030 | - | core.PuregoSafeRegister(&xFlapSetRevealFlap, libs, "adw_flap_set_reveal_flap") | |||
| 1031 | - | core.PuregoSafeRegister(&xFlapSetRevealParams, libs, "adw_flap_set_reveal_params") | |||
| 1032 | - | core.PuregoSafeRegister(&xFlapSetSeparator, libs, "adw_flap_set_separator") | |||
| 1033 | - | core.PuregoSafeRegister(&xFlapSetSwipeToClose, libs, "adw_flap_set_swipe_to_close") | |||
| 1034 | - | core.PuregoSafeRegister(&xFlapSetSwipeToOpen, libs, "adw_flap_set_swipe_to_open") | |||
| 1035 | - | core.PuregoSafeRegister(&xFlapSetTransitionType, libs, "adw_flap_set_transition_type") | |||
| 1036 | } | 1049 | } | ||