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 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
| @@ -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" | |
| @@ -97,6 +96,7 @@ type WrapBox struct { | |||
| 97 | 96 | var xWrapBoxGLibType func() types.GType | |
| 98 | 97 | ||
| 99 | 98 | func WrapBoxGLibType() types.GType { | |
| 99 | + | core.LazyRegister(&xWrapBoxGLibType, "ADW", "adw_wrap_box_get_type", false) | |
| 100 | 100 | return xWrapBoxGLibType() | |
| 101 | 101 | } | |
| 102 | 102 | ||
| @@ -110,6 +110,7 @@ var xNewWrapBox func() uintptr | |||
| 110 | 110 | ||
| 111 | 111 | // Creates a new `AdwWrapBox`. | |
| 112 | 112 | func NewWrapBox() *WrapBox { | |
| 113 | + | core.LazyRegister(&xNewWrapBox, "ADW", "adw_wrap_box_new", false) | |
| 113 | 114 | var cls *WrapBox | |
| 114 | 115 | ||
| 115 | 116 | cret := xNewWrapBox() | |
| @@ -127,6 +128,8 @@ var xWrapBoxAppend func(uintptr, uintptr) | |||
| 127 | 128 | ||
| 128 | 129 | // Adds @child as the last child to @self. | |
| 129 | 130 | func (x *WrapBox) Append(ChildVar *gtk.Widget) { | |
| 131 | + | core.LazyRegister(&xWrapBoxAppend, "ADW", "adw_wrap_box_append", false) | |
| 132 | + | ||
| 130 | 133 | xWrapBoxAppend(x.GoPointer(), ChildVar.GoPointer()) | |
| 131 | 134 | } | |
| 132 | 135 | ||
| @@ -134,6 +137,8 @@ var xWrapBoxGetAlign func(uintptr) float32 | |||
| 134 | 137 | ||
| 135 | 138 | // Gets the alignment of the children within each line. | |
| 136 | 139 | func (x *WrapBox) GetAlign() float32 { | |
| 140 | + | core.LazyRegister(&xWrapBoxGetAlign, "ADW", "adw_wrap_box_get_align", false) | |
| 141 | + | ||
| 137 | 142 | cret := xWrapBoxGetAlign(x.GoPointer()) | |
| 138 | 143 | return cret | |
| 139 | 144 | } | |
| @@ -142,6 +147,8 @@ var xWrapBoxGetChildSpacing func(uintptr) int | |||
| 142 | 147 | ||
| 143 | 148 | // Gets spacing between widgets on the same line. | |
| 144 | 149 | func (x *WrapBox) GetChildSpacing() int { | |
| 150 | + | core.LazyRegister(&xWrapBoxGetChildSpacing, "ADW", "adw_wrap_box_get_child_spacing", false) | |
| 151 | + | ||
| 145 | 152 | cret := xWrapBoxGetChildSpacing(x.GoPointer()) | |
| 146 | 153 | return cret | |
| 147 | 154 | } | |
| @@ -150,6 +157,8 @@ var xWrapBoxGetChildSpacingUnit func(uintptr) LengthUnit | |||
| 150 | 157 | ||
| 151 | 158 | // Gets the length unit for child spacing. | |
| 152 | 159 | func (x *WrapBox) GetChildSpacingUnit() LengthUnit { | |
| 160 | + | core.LazyRegister(&xWrapBoxGetChildSpacingUnit, "ADW", "adw_wrap_box_get_child_spacing_unit", false) | |
| 161 | + | ||
| 153 | 162 | cret := xWrapBoxGetChildSpacingUnit(x.GoPointer()) | |
| 154 | 163 | return cret | |
| 155 | 164 | } | |
| @@ -158,6 +167,8 @@ var xWrapBoxGetJustify func(uintptr) JustifyMode | |||
| 158 | 167 | ||
| 159 | 168 | // Gets whether and how each complete line is stretched to fill the entire widget. | |
| 160 | 169 | func (x *WrapBox) GetJustify() JustifyMode { | |
| 170 | + | core.LazyRegister(&xWrapBoxGetJustify, "ADW", "adw_wrap_box_get_justify", false) | |
| 171 | + | ||
| 161 | 172 | cret := xWrapBoxGetJustify(x.GoPointer()) | |
| 162 | 173 | return cret | |
| 163 | 174 | } | |
| @@ -166,6 +177,8 @@ var xWrapBoxGetJustifyLastLine func(uintptr) bool | |||
| 166 | 177 | ||
| 167 | 178 | // Gets whether the last line should be stretched to fill the entire widget. | |
| 168 | 179 | func (x *WrapBox) GetJustifyLastLine() bool { | |
| 180 | + | core.LazyRegister(&xWrapBoxGetJustifyLastLine, "ADW", "adw_wrap_box_get_justify_last_line", false) | |
| 181 | + | ||
| 169 | 182 | cret := xWrapBoxGetJustifyLastLine(x.GoPointer()) | |
| 170 | 183 | return cret | |
| 171 | 184 | } | |
| @@ -174,6 +187,8 @@ var xWrapBoxGetLineHomogeneous func(uintptr) bool | |||
| 174 | 187 | ||
| 175 | 188 | // Gets whether all lines should take the same amount of space. | |
| 176 | 189 | func (x *WrapBox) GetLineHomogeneous() bool { | |
| 190 | + | core.LazyRegister(&xWrapBoxGetLineHomogeneous, "ADW", "adw_wrap_box_get_line_homogeneous", false) | |
| 191 | + | ||
| 177 | 192 | cret := xWrapBoxGetLineHomogeneous(x.GoPointer()) | |
| 178 | 193 | return cret | |
| 179 | 194 | } | |
| @@ -184,6 +199,8 @@ var xWrapBoxGetLineSpacing func(uintptr) int | |||
| 184 | 199 | // | |
| 185 | 200 | // See [property@WrapBox:line-spacing-unit]. | |
| 186 | 201 | func (x *WrapBox) GetLineSpacing() int { | |
| 202 | + | core.LazyRegister(&xWrapBoxGetLineSpacing, "ADW", "adw_wrap_box_get_line_spacing", false) | |
| 203 | + | ||
| 187 | 204 | cret := xWrapBoxGetLineSpacing(x.GoPointer()) | |
| 188 | 205 | return cret | |
| 189 | 206 | } | |
| @@ -192,6 +209,8 @@ var xWrapBoxGetLineSpacingUnit func(uintptr) LengthUnit | |||
| 192 | 209 | ||
| 193 | 210 | // Gets the length unit for line spacing. | |
| 194 | 211 | func (x *WrapBox) GetLineSpacingUnit() LengthUnit { | |
| 212 | + | core.LazyRegister(&xWrapBoxGetLineSpacingUnit, "ADW", "adw_wrap_box_get_line_spacing_unit", false) | |
| 213 | + | ||
| 195 | 214 | cret := xWrapBoxGetLineSpacingUnit(x.GoPointer()) | |
| 196 | 215 | return cret | |
| 197 | 216 | } | |
| @@ -200,6 +219,8 @@ var xWrapBoxGetNaturalLineLength func(uintptr) int | |||
| 200 | 219 | ||
| 201 | 220 | // Gets the natural size for each line. | |
| 202 | 221 | func (x *WrapBox) GetNaturalLineLength() int { | |
| 222 | + | core.LazyRegister(&xWrapBoxGetNaturalLineLength, "ADW", "adw_wrap_box_get_natural_line_length", false) | |
| 223 | + | ||
| 203 | 224 | cret := xWrapBoxGetNaturalLineLength(x.GoPointer()) | |
| 204 | 225 | return cret | |
| 205 | 226 | } | |
| @@ -208,6 +229,8 @@ var xWrapBoxGetNaturalLineLengthUnit func(uintptr) LengthUnit | |||
| 208 | 229 | ||
| 209 | 230 | // Gets the length unit for line spacing. | |
| 210 | 231 | func (x *WrapBox) GetNaturalLineLengthUnit() LengthUnit { | |
| 232 | + | core.LazyRegister(&xWrapBoxGetNaturalLineLengthUnit, "ADW", "adw_wrap_box_get_natural_line_length_unit", false) | |
| 233 | + | ||
| 211 | 234 | cret := xWrapBoxGetNaturalLineLengthUnit(x.GoPointer()) | |
| 212 | 235 | return cret | |
| 213 | 236 | } | |
| @@ -216,6 +239,8 @@ var xWrapBoxGetPackDirection func(uintptr) PackDirection | |||
| 216 | 239 | ||
| 217 | 240 | // Gets the direction children are packed in each line. | |
| 218 | 241 | func (x *WrapBox) GetPackDirection() PackDirection { | |
| 242 | + | core.LazyRegister(&xWrapBoxGetPackDirection, "ADW", "adw_wrap_box_get_pack_direction", false) | |
| 243 | + | ||
| 219 | 244 | cret := xWrapBoxGetPackDirection(x.GoPointer()) | |
| 220 | 245 | return cret | |
| 221 | 246 | } | |
| @@ -224,6 +249,8 @@ var xWrapBoxGetWrapPolicy func(uintptr) WrapPolicy | |||
| 224 | 249 | ||
| 225 | 250 | // Gets the policy for line wrapping. | |
| 226 | 251 | func (x *WrapBox) GetWrapPolicy() WrapPolicy { | |
| 252 | + | core.LazyRegister(&xWrapBoxGetWrapPolicy, "ADW", "adw_wrap_box_get_wrap_policy", false) | |
| 253 | + | ||
| 227 | 254 | cret := xWrapBoxGetWrapPolicy(x.GoPointer()) | |
| 228 | 255 | return cret | |
| 229 | 256 | } | |
| @@ -232,6 +259,8 @@ var xWrapBoxGetWrapReverse func(uintptr) bool | |||
| 232 | 259 | ||
| 233 | 260 | // Gets whether wrap direction is reversed. | |
| 234 | 261 | func (x *WrapBox) GetWrapReverse() bool { | |
| 262 | + | core.LazyRegister(&xWrapBoxGetWrapReverse, "ADW", "adw_wrap_box_get_wrap_reverse", false) | |
| 263 | + | ||
| 235 | 264 | cret := xWrapBoxGetWrapReverse(x.GoPointer()) | |
| 236 | 265 | return cret | |
| 237 | 266 | } | |
| @@ -242,6 +271,8 @@ var xWrapBoxInsertChildAfter func(uintptr, uintptr, uintptr) | |||
| 242 | 271 | // | |
| 243 | 272 | // If @sibling is `NULL`, inserts @child at the first position. | |
| 244 | 273 | func (x *WrapBox) InsertChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | |
| 274 | + | core.LazyRegister(&xWrapBoxInsertChildAfter, "ADW", "adw_wrap_box_insert_child_after", false) | |
| 275 | + | ||
| 245 | 276 | xWrapBoxInsertChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | |
| 246 | 277 | } | |
| 247 | 278 | ||
| @@ -249,6 +280,8 @@ var xWrapBoxPrepend func(uintptr, uintptr) | |||
| 249 | 280 | ||
| 250 | 281 | // Adds @child as the first child to @self. | |
| 251 | 282 | func (x *WrapBox) Prepend(ChildVar *gtk.Widget) { | |
| 283 | + | core.LazyRegister(&xWrapBoxPrepend, "ADW", "adw_wrap_box_prepend", false) | |
| 284 | + | ||
| 252 | 285 | xWrapBoxPrepend(x.GoPointer(), ChildVar.GoPointer()) | |
| 253 | 286 | } | |
| 254 | 287 | ||
| @@ -259,6 +292,8 @@ var xWrapBoxRemove func(uintptr, uintptr) | |||
| 259 | 292 | // The child must have been added before with [method@Adw.WrapBox.append], | |
| 260 | 293 | // [method@Adw.WrapBox.prepend], or [method@Adw.WrapBox.insert_child_after]. | |
| 261 | 294 | func (x *WrapBox) Remove(ChildVar *gtk.Widget) { | |
| 295 | + | core.LazyRegister(&xWrapBoxRemove, "ADW", "adw_wrap_box_remove", false) | |
| 296 | + | ||
| 262 | 297 | xWrapBoxRemove(x.GoPointer(), ChildVar.GoPointer()) | |
| 263 | 298 | } | |
| 264 | 299 | ||
| @@ -266,6 +301,8 @@ var xWrapBoxRemoveAll func(uintptr) | |||
| 266 | 301 | ||
| 267 | 302 | // Removes all children from @self. | |
| 268 | 303 | func (x *WrapBox) RemoveAll() { | |
| 304 | + | core.LazyRegister(&xWrapBoxRemoveAll, "ADW", "adw_wrap_box_remove_all", false) | |
| 305 | + | ||
| 269 | 306 | xWrapBoxRemoveAll(x.GoPointer()) | |
| 270 | 307 | } | |
| 271 | 308 | ||
| @@ -275,6 +312,8 @@ var xWrapBoxReorderChildAfter func(uintptr, uintptr, uintptr) | |||
| 275 | 312 | // | |
| 276 | 313 | // If @sibling is `NULL`, moves @child to the first position. | |
| 277 | 314 | func (x *WrapBox) ReorderChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | |
| 315 | + | core.LazyRegister(&xWrapBoxReorderChildAfter, "ADW", "adw_wrap_box_reorder_child_after", false) | |
| 316 | + | ||
| 278 | 317 | xWrapBoxReorderChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | |
| 279 | 318 | } | |
| 280 | 319 | ||
| @@ -290,6 +329,8 @@ var xWrapBoxSetAlign func(uintptr, float32) | |||
| 290 | 329 | // [enum@Adw.JustifyMode.none], or on the last line when the | |
| 291 | 330 | // [property@WrapBox:justify-last-line] is `FALSE`. | |
| 292 | 331 | func (x *WrapBox) SetAlign(AlignVar float32) { | |
| 332 | + | core.LazyRegister(&xWrapBoxSetAlign, "ADW", "adw_wrap_box_set_align", false) | |
| 333 | + | ||
| 293 | 334 | xWrapBoxSetAlign(x.GoPointer(), AlignVar) | |
| 294 | 335 | } | |
| 295 | 336 | ||
| @@ -299,6 +340,8 @@ var xWrapBoxSetChildSpacing func(uintptr, int) | |||
| 299 | 340 | // | |
| 300 | 341 | // See [property@WrapBox:child-spacing-unit]. | |
| 301 | 342 | func (x *WrapBox) SetChildSpacing(ChildSpacingVar int) { | |
| 343 | + | core.LazyRegister(&xWrapBoxSetChildSpacing, "ADW", "adw_wrap_box_set_child_spacing", false) | |
| 344 | + | ||
| 302 | 345 | xWrapBoxSetChildSpacing(x.GoPointer(), ChildSpacingVar) | |
| 303 | 346 | } | |
| 304 | 347 | ||
| @@ -310,6 +353,8 @@ var xWrapBoxSetChildSpacingUnit func(uintptr, LengthUnit) | |||
| 310 | 353 | // | |
| 311 | 354 | // See [property@WrapBox:child-spacing]. | |
| 312 | 355 | func (x *WrapBox) SetChildSpacingUnit(UnitVar LengthUnit) { | |
| 356 | + | core.LazyRegister(&xWrapBoxSetChildSpacingUnit, "ADW", "adw_wrap_box_set_child_spacing_unit", false) | |
| 357 | + | ||
| 313 | 358 | xWrapBoxSetChildSpacingUnit(x.GoPointer(), UnitVar) | |
| 314 | 359 | } | |
| 315 | 360 | ||
| @@ -334,6 +379,8 @@ var xWrapBoxSetJustify func(uintptr, JustifyMode) | |||
| 334 | 379 | // By default this doesn't affect the last line, as it will be incomplete. Use | |
| 335 | 380 | // [property@WrapBox:justify-last-line] to justify it as well. | |
| 336 | 381 | func (x *WrapBox) SetJustify(JustifyVar JustifyMode) { | |
| 382 | + | core.LazyRegister(&xWrapBoxSetJustify, "ADW", "adw_wrap_box_set_justify", false) | |
| 383 | + | ||
| 337 | 384 | xWrapBoxSetJustify(x.GoPointer(), JustifyVar) | |
| 338 | 385 | } | |
| 339 | 386 | ||
| @@ -343,6 +390,8 @@ var xWrapBoxSetJustifyLastLine func(uintptr, bool) | |||
| 343 | 390 | // | |
| 344 | 391 | // See [property@WrapBox:justify]. | |
| 345 | 392 | func (x *WrapBox) SetJustifyLastLine(JustifyLastLineVar bool) { | |
| 393 | + | core.LazyRegister(&xWrapBoxSetJustifyLastLine, "ADW", "adw_wrap_box_set_justify_last_line", false) | |
| 394 | + | ||
| 346 | 395 | xWrapBoxSetJustifyLastLine(x.GoPointer(), JustifyLastLineVar) | |
| 347 | 396 | } | |
| 348 | 397 | ||
| @@ -350,6 +399,8 @@ var xWrapBoxSetLineHomogeneous func(uintptr, bool) | |||
| 350 | 399 | ||
| 351 | 400 | // Sets whether all lines should take the same amount of space. | |
| 352 | 401 | func (x *WrapBox) SetLineHomogeneous(HomogeneousVar bool) { | |
| 402 | + | core.LazyRegister(&xWrapBoxSetLineHomogeneous, "ADW", "adw_wrap_box_set_line_homogeneous", false) | |
| 403 | + | ||
| 353 | 404 | xWrapBoxSetLineHomogeneous(x.GoPointer(), HomogeneousVar) | |
| 354 | 405 | } | |
| 355 | 406 | ||
| @@ -357,6 +408,8 @@ var xWrapBoxSetLineSpacing func(uintptr, int) | |||
| 357 | 408 | ||
| 358 | 409 | // Sets the spacing between lines. | |
| 359 | 410 | func (x *WrapBox) SetLineSpacing(LineSpacingVar int) { | |
| 411 | + | core.LazyRegister(&xWrapBoxSetLineSpacing, "ADW", "adw_wrap_box_set_line_spacing", false) | |
| 412 | + | ||
| 360 | 413 | xWrapBoxSetLineSpacing(x.GoPointer(), LineSpacingVar) | |
| 361 | 414 | } | |
| 362 | 415 | ||
| @@ -368,6 +421,8 @@ var xWrapBoxSetLineSpacingUnit func(uintptr, LengthUnit) | |||
| 368 | 421 | // | |
| 369 | 422 | // See [property@WrapBox:line-spacing]. | |
| 370 | 423 | func (x *WrapBox) SetLineSpacingUnit(UnitVar LengthUnit) { | |
| 424 | + | core.LazyRegister(&xWrapBoxSetLineSpacingUnit, "ADW", "adw_wrap_box_set_line_spacing_unit", false) | |
| 425 | + | ||
| 371 | 426 | xWrapBoxSetLineSpacingUnit(x.GoPointer(), UnitVar) | |
| 372 | 427 | } | |
| 373 | 428 | ||
| @@ -380,6 +435,8 @@ var xWrapBoxSetNaturalLineLength func(uintptr, int) | |||
| 380 | 435 | // | |
| 381 | 436 | // See [property@WrapBox:natural-line-length-unit]. | |
| 382 | 437 | func (x *WrapBox) SetNaturalLineLength(NaturalLineLengthVar int) { | |
| 438 | + | core.LazyRegister(&xWrapBoxSetNaturalLineLength, "ADW", "adw_wrap_box_set_natural_line_length", false) | |
| 439 | + | ||
| 383 | 440 | xWrapBoxSetNaturalLineLength(x.GoPointer(), NaturalLineLengthVar) | |
| 384 | 441 | } | |
| 385 | 442 | ||
| @@ -391,6 +448,8 @@ var xWrapBoxSetNaturalLineLengthUnit func(uintptr, LengthUnit) | |||
| 391 | 448 | // | |
| 392 | 449 | // See [property@WrapBox:natural-line-length]. | |
| 393 | 450 | func (x *WrapBox) SetNaturalLineLengthUnit(UnitVar LengthUnit) { | |
| 451 | + | core.LazyRegister(&xWrapBoxSetNaturalLineLengthUnit, "ADW", "adw_wrap_box_set_natural_line_length_unit", false) | |
| 452 | + | ||
| 394 | 453 | xWrapBoxSetNaturalLineLengthUnit(x.GoPointer(), UnitVar) | |
| 395 | 454 | } | |
| 396 | 455 | ||
| @@ -398,6 +457,8 @@ var xWrapBoxSetPackDirection func(uintptr, PackDirection) | |||
| 398 | 457 | ||
| 399 | 458 | // Sets the direction children are packed in each line. | |
| 400 | 459 | func (x *WrapBox) SetPackDirection(PackDirectionVar PackDirection) { | |
| 460 | + | core.LazyRegister(&xWrapBoxSetPackDirection, "ADW", "adw_wrap_box_set_pack_direction", false) | |
| 461 | + | ||
| 401 | 462 | xWrapBoxSetPackDirection(x.GoPointer(), PackDirectionVar) | |
| 402 | 463 | } | |
| 403 | 464 | ||
| @@ -413,6 +474,8 @@ var xWrapBoxSetWrapPolicy func(uintptr, WrapPolicy) | |||
| 413 | 474 | // children into each line as possible, shrinking them down to their minimum\ | |
| 414 | 475 | // size before wrapping to the next line. | |
| 415 | 476 | func (x *WrapBox) SetWrapPolicy(WrapPolicyVar WrapPolicy) { | |
| 477 | + | core.LazyRegister(&xWrapBoxSetWrapPolicy, "ADW", "adw_wrap_box_set_wrap_policy", false) | |
| 478 | + | ||
| 416 | 479 | xWrapBoxSetWrapPolicy(x.GoPointer(), WrapPolicyVar) | |
| 417 | 480 | } | |
| 418 | 481 | ||
| @@ -424,6 +487,8 @@ var xWrapBoxSetWrapReverse func(uintptr, bool) | |||
| 424 | 487 | // in a vertical box. If set to `TRUE`, they wrap upwards or towards the start | |
| 425 | 488 | // respectively. | |
| 426 | 489 | func (x *WrapBox) SetWrapReverse(WrapReverseVar bool) { | |
| 490 | + | core.LazyRegister(&xWrapBoxSetWrapReverse, "ADW", "adw_wrap_box_set_wrap_reverse", false) | |
| 491 | + | ||
| 427 | 492 | xWrapBoxSetWrapReverse(x.GoPointer(), WrapReverseVar) | |
| 428 | 493 | } | |
| 429 | 494 | ||
| @@ -877,49 +942,4 @@ func (x *WrapBox) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 877 | 942 | func init() { | |
| 878 | 943 | core.SetPackageName("ADW", "libadwaita-1") | |
| 879 | 944 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 880 | - | var libs []uintptr | |
| 881 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 882 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 883 | - | if err != nil { | |
| 884 | - | panic(err) | |
| 885 | - | } | |
| 886 | - | libs = append(libs, lib) | |
| 887 | - | } | |
| 888 | - | ||
| 889 | - | core.PuregoSafeRegister(&xWrapBoxGLibType, libs, "adw_wrap_box_get_type") | |
| 890 | - | ||
| 891 | - | core.PuregoSafeRegister(&xNewWrapBox, libs, "adw_wrap_box_new") | |
| 892 | - | ||
| 893 | - | core.PuregoSafeRegister(&xWrapBoxAppend, libs, "adw_wrap_box_append") | |
| 894 | - | core.PuregoSafeRegister(&xWrapBoxGetAlign, libs, "adw_wrap_box_get_align") | |
| 895 | - | core.PuregoSafeRegister(&xWrapBoxGetChildSpacing, libs, "adw_wrap_box_get_child_spacing") | |
| 896 | - | core.PuregoSafeRegister(&xWrapBoxGetChildSpacingUnit, libs, "adw_wrap_box_get_child_spacing_unit") | |
| 897 | - | core.PuregoSafeRegister(&xWrapBoxGetJustify, libs, "adw_wrap_box_get_justify") | |
| 898 | - | core.PuregoSafeRegister(&xWrapBoxGetJustifyLastLine, libs, "adw_wrap_box_get_justify_last_line") | |
| 899 | - | core.PuregoSafeRegister(&xWrapBoxGetLineHomogeneous, libs, "adw_wrap_box_get_line_homogeneous") | |
| 900 | - | core.PuregoSafeRegister(&xWrapBoxGetLineSpacing, libs, "adw_wrap_box_get_line_spacing") | |
| 901 | - | core.PuregoSafeRegister(&xWrapBoxGetLineSpacingUnit, libs, "adw_wrap_box_get_line_spacing_unit") | |
| 902 | - | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLength, libs, "adw_wrap_box_get_natural_line_length") | |
| 903 | - | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLengthUnit, libs, "adw_wrap_box_get_natural_line_length_unit") | |
| 904 | - | core.PuregoSafeRegister(&xWrapBoxGetPackDirection, libs, "adw_wrap_box_get_pack_direction") | |
| 905 | - | core.PuregoSafeRegister(&xWrapBoxGetWrapPolicy, libs, "adw_wrap_box_get_wrap_policy") | |
| 906 | - | core.PuregoSafeRegister(&xWrapBoxGetWrapReverse, libs, "adw_wrap_box_get_wrap_reverse") | |
| 907 | - | core.PuregoSafeRegister(&xWrapBoxInsertChildAfter, libs, "adw_wrap_box_insert_child_after") | |
| 908 | - | core.PuregoSafeRegister(&xWrapBoxPrepend, libs, "adw_wrap_box_prepend") | |
| 909 | - | core.PuregoSafeRegister(&xWrapBoxRemove, libs, "adw_wrap_box_remove") | |
| 910 | - | core.PuregoSafeRegister(&xWrapBoxRemoveAll, libs, "adw_wrap_box_remove_all") | |
| 911 | - | core.PuregoSafeRegister(&xWrapBoxReorderChildAfter, libs, "adw_wrap_box_reorder_child_after") | |
| 912 | - | core.PuregoSafeRegister(&xWrapBoxSetAlign, libs, "adw_wrap_box_set_align") | |
| 913 | - | core.PuregoSafeRegister(&xWrapBoxSetChildSpacing, libs, "adw_wrap_box_set_child_spacing") | |
| 914 | - | core.PuregoSafeRegister(&xWrapBoxSetChildSpacingUnit, libs, "adw_wrap_box_set_child_spacing_unit") | |
| 915 | - | core.PuregoSafeRegister(&xWrapBoxSetJustify, libs, "adw_wrap_box_set_justify") | |
| 916 | - | core.PuregoSafeRegister(&xWrapBoxSetJustifyLastLine, libs, "adw_wrap_box_set_justify_last_line") | |
| 917 | - | core.PuregoSafeRegister(&xWrapBoxSetLineHomogeneous, libs, "adw_wrap_box_set_line_homogeneous") | |
| 918 | - | core.PuregoSafeRegister(&xWrapBoxSetLineSpacing, libs, "adw_wrap_box_set_line_spacing") | |
| 919 | - | core.PuregoSafeRegister(&xWrapBoxSetLineSpacingUnit, libs, "adw_wrap_box_set_line_spacing_unit") | |
| 920 | - | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLength, libs, "adw_wrap_box_set_natural_line_length") | |
| 921 | - | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLengthUnit, libs, "adw_wrap_box_set_natural_line_length_unit") | |
| 922 | - | core.PuregoSafeRegister(&xWrapBoxSetPackDirection, libs, "adw_wrap_box_set_pack_direction") | |
| 923 | - | core.PuregoSafeRegister(&xWrapBoxSetWrapPolicy, libs, "adw_wrap_box_set_wrap_policy") | |
| 924 | - | core.PuregoSafeRegister(&xWrapBoxSetWrapReverse, libs, "adw_wrap_box_set_wrap_reverse") | |
| 925 | 945 | } | |
| @@ -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" | ||
| @@ -97,6 +96,7 @@ type WrapBox struct { | |||||
| 97 | var xWrapBoxGLibType func() types.GType | 96 | var xWrapBoxGLibType func() types.GType | ||
| 98 | 97 | ||||
| 99 | func WrapBoxGLibType() types.GType { | 98 | func WrapBoxGLibType() types.GType { | ||
| 99 | + | core.LazyRegister(&xWrapBoxGLibType, "ADW", "adw_wrap_box_get_type", false) | |||
| 100 | return xWrapBoxGLibType() | 100 | return xWrapBoxGLibType() | ||
| 101 | } | 101 | } | ||
| 102 | 102 | ||||
| @@ -110,6 +110,7 @@ var xNewWrapBox func() uintptr | |||||
| 110 | 110 | ||||
| 111 | // Creates a new `AdwWrapBox`. | 111 | // Creates a new `AdwWrapBox`. | ||
| 112 | func NewWrapBox() *WrapBox { | 112 | func NewWrapBox() *WrapBox { | ||
| 113 | + | core.LazyRegister(&xNewWrapBox, "ADW", "adw_wrap_box_new", false) | |||
| 113 | var cls *WrapBox | 114 | var cls *WrapBox | ||
| 114 | 115 | ||||
| 115 | cret := xNewWrapBox() | 116 | cret := xNewWrapBox() | ||
| @@ -127,6 +128,8 @@ var xWrapBoxAppend func(uintptr, uintptr) | |||||
| 127 | 128 | ||||
| 128 | // Adds @child as the last child to @self. | 129 | // Adds @child as the last child to @self. | ||
| 129 | func (x *WrapBox) Append(ChildVar *gtk.Widget) { | 130 | func (x *WrapBox) Append(ChildVar *gtk.Widget) { | ||
| 131 | + | core.LazyRegister(&xWrapBoxAppend, "ADW", "adw_wrap_box_append", false) | |||
| 132 | + | ||||
| 130 | xWrapBoxAppend(x.GoPointer(), ChildVar.GoPointer()) | 133 | xWrapBoxAppend(x.GoPointer(), ChildVar.GoPointer()) | ||
| 131 | } | 134 | } | ||
| 132 | 135 | ||||
| @@ -134,6 +137,8 @@ var xWrapBoxGetAlign func(uintptr) float32 | |||||
| 134 | 137 | ||||
| 135 | // Gets the alignment of the children within each line. | 138 | // Gets the alignment of the children within each line. | ||
| 136 | func (x *WrapBox) GetAlign() float32 { | 139 | func (x *WrapBox) GetAlign() float32 { | ||
| 140 | + | core.LazyRegister(&xWrapBoxGetAlign, "ADW", "adw_wrap_box_get_align", false) | |||
| 141 | + | ||||
| 137 | cret := xWrapBoxGetAlign(x.GoPointer()) | 142 | cret := xWrapBoxGetAlign(x.GoPointer()) | ||
| 138 | return cret | 143 | return cret | ||
| 139 | } | 144 | } | ||
| @@ -142,6 +147,8 @@ var xWrapBoxGetChildSpacing func(uintptr) int | |||||
| 142 | 147 | ||||
| 143 | // Gets spacing between widgets on the same line. | 148 | // Gets spacing between widgets on the same line. | ||
| 144 | func (x *WrapBox) GetChildSpacing() int { | 149 | func (x *WrapBox) GetChildSpacing() int { | ||
| 150 | + | core.LazyRegister(&xWrapBoxGetChildSpacing, "ADW", "adw_wrap_box_get_child_spacing", false) | |||
| 151 | + | ||||
| 145 | cret := xWrapBoxGetChildSpacing(x.GoPointer()) | 152 | cret := xWrapBoxGetChildSpacing(x.GoPointer()) | ||
| 146 | return cret | 153 | return cret | ||
| 147 | } | 154 | } | ||
| @@ -150,6 +157,8 @@ var xWrapBoxGetChildSpacingUnit func(uintptr) LengthUnit | |||||
| 150 | 157 | ||||
| 151 | // Gets the length unit for child spacing. | 158 | // Gets the length unit for child spacing. | ||
| 152 | func (x *WrapBox) GetChildSpacingUnit() LengthUnit { | 159 | func (x *WrapBox) GetChildSpacingUnit() LengthUnit { | ||
| 160 | + | core.LazyRegister(&xWrapBoxGetChildSpacingUnit, "ADW", "adw_wrap_box_get_child_spacing_unit", false) | |||
| 161 | + | ||||
| 153 | cret := xWrapBoxGetChildSpacingUnit(x.GoPointer()) | 162 | cret := xWrapBoxGetChildSpacingUnit(x.GoPointer()) | ||
| 154 | return cret | 163 | return cret | ||
| 155 | } | 164 | } | ||
| @@ -158,6 +167,8 @@ var xWrapBoxGetJustify func(uintptr) JustifyMode | |||||
| 158 | 167 | ||||
| 159 | // Gets whether and how each complete line is stretched to fill the entire widget. | 168 | // Gets whether and how each complete line is stretched to fill the entire widget. | ||
| 160 | func (x *WrapBox) GetJustify() JustifyMode { | 169 | func (x *WrapBox) GetJustify() JustifyMode { | ||
| 170 | + | core.LazyRegister(&xWrapBoxGetJustify, "ADW", "adw_wrap_box_get_justify", false) | |||
| 171 | + | ||||
| 161 | cret := xWrapBoxGetJustify(x.GoPointer()) | 172 | cret := xWrapBoxGetJustify(x.GoPointer()) | ||
| 162 | return cret | 173 | return cret | ||
| 163 | } | 174 | } | ||
| @@ -166,6 +177,8 @@ var xWrapBoxGetJustifyLastLine func(uintptr) bool | |||||
| 166 | 177 | ||||
| 167 | // Gets whether the last line should be stretched to fill the entire widget. | 178 | // Gets whether the last line should be stretched to fill the entire widget. | ||
| 168 | func (x *WrapBox) GetJustifyLastLine() bool { | 179 | func (x *WrapBox) GetJustifyLastLine() bool { | ||
| 180 | + | core.LazyRegister(&xWrapBoxGetJustifyLastLine, "ADW", "adw_wrap_box_get_justify_last_line", false) | |||
| 181 | + | ||||
| 169 | cret := xWrapBoxGetJustifyLastLine(x.GoPointer()) | 182 | cret := xWrapBoxGetJustifyLastLine(x.GoPointer()) | ||
| 170 | return cret | 183 | return cret | ||
| 171 | } | 184 | } | ||
| @@ -174,6 +187,8 @@ var xWrapBoxGetLineHomogeneous func(uintptr) bool | |||||
| 174 | 187 | ||||
| 175 | // Gets whether all lines should take the same amount of space. | 188 | // Gets whether all lines should take the same amount of space. | ||
| 176 | func (x *WrapBox) GetLineHomogeneous() bool { | 189 | func (x *WrapBox) GetLineHomogeneous() bool { | ||
| 190 | + | core.LazyRegister(&xWrapBoxGetLineHomogeneous, "ADW", "adw_wrap_box_get_line_homogeneous", false) | |||
| 191 | + | ||||
| 177 | cret := xWrapBoxGetLineHomogeneous(x.GoPointer()) | 192 | cret := xWrapBoxGetLineHomogeneous(x.GoPointer()) | ||
| 178 | return cret | 193 | return cret | ||
| 179 | } | 194 | } | ||
| @@ -184,6 +199,8 @@ var xWrapBoxGetLineSpacing func(uintptr) int | |||||
| 184 | // | 199 | // | ||
| 185 | // See [property@WrapBox:line-spacing-unit]. | 200 | // See [property@WrapBox:line-spacing-unit]. | ||
| 186 | func (x *WrapBox) GetLineSpacing() int { | 201 | func (x *WrapBox) GetLineSpacing() int { | ||
| 202 | + | core.LazyRegister(&xWrapBoxGetLineSpacing, "ADW", "adw_wrap_box_get_line_spacing", false) | |||
| 203 | + | ||||
| 187 | cret := xWrapBoxGetLineSpacing(x.GoPointer()) | 204 | cret := xWrapBoxGetLineSpacing(x.GoPointer()) | ||
| 188 | return cret | 205 | return cret | ||
| 189 | } | 206 | } | ||
| @@ -192,6 +209,8 @@ var xWrapBoxGetLineSpacingUnit func(uintptr) LengthUnit | |||||
| 192 | 209 | ||||
| 193 | // Gets the length unit for line spacing. | 210 | // Gets the length unit for line spacing. | ||
| 194 | func (x *WrapBox) GetLineSpacingUnit() LengthUnit { | 211 | func (x *WrapBox) GetLineSpacingUnit() LengthUnit { | ||
| 212 | + | core.LazyRegister(&xWrapBoxGetLineSpacingUnit, "ADW", "adw_wrap_box_get_line_spacing_unit", false) | |||
| 213 | + | ||||
| 195 | cret := xWrapBoxGetLineSpacingUnit(x.GoPointer()) | 214 | cret := xWrapBoxGetLineSpacingUnit(x.GoPointer()) | ||
| 196 | return cret | 215 | return cret | ||
| 197 | } | 216 | } | ||
| @@ -200,6 +219,8 @@ var xWrapBoxGetNaturalLineLength func(uintptr) int | |||||
| 200 | 219 | ||||
| 201 | // Gets the natural size for each line. | 220 | // Gets the natural size for each line. | ||
| 202 | func (x *WrapBox) GetNaturalLineLength() int { | 221 | func (x *WrapBox) GetNaturalLineLength() int { | ||
| 222 | + | core.LazyRegister(&xWrapBoxGetNaturalLineLength, "ADW", "adw_wrap_box_get_natural_line_length", false) | |||
| 223 | + | ||||
| 203 | cret := xWrapBoxGetNaturalLineLength(x.GoPointer()) | 224 | cret := xWrapBoxGetNaturalLineLength(x.GoPointer()) | ||
| 204 | return cret | 225 | return cret | ||
| 205 | } | 226 | } | ||
| @@ -208,6 +229,8 @@ var xWrapBoxGetNaturalLineLengthUnit func(uintptr) LengthUnit | |||||
| 208 | 229 | ||||
| 209 | // Gets the length unit for line spacing. | 230 | // Gets the length unit for line spacing. | ||
| 210 | func (x *WrapBox) GetNaturalLineLengthUnit() LengthUnit { | 231 | func (x *WrapBox) GetNaturalLineLengthUnit() LengthUnit { | ||
| 232 | + | core.LazyRegister(&xWrapBoxGetNaturalLineLengthUnit, "ADW", "adw_wrap_box_get_natural_line_length_unit", false) | |||
| 233 | + | ||||
| 211 | cret := xWrapBoxGetNaturalLineLengthUnit(x.GoPointer()) | 234 | cret := xWrapBoxGetNaturalLineLengthUnit(x.GoPointer()) | ||
| 212 | return cret | 235 | return cret | ||
| 213 | } | 236 | } | ||
| @@ -216,6 +239,8 @@ var xWrapBoxGetPackDirection func(uintptr) PackDirection | |||||
| 216 | 239 | ||||
| 217 | // Gets the direction children are packed in each line. | 240 | // Gets the direction children are packed in each line. | ||
| 218 | func (x *WrapBox) GetPackDirection() PackDirection { | 241 | func (x *WrapBox) GetPackDirection() PackDirection { | ||
| 242 | + | core.LazyRegister(&xWrapBoxGetPackDirection, "ADW", "adw_wrap_box_get_pack_direction", false) | |||
| 243 | + | ||||
| 219 | cret := xWrapBoxGetPackDirection(x.GoPointer()) | 244 | cret := xWrapBoxGetPackDirection(x.GoPointer()) | ||
| 220 | return cret | 245 | return cret | ||
| 221 | } | 246 | } | ||
| @@ -224,6 +249,8 @@ var xWrapBoxGetWrapPolicy func(uintptr) WrapPolicy | |||||
| 224 | 249 | ||||
| 225 | // Gets the policy for line wrapping. | 250 | // Gets the policy for line wrapping. | ||
| 226 | func (x *WrapBox) GetWrapPolicy() WrapPolicy { | 251 | func (x *WrapBox) GetWrapPolicy() WrapPolicy { | ||
| 252 | + | core.LazyRegister(&xWrapBoxGetWrapPolicy, "ADW", "adw_wrap_box_get_wrap_policy", false) | |||
| 253 | + | ||||
| 227 | cret := xWrapBoxGetWrapPolicy(x.GoPointer()) | 254 | cret := xWrapBoxGetWrapPolicy(x.GoPointer()) | ||
| 228 | return cret | 255 | return cret | ||
| 229 | } | 256 | } | ||
| @@ -232,6 +259,8 @@ var xWrapBoxGetWrapReverse func(uintptr) bool | |||||
| 232 | 259 | ||||
| 233 | // Gets whether wrap direction is reversed. | 260 | // Gets whether wrap direction is reversed. | ||
| 234 | func (x *WrapBox) GetWrapReverse() bool { | 261 | func (x *WrapBox) GetWrapReverse() bool { | ||
| 262 | + | core.LazyRegister(&xWrapBoxGetWrapReverse, "ADW", "adw_wrap_box_get_wrap_reverse", false) | |||
| 263 | + | ||||
| 235 | cret := xWrapBoxGetWrapReverse(x.GoPointer()) | 264 | cret := xWrapBoxGetWrapReverse(x.GoPointer()) | ||
| 236 | return cret | 265 | return cret | ||
| 237 | } | 266 | } | ||
| @@ -242,6 +271,8 @@ var xWrapBoxInsertChildAfter func(uintptr, uintptr, uintptr) | |||||
| 242 | // | 271 | // | ||
| 243 | // If @sibling is `NULL`, inserts @child at the first position. | 272 | // If @sibling is `NULL`, inserts @child at the first position. | ||
| 244 | func (x *WrapBox) InsertChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | 273 | func (x *WrapBox) InsertChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | ||
| 274 | + | core.LazyRegister(&xWrapBoxInsertChildAfter, "ADW", "adw_wrap_box_insert_child_after", false) | |||
| 275 | + | ||||
| 245 | xWrapBoxInsertChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | 276 | xWrapBoxInsertChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | ||
| 246 | } | 277 | } | ||
| 247 | 278 | ||||
| @@ -249,6 +280,8 @@ var xWrapBoxPrepend func(uintptr, uintptr) | |||||
| 249 | 280 | ||||
| 250 | // Adds @child as the first child to @self. | 281 | // Adds @child as the first child to @self. | ||
| 251 | func (x *WrapBox) Prepend(ChildVar *gtk.Widget) { | 282 | func (x *WrapBox) Prepend(ChildVar *gtk.Widget) { | ||
| 283 | + | core.LazyRegister(&xWrapBoxPrepend, "ADW", "adw_wrap_box_prepend", false) | |||
| 284 | + | ||||
| 252 | xWrapBoxPrepend(x.GoPointer(), ChildVar.GoPointer()) | 285 | xWrapBoxPrepend(x.GoPointer(), ChildVar.GoPointer()) | ||
| 253 | } | 286 | } | ||
| 254 | 287 | ||||
| @@ -259,6 +292,8 @@ var xWrapBoxRemove func(uintptr, uintptr) | |||||
| 259 | // The child must have been added before with [method@Adw.WrapBox.append], | 292 | // The child must have been added before with [method@Adw.WrapBox.append], | ||
| 260 | // [method@Adw.WrapBox.prepend], or [method@Adw.WrapBox.insert_child_after]. | 293 | // [method@Adw.WrapBox.prepend], or [method@Adw.WrapBox.insert_child_after]. | ||
| 261 | func (x *WrapBox) Remove(ChildVar *gtk.Widget) { | 294 | func (x *WrapBox) Remove(ChildVar *gtk.Widget) { | ||
| 295 | + | core.LazyRegister(&xWrapBoxRemove, "ADW", "adw_wrap_box_remove", false) | |||
| 296 | + | ||||
| 262 | xWrapBoxRemove(x.GoPointer(), ChildVar.GoPointer()) | 297 | xWrapBoxRemove(x.GoPointer(), ChildVar.GoPointer()) | ||
| 263 | } | 298 | } | ||
| 264 | 299 | ||||
| @@ -266,6 +301,8 @@ var xWrapBoxRemoveAll func(uintptr) | |||||
| 266 | 301 | ||||
| 267 | // Removes all children from @self. | 302 | // Removes all children from @self. | ||
| 268 | func (x *WrapBox) RemoveAll() { | 303 | func (x *WrapBox) RemoveAll() { | ||
| 304 | + | core.LazyRegister(&xWrapBoxRemoveAll, "ADW", "adw_wrap_box_remove_all", false) | |||
| 305 | + | ||||
| 269 | xWrapBoxRemoveAll(x.GoPointer()) | 306 | xWrapBoxRemoveAll(x.GoPointer()) | ||
| 270 | } | 307 | } | ||
| 271 | 308 | ||||
| @@ -275,6 +312,8 @@ var xWrapBoxReorderChildAfter func(uintptr, uintptr, uintptr) | |||||
| 275 | // | 312 | // | ||
| 276 | // If @sibling is `NULL`, moves @child to the first position. | 313 | // If @sibling is `NULL`, moves @child to the first position. | ||
| 277 | func (x *WrapBox) ReorderChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | 314 | func (x *WrapBox) ReorderChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | ||
| 315 | + | core.LazyRegister(&xWrapBoxReorderChildAfter, "ADW", "adw_wrap_box_reorder_child_after", false) | |||
| 316 | + | ||||
| 278 | xWrapBoxReorderChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | 317 | xWrapBoxReorderChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | ||
| 279 | } | 318 | } | ||
| 280 | 319 | ||||
| @@ -290,6 +329,8 @@ var xWrapBoxSetAlign func(uintptr, float32) | |||||
| 290 | // [enum@Adw.JustifyMode.none], or on the last line when the | 329 | // [enum@Adw.JustifyMode.none], or on the last line when the | ||
| 291 | // [property@WrapBox:justify-last-line] is `FALSE`. | 330 | // [property@WrapBox:justify-last-line] is `FALSE`. | ||
| 292 | func (x *WrapBox) SetAlign(AlignVar float32) { | 331 | func (x *WrapBox) SetAlign(AlignVar float32) { | ||
| 332 | + | core.LazyRegister(&xWrapBoxSetAlign, "ADW", "adw_wrap_box_set_align", false) | |||
| 333 | + | ||||
| 293 | xWrapBoxSetAlign(x.GoPointer(), AlignVar) | 334 | xWrapBoxSetAlign(x.GoPointer(), AlignVar) | ||
| 294 | } | 335 | } | ||
| 295 | 336 | ||||
| @@ -299,6 +340,8 @@ var xWrapBoxSetChildSpacing func(uintptr, int) | |||||
| 299 | // | 340 | // | ||
| 300 | // See [property@WrapBox:child-spacing-unit]. | 341 | // See [property@WrapBox:child-spacing-unit]. | ||
| 301 | func (x *WrapBox) SetChildSpacing(ChildSpacingVar int) { | 342 | func (x *WrapBox) SetChildSpacing(ChildSpacingVar int) { | ||
| 343 | + | core.LazyRegister(&xWrapBoxSetChildSpacing, "ADW", "adw_wrap_box_set_child_spacing", false) | |||
| 344 | + | ||||
| 302 | xWrapBoxSetChildSpacing(x.GoPointer(), ChildSpacingVar) | 345 | xWrapBoxSetChildSpacing(x.GoPointer(), ChildSpacingVar) | ||
| 303 | } | 346 | } | ||
| 304 | 347 | ||||
| @@ -310,6 +353,8 @@ var xWrapBoxSetChildSpacingUnit func(uintptr, LengthUnit) | |||||
| 310 | // | 353 | // | ||
| 311 | // See [property@WrapBox:child-spacing]. | 354 | // See [property@WrapBox:child-spacing]. | ||
| 312 | func (x *WrapBox) SetChildSpacingUnit(UnitVar LengthUnit) { | 355 | func (x *WrapBox) SetChildSpacingUnit(UnitVar LengthUnit) { | ||
| 356 | + | core.LazyRegister(&xWrapBoxSetChildSpacingUnit, "ADW", "adw_wrap_box_set_child_spacing_unit", false) | |||
| 357 | + | ||||
| 313 | xWrapBoxSetChildSpacingUnit(x.GoPointer(), UnitVar) | 358 | xWrapBoxSetChildSpacingUnit(x.GoPointer(), UnitVar) | ||
| 314 | } | 359 | } | ||
| 315 | 360 | ||||
| @@ -334,6 +379,8 @@ var xWrapBoxSetJustify func(uintptr, JustifyMode) | |||||
| 334 | // By default this doesn't affect the last line, as it will be incomplete. Use | 379 | // By default this doesn't affect the last line, as it will be incomplete. Use | ||
| 335 | // [property@WrapBox:justify-last-line] to justify it as well. | 380 | // [property@WrapBox:justify-last-line] to justify it as well. | ||
| 336 | func (x *WrapBox) SetJustify(JustifyVar JustifyMode) { | 381 | func (x *WrapBox) SetJustify(JustifyVar JustifyMode) { | ||
| 382 | + | core.LazyRegister(&xWrapBoxSetJustify, "ADW", "adw_wrap_box_set_justify", false) | |||
| 383 | + | ||||
| 337 | xWrapBoxSetJustify(x.GoPointer(), JustifyVar) | 384 | xWrapBoxSetJustify(x.GoPointer(), JustifyVar) | ||
| 338 | } | 385 | } | ||
| 339 | 386 | ||||
| @@ -343,6 +390,8 @@ var xWrapBoxSetJustifyLastLine func(uintptr, bool) | |||||
| 343 | // | 390 | // | ||
| 344 | // See [property@WrapBox:justify]. | 391 | // See [property@WrapBox:justify]. | ||
| 345 | func (x *WrapBox) SetJustifyLastLine(JustifyLastLineVar bool) { | 392 | func (x *WrapBox) SetJustifyLastLine(JustifyLastLineVar bool) { | ||
| 393 | + | core.LazyRegister(&xWrapBoxSetJustifyLastLine, "ADW", "adw_wrap_box_set_justify_last_line", false) | |||
| 394 | + | ||||
| 346 | xWrapBoxSetJustifyLastLine(x.GoPointer(), JustifyLastLineVar) | 395 | xWrapBoxSetJustifyLastLine(x.GoPointer(), JustifyLastLineVar) | ||
| 347 | } | 396 | } | ||
| 348 | 397 | ||||
| @@ -350,6 +399,8 @@ var xWrapBoxSetLineHomogeneous func(uintptr, bool) | |||||
| 350 | 399 | ||||
| 351 | // Sets whether all lines should take the same amount of space. | 400 | // Sets whether all lines should take the same amount of space. | ||
| 352 | func (x *WrapBox) SetLineHomogeneous(HomogeneousVar bool) { | 401 | func (x *WrapBox) SetLineHomogeneous(HomogeneousVar bool) { | ||
| 402 | + | core.LazyRegister(&xWrapBoxSetLineHomogeneous, "ADW", "adw_wrap_box_set_line_homogeneous", false) | |||
| 403 | + | ||||
| 353 | xWrapBoxSetLineHomogeneous(x.GoPointer(), HomogeneousVar) | 404 | xWrapBoxSetLineHomogeneous(x.GoPointer(), HomogeneousVar) | ||
| 354 | } | 405 | } | ||
| 355 | 406 | ||||
| @@ -357,6 +408,8 @@ var xWrapBoxSetLineSpacing func(uintptr, int) | |||||
| 357 | 408 | ||||
| 358 | // Sets the spacing between lines. | 409 | // Sets the spacing between lines. | ||
| 359 | func (x *WrapBox) SetLineSpacing(LineSpacingVar int) { | 410 | func (x *WrapBox) SetLineSpacing(LineSpacingVar int) { | ||
| 411 | + | core.LazyRegister(&xWrapBoxSetLineSpacing, "ADW", "adw_wrap_box_set_line_spacing", false) | |||
| 412 | + | ||||
| 360 | xWrapBoxSetLineSpacing(x.GoPointer(), LineSpacingVar) | 413 | xWrapBoxSetLineSpacing(x.GoPointer(), LineSpacingVar) | ||
| 361 | } | 414 | } | ||
| 362 | 415 | ||||
| @@ -368,6 +421,8 @@ var xWrapBoxSetLineSpacingUnit func(uintptr, LengthUnit) | |||||
| 368 | // | 421 | // | ||
| 369 | // See [property@WrapBox:line-spacing]. | 422 | // See [property@WrapBox:line-spacing]. | ||
| 370 | func (x *WrapBox) SetLineSpacingUnit(UnitVar LengthUnit) { | 423 | func (x *WrapBox) SetLineSpacingUnit(UnitVar LengthUnit) { | ||
| 424 | + | core.LazyRegister(&xWrapBoxSetLineSpacingUnit, "ADW", "adw_wrap_box_set_line_spacing_unit", false) | |||
| 425 | + | ||||
| 371 | xWrapBoxSetLineSpacingUnit(x.GoPointer(), UnitVar) | 426 | xWrapBoxSetLineSpacingUnit(x.GoPointer(), UnitVar) | ||
| 372 | } | 427 | } | ||
| 373 | 428 | ||||
| @@ -380,6 +435,8 @@ var xWrapBoxSetNaturalLineLength func(uintptr, int) | |||||
| 380 | // | 435 | // | ||
| 381 | // See [property@WrapBox:natural-line-length-unit]. | 436 | // See [property@WrapBox:natural-line-length-unit]. | ||
| 382 | func (x *WrapBox) SetNaturalLineLength(NaturalLineLengthVar int) { | 437 | func (x *WrapBox) SetNaturalLineLength(NaturalLineLengthVar int) { | ||
| 438 | + | core.LazyRegister(&xWrapBoxSetNaturalLineLength, "ADW", "adw_wrap_box_set_natural_line_length", false) | |||
| 439 | + | ||||
| 383 | xWrapBoxSetNaturalLineLength(x.GoPointer(), NaturalLineLengthVar) | 440 | xWrapBoxSetNaturalLineLength(x.GoPointer(), NaturalLineLengthVar) | ||
| 384 | } | 441 | } | ||
| 385 | 442 | ||||
| @@ -391,6 +448,8 @@ var xWrapBoxSetNaturalLineLengthUnit func(uintptr, LengthUnit) | |||||
| 391 | // | 448 | // | ||
| 392 | // See [property@WrapBox:natural-line-length]. | 449 | // See [property@WrapBox:natural-line-length]. | ||
| 393 | func (x *WrapBox) SetNaturalLineLengthUnit(UnitVar LengthUnit) { | 450 | func (x *WrapBox) SetNaturalLineLengthUnit(UnitVar LengthUnit) { | ||
| 451 | + | core.LazyRegister(&xWrapBoxSetNaturalLineLengthUnit, "ADW", "adw_wrap_box_set_natural_line_length_unit", false) | |||
| 452 | + | ||||
| 394 | xWrapBoxSetNaturalLineLengthUnit(x.GoPointer(), UnitVar) | 453 | xWrapBoxSetNaturalLineLengthUnit(x.GoPointer(), UnitVar) | ||
| 395 | } | 454 | } | ||
| 396 | 455 | ||||
| @@ -398,6 +457,8 @@ var xWrapBoxSetPackDirection func(uintptr, PackDirection) | |||||
| 398 | 457 | ||||
| 399 | // Sets the direction children are packed in each line. | 458 | // Sets the direction children are packed in each line. | ||
| 400 | func (x *WrapBox) SetPackDirection(PackDirectionVar PackDirection) { | 459 | func (x *WrapBox) SetPackDirection(PackDirectionVar PackDirection) { | ||
| 460 | + | core.LazyRegister(&xWrapBoxSetPackDirection, "ADW", "adw_wrap_box_set_pack_direction", false) | |||
| 461 | + | ||||
| 401 | xWrapBoxSetPackDirection(x.GoPointer(), PackDirectionVar) | 462 | xWrapBoxSetPackDirection(x.GoPointer(), PackDirectionVar) | ||
| 402 | } | 463 | } | ||
| 403 | 464 | ||||
| @@ -413,6 +474,8 @@ var xWrapBoxSetWrapPolicy func(uintptr, WrapPolicy) | |||||
| 413 | // children into each line as possible, shrinking them down to their minimum\ | 474 | // children into each line as possible, shrinking them down to their minimum\ | ||
| 414 | // size before wrapping to the next line. | 475 | // size before wrapping to the next line. | ||
| 415 | func (x *WrapBox) SetWrapPolicy(WrapPolicyVar WrapPolicy) { | 476 | func (x *WrapBox) SetWrapPolicy(WrapPolicyVar WrapPolicy) { | ||
| 477 | + | core.LazyRegister(&xWrapBoxSetWrapPolicy, "ADW", "adw_wrap_box_set_wrap_policy", false) | |||
| 478 | + | ||||
| 416 | xWrapBoxSetWrapPolicy(x.GoPointer(), WrapPolicyVar) | 479 | xWrapBoxSetWrapPolicy(x.GoPointer(), WrapPolicyVar) | ||
| 417 | } | 480 | } | ||
| 418 | 481 | ||||
| @@ -424,6 +487,8 @@ var xWrapBoxSetWrapReverse func(uintptr, bool) | |||||
| 424 | // in a vertical box. If set to `TRUE`, they wrap upwards or towards the start | 487 | // in a vertical box. If set to `TRUE`, they wrap upwards or towards the start | ||
| 425 | // respectively. | 488 | // respectively. | ||
| 426 | func (x *WrapBox) SetWrapReverse(WrapReverseVar bool) { | 489 | func (x *WrapBox) SetWrapReverse(WrapReverseVar bool) { | ||
| 490 | + | core.LazyRegister(&xWrapBoxSetWrapReverse, "ADW", "adw_wrap_box_set_wrap_reverse", false) | |||
| 491 | + | ||||
| 427 | xWrapBoxSetWrapReverse(x.GoPointer(), WrapReverseVar) | 492 | xWrapBoxSetWrapReverse(x.GoPointer(), WrapReverseVar) | ||
| 428 | } | 493 | } | ||
| 429 | 494 | ||||
| @@ -877,49 +942,4 @@ func (x *WrapBox) SetOrientation(OrientationVar gtk.Orientation) { | |||||
| 877 | func init() { | 942 | func init() { | ||
| 878 | core.SetPackageName("ADW", "libadwaita-1") | 943 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 879 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 944 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 880 | - | var libs []uintptr | |||
| 881 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 882 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 883 | - | if err != nil { | |||
| 884 | - | panic(err) | |||
| 885 | - | } | |||
| 886 | - | libs = append(libs, lib) | |||
| 887 | - | } | |||
| 888 | - | ||||
| 889 | - | core.PuregoSafeRegister(&xWrapBoxGLibType, libs, "adw_wrap_box_get_type") | |||
| 890 | - | ||||
| 891 | - | core.PuregoSafeRegister(&xNewWrapBox, libs, "adw_wrap_box_new") | |||
| 892 | - | ||||
| 893 | - | core.PuregoSafeRegister(&xWrapBoxAppend, libs, "adw_wrap_box_append") | |||
| 894 | - | core.PuregoSafeRegister(&xWrapBoxGetAlign, libs, "adw_wrap_box_get_align") | |||
| 895 | - | core.PuregoSafeRegister(&xWrapBoxGetChildSpacing, libs, "adw_wrap_box_get_child_spacing") | |||
| 896 | - | core.PuregoSafeRegister(&xWrapBoxGetChildSpacingUnit, libs, "adw_wrap_box_get_child_spacing_unit") | |||
| 897 | - | core.PuregoSafeRegister(&xWrapBoxGetJustify, libs, "adw_wrap_box_get_justify") | |||
| 898 | - | core.PuregoSafeRegister(&xWrapBoxGetJustifyLastLine, libs, "adw_wrap_box_get_justify_last_line") | |||
| 899 | - | core.PuregoSafeRegister(&xWrapBoxGetLineHomogeneous, libs, "adw_wrap_box_get_line_homogeneous") | |||
| 900 | - | core.PuregoSafeRegister(&xWrapBoxGetLineSpacing, libs, "adw_wrap_box_get_line_spacing") | |||
| 901 | - | core.PuregoSafeRegister(&xWrapBoxGetLineSpacingUnit, libs, "adw_wrap_box_get_line_spacing_unit") | |||
| 902 | - | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLength, libs, "adw_wrap_box_get_natural_line_length") | |||
| 903 | - | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLengthUnit, libs, "adw_wrap_box_get_natural_line_length_unit") | |||
| 904 | - | core.PuregoSafeRegister(&xWrapBoxGetPackDirection, libs, "adw_wrap_box_get_pack_direction") | |||
| 905 | - | core.PuregoSafeRegister(&xWrapBoxGetWrapPolicy, libs, "adw_wrap_box_get_wrap_policy") | |||
| 906 | - | core.PuregoSafeRegister(&xWrapBoxGetWrapReverse, libs, "adw_wrap_box_get_wrap_reverse") | |||
| 907 | - | core.PuregoSafeRegister(&xWrapBoxInsertChildAfter, libs, "adw_wrap_box_insert_child_after") | |||
| 908 | - | core.PuregoSafeRegister(&xWrapBoxPrepend, libs, "adw_wrap_box_prepend") | |||
| 909 | - | core.PuregoSafeRegister(&xWrapBoxRemove, libs, "adw_wrap_box_remove") | |||
| 910 | - | core.PuregoSafeRegister(&xWrapBoxRemoveAll, libs, "adw_wrap_box_remove_all") | |||
| 911 | - | core.PuregoSafeRegister(&xWrapBoxReorderChildAfter, libs, "adw_wrap_box_reorder_child_after") | |||
| 912 | - | core.PuregoSafeRegister(&xWrapBoxSetAlign, libs, "adw_wrap_box_set_align") | |||
| 913 | - | core.PuregoSafeRegister(&xWrapBoxSetChildSpacing, libs, "adw_wrap_box_set_child_spacing") | |||
| 914 | - | core.PuregoSafeRegister(&xWrapBoxSetChildSpacingUnit, libs, "adw_wrap_box_set_child_spacing_unit") | |||
| 915 | - | core.PuregoSafeRegister(&xWrapBoxSetJustify, libs, "adw_wrap_box_set_justify") | |||
| 916 | - | core.PuregoSafeRegister(&xWrapBoxSetJustifyLastLine, libs, "adw_wrap_box_set_justify_last_line") | |||
| 917 | - | core.PuregoSafeRegister(&xWrapBoxSetLineHomogeneous, libs, "adw_wrap_box_set_line_homogeneous") | |||
| 918 | - | core.PuregoSafeRegister(&xWrapBoxSetLineSpacing, libs, "adw_wrap_box_set_line_spacing") | |||
| 919 | - | core.PuregoSafeRegister(&xWrapBoxSetLineSpacingUnit, libs, "adw_wrap_box_set_line_spacing_unit") | |||
| 920 | - | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLength, libs, "adw_wrap_box_set_natural_line_length") | |||
| 921 | - | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLengthUnit, libs, "adw_wrap_box_set_natural_line_length_unit") | |||
| 922 | - | core.PuregoSafeRegister(&xWrapBoxSetPackDirection, libs, "adw_wrap_box_set_pack_direction") | |||
| 923 | - | core.PuregoSafeRegister(&xWrapBoxSetWrapPolicy, libs, "adw_wrap_box_set_wrap_policy") | |||
| 924 | - | core.PuregoSafeRegister(&xWrapBoxSetWrapReverse, libs, "adw_wrap_box_set_wrap_reverse") | |||
| 925 | } | 945 | } | ||